/* =========================================
   1. GLOBAL VARIABLES & RESET
   ========================================= */
:root {
    /* Colors */
    --bg-dark: #0a0a0a;
    --bg-darker: #050505;
    --bg-card: rgba(255, 255, 255, 0.05);
    --primary: #0047AB;
    /* Kratos Cobalt Blue */
    --secondary: #4da6ff;
    /* Kratos Light Blue Accent */
    --text-main: #ffffff;
    --text-muted: #a1a1a1;
    --border-color: rgba(255, 255, 255, 0.1);

    /* Typography */
    --font-heading: 'Batman Forever', 'Orbitron', sans-serif;
    --font-body: 'Space Grotesk', sans-serif;

    /* Transitions */
    --ease-out: cubic-bezier(0.215, 0.61, 0.355, 1);
    --transition-fast: 0.3s var(--ease-out);
    --transition-slow: 0.8s var(--ease-out);
}

/* Light Theme Colors */
body.light-theme {
    --bg-dark: #ffffff;
    --bg-darker: #f0f2f5;
    --bg-card: #f8f9fa;
    --text-main: #111111;
    --text-muted: #555555;
    --border-color: rgba(0, 0, 0, 0.15);
    --primary: #0047AB;
    /* Keep primary consistent */
}

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

html {
    scroll-behavior: smooth;
}

/* Modern Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 5px;
    border: 2px solid var(--bg-darker);
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================
   2. MODERN GOD-TIER PRELOADER
   ========================================= */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease-out, visibility 0.8s;
    overflow: hidden;
}

/* Animated Background Grid */
#preloader::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 71, 171, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 71, 171, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridSlide 20s linear infinite;
    opacity: 0.6;
}

@keyframes gridSlide {
    0% {
        transform: translateX(0) translateY(0);
    }

    100% {
        transform: translateX(50px) translateY(50px);
    }
}

/* Prevent horizontal scroll globally */
body, html {
    overflow-x: hidden;
    width: 100%;
}

/* Radial Glow Effect */
#preloader::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0, 71, 171, 0.15) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.loader-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
}

/* =========================================
   RACE TRACK CONTAINER
   ========================================= */
.race-track-container {
    position: relative;
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    padding-top: 50px;
}


/* =========================================
   ENHANCED PARTICLE SYSTEM
   ========================================= */
.particle-system {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.speed-line {
    position: absolute;
    width: 150px;
    height: 2px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(0, 71, 171, 0.8) 20%,
            rgba(77, 166, 255, 1) 50%,
            rgba(0, 71, 171, 0.8) 80%,
            transparent 100%);
    top: var(--y);
    animation: speedLineMove 0.8s ease-out infinite;
    animation-delay: var(--delay);
    filter: blur(0.5px);
    box-shadow: 0 0 10px rgba(77, 166, 255, 0.6);
}

@keyframes speedLineMove {
    0% {
        left: 10%;
        opacity: 0;
        transform: scaleX(0.3);
    }

    30% {
        opacity: 1;
    }

    70% {
        opacity: 0.8;
    }

    100% {
        left: -200px;
        opacity: 0;
        transform: scaleX(1.5);
    }
}

/* =========================================
   RACING CAR WITH GLOW
   ========================================= */
.car-wrapper {
    position: absolute;
    left: -300px;
    animation: carRace 4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    z-index: 10;
    /* Lock the car size - prevent any transforms */
    width: 400px; /* Match race-car-modern width */
    height: auto;
}

.car-glow {
    position: absolute;
    width: 400px;
    height: 200px;
    background: radial-gradient(ellipse, rgba(0, 71, 171, 0.3) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    filter: blur(30px);
    animation: glowPulse 0.5s ease-in-out infinite alternate;
}

@keyframes glowPulse {
    0% {
        opacity: 0.6;
    }

    100% {
        opacity: 1;
    }
}

.race-car-modern {
    width: 400px;
    height: auto;
    filter: invert(1) brightness(1.1) drop-shadow(0 0 20px rgba(77, 166, 255, 0.4));
    position: relative;
    z-index: 2;
    /* Ensure no scaling whatsoever */
    transform: none !important;
}

@keyframes carRace {
    0% {
        left: -300px;
        opacity: 0;
        transform: scale(1);
    }

    10% {
        opacity: 1;
        transform: scale(1);
    }

    90% {
        opacity: 1;
        transform: scale(1);
    }

    100% {
        left: calc(100% + 300px);
        opacity: 1;
        transform: scale(1); /* Keep constant size as it exits */
    }
}

/* =========================================
   ANIMATED TEXT - TEAM KRATOS RACING
   ========================================= */
.racing-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Batman Forever', sans-serif;
    font-size: 4rem;
    font-weight: 900;
    letter-spacing: 8px;
    text-transform: uppercase;
    white-space: nowrap;
    display: flex;
    gap: 4px;
    z-index: 5;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on very small screens if needed */
}

.letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(50px) rotateX(-90deg);
    color: transparent;
    -webkit-text-stroke: 2px rgba(255, 255, 255, 0.3);
    text-shadow: 0 0 30px rgba(0, 71, 171, 0);
    animation: letterReveal 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Stagger animation delays for each letter */
.letter:nth-child(1) {
    animation-delay: 0.2s;
}

.letter:nth-child(2) {
    animation-delay: 0.3s;
}

.letter:nth-child(3) {
    animation-delay: 0.4s;
}

.letter:nth-child(4) {
    animation-delay: 0.5s;
}

.letter:nth-child(5) {
    animation-delay: 0.6s;
}

/* space */
.letter:nth-child(6) {
    animation-delay: 0.7s;
}

.letter:nth-child(7) {
    animation-delay: 0.8s;
}

.letter:nth-child(8) {
    animation-delay: 0.9s;
}

.letter:nth-child(9) {
    animation-delay: 1.0s;
}

.letter:nth-child(10) {
    animation-delay: 1.1s;
}

.letter:nth-child(11) {
    animation-delay: 1.2s;
}

.letter:nth-child(12) {
    animation-delay: 1.3s;
}

/* space */
.letter:nth-child(13) {
    animation-delay: 1.4s;
}

.letter:nth-child(14) {
    animation-delay: 1.5s;
}

.letter:nth-child(15) {
    animation-delay: 1.6s;
}

