/* ===================================
   GibsFest 2K26 - Marvest Racing Theme
   F1-Inspired Stylesheet (BASE LAYER)
   HIERARKI: 5 (Paling Rendah - Base Styles)
   =================================== */

/* ===== CSS Variables ===== */
:root {
    /* F1 Color Palette */
    --color-red-primary: #E10600;
    --color-red-dark: #B10500;
    --color-red-light: #FF1E00;
    --color-black: #15151E;
    --color-black-light: #1E1E2E;
    --color-white: #FFFFFF;
    --color-silver: #C0C0C0;
    --color-gold: #FFD700;

    /* Gradient Colors */
    --gradient-red: linear-gradient(135deg, #E10600 0%, #FF1E00 100%);
    --gradient-dark: linear-gradient(135deg, #15151E 0%, #1E1E2E 100%);
    --gradient-metallic: linear-gradient(135deg, #C0C0C0 0%, #FFFFFF 50%, #C0C0C0 100%);

    /* Racing Accents */
    --neon-red: 0 0 10px #E10600, 0 0 20px #E10600, 0 0 30px #E10600;
    --neon-white: 0 0 10px #FFFFFF, 0 0 20px #FFFFFF;

    /* Typography */
    --font-primary: 'Rajdhani', 'Arial Black', sans-serif;
    --font-secondary: 'Orbitron', monospace;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Z-index Layers */
    --z-background: -1;
    --z-content: 1;
    --z-nav: 100;
    --z-modal: 1000;
    --z-cursor: 9999;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    background: var(--color-black);
    color: var(--color-white);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
}

/* ===== Custom Cursor (Desktop Default) ===== */
.custom-cursor {
    pointer-events: none;
    position: fixed;
    z-index: var(--z-cursor);
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background: var(--color-red-primary);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
    box-shadow: var(--neon-red);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid var(--color-red-primary);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    transition: all 0.15s ease-out;
    opacity: 0.5;
}

a:hover~.custom-cursor .cursor-dot,
button:hover~.custom-cursor .cursor-dot {
    width: 20px;
    height: 20px;
}

/* ===== Loading Screen ===== */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--color-black);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s, visibility 0.5s;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
}

/* F1 Starting Lights */
.f1-lights {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 40px;
}

.light {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #333;
    border: 3px solid #555;
    position: relative;
    transition: all 0.3s;
}

.light.active {
    background: var(--color-red-primary);
    box-shadow: var(--neon-red);
}

.light.go {
    background: #00FF00;
    box-shadow: 0 0 20px #00FF00;
}

.loading-text h2 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 4px;
    margin-bottom: 20px;
    background: var(--gradient-red);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.loading-bar {
    width: 300px;
    height: 4px;
    background: #333;
    border-radius: 2px;
    overflow: hidden;
    margin: 20px auto;
}

.loading-progress {
    height: 100%;
    background: var(--gradient-red);
    width: 0%;
    transition: width 0.3s;
}

.loading-percentage {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-red-primary);
}

/* ===== Video Background ===== */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: var(--z-background);
    overflow: hidden;
}

#bgVideo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
            rgba(21, 21, 30, 0.5) 0%,
            rgba(30, 30, 46, 0.4) 100%);
}

/* ===== 3D Canvas ===== */
#threeCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
}

