/* Modern CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Modern Color Palette */
    --primary-red: #f87171;         /* light red */
    --primary-red-dark: #ef4444;    /* darker light red */
    --secondary-purple: #7c3aed;
    --accent-cyan: #06b6d4;
    --neutral-dark: #1f2937;
    --neutral-medium: #6b7280;
    --neutral-light: #f8fafc;
    --white: #ffffff;
    --text-dark: #111827;
    --text-medium: #374151;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-dark);
    background: linear-gradient(135deg, var(--neutral-light) 0%, #e2e8f0 100%);
    min-height: 100vh;
}

/* Modern Header Design */
header {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--secondary-purple) 100%);
    color: var(--white);
    padding: var(--space-lg) var(--space-sm);
    text-align: center;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

header > * {
    position: relative;
    z-index: 1;
}

header h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: var(--space-sm);
    letter-spacing: -0.02em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

header p {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    margin-bottom: var(--space-lg);
    opacity: 0.95;
    font-weight: 300;
}

/* Modern Navigation */
nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-xs);
}

nav a {
    color: var(--white);
    text-decoration: none;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-lg);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

nav a:hover,
nav a:focus {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

nav a:active {
    transform: translateY(0);
}

/* Main Content Layout */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-2xl) var(--space-md);
}

/* Typography Improvements */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--space-md);
    color: var(--text-dark);
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: var(--space-lg);
    text-align: center;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-red), var(--accent-cyan));
    border-radius: var(--radius-sm);
}

p {
    margin-bottom: var(--space-md);
    color: var(--text-medium);
    font-size: 1.1rem;
    max-width: 65ch;
    margin-left: auto;
    margin-right: auto;
}

/* Content Cards */
.content-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    box-shadow: var(--shadow-md);
    margin-bottom: var(--space-lg);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.content-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

/* Links */
a {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-red-dark);
    text-decoration: underline;
}

/* Lists */
ul {
    list-style: none;
    padding: 0;
}

ul li {
    padding: var(--space-sm) 0;
    padding-left: var(--space-lg);
    position: relative;
    color: var(--text-medium);
    font-size: 1.1rem;
}

ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-cyan);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        padding: var(--space-md) var(--space-sm);
    }
    
    nav {
        flex-direction: column;
        align-items: center;
        gap: var(--space-xs);
    }
    
    nav a {
        width: 100%;
        max-width: 200px;
        text-align: center;
    }
    
    main {
        padding: var(--space-lg) var(--space-sm);
    }
    
    .content-card {
        padding: var(--space-lg);
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 2rem;
    }
    
    header p {
        font-size: 1rem;
    }
    
    main {
        padding: var(--space-md) var(--space-sm);
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Focus states for accessibility */
a:focus,
button:focus {
    outline: 2px solid var(--primary-red);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    header {
        background: var(--text-dark) !important;
        color: var(--white) !important;
        box-shadow: none;
    }
    
    .content-card {
        box-shadow: none;
        border: 1px solid #000;
    }
}