.letter:nth-child(16) {
    animation-delay: 1.7s;
}

.letter:nth-child(17) {
    animation-delay: 1.8s;
}

.letter:nth-child(18) {
    animation-delay: 1.9s;
}

@keyframes letterReveal {
    0% {
        opacity: 0;
        transform: translateY(50px) rotateX(-90deg) scale(0.8);
        color: transparent;
        -webkit-text-stroke: 2px rgba(255, 255, 255, 0.3);
        text-shadow: 0 0 30px rgba(0, 71, 171, 0);
    }

    50% {
        color: rgba(77, 166, 255, 0.8);
        -webkit-text-stroke: 1px rgba(77, 166, 255, 0.5);
        text-shadow:
            0 0 40px rgba(0, 71, 171, 1),
            0 0 80px rgba(77, 166, 255, 0.8);
    }

    100% {
        opacity: 1;
        transform: translateY(0) rotateX(0) scale(1);
        color: #ffffff;
        -webkit-text-stroke: 1px rgba(255, 255, 255, 0.2);
        text-shadow:
            0 0 20px rgba(0, 71, 171, 0.8),
            0 0 40px rgba(77, 166, 255, 0.6),
            0 5px 15px rgba(0, 0, 0, 0.5);
    }
}

.letter.space {
    width: 20px;
    opacity: 1;
}

/* =========================================
   MODERN PROGRESS INDICATOR
   ========================================= */
.modern-progress {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    text-align: center;
}

.progress-track {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

.progress-runner {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg,
            #0047AB 0%,
            #4da6ff 50%,
            #0047AB 100%);
    background-size: 200% 100%;
    border-radius: 10px;
    box-shadow:
        0 0 20px rgba(0, 71, 171, 0.8),
        0 0 40px rgba(77, 166, 255, 0.6);
    animation:
        progressGrow 4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards,
        progressShimmer 1.5s linear infinite;
}

@keyframes progressGrow {
    0% {
        width: 0%;
    }

    100% {
        width: 100%;
    }
}

@keyframes progressShimmer {
    0% {
        background-position: 0% 0%;
    }

    100% {
        background-position: 200% 0%;
    }
}

.progress-percentage {
    margin-top: 15px;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 2px;
    text-shadow: 0 0 20px rgba(0, 71, 171, 0.6);
}

/* =========================================
   RESPONSIVE ADJUSTMENTS
   ========================================= */
@media (max-width: 768px) {
    .racing-text {
        font-size: 1.5rem; /* Significant reduction */
        letter-spacing: 2px;
        gap: 2px;
        width: 90%; /* Prevent overflow */
        flex-wrap: wrap;
        top: 40%; /* Adjust position */
    }

    .race-car-modern {
        width: 180px !important;
        transform: none !important; /* Prevent any scaling */
    }
    
    .car-wrapper {
        width: 180px !important; /* Match car size */
    }

    .modern-progress {
        width: 85%;
        bottom: 40px;
    }

    .letter.space {
        width: 8px; /* Smaller space */
    }
}

@media (max-width: 480px) {
    .racing-text {
        font-size: 1.1rem; /* Even smaller for portrait phones */
        letter-spacing: 1px;
    }

    .race-car-modern {
        width: 140px !important;
        transform: none !important; /* Prevent any scaling */
    }
    
    .car-wrapper {
        width: 140px !important; /* Match car size */
    }
    
    .hero-content h1 {
        font-size: 2.2rem !important;
    }
}

/* Animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes progressFill {
    0% {
        width: 0%;
    }

    50% {
        width: 60%;
    }

    100% {
        width: 100%;
    }
}

/* =========================================
   2.1 SHOWCASE SECTION (God Tier UI)
   ========================================= */
.showcase-section {
    padding: 60px 0;
    position: relative;
    display: flex;
    justify-content: center;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 250px);
    gap: 20px;
    width: 100%;
}

.bento-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease;
    background: #111;
}

.bento-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 71, 171, 0.2);
    border-color: rgba(0, 71, 171, 0.5);
    z-index: 2;
}

.bento-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.bento-item:hover img {
    transform: scale(1.1);
}

.bento-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    opacity: 0;
    display: flex;
    align-items: flex-end;
    padding: 20px;
    transition: opacity 0.3s ease;
}

.bento-item:hover .bento-overlay {
    opacity: 1;
}

.bento-overlay span {
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 1.2rem;
    letter-spacing: 2px;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    color: white;
}

.bento-item:hover .bento-overlay span {
    transform: translateY(0);
}

/* Cell Spans */
.item-wide {
    grid-column: span 2;
}

.item-tall {
    grid-row: span 2;
}

/* Responsive Bento */
@media (max-width: 992px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }
    .item-tall { grid-row: span 1; height: 300px; }
    .item-wide { grid-column: span 2; }
}

@media (max-width: 600px) {
    .bento-grid {
        display: flex;
        flex-direction: column;
    }
    .bento-item {
        height: 250px;
        width: 100%;
    }
}

/* =========================================
   3. NAVBAR STYLES
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: all 0.4s ease;
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 900;
    /* Fallback if text is used */
    letter-spacing: 1px;
}

.logo img {
    height: 50px;
    /* Adjust height to fit navbar */
    width: auto;
    object-fit: contain;
    /* Dark Theme Default: Logo is originally black/dark, so we invert it to be white */
    filter: invert(1) brightness(1.5);
    transition: filter 0.3s ease;
}

/* Light theme - No inversion (display original dark logo) */
body.light-theme .logo img {
    filter: invert(0);
}

.logo .dot {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    opacity: 0.8;
}

.nav-links a:hover,
.nav-links a.active {
    opacity: 1;
    color: var(--text-main);
}

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

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

/* Dropdown Styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--bg-dark);
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1002;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    top: 100%;
    left: 0;
    padding: 10px 0;
}

.dropdown-content a {
    color: var(--text-main);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    text-align: left;
    white-space: nowrap;
}

.dropdown-content a:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--primary);
}

.dropdown:hover .dropdown-content {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

/* Ensure mobile menu handles dropdown (simplified for now) */
@media (max-width: 768px) {
    .dropdown-content {
        position: static;
        background: transparent;
        box-shadow: none;
        border: none;
        padding-left: 20px;
        display: none;
    }
    .dropdown:hover .dropdown-content {
        display: block;
    }
}