/* ===== Navigation (Base Styles) ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    background: rgba(21, 21, 30, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--color-red-primary);
    z-index: var(--z-nav);
    transition: all var(--transition-normal);
}

.navbar.scrolled {
    padding: 1rem 0;
    box-shadow: 0 5px 20px rgba(225, 6, 0, 0.3);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--color-white);
    text-transform: uppercase;
}

.logo-text .year {
    color: var(--color-red-primary);
    font-style: italic;
}

.nav-menu {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.nav-link {
    color: var(--color-white);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 1px;
    position: relative;
    padding: 0.5rem 0;
    transition: color var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-red-primary);
    transition: width var(--transition-normal);
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-red-primary);
}

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

/* Mobile Menu Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.nav-toggle span {
    width: 30px;
    height: 3px;
    background: var(--color-white);
    transition: all var(--transition-normal);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

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

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}


@media (max-width: 768px) {
    .nav-toggle {
        display: flex; /* ← INI yang hilang */
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(21, 21, 30, 0.98);
        padding: 1rem 0;
        border-top: 1px solid var(--color-red-primary);
    }

    .nav-menu.active {
        display: flex;
    }
}
/* ===== Container (Base) ===== */
.base-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===== Section Headers (Base) ===== */
.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-label {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--color-red-primary);
    text-transform: uppercase;
    margin-bottom: 1rem;
    padding: 0.5rem 1.5rem;
    border: 2px solid var(--color-red-primary);
    border-radius: 50px;
}

.section-title {
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.section-title .highlight {
    background: var(--gradient-red);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
}

/* ===== Hero Section (Base) ===== */
.hero-section-base {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 8rem 2rem 4rem;
}

.hero-content-base {
    text-align: center;
    position: relative;
    z-index: var(--z-content);
}

/* Hero Badge */
.hero-badge {
    display: inline-block;
    padding: 0.5rem 2rem;
    background: rgba(225, 6, 0, 0.1);
    border: 2px solid var(--color-red-primary);
    border-radius: 50px;
    margin-bottom: 2rem;
}

.badge-text {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--color-red-primary);
    text-transform: uppercase;
}

/* Hero Subtitle */
.hero-subtitle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.subtitle-line {
    width: 100px;
    height: 2px;
    background: var(--gradient-red);
}

.subtitle-text {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 6px;
    text-transform: uppercase;
    background: var(--gradient-metallic);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto 3rem;
    letter-spacing: 1.5px;
}

/* Hero CTA */
.hero-cta {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-bottom: 4rem;
}

.cta-primary,
.cta-secondary {
    padding: 1.2rem 3rem;
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 50px;
    transition: all var(--transition-normal);
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
}

.cta-primary {
    background: var(--gradient-red);
    color: var(--color-white);
    box-shadow: 0 10px 30px rgba(225, 6, 0, 0.4);
}

.cta-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(225, 6, 0, 0.6);
}

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

.cta-secondary:hover {
    background: var(--color-white);
    color: var(--color-black);
    transform: translateY(-5px);
}

/* Speedometer */
.speedometer {
    margin: 0 auto;
}

#speedometerCanvas {
    width: 200px;
    height: 200px;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    animation: bounce 2s infinite;
}

.scroll-mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--color-red-primary);
    border-radius: 25px;
    position: relative;
    margin: 0 auto 1rem;
}

.scroll-wheel {
    width: 4px;
    height: 10px;
    background: var(--color-red-primary);
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    animation: scroll 1.5s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

@keyframes scroll {
    0% {
        opacity: 1;
        top: 10px;
    }

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

.scroll-text {
    font-size: 0.85rem;
    color: var(--color-red-primary);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ===== About Section - Z-INDEX FIX ===== */
.about-section {
    padding: 6rem 0;
    position: relative;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.95) 0%, rgba(26, 10, 10, 0.95) 50%, rgba(10, 10, 10, 0.95) 100%);
    /* ☝️ Opacity dinaikkan dari 0.5 ke 0.95 */
    z-index: 10;
    /* ⭐ CRITICAL: Harus lebih tinggi dari background */
    backdrop-filter: blur(10px);
}

.about-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    /* Extra layer untuk visibility */
    z-index: -1;
    pointer-events: none;
}

.about-section .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 11;
    /* ⭐ Di atas section background */
}

/* Grid utama untuk Text + Logo */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 5rem;
    align-items: center;
    margin-bottom: 5rem;
    position: relative;
    z-index: 12;
    /* ⭐ Highest z-index */
}

.about-content {
    position: relative;
    z-index: 13;
}

