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

:root {
    /* Dark Theme Color Palette - Navy, Blue, Black, White */
    --primary-color: #1e40af;
    --primary-dark: #1e3a8a;
    --primary-light: #3b82f6;
    --primary-soft: #1e293b;
    --secondary-color: #2563eb;
    --text-color: #ffffff;
    --text-light: #cbd5e1;
    --text-muted: #94a3b8;
    --bg-color: #0f172a;
    --bg-alt: #1e293b;
    --bg-soft: #334155;
    --border-color: #334155;
    --accent-color: #3b82f6;
    --accent-soft: #1e3a8a;
    --max-width: 1200px;
    --spacing-unit: 1rem;
    
    /* Shadows - Dark Theme */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.5);
}

body {
    font-family: 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--bg-color);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

main {
    position: relative;
    z-index: 1;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: #1f2937;
    letter-spacing: -0.01em;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

h3 {
    font-size: 1.75rem;
    margin-top: 0;
    margin-bottom: 1rem;
    font-weight: 600;
}

h4 {
    font-size: 1.35rem;
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

p {
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
    line-height: 1.8;
}

.lead {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.7;
    font-weight: 400;
}

/* Header and Navigation */
header {
    background: var(--bg-color);
    color: var(--text-color);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.main-nav {
    padding: 1.25rem 0;
}

.nav-container {
    max-width: none;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 2rem;
}

h1.site-title {
    font-size: 0.9rem;
    margin: 0;
    padding: 0;
    color: var(--text-color);
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
    flex-shrink: 0;
    line-height: normal;
    display: flex;
    align-items: center;
    height: auto;
}

h1.site-title a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s ease;
    white-space: nowrap;
    line-height: normal;
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
}

h1.site-title .site-logo {
    height: 42px;
    width: auto;
    max-width: 48px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

h1.site-title a:hover {
    color: var(--primary-color);
}

.site-title-logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
}

.site-title-logo-link img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

ul.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    flex-wrap: nowrap;
    flex-shrink: 0;
    white-space: nowrap;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-menu a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    padding: 0.5rem 0;
    font-size: 0.95rem;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.2s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu a.active {
    color: var(--primary-color);
    font-weight: 600;
}

/* Container */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

/* Sections */
section {
    padding: 5rem 0;
    position: relative;
    z-index: 1;
}

.hero-section {
    background: var(--bg-alt);
    padding: 6rem 0;
    position: relative;
}

.content-section {
    padding: 5rem 0;
}

.alt-bg {
    background-color: var(--bg-alt);
}

.section-intro {
    font-size: 1.15rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    line-height: 1.7;
    max-width: 800px;
}

/* Cards */
.card {
    background: var(--bg-alt);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    border: 1px solid var(--border-color);
    position: relative;
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.card-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    background: var(--primary-soft);
    color: var(--primary-color);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.1);
}

.card:hover .card-icon {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.card h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.card p {
    margin-bottom: 0;
    color: var(--text-light);
    font-size: 1rem;
}

/* Content Blocks */
.content-block {
    margin-bottom: 3.5rem;
}

.content-block:last-child {
    margin-bottom: 0;
}

.intro-content {
    max-width: 900px;
    z-index: 1;
    position: relative;
}

/* Buttons and Links */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
    color: white;
}

.btn-secondary {
    background: transparent;
    color: var(--text-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

.btn-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.brochure-link {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 1.5rem;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.brochure-link:hover {
    background: var(--primary-dark);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
    color: white;
}

.interactive-btn {
    transition: all 0.2s ease;
}

.interactive-btn:active {
    transform: scale(0.98);
}

/* Lists */
ul {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

/* Icon Cards for Symptoms */
.symptom-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2.5rem 0;
}

.symptom-card {
    background: var(--bg-alt);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: all 0.2s ease;
    border-top: 3px solid var(--primary-color);
}

.symptom-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.symptom-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: var(--primary-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-color);
    transition: all 0.2s ease;
    border: 2px solid var(--border-color);
}

.symptom-card:hover .symptom-icon {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.symptom-card h4 {
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.symptom-card p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Research Study Cards */
.research-card {
    background: var(--bg-alt);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    border-left: 3px solid var(--primary-color);
    transition: all 0.2s ease;
}

.research-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(2px);
}

.research-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.research-card-title {
    font-size: 1.4rem;
    color: var(--text-color);
    margin: 0;
    flex: 1;
    min-width: 250px;
}

.research-card-meta {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.meta-badge {
    padding: 0.4rem 0.9rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.meta-badge.year {
    background: var(--secondary-color);
    color: white;
}

.meta-badge.type {
    background: var(--primary-soft);
    color: var(--primary-dark);
}

.meta-badge.journal {
    background: var(--bg-soft);
    color: var(--text-color);
}

.research-summary {
    background: var(--bg-alt);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    border-left: 3px solid var(--primary-color);
}

.research-summary p {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-color);
}

.research-details {
    margin-top: 1.5rem;
}

.research-details-toggle {
    background: none;
    border: none;
    color: var(--primary-color);
    font-weight: 600;
    cursor: pointer;
    padding: 0.5rem 0;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    transition: color 0.2s ease;
}

.research-details-toggle:hover {
    color: var(--primary-dark);
}

.research-details-content {
    display: none;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.research-details-content.expanded {
    display: block;
}

.detail-section {
    margin-bottom: 1.5rem;
}

.detail-section h5 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.detail-section p {
    margin: 0;
    color: var(--text-color);
    line-height: 1.7;
}

.pubmed-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.pubmed-link:hover {
    background: var(--primary-soft);
    color: var(--primary-dark);
}

/* Timeline/Journey Cards */
.journey-timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline-item {
    background: var(--bg-alt);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    border-left: 3px solid var(--primary-color);
    position: relative;
    transition: all 0.2s ease;
}

.timeline-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(2px);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 2rem;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: var(--shadow-sm);
}

.timeline-item h3 {
    margin-top: 0;
    color: var(--text-color);
}

/* FAQ Cards */
.faq-item {
    background: var(--bg-alt);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s ease;
    border: 1px solid var(--border-color);
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
}

.faq-question {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.faq-answer {
    color: var(--text-color);
    line-height: 1.8;
}

.faq-answer p {
    margin-bottom: 1rem;
}

/* Notes and Important Information */
.important-note {
    background: var(--bg-soft);
    border-left: 4px solid var(--accent-color);
    padding: 1.75rem;
    margin: 2.5rem 0;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.note-box {
    background: var(--primary-soft);
    border-left: 4px solid var(--primary-color);
    padding: 1.75rem;
    margin: 2.5rem 0;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.important-note strong,
.note-box strong {
    color: var(--text-color);
    font-weight: 600;
}

/* Footer */
footer {
    background: #0a0f1e;
    color: var(--text-color);
    padding: 4rem 0 3rem;
    margin-top: 5rem;
    border-top: 1px solid var(--border-color);
}

footer p {
    margin-bottom: 0.75rem;
    text-align: center;
    color: var(--text-color);
}

.footer-note {
    font-size: 0.9rem;
    opacity: 0.85;
    margin-top: 1rem;
}

/* Microcopy */
.microcopy {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 1rem;
}

/* Section Dividers */
.section-divider {
    height: 1px;
    background: var(--border-color);
    margin: 4rem 0;
}

/* Decorative Section Headers */
.section-header-decorated {
    position: relative;
    padding-top: 3rem;
    margin-top: 3rem;
}

.section-header-decorated::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    border-radius: 2px;
}

.section-header-decorated h2 {
    text-align: center;
    margin-bottom: 1rem;
    color: #1f2937;
}

.section-header-decorated h2::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .nav-menu {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    section {
        padding: 3.5rem 0;
    }

    .hero-section {
        padding: 4rem 0;
    }

    .container {
        padding: 0 1.5rem;
    }

    .card-grid,
    .symptom-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .research-card-header {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .site-title {
        font-size: 0.8rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    .lead {
        font-size: 1.1rem;
    }

    .container {
        padding: 0 1rem;
    }

    .card,
    .research-card,
    .timeline-item,
    .faq-item {
        padding: 1.5rem;
    }
}

/* Accessibility */
a:focus,
button:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Scroll Animations */
.scroll-animate {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-animate.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.scroll-animate-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-animate-left.animate-in {
    opacity: 1;
    transform: translateX(0);
}

.scroll-animate-right {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-animate-right.animate-in {
    opacity: 1;
    transform: translateX(0);
}

.scroll-animate-scale {
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-animate-scale.animate-in {
    opacity: 1;
    transform: scale(1);
}

/* Stagger animation delays */
.scroll-animate:nth-child(1) { transition-delay: 0.1s; }
.scroll-animate:nth-child(2) { transition-delay: 0.2s; }
.scroll-animate:nth-child(3) { transition-delay: 0.3s; }
.scroll-animate:nth-child(4) { transition-delay: 0.4s; }
.scroll-animate:nth-child(5) { transition-delay: 0.5s; }
.scroll-animate:nth-child(6) { transition-delay: 0.6s; }

/* Impacts of MOGAD Section */
.impacts-section {
    background: var(--bg-soft);
    border-radius: 16px;
    padding: 4rem 0;
}

.impacts-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    margin-top: 3rem;
}

/* Statistics Graphic (Left Side) */
.stats-graphic {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 2rem;
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}

.stat-sources-collapse {
    margin-top: 0.5rem;
}

.stat-sources-toggle {
    width: 100%;
    padding: 1rem 1.5rem;
    background: var(--bg-soft);
    color: var(--text-color);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-sources-toggle:hover {
    background: var(--primary-soft, #eff6ff);
    border-color: var(--primary-color, #2563eb);
    color: var(--primary-color, #2563eb);
}

.stat-sources-toggle:active {
    transform: scale(0.98);
}

.toggle-icon {
    font-size: 0.85rem;
    transition: transform 0.3s ease;
    color: var(--primary-color);
}

.stat-sources-content {
    margin-top: 1rem;
    padding: 1.5rem;
    background: var(--bg-soft);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-bar-item {
    display: grid;
    grid-template-columns: 50px 1fr;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-soft);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    opacity: 0;
    transform: translateX(-50px) scale(0.95);
}

.stat-bar-item.animate-in {
    opacity: 1;
    transform: translateX(0) scale(1);
}

.stat-bar-item:hover {
    transform: translateX(5px) scale(1.02);
    box-shadow: var(--shadow-md);
}

.stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--primary-soft);
    border-radius: 10px;
    color: var(--primary-color);
    flex-shrink: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.stat-bar-item.animate-in .stat-icon {
    animation: iconBounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes iconBounce {
    0% {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }
    60% {
        transform: scale(1.15) rotate(10deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.stat-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    transition: all 0.3s ease;
}

.stat-bar-item.animate-in .stat-number {
    animation: fadeInUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-top: 0.25rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
}

.stat-bar-item.animate-in .stat-label {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

.stat-description {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
}

.stat-bar-item.animate-in .stat-description {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

.stat-bar {
    grid-column: 1 / -1;
    height: 8px;
    background: var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    margin-top: 0.75rem;
}

.stat-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    border-radius: 10px;
    width: 0;
    transition: width 2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 10px rgba(var(--primary-color-rgb, 59, 130, 246), 0.3);
}

.stat-bar-item.animate-in .stat-fill {
    animation: fillBar 2s cubic-bezier(0.16, 1, 0.3, 1) forwards, pulse 2s ease-in-out infinite;
}

@keyframes fillBar {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: var(--target-width);
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
    }
}

/* Stagger animation for stats */
.stat-bar-item:nth-child(1) { transition-delay: 0.15s; }
.stat-bar-item:nth-child(2) { transition-delay: 0.3s; }
.stat-bar-item:nth-child(3) { transition-delay: 0.45s; }
.stat-bar-item:nth-child(4) { transition-delay: 0.6s; }
.stat-bar-item:nth-child(5) { transition-delay: 0.75s; }
.stat-bar-item:nth-child(6) { transition-delay: 0.9s; }

.stat-bar-item:nth-child(1) .stat-fill { animation-delay: 0.3s; }
.stat-bar-item:nth-child(2) .stat-fill { animation-delay: 0.45s; }
.stat-bar-item:nth-child(3) .stat-fill { animation-delay: 0.6s; }
.stat-bar-item:nth-child(4) .stat-fill { animation-delay: 0.75s; }
.stat-bar-item:nth-child(5) .stat-fill { animation-delay: 0.9s; }
.stat-bar-item:nth-child(6) .stat-fill { animation-delay: 1.05s; }

/* Context Cards (Right Side) */
.stats-context {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.context-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border-top: 3px solid var(--primary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.context-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.context-card h3 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.context-card p {
    color: var(--text-color);
    line-height: 1.7;
    margin-bottom: 0;
}

.context-card ul {
    margin: 1rem 0 0 0;
    padding-left: 1.5rem;
    list-style-type: none;
}

.context-card ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-color);
    line-height: 1.6;
}

.context-card ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
}

/* Responsive Design for Impacts Section */
@media (max-width: 968px) {
    .impacts-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .stats-graphic {
        order: 2;
    }
    
    .stats-context {
        order: 1;
    }
}

/* Print Styles */
@media print {
    header {
        position: static;
    }

    .nav-menu {
        display: none;
    }

    section {
        page-break-inside: avoid;
    }
}