.btn-contact {
    border: 1px solid var(--border-color);
    padding: 8px 20px;
    border-radius: 4px;
}

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

/* Theme Toggle Button */
.theme-toggle {
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 8px 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: var(--text-main);
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
}

/* Show/Hide icons based on theme */
.sun-icon {
    display: none;
}

.moon-icon {
    display: block;
}

body.light-theme .sun-icon {
    display: block;
}

body.light-theme .moon-icon {
    display: none;
}

/* =========================================
   4. HERO SECTION STYLES
   ========================================= */

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: white;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Hamburger Animation */
.hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.hero-section {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Temporary background until we have video/image */
    background: radial-gradient(circle at center, #1a1a1a 0%, #000000 100%);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Hero Background Video */
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(10, 10, 10, 0.8));
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
}

.hero-content h4 {
    color: var(--secondary);
    letter-spacing: 4px;
    font-size: 1.1rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
    font-weight: 800;
    text-shadow: 0 0 10px rgba(77, 166, 255, 0.4);
}

/* Rank Highlight Badge */
.rank-highlight {
    margin: 1.5rem 0;
    display: flex;
    justify-content: center;
}

.rank-badge {
    background: linear-gradient(90deg, rgba(0, 71, 171, 0.2), rgba(77, 166, 255, 0.2));
    padding: 12px 30px;
    border-radius: 50px;
    border: 1px solid rgba(77, 166, 255, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    backdrop-filter: blur(5px);
    box-shadow: 0 0 20px rgba(0, 71, 171, 0.4), inset 0 0 10px rgba(0, 71, 171, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rank-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(0, 71, 171, 0.6), inset 0 0 15px rgba(0, 71, 171, 0.3);
    border-color: rgba(77, 166, 255, 0.8);
}

.rank-badge span {
    background: linear-gradient(90deg, #ffffff, #4da6ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    font-size: 1.4rem;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    filter: drop-shadow(0 0 5px rgba(77, 166, 255, 0.5));
}

.rank-badge i {
    color: #FFD700;
    font-size: 1.4rem;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.6));
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 8vw, 5rem); /* Fluid sizing */
    line-height: 1.1;
    margin-bottom: 1rem;
    font-weight: 900;
}

.outline-text {
    -webkit-text-stroke: 1px var(--text-main);
    color: transparent;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-group {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn {
    padding: 15px 40px;
    border-radius: 2px;
    /* Brutalist/Engineering feel */
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 0 20px rgba(0, 71, 171, 0.3);
}

.btn-primary:hover {
    background: #0059d6;
    box-shadow: 0 0 30px rgba(0, 71, 171, 0.5);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--border-color);
    color: white;
}

.btn-secondary:hover {
    border-color: white;
    background: rgba(255, 255, 255, 0.05);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.7;
}

.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid var(--text-muted);
    border-radius: 20px;
    position: relative;
}

.mouse .wheel {
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 6px;
    background: var(--primary);
    border-radius: 2px;
    animation: scrollWheel 2s infinite;
}

@keyframes scrollWheel {
    0% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateX(-50%) translateY(15px);
        opacity: 0;
    }
}

/* =========================================
   5. UTILITY CLASSES (Animations)
   ========================================= */
.fade-in-up {
    opacity: 0;
    transform: translateY(60px) scale(0.95);
    transition: opacity 1s cubic-bezier(0.165, 0.84, 0.44, 1), transform 1s cubic-bezier(0.165, 0.84, 0.44, 1);
    will-change: opacity, transform;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Staggered Grid Items (Handled by JS) */
.stagger-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.stagger-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

.delay-400 {
    transition-delay: 0.4s;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 3rem;
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        /* Full width for better mobile experience, or 70% */
        height: 100vh;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease;
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
    }

    .cta-group {
        flex-direction: column;
        gap: 10px;
    }

    .hero-content h1 {
        font-size: 2.8rem;
        /* Adjusted for mobile */
    }

    .hero-content p {
        font-size: 1rem;
        padding: 0 20px;
    }
}

/* =========================================
   5.1 SUB-PAGE HEADER
   ========================================= */
.page-header {
    height: 50vh;
    min-height: 400px;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, #1a1a1a 0%, #000000 100%);
    overflow: hidden;
    margin-bottom: 50px;
}

.page-header h1 {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 900;
    text-transform: uppercase;
    z-index: 2;
    position: relative;
    color: white;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-header h1::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: var(--primary);
    margin: 20px auto 0;
}

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2.5rem;
        /* Smaller font for mobile */
    }

    .page-header {
        height: 40vh;
        /* Increased slightly to handle padding */
        min-height: 300px;
        padding-top: 80px;
        /* Push content down below fixed navbar */
        align-items: center;
        /* Keep centered vertically */
    }

    .section-title {
        font-size: 2rem;
    }
}

.section {
    padding: 100px 0;
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }
}

.section-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    text-transform: uppercase;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary);
}

.highlight {
    color: var(--primary);
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-visual .image-wrapper {
    position: relative;
    width: 100%;
    height: 400px;
    /* Placeholder height */
    border-radius: 4px;
    overflow: hidden;
}

.placeholder-box {
    width: 100%;
    height: 100%;
    background: #222;
    background-image: repeating-linear-gradient(45deg, #1f1f1f 25%, transparent 25%, transparent 75%, #1f1f1f 75%, #1f1f1f), repeating-linear-gradient(45deg, #1f1f1f 25%, #0a0a0a 25%, #0a0a0a 75%, #1f1f1f 75%, #1f1f1f);
    background-position: 0 0, 10px 10px;
    background-size: 20px 20px;
    position: relative;
}

.placeholder-box::before {
    content: 'TEAM PHOTO';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--text-muted);
    font-family: var(--font-heading);
}

.about-text .lead {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: white;
}

.about-text .description {
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 2rem;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
}

.stat-item {
    text-align: center;
}

.stat-item .count {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--white);
    line-height: 1;
}

.stat-item .count::after {
    content: '+';
    color: var(--primary);
    font-size: 1.5rem;
    vertical-align: top;
}

.stat-item .label {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-top: 5px;
    display: block;
}