.about-text h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 2rem;
    color: #fff;
    position: relative;
    z-index: 14;
}

.text-gradient {
    background: linear-gradient(135deg, #E10600, #FF1E00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-text p {
    color: rgba(255, 255, 255, 0.95);
    /* ☝️ Opacity dinaikkan */
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 14;
}

/* Logo Visual */
.about-visual {
    background: rgba(30, 30, 46, 0.8);
    /* ☝️ Opacity dinaikkan dari 0.3 */
    border: 2px solid rgba(225, 6, 0, 0.5);
    /* ☝️ Border lebih jelas */
    border-radius: 20px;
    padding: 3rem;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    position: relative;
    z-index: 13;
}

.about-visual:hover {
    border-color: rgba(225, 6, 0, 0.9);
    box-shadow: 0 0 40px rgba(225, 6, 0, 0.5);
}

.logo-3d-large {
    position: relative;
    z-index: 14;
}

.logo-3d-large img {
    width: 100%;
    max-width: 400px;
    height: auto;
    filter: drop-shadow(0 0 30px rgba(225, 6, 0, 0.6));
    animation: logoFloat 4s ease-in-out infinite;
}

@keyframes logoFloat {

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

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

/* Stats - DILUAR GRID, FULL WIDTH */
.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 5rem;
    padding: 0 1rem;
    position: relative;
    z-index: 12;
}

.stat-item {
    background: rgba(30, 30, 46, 0.9);
    /* ☝️ Opacity dinaikkan dari 0.6 */
    border: 2px solid rgba(225, 6, 0, 0.5);
    /* ☝️ Border lebih jelas */
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    z-index: 13;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(225, 6, 0, 0.2), transparent);
    transition: left 0.6s ease;
    z-index: 1;
}

.stat-item:hover::before {
    left: 100%;
}

.stat-item:hover {
    transform: translateY(-15px) scale(1.05);
    border-color: rgba(225, 6, 0, 1);
    box-shadow: 0 20px 50px rgba(225, 6, 0, 0.6);
}

.stat-number {
    display: block;
    font-size: 4rem;
    font-weight: 900;
    font-family: 'Orbitron', sans-serif;
    background: linear-gradient(135deg, #E10600, #FF1E00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    line-height: 1;
    position: relative;
    z-index: 2;
}

.stat-label {
    display: block;
    color: rgba(255, 255, 255, 0.95);
    /* ☝️ Opacity dinaikkan */
    font-size: 1rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 600;
    position: relative;
    z-index: 2;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    padding: 0 1rem;
    position: relative;
    z-index: 12;
}

.feature-card {
    background: rgba(30, 30, 46, 0.9);
    /* ☝️ Opacity dinaikkan */
    backdrop-filter: blur(10px);
    border: 2px solid rgba(225, 6, 0, 0.5);
    /* ☝️ Border lebih jelas */
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    z-index: 13;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(225, 6, 0, 0.15), transparent);
    transition: left 0.6s ease;
    z-index: 1;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(225, 6, 0, 1);
    box-shadow: 0 15px 40px rgba(225, 6, 0, 0.5);
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: block;
    animation: floatIcon 3s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

.feature-card h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #E10600;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    z-index: 2;
}

.feature-card p {
    color: rgba(255, 255, 255, 0.95);
    /* ☝️ Opacity dinaikkan */
    line-height: 1.7;
    font-size: 1rem;
    position: relative;
    z-index: 2;
}

/* Responsive */
@media (max-width: 1200px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-visual {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .about-stats {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .about-text h3 {
        font-size: 2rem;
    }
}

/* ===== Features Grid (Base) ===== */
.features-section {
    padding: 6rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    /* Jarak dari about-grid */
}

.feature-card {
    background: rgba(30, 30, 46, 0.5);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(225, 6, 0, 0.3);
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

/* Efek hover glow */
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(225, 6, 0, 0.15), transparent);
    transition: left 0.6s ease;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--color-red-primary);
    box-shadow: 0 15px 40px rgba(225, 6, 0, 0.3);
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: block;
    animation: floatIcon 3s ease-in-out infinite;
}

