:root {
    /* 60% — Dominant: White */
    --bg: #FFFFFF;
    --surface: #F8FAFC;

    /* 30% — Secondary: Cool Grays */
    --border: #E2E8F0;
    --border-hover: #CBD5E1;
    --fg: #0F172A;
    --fg-secondary: #334155;
    --muted: #64748B;
    --muted-light: #94A3B8;

    /* 10% — Accent: Blue */
    --accent: #2563EB;
    --accent-hover: #1D4ED8;
    --accent-light: #EFF6FF;
    --accent-subtle: rgba(37, 99, 235, 0.06);

    /* Medal tones (muted, professional) */
    --gold: #D97706;
    --gold-dim: #FFFBEB;
    --gold-subtle: rgba(217, 119, 6, 0.06);
    --silver: #71717A;
    --silver-dim: #F4F4F5;
    --silver-subtle: rgba(113, 113, 122, 0.06);
    --bronze: #B45309;
    --bronze-dim: #FEF9C3;
    --bronze-subtle: rgba(180, 83, 9, 0.06);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg);
    color: var(--fg);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--muted-light);
}

.title {
    display: flex;
    flex-direction: column;
    line-height: 13px;

}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 24px;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 12px 24px;
}

.nav-link {
    color: var(--muted);
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.25s;
    letter-spacing: 0.01em;
}

.nav-link:hover {
    color: var(--fg);
    background: var(--surface);
}

.nav-link.active {
    color: var(--accent);
    background: var(--accent-light);
}

/* Hero */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, var(--accent-light) 0%, var(--bg) 60%);
}

#heroCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hero-title {
    font-size: clamp(42px, 7vw, 82px);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--fg);
}

.hero-subtitle {
    font-size: clamp(16px, 2.2vw, 20px);
    font-weight: 400;
    color: var(--muted);
    line-height: 1.7;
    max-width: 520px;
}

/* CTA buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 28px;
    background: var(--accent);
    color: #FFFFFF;
    font-weight: 700;
    font-size: 14px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 2px 12px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.3);
}

.btn-primary:active {
    transform: translateY(0) scale(0.98);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 28px;
    background: transparent;
    color: var(--fg-secondary);
    font-weight: 700;
    font-size: 14px;
    border-radius: 10px;
    border: 1px solid var(--border);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: var(--surface);
    border-color: var(--border-hover);
    transform: translateY(-1px);
}

/* Stat cards */
.stat-card {
    border-radius: 12px;
    padding: 24px;
    border: 1px solid var(--border);
    background: var(--bg);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
    border-color: var(--border-hover);
}

.medal-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.medal-icon.gold-icon {
    background: var(--gold-dim);
    color: var(--gold);
}

.medal-icon.silver-icon {
    background: var(--silver-dim);
    color: var(--silver);
}

.medal-icon.bronze-icon {
    background: var(--bronze-dim);
    color: var(--bronze);
}

.counter-value {
    font-size: 36px;
    font-weight: 900;
    line-height: 1;
}

/* Divider */
.section-divider {
    height: 1px;
    background: var(--border);
    max-width: 1280px;
    margin: 0 auto;
}

/* Section reveal */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Timeline */
.timeline-line {
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent), var(--border) 70%, transparent);
}

.timeline-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    background: var(--bg);
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    transition: all 0.3s;
}

.timeline-item:hover .timeline-dot {
    background: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-light);
}

.timeline-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s;
    flex: 1;
}

.timeline-item:hover .timeline-card {
    border-color: var(--accent);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.06);
}

/* Sport grid */
.sport-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all 0.3s;
    cursor: default;
}

.sport-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.06);
}

.sport-rank {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    flex-shrink: 0;
}

.sport-rank.r1 {
    background: var(--gold-dim);
    color: var(--gold);
}

.sport-rank.r2 {
    background: var(--silver-dim);
    color: var(--silver);
}

.sport-rank.r3 {
    background: var(--bronze-dim);
    color: var(--bronze);
}

.sport-rank.rn {
    background: var(--surface);
    color: var(--muted);
}

.medal-bar {
    height: 4px;
    border-radius: 2px;
    transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

/* CTA section */
.cta-section {
    position: relative;
    overflow: hidden;
    background: var(--surface);
}

/* Footer */
footer {
    border-top: 1px solid var(--border);
}

footer a {
    color: var(--muted);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}

footer a:hover {
    color: var(--accent);
}

/* Toast */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 14px 22px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    z-index: 9999;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast.success {
    background: #F0FDF4;
    border: 1px solid #BBF7D0;
    color: #16A34A;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
        opacity: 0.5;
    }

    50% {
        transform: translateX(-50%) translateY(8px);
        opacity: 1;
    }
}

.scroll-mouse {
    width: 22px;
    height: 34px;
    border: 2px solid var(--border-hover);
    border-radius: 10px;
    position: relative;
}

.scroll-mouse::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 7px;
    background: var(--accent);
    border-radius: 2px;
    animation: scrollDot 2s ease-in-out infinite;
}

@keyframes scrollDot {
    0% {
        opacity: 1;
        top: 6px;
    }

    100% {
        opacity: 0;
        top: 18px;
    }
}

/* Section heading */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    border-radius: 6px;
    background: var(--accent-light);
    color: var(--accent);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(26px, 3.5vw, 40px);
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 14px;
    color: var(--fg);
}

.section-desc {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.7;
    max-width: 540px;
    font-weight: 400;
}

/* Filter buttons */
.sport-filter-btn {
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.2s;
    color: var(--muted);
    background: var(--bg);
}

.sport-filter-btn:hover {
    border-color: var(--border-hover);
    color: var(--fg-secondary);
}

.sport-filter-btn.active {
    color: var(--accent);
    background: var(--accent-light);
    border-color: transparent;
}

/* Donut card */
.donut-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px;
    position: relative;
    overflow: hidden;
}

@media (max-width: 900px) {
    .stat-grid-4 {
        grid-template-columns: 1fr 1fr !important;
    }

    .sport-grid {
        grid-template-columns: 1fr !important;
    }

    .hero-flex {
        flex-direction: column;
        text-align: center;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    #aboutGrid {
        grid-template-columns: 1fr !important;
    }

    #heroStatGrid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .stat-grid-4 {
        grid-template-columns: 1fr !important;
    }

    .counter-value {
        font-size: 28px;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}