.link-arrow {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.link-arrow:hover {
    color: var(--primary);
    gap: 15px;
    /* Slide effect */
}

@media (max-width: 992px) {
    .about-container {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   7. TEAM SECTION STYLES
   ========================================= */
.team-categories {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.category-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 8px 20px;
    cursor: pointer;
    font-family: var(--font-body);
    transition: all 0.3s;
}

.category-btn.active,
.category-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

@media (max-width: 480px) {
    .team-grid {
        grid-template-columns: 1fr; /* Stack on phones */
    }
}

.team-card {
    height: 350px;
    perspective: 1000px;
    /* Enable 3D effect */
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    cursor: pointer;
}

.team-card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
    overflow: hidden;
}

.card-front {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

.member-img-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #333, #111);
    margin-bottom: 20px;
    border: 2px solid var(--primary);
}

.member-info h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.member-info span {
    color: var(--secondary);
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.card-back {
    background: #111;
    color: white;
    transform: rotateY(180deg);
    border: 1px solid var(--primary);
    padding: 20px;
}

.card-back p {
    font-style: italic;
    color: var(--text-muted);
    margin: 15px 0;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: white;
    font-size: 1.2rem;
}

.social-links a:hover {
    color: var(--primary);
}


/* =========================================
   8. ACHIEVEMENTS SECTION STYLES
   ========================================= */
.achievements-section {
    background: linear-gradient(to bottom, var(--bg-dark), #0f0f0f);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0;
}

/* Vertical Line */
.timeline::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: var(--border-color);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    width: 50%;
    padding: 0 40px;
}

.timeline-item:nth-child(even) {
    /* Right side */
    left: 50%;
}

.timeline-item:nth-child(odd) {
    /* Left side */
    left: 0;
    text-align: right;
}

.timeline-dot {
    position: absolute;
    top: 20px;
    right: -11px;
    /* Adjust for even/odd */
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 10px rgba(255, 59, 59, 0.5);
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -11px;
    right: auto;
}

.timeline-content {
    background: var(--bg-card);
    padding: 20px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s;
}

.timeline-content:hover {
    transform: translateY(-5px);
    border-color: var(--secondary);
}

.timeline-content .year {
    display: block;
    color: var(--secondary);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.timeline-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.timeline-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-item:nth-child(odd) {
        text-align: left;
    }

    .timeline-dot {
        left: 21px;
        right: auto;
    }

    .timeline-item:nth-child(even) .timeline-dot {
        left: 21px;
    }
}

.sponsor-tier {
    margin-bottom: 3rem;
    text-align: center;
}

.tier-title {
    font-family: var(--font-heading);
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    position: relative;
    display: inline-block;
}

.tier-title::before,
.tier-title::after {
    content: '-';
    margin: 0 10px;
    color: var(--primary);
}

.sponsor-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.uniform-sponsor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 40px;
    padding: 20px 0;
}

.sponsor-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    /* Placeholder Grayscale */
    filter: grayscale(100%);
    opacity: 0.7;
    height: 150px; /* Fixed uniform height */
    width: 100%; /* Take full grid cell width */
    padding: 20px;
}

.sponsor-card:hover {
    filter: grayscale(0%);
    opacity: 1;
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 71, 171, 0.15);
}

.sponsor-card img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.sponsor-card:hover img {
    transform: scale(1.1);
}

/* Specific styling overrides for previous tiers if needed, 
   but we are switching to uniform. Removing tier-specific sizing
   for the uniform grid. */
.uniform-sponsor-grid .sponsor-card {
    /* Ensure no specific tier overrides apply if classes remain */
    width: 100%;
    height: 160px;
    background: rgba(255, 255, 255, 0.03);
}

/* =========================================
   10. CONTACT SECTION & FOOTER STYLES
   ========================================= */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info .info-item {
    display: flex;
    align-items: center;
    /* Changed from start to center for better alignment */
    gap: 20px;
    margin-bottom: 20px;
}

.contact-info i {
    color: var(--primary);
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

.big-socials {
    margin-top: 30px;
    gap: 25px;
}

.big-socials a {
    font-size: 1.5rem;
    border: 1px solid var(--border-color);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.big-socials a:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-3px);
}

.contact-form {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    color: white;
    font-family: var(--font-body);
    outline: none;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    background: rgba(0, 0, 0, 0.5);
}

footer {
    border-top: 1px solid var(--border-color);
    padding: 40px 0;
    margin-top: 50px;
    background: #050505;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 10px;
}

.footer-right p {
    color: var(--text-muted);
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
}

/* =========================================
   11. GALLERY SECTION STYLES
   ========================================= */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

.gallery-item {
    position: relative;
    height: 250px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid var(--border-color);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: var(--primary);
    font-size: 2rem;
    transform: scale(0);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gallery-item:hover .gallery-overlay i {
    transform: scale(1);
}

/* Specific grid spans for masonry feel if needed, keeping simple for now */
.gallery-item.wide {
    grid-column: span 2;
}

.gallery-item.tall {
    grid-row: span 2;
    height: 520px;
}

@media (max-width: 768px) {

    .gallery-item.wide,
    .gallery-item.tall {
        grid-column: span 1;
        grid-row: span 1;
        height: 250px;
    }
}

/* =========================================
   12. HOME SPECIFIC STYLES
   ========================================= */
.rank-highlight {
    margin: 20px 0;
    display: inline-block;
}

.rank-badge {
    background: rgba(255, 59, 59, 0.1);
    border: 1px solid var(--primary);
    padding: 10px 25px;
    border-radius: 50px;
    color: white;
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 0 20px rgba(255, 59, 59, 0.2);
    backdrop-filter: blur(5px);
}

.rank-badge i {
    color: #ffd700;
    /* Gold trophy */
}

.stats-section {
    background: #0f0f0f;
    padding: 60px 0;
    border-bottom: 1px solid var(--border-color);
}

.preview-section {
    padding: 100px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
}

.view-all-link {
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 0.9rem;
    color: var(--text-muted);
    border-bottom: 2px solid var(--primary);
    padding-bottom: 5px;
}

.view-all-link:hover {
    color: white;
}

@media (max-width: 768px) {
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
}

/* =========================================
   13. SPONSOR TICKER & ACHIEVEMENTS
   ========================================= */
.achieve-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.achieve-card {
    /* Permanent "Hover" State */
    border-color: rgba(0, 71, 171, 0.5); /* Blue border base */
    box-shadow: 0 10px 30px rgba(0, 71, 171, 0.15);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(0, 71, 171, 0.05) 100%);
    
    border: 1px solid rgba(0, 71, 171, 0.5); /* Explicit override */
    padding: 30px;
    border-radius: 4px;
    /* Sharper corners for tech feel */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

/* Tech Corner Accent - Always visible full width */
.achieve-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%; /* Fully drawn */
    height: 2px;
    background: var(--primary);
    transition: width 0.4s ease;
}