@keyframes floatIcon {

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

    50% {
        transform: translateY(-12px);
    }
}

.feature-card h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-red-primary);
    font-family: var(--font-secondary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.feature-card p {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    font-size: 1rem;
    font-family: var(--font-primary);
}

/* ===== Activities Section (Base) ===== */
.activities-section {
    padding: 6rem 0;
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

/* ===== Timeline (Base) ===== */
.timeline-section {
    padding: 6rem 0;
}

.timeline-wrapper {
    background: rgba(30, 30, 46, 0.3);
    border: 2px solid rgba(225, 6, 0, 0.3);
    border-radius: 25px;
    padding: 4rem 2rem;
    position: relative;
}

.timeline-track {
    position: relative;
}

.timeline-line {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--color-red-primary), transparent);
}

.timeline-item {
    position: relative;
    margin-bottom: 4rem;
    text-align: center;
}

.timeline-checkpoint {
    margin: 0 auto 2rem;
}

.checkpoint-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 0 30px rgba(225, 6, 0, 0.5);
}

.timeline-date {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-red-primary);
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.timeline-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--color-white);
}

.timeline-desc {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

/* Countdown */
.countdown-wrapper {
    background: rgba(225, 6, 0, 0.1);
    border: 2px solid var(--color-red-primary);
    border-radius: 20px;
    padding: 3rem 2rem;
    margin-top: 4rem;
    text-align: center;
}

.countdown-title {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--color-red-primary);
    margin-bottom: 2rem;
    text-transform: uppercase;
}

.countdown-timer {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.countdown-unit {
    text-align: center;
}

.countdown-value {
    font-size: 3rem;
    font-weight: 900;
    background: var(--gradient-red);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}

.countdown-label {
    font-size: 0.85rem;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    margin-top: 0.5rem;
}

.countdown-separator {
    font-size: 3rem;
    color: var(--color-red-primary);
}

/* ===== Register Section (Base) ===== */
.register-section {
    padding: 6rem 0;
}

.register-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.register-info h3 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 2rem;
}

.register-info h3 .highlight {
    background: var(--gradient-red);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.register-info>p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.benefit-list {
    list-style: none;
    margin-bottom: 2rem;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

.benefit-item i {
    color: var(--color-red-primary);
    font-size: 1.2rem;
}

.btn-register {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 3rem;
    background: var(--gradient-red);
    color: var(--color-white);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 900;
    letter-spacing: 2px;
    border-radius: 50px;
    transition: all var(--transition-normal);
    box-shadow: 0 10px 30px rgba(225, 6, 0, 0.4);
}

.btn-register:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(225, 6, 0, 0.6);
}

.register-visual {
    background: rgba(30, 30, 46, 0.5);
    border: 2px solid rgba(225, 6, 0, 0.3);
    border-radius: 20px;
    padding: 2rem;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== Footer (Base) ===== */
.footer {
    background: rgba(21, 21, 30, 0.95);
    border-top: 2px solid var(--color-red-primary);
    padding: 4rem 0 2rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--color-white);
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--color-white);
    margin-bottom: 1rem;
}

.footer-desc {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 50px;
    height: 50px;
    background: rgba(225, 6, 0, 0.1);
    border: 2px solid var(--color-red-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-red-primary);
    font-size: 1.5rem;
    transition: all var(--transition-normal);
}