.achieve-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%; /* Fully drawn */
    height: 2px;
    background: var(--primary);
    transition: width 0.4s ease;
}

.achieve-card:hover {
    /* Only transform on hover now */
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 71, 171, 0.25); /* Enhanced shadow on hover */
}

/* No change needed for pseudo-elements hover since they are already full width */
.achieve-card:hover::before,
.achieve-card:hover::after {
    width: 100%;
}

.achieve-card i {
    font-size: 2.5rem;
    color: white; /* Default to white/bright */
    text-shadow: 0 0 20px var(--primary); /* Default glow */
    margin-bottom: 20px;
    transition: transform 0.4s ease;
}

.achieve-card:hover i {
    transform: scale(1.1) rotateY(10deg);
    color: white;
    text-shadow: 0 0 20px var(--primary);
}

.achieve-card h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    /* Slightly larger */
    margin-bottom: 10px;
    color: white;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.achieve-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    /* Subtle separator */
    padding-top: 15px;
    margin-top: 10px;
}

/* Ticker */
.sponsor-ticker-section {
    padding: 60px 0;
    background: #000;
    border-top: 1px solid var(--border-color);
    overflow: hidden;
}

.ticker-title {
    text-align: center;
    color: var(--text-gray);
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
}

.ticker-wrap {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
}

.ticker {
    display: inline-block;
    animation: ticker 30s linear infinite;
}

.ticker-item {
    display: inline-block;
    padding: 0 40px;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: #444;
    /* Muted idle color */
    transition: color 0.3s ease;
    cursor: default;
    font-weight: 700;
}

.ticker-item:hover {
    color: var(--primary);
}

@keyframes ticker {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-50%, 0, 0);
    }

    /* Move half way because content is doubled */
}

/* Benefits Section (Sponsors Page) */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.benefit-card {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #111, #0a0a0a);
    border: 1px solid #222;
    border-radius: 8px;
}

.benefit-card i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.benefit-card h4 {
    font-family: var(--font-heading);
    margin-bottom: 10px;
}

.benefit-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* =========================================
   TECHNICAL SPECIFICATIONS SECTION
   ========================================= */
.tech-specs-section {
    position: relative;
    padding: 100px 0;
    background: linear-gradient(180deg, var(--bg-dark) 0%, #0d0d0d 100%);
    overflow: hidden;
}

.tech-specs-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1200px;
    height: 1200px;
    background: radial-gradient(circle, rgba(0, 71, 171, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.tech-specs-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    gap: 40px;
    align-items: center;
    position: relative;
    margin-top: 40px;
}

/* Spec Cards */
.specs-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.spec-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.spec-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.4s ease;
}

.spec-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(0, 71, 171, 0.3);
    transform: translateX(8px);
    box-shadow: 0 10px 40px rgba(0, 71, 171, 0.15);
}

.specs-right .spec-card:hover {
    transform: translateX(-8px);
}

.spec-card:hover::before {
    transform: scaleY(1);
    transform-origin: top;
}

.spec-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 71, 171, 0.1);
    border: 1px solid rgba(0, 71, 171, 0.2);
    border-radius: 12px;
    color: var(--secondary);
    transition: all 0.4s ease;
}

.spec-card:hover .spec-icon {
    background: rgba(0, 71, 171, 0.2);
    border-color: var(--primary);
    transform: rotate(5deg) scale(1.1);
    box-shadow: 0 0 20px rgba(0, 71, 171, 0.3);
}

.spec-content {
    flex: 1;
}

.spec-title {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 6px;
    font-weight: 500;
}

.spec-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 4px;
    line-height: 1.2;
}

.spec-detail {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

/* Car Showcase Center */
.car-showcase {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.car-label {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 6px;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.3);
    margin-bottom: 20px;
    animation: labelGlow 3s ease-in-out infinite;
}

@keyframes labelGlow {

    0%,
    100% {
        -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.3);
    }

    50% {
        -webkit-text-stroke: 1.5px rgba(0, 71, 171, 0.6);
    }
}

.car-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 600px;
    aspect-ratio: 16/10;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    overflow: visible;
    perspective: 1000px;
}

.car-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 20px 60px rgba(0, 71, 171, 0.4));
    transition: transform 0.6s ease;
    animation: carFloat 6s ease-in-out infinite;
    position: relative;
    z-index: 2;
    border-radius: 24px;
    border: 2px solid rgba(0, 71, 171, 0.3);
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
}

@keyframes carFloat {

    0%,
    100% {
        transform: translateY(0px) rotateY(0deg);
    }

    50% {
        transform: translateY(-10px) rotateY(2deg);
    }
}

.car-image-wrapper:hover .car-image {
    transform: scale(1.05) rotateY(-5deg);
    filter: drop-shadow(0 30px 80px rgba(0, 71, 171, 0.6));
}

.image-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(ellipse at center, rgba(0, 71, 171, 0.2) 0%, transparent 60%);
    z-index: 1;
    animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {

    0%,
    100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.car-year {
    font-family: var(--font-heading);
    font-size: 5rem;
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 2px rgba(255, 255, 255, 0.05);
    margin-top: 20px;
    letter-spacing: 10px;
}

/* Performance Metrics Bar */
.performance-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 60px;
    padding: 30px 40px;
    background: linear-gradient(135deg, rgba(0, 71, 171, 0.05) 0%, rgba(0, 71, 171, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
}

.performance-bar:hover {
    background: linear-gradient(135deg, rgba(0, 71, 171, 0.08) 0%, rgba(0, 71, 171, 0.04) 100%);
    border-color: rgba(0, 71, 171, 0.2);
    box-shadow: 0 10px 40px rgba(0, 71, 171, 0.1);
}

.metric {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.metric-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    font-weight: 500;
}

.metric-value {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    letter-spacing: 1px;
}

.metric-divider {
    width: 1px;
    height: 50px;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .tech-specs-wrapper {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .specs-column {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .spec-card {
        flex: 1 1 calc(50% - 10px);
        min-width: 280px;
    }

    .specs-right .spec-card:hover {
        transform: translateX(8px);
    }

    .car-label {
        font-size: 2.5rem;
        letter-spacing: 4px;
    }

    .car-year {
        font-size: 3.5rem;
    }

    .car-image-wrapper {
        max-width: 500px;
    }
}

@media (max-width: 768px) {
    .tech-specs-section {
        padding: 60px 0 40px;
    }

    .tech-specs-section .section-title {
        font-size: 2.2rem;
        margin-bottom: 40px;
    }

    .specs-column {
        flex-direction: column;
        gap: 15px;
    }

    .spec-card {
        flex: 1 1 100%;
        padding: 20px;
    }

    .car-showcase {
        padding: 20px;
    }

    .car-label {
        font-size: 1.8rem;
        letter-spacing: 3px;
        margin-bottom: 15px;
    }

    .car-image-wrapper {
        max-width: 100%;
        padding: 0 10px;
    }

    .car-image {
        border-radius: 20px;
        padding: 12px;
    }

    .car-year {
        font-size: 2.2rem;
        letter-spacing: 5px;
        margin-top: 15px;
    }

    .performance-bar {
        flex-wrap: wrap;
        gap: 25px;
        padding: 20px;
        margin-top: 40px;
    }

    .metric {
        flex: 1 1 calc(50% - 15px);
        min-width: 120px;
    }

    .metric-divider {
        display: none;
    }

    .metric-label {
        font-size: 0.7rem;
    }

    .metric-value {
        font-size: 1.4rem;
    }

    .spec-value {
        font-size: 1rem;
    }

    .spec-title {
        font-size: 0.7rem;
    }

    .spec-detail {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .tech-specs-section {
        padding: 40px 0 30px;
    }

    .tech-specs-section .section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    .car-label {
        font-size: 1.3rem;
        letter-spacing: 2px;
        margin-bottom: 10px;
    }

    .car-image {
        border-radius: 16px;
        padding: 10px;
        border-width: 1.5px;
    }

    .car-year {
        font-size: 1.8rem;
        letter-spacing: 3px;
        margin-top: 10px;
    }

    .spec-card {
        padding: 18px;
        gap: 12px;
        border-radius: 12px;
    }

    .spec-icon {
        width: 40px;
        height: 40px;
    }

    .spec-icon svg {
        width: 24px;
        height: 24px;
    }

    .spec-value {
        font-size: 0.95rem;
    }

    .spec-title {
        font-size: 0.65rem;
        letter-spacing: 1.5px;
    }

    .spec-detail {
        font-size: 0.75rem;
    }

    .performance-bar {
        gap: 15px;
        padding: 18px;
        border-radius: 12px;
        margin-top: 30px;
    }

    .metric {
        flex: 1 1 calc(50% - 10px);
        min-width: 100px;
        gap: 6px;
    }

    .metric-label {
        font-size: 0.65rem;
        letter-spacing: 1.5px;
    }

    .metric-value {
        font-size: 1.2rem;
    }
}

@media (max-width: 360px) {
    .tech-specs-section .section-title {
        font-size: 1.5rem;
    }

    .car-label {
        font-size: 1.1rem;
        letter-spacing: 1.5px;
    }

    .car-year {
        font-size: 1.5rem;
        letter-spacing: 2px;
    }

    .spec-card {
        padding: 15px;
    }

    .spec-icon {
        width: 35px;
        height: 35px;
    }

    .spec-icon svg {
        width: 20px;
        height: 20px;
    }

    .performance-bar {
        padding: 15px;
    }

    .metric {
        flex: 1 1 100%;
    }

    .metric-value {
        font-size: 1.1rem;
    }
}

/* =========================================
   MODERN STATS SECTION (Simple & Clean)
   ========================================= */
.modern-stats-section {
    padding: 80px 0;
    background: var(--bg-dark);
}

.stats-header {
    text-align: center;
    margin-bottom: 50px;
}

.stats-section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.stats-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
}

.modern-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.modern-stat-card {
    text-align: center;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}

.modern-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, var(--primary), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
    pointer-events: none;
}

.modern-stat-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.modern-stat-card:hover::before {
    opacity: 0.1;
}

/* Featured Stat */
.featured-stat {
    border-color: var(--primary);
    background: rgba(0, 71, 171, 0.05);
    box-shadow: 0 0 30px rgba(0, 71, 171, 0.1);
    animation: statPulse 3s ease-in-out infinite;
}

@keyframes statPulse {
    0%, 100% {
        box-shadow: 0 0 30px rgba(0, 71, 171, 0.1);
    }
    50% {
        box-shadow: 0 0 50px rgba(0, 71, 171, 0.2);
        transform: translateY(-2px);
    }
}

.featured-badge {
    display: inline-block;
    background: var(--primary);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    color: white;
}

/* Hide icon wrapper - we don't need it */
.stat-icon-wrapper {
    display: none;
}

.stat-glow {
    display: none;
}

/* Stat Content */
.stat-content {
    text-align: center;
}

.stat-number {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1;
    color: white;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #fff 0%, #aaa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.rank-number {
    font-size: 4rem;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-plus {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    margin-left: 2px;
    vertical-align: top;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 500;
}

.stat-sublabel {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
    opacity: 0.7;
}

/* Hide progress bar - keep it simple */
.stat-bar {
    display: block;
    width: 60px;
    height: 3px;
    background: rgba(255,255,255,0.1);
    margin: 15px auto 0;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.stat-bar-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: var(--primary);
    transition: width 1.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.visible .stat-bar-fill {
    width: 100%;
}

.rank-bar {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

/* Responsive Design */
@media (max-width: 992px) {
    .modern-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .stats-section-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .modern-stats-section {
        padding: 60px 0;
    }

    .stats-section-title {
        font-size: 2rem;
    }

    .stats-subtitle {
        font-size: 0.95rem;
    }

    .modern-stat-card {
        padding: 25px 15px;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .rank-number {
        font-size: 3rem;
    }
}

@media (max-width: 480px) {
    .modern-stats-section {
        padding: 50px 0;
    }

    .stats-header {
        margin-bottom: 35px;
    }

    .stats-section-title {
        font-size: 1.8rem;
    }

    .modern-stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .modern-stat-card {
        padding: 20px 15px;
    }

    .stat-number {
        font-size: 2.2rem;
    }

    .rank-number {
        font-size: 2.8rem;
    }

    .stat-plus {
        font-size: 1.2rem;
    }

    .stat-label {
        font-size: 0.85rem;
    }
}

/* =========================================
   TEAM YEARS SELECTION PAGE
   ========================================= */

.team-years-section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-top: 15px;
}

.team-years-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.year-card {
    position: relative;
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

.year-card-inner {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.year-card-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.year-card:hover .year-card-inner::before {
    transform: scaleX(1);
}

.year-card:hover {
    transform: translateY(-8px);
}

.year-card:hover .year-card-inner {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(0, 71, 171, 0.05), var(--bg-card));
    box-shadow: 0 20px 60px rgba(0, 71, 171, 0.3);
}

/* Year Badge (Only for current team) */
.year-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(0, 71, 171, 0.4);
}

/* Year Icon */
.year-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: all 0.3s ease;
}

.year-card:hover .year-icon {
    transform: scale(1.1) rotate(5deg);
    color: var(--secondary);
}

.year-icon svg {
    filter: drop-shadow(0 4px 12px rgba(0, 71, 171, 0.3));
}

/* Year Title */
.year-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-main);
    transition: color 0.3s ease;
}

.year-card:hover .year-title {
    color: var(--primary);
}

/* Year Description */
.year-description {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Year Stats */
.year-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: auto;
    padding-top: 25px;
    border-top: 1px solid var(--border-color);
}

.year-stats .stat-item {
    text-align: center;
}

.year-stats .stat-value {
    display: block;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 8px;
}

.year-stats .stat-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Card Arrow */
.card-arrow {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 71, 171, 0.1);
    border-radius: 50%;
    color: var(--primary);
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.year-card:hover .card-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Responsive */
@media (max-width: 768px) {
    .team-years-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .year-card-inner {
        padding: 30px 20px;
        min-height: 350px;
    }

    .year-title {
        font-size: 1.5rem;
    }

    .year-stats {
        gap: 30px;
    }

    .year-stats .stat-value {
        font-size: 1.6rem;
    }
}

/* =========================================
   LIGHT THEME SPECIFIC OVERRIDES
   ========================================= */
body.light-theme .year-card-inner,
body.light-theme .team-card .card-inner,
body.light-theme .department-section .team-card .card-inner {
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-theme .year-title,
body.light-theme .member-info h3,
body.light-theme .department-title,
body.light-theme .section-title {
    color: #000000;
}

body.light-theme .year-description,
body.light-theme .member-info span,
body.light-theme .section-subtitle,
body.light-theme p {
    color: #444444;
}

body.light-theme .navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-theme .nav-links a {
    color: #000000;
}

body.light-theme .nav-links a.active {
    color: var(--primary);
}

body.light-theme .hamburger span {
    background: #000000;
}

/* =========================================
   4. LIGHTBOX STYLES (Gallery)
   ========================================= */
.lightbox {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.95); /* Deep dark overlay */
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90vh;
    border-radius: 4px;
    box-shadow: 0 0 50px rgba(0, 71, 171, 0.3);
    animation: zoomIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 10001;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: var(--primary);
    text-decoration: none;
    cursor: pointer;
    transform: rotate(90deg);
}

@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* =========================================
   SEASONAL GALLERY STYLES
   ========================================= */

/* Latest Section */
.latest-section {
    padding: 80px 0 40px;
    background: linear-gradient(135deg, rgba(0, 71, 171, 0.03) 0%, transparent 100%);
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    opacity: 0.7;
}

/* Season Archive Section */
.season-archive-section {
    padding: 40px 0 80px;
}

/* Season Cards Container */
.season-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Individual Season Card */
.season-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px 30px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
}

.season-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: var(--primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.season-card:hover::before {
    opacity: 1;
}

.season-card:hover {
    transform: translateX(5px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(0, 71, 171, 0.3);
    box-shadow: 0 8px 24px rgba(0, 71, 171, 0.15);
}

.season-card-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.season-year {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1;
    color: var(--text-main);
    margin: 0;
    transition: color 0.3s ease;
}

.season-card:hover .season-year {
    color: var(--primary);
}

.season-label {
    font-family: var(--font-body);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    opacity: 0.6;
}

.season-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(0, 71, 171, 0.1);
    border: 1px solid rgba(0, 71, 171, 0.2);
    border-radius: 6px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    transition: all 0.3s ease;
}

.season-badge::after {
    content: '→';
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.season-card:hover .season-badge {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

.season-card:hover .season-badge::after {
    transform: translateX(4px);
}

/* Responsive Season Cards */
@media (max-width: 992px) {
    .season-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
}

@media (max-width: 768px) {
    .season-cards {
        grid-template-columns: 1fr;
        gap: 15px;
        max-width: 500px;
    }
    
    .season-card {
        padding: 20px 25px;
    }
    
    .season-year {
        font-size: 1.8rem;
    }
    
    .season-badge {
        font-size: 0.7rem;
        padding: 6px 12px;
    }
}

/* =========================================
   ANIMATED SCROLL SHOWCASE STYLES
   ========================================= */
/* =========================================
   GOD-TIER KINETIC SHOWCASE (Velocity Control)
   ========================================= */
.kinetic-scroll-section {
    padding: 100px 0;
    overflow: hidden;
    position: relative;
    background: #000;
    /* Deep space background */
}

/* Background Grid Effect */
.kinetic-bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 71, 171, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 71, 171, 0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 1;
    perspective: 1000px;
    transform-style: preserve-3d;
}

.kinetic-bg-grid::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(0, 71, 171, 0.15) 0%, transparent 70%);
    filter: blur(80px);
}

.kinetic-container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 8vh; /* Vertical spacing between tracks */
}

/* TRACK SYSTEM */
.kinetic-track {
    display: flex;
    justify-content: center; /* Center content initially */
    white-space: nowrap;
    will-change: transform;
    /* Initial offset so we can move them */
    transform: translateX(0) skewX(0); 
}

/* GROUP (Text + Image) */
.kinetic-group {
    display: flex;
    align-items: center;
    gap: 60px;
}

/* TYPOGRAPHY */
.kinetic-text {
    font-family: 'Batman Forever', sans-serif;
    font-size: 10rem;
    line-height: 1;
    text-transform: uppercase;
    font-weight: 900;
    letter-spacing: -5px;
    transition: all 0.1s linear; /* Smooth micro-adjustments */
}

.kinetic-text.outline {
    color: transparent;
    -webkit-text-stroke: 2px rgba(210, 210, 210, 0.8); /* Dark white border */
}

.kinetic-text.solid {
    color: #fff;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* IMAGE WRAPPER */
.kinetic-image-wrapper {
    position: relative;
    width: 600px;
    height: 350px;
    border-radius: 4px; /* Brutalist sharp or slightly rounded */
    overflow: hidden;
    transform: perspective(1000px) rotateY(0deg); /* Prep for 3D */
    box-shadow: 0 30px 60px -10px rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: #111;
}

.kinetic-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: none; /* Original colors */
    transition: filter 0.5s ease, transform 0.5s ease;
}

.kinetic-image-wrapper:hover img {
    filter: contrast(1.1) brightness(1.1);
    transform: scale(1.1);
}

/* OVERLAY ON HOVER */
.k-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(0, 71, 171, 0.95), transparent);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
}