.footer-social a:hover {
    background: var(--color-red-primary);
    color: var(--color-white);
    transform: translateY(-5px);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

.footer-bottom {
    border-top: 1px solid rgba(225, 6, 0, 0.3);
    padding-top: 2rem;
    text-align: center;
}

.footer-credits {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.footer-credits a {
    color: var(--color-red-primary);
    text-decoration: none;
}

.footer-credits a:hover {
    text-decoration: underline;
}

.footer-easter-egg {
    position: absolute;
    bottom: 1rem;
    right: 2rem;
    font-size: 2rem;
    cursor: pointer;
    transition: transform 0.5s;
}

.footer-easter-egg:hover {
    transform: rotate(360deg) scale(1.5);
}

/* ===== Modal (Base) ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    z-index: var(--z-modal);
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--color-black-light);
    border: 2px solid var(--color-red-primary);
    border-radius: 20px;
    padding: 3rem;
    max-width: 800px;
    width: 90%;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 2px solid var(--color-red-primary);
    border-radius: 50%;
    color: var(--color-red-primary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.modal-close:hover {
    background: var(--color-red-primary);
    color: var(--color-white);
    transform: rotate(90deg);
}

/* ===== Racing Game Canvas ===== */
#racingGameCanvas {
    width: 100%;
    max-width: 600px;
    height: 400px;
    background: #000;
    border: 2px solid var(--color-red-primary);
    border-radius: 10px;
    margin: 2rem auto;
    display: block;
}

.btn-game {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--gradient-red);
    color: var(--color-white);
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-normal);
    margin: 1rem 0.5rem;
}

.btn-game:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(225, 6, 0, 0.4);
}

.game-score {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-red-primary);
    margin: 1rem 0;
}

/* ===== Utility Classes ===== */
.text-center {
    text-align: center;
}

.mb-3 {
    margin-bottom: 3rem;
}

.mt-3 {
    margin-top: 3rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mt-2 {
    margin-top: 2rem;
}


/* ===== FIX: Stats & Features Visibility ===== */

/* Force visibility untuk about-stats */
.about-stats {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 3rem !important;
    margin-bottom: 5rem !important;
    padding: 0 1rem !important;
    position: relative !important;
    z-index: 12 !important;
    opacity: 1 !important;
    /* ⭐ CRITICAL */
    visibility: visible !important;
    /* ⭐ CRITICAL */
    transform: none !important;
    /* ⭐ Override AOS */
}

/* Override AOS hidden state */
.about-stats[data-aos] {
    opacity: 1 !important;
    transform: none !important;
}

.about-stats.aos-animate {
    opacity: 1 !important;
    transform: none !important;
}

/* Force visibility untuk features-grid */
.features-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 2.5rem !important;
    padding: 0 1rem !important;
    position: relative !important;
    z-index: 12 !important;
    opacity: 1 !important;
    /* ⭐ CRITICAL */
    visibility: visible !important;
    /* ⭐ CRITICAL */
    transform: none !important;
    /* ⭐ Override AOS */
}

/* Override AOS hidden state */
.features-grid[data-aos] {
    opacity: 1 !important;
    transform: none !important;
}

.features-grid.aos-animate {
    opacity: 1 !important;
    transform: none !important;
}

/* Pastikan stat-item visible */
.stat-item {
    background: rgba(30, 30, 46, 0.9) !important;
    border: 2px solid rgba(225, 6, 0, 0.5) !important;
    border-radius: 20px !important;
    padding: 2.5rem 2rem !important;
    text-align: center !important;
    position: relative !important;
    z-index: 13 !important;
    opacity: 1 !important;
    /* ⭐ CRITICAL */
    visibility: visible !important;
    /* ⭐ CRITICAL */
}

/* Pastikan feature-card visible */
.feature-card {
    background: rgba(30, 30, 46, 0.9) !important;
    border: 2px solid rgba(225, 6, 0, 0.5) !important;
    border-radius: 20px !important;
    padding: 3rem 2rem !important;
    text-align: center !important;
    position: relative !important;
    z-index: 13 !important;
    opacity: 1 !important;
    /* ⭐ CRITICAL */
    visibility: visible !important;
    /* ⭐ CRITICAL */
}

/* Pastikan container tidak overflow hidden */
.about-section .container {
    overflow: visible !important;
    min-height: auto !important;
}

.about-section {
    overflow: visible !important;
}