.kinetic-image-wrapper:hover .k-overlay {
    transform: translateY(0);
}

.k-overlay h3 {
    font-family: 'Batman Forever', sans-serif;
    font-size: 2rem;
    color: #fff;
    margin-bottom: 5px;
}

.k-overlay p {
    font-family: 'Orbitron', sans-serif;
    color: var(--secondary);
    font-size: 0.9rem;
    letter-spacing: 2px;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .kinetic-text { font-size: 7rem; }
    .kinetic-image-wrapper { width: 450px; height: 280px; }
    .kinetic-group { gap: 40px; }
}

@media (max-width: 768px) {
    .kinetic-text { font-size: 4rem; -webkit-text-stroke: 1px rgba(255,255,255,0.2); }
    .kinetic-image-wrapper { width: 320px; height: 200px; }
    .kinetic-group { gap: 20px; }
    .kinetic-container { gap: 5vh; }
    
    /* Make it vertically scrollable if horizontal is too much? 
       Actually, horizontal auto-scroll looks cool on mobile too. 
       Just speed it up slighty or keep as is. */
}

/* =========================================
   GOD-TIER STICKY SCROLL SHOWCASE (Parallax Stack)
   ========================================= */
.sticky-showcase-container {
    position: relative;
    background: #050505;
    padding-bottom: 20px;
}

.sticky-card {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #0a0a0a;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -10px 50px rgba(0, 0, 0, 0.8);
    transform-origin: center top;
}

/* Layering logic */
.sticky-card:nth-child(1) { z-index: 10; }
.sticky-card:nth-child(2) { z-index: 20; }
.sticky-card:nth-child(3) { z-index: 30; }
.sticky-card:nth-child(4) { z-index: 40; }

.card-content-wrapper {
    display: flex;
    width: 90%;
    max-width: 1400px;
    align-items: center;
    gap: 80px;
}

/* Alternating Layout: Images on Left for .alt cards */
.sticky-card.alt .card-content-wrapper {
    flex-direction: row-reverse;
}

.card-text {
    flex: 1;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s var(--ease-out);
    padding: 40px;
}

/* Reveal animation when card is in view */
.sticky-card .card-text {
    opacity: 1;
    transform: translateY(0);
}

.card-text h2 {
    font-family: 'Batman Forever', sans-serif;
    font-size: 3.5rem;
    color: white;
    margin-bottom: 20px;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 0 20px rgba(0, 71, 171, 0.5);
}

.card-text p {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 30px;
}

.card-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    background: transparent;
    border: 1px solid var(--primary);
    color: white;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.card-btn:hover {
    background: var(--primary);
    box-shadow: 0 0 30px rgba(0, 71, 171, 0.6);
    transform: translateX(10px);
}

.card-visual {
    flex: 1;
    height: 600px;
    position: relative;
    /* Add animation hook */
    view-timeline-name: --card-visual;
}

.visual-inner {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    
    /* Default state: slightly hidden */
    opacity: 0; 
    transform: translateX(100px); /* Default slide from right */
    
    /* Animation driven by scroll */
    animation: slideIn linear both;
    animation-timeline: view();
    animation-range: entry 10% cover 40%;
}

/* Specific animations for Left vs Right placement */

/* Default (Image Right) -> Slide in from Right */
.sticky-card:not(.alt) .visual-inner {
    transform: translateX(200px);
    animation-name: slideInRight;
}

/* Alt (Image Left) -> Slide in from Left */
.sticky-card.alt .visual-inner {
    transform: translateX(-200px);
    animation-name: slideInLeft;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(200px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-200px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.visual-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.sticky-card:hover .visual-inner img {
    transform: scale(1.1);
}

.card-glow-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(0, 71, 171, 0.2) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

/* Distinct visual styles for each card */
.sticky-card:nth-child(1) { background: linear-gradient(to bottom, #050505, #080808); }
.sticky-card:nth-child(2) { background: linear-gradient(to bottom, #080808, #0a0a0a); }
.sticky-card:nth-child(3) { background: linear-gradient(to bottom, #0a0a0a, #0c0c0c); }
.sticky-card:nth-child(4) { background: linear-gradient(to bottom, #0c0c0c, #0f0f0f); }

/* Responsive */
@media (max-width: 992px) {
    .card-content-wrapper {
        flex-direction: column !important;
        text-align: center;
        gap: 40px;
    }
    
    /* Disable complex scroll animations on mobile for simplicity */
    .visual-inner {
        animation: none;
        opacity: 1;
        transform: none !important;
    }

    .card-text h2 {
        font-size: 2.5rem;
    }
    
    .card-visual {
        width: 100%;
        height: 400px;
    }
}

@media (max-width: 768px) {
    .sticky-card {
        height: auto;
        min-height: 100vh;
        padding: 100px 0;
    }
    
    .card-text h2 {
        font-size: 2rem;
    }
}