/* ═══════════════════════════════════════════════════════════════════════
   HIGHING SLOTTERS – THE DUAL DUEL
   Scroll-Triggered Racing Animation
   ═══════════════════════════════════════════════════════════════════════ */

:root {
    --bg-void: #0D0D0D;
    --bg-pure-black: #000000;
    --accent-purple: #ff0000;
    /* Rebranding to Red, keeping var name for compatibility or renaming? Better to keep logic simple first, but let's rename for clarity if replacing all usage. Actually, just changing value is safest for now. */
    --accent-purple-glow: rgba(255, 0, 0, 0.6);
    --accent-white: #F8FAFC;
    --accent-white-glow: rgba(248, 250, 252, 0.6);
    --text-primary: #FFFFFF;
    --text-muted: rgba(255, 255, 255, 0.5);
    --metal-gold: linear-gradient(135deg, #D4AF37 0%, #F4E4BA 50%, #B8860B 100%);
    --metal-chrome: linear-gradient(135deg, #C0C0C0 0%, #F5F5F5 50%, #808080 100%);
}

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: auto;
    /* We handle scroll manually */
}

body {
    font-family: 'Outfit', sans-serif;
    background: #000000 !important;
    color: var(--text-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ═══════════════════════════════════════════════════════════════════════
   PRELOADER
   ═══════════════════════════════════════════════════════════════════════ */

.preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--bg-pure-black);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    text-align: center;
}

.loader-logo {
    font-size: 4rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-white) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    letter-spacing: 0.1em;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

.loader-text {
    font-size: 0.875rem;
    font-weight: 300;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.loader-bar {
    width: 200px;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin: 0 auto 1rem;
}

.loader-progress {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-white));
    border-radius: 3px;
    transition: width 0.1s ease-out;
}

.loader-percent {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

/* ═══════════════════════════════════════════════════════════════════════
   SCROLL CONTAINER
   ═══════════════════════════════════════════════════════════════════════ */

.scroll-container {
    position: relative;
    width: 100%;
    /* Height is determined by content: animation section + spacer */
    /* Sticky needs a tall parent to scroll within, OR it acts as normal flux */
}

/* Spacer controls how long the section stays sticky/visible before next content pushes it up */
/* Spacer controls how long the section stays sticky/visible before next content pushes it up */
.scroll-spacer {
    height: 250vh;
    /* Sufficient height for 70 frames */
}

/* ═══════════════════════════════════════════════════════════════════════
   ANIMATION SECTION (Pinned)
   ═══════════════════════════════════════════════════════════════════════ */

.animation-section {
    position: sticky;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000000 !important;
    background-image: none !important;
    background-size: cover;
    overflow: hidden;
    z-index: 50;
    /* Ensure it stays under content when scrolling out */
}

/* ═══════════════════════════════════════════════════════════════════════
   CLUB LOGO
   ═══════════════════════════════════════════════════════════════════════ */

.club-logo {
    position: absolute;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    height: 60px;
    width: auto;
    z-index: 10;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.club-logo:hover {
    opacity: 1;
}

.animation-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#frame-canvas {
    /* Dimensions handled by JS for 'cover' effect */
    display: block;
    /* Crisp rendering for sharp images */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* ═══════════════════════════════════════════════════════════════════════
   CORNER ACCENTS
   ═══════════════════════════════════════════════════════════════════════ */

.accent {
    position: absolute;
    width: 100px;
    height: 100px;
    pointer-events: none;
    opacity: 0.3;
}

.corner-tl {
    top: 2rem;
    left: 2rem;
    border-left: 2px solid var(--accent-purple);
    border-top: 2px solid var(--accent-purple);
}

.corner-br {
    bottom: 2rem;
    right: 2rem;
    border-right: 2px solid var(--accent-white);
    border-bottom: 2px solid var(--accent-white);
}

/* ═══════════════════════════════════════════════════════════════════════
   SCROLL INDICATOR
   ═══════════════════════════════════════════════════════════════════════ */

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.scroll-indicator.hidden {
    opacity: 0;
}

.scroll-indicator span {
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border-right: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transform: rotate(45deg);
    animation: bounce 1.5s ease-in-out infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: rotate(45deg) translateY(0);
    }

    50% {
        transform: rotate(45deg) translateY(8px);
    }
}

/* ═══════════════════════════════════════════════════════════════════════
   PROGRESS BAR
   ═══════════════════════════════════════════════════════════════════════ */

.progress-track {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-white));
    transition: width 0.05s linear;
    box-shadow: 0 0 10px var(--accent-purple-glow);
}

/* ═══════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {

    .corner-tl,
    .corner-br {
        width: 50px;
        height: 50px;
    }

    .purple-trail,
    .white-trail {
        width: 100px;
    }

    .loader-logo {
        font-size: 3rem;
    }
}

@media (max-width: 480px) {
    .scroll-indicator span {
        font-size: 0.625rem;
    }

    .accent {
        display: none;
    }
}

/* ═══════════════════════════════════════════════════════════════════════
   PERFORMANCE HINTS
   ═══════════════════════════════════════════════════════════════════════ */

.animation-wrapper,
#frame-canvas {
    will-change: transform;
    backface-visibility: hidden;
}

/* ═══════════════════════════════════════════════════════════════════════
   NAVIGATION (Shared)
   ═══════════════════════════════════════════════════════════════════════ */

.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    background: rgba(13, 13, 13, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-logo img {
    height: 40px;
    width: auto;
    border-radius: 4px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link.active {
    position: relative;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-white));
    border-radius: 1px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(13, 13, 13, 0.98);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    z-index: 999;
    flex-direction: column;
    gap: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-menu.active {
    display: flex;
}

.mobile-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 1rem;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.mobile-link:hover,
.mobile-link.active {
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }
}

/* ═══════════════════════════════════════════════════════════════════════
   GALLERY PAGE
   ═══════════════════════════════════════════════════════════════════════ */

.gallery-page {
    background: var(--bg-void);
    min-height: 100vh;
}

/* Hide main page fixed elements on gallery page */
.gallery-page .animation-section,
.gallery-page .scroll-container,
.gallery-page .scroll-indicator,
.gallery-page .club-logo,
.gallery-page .progress-track {
    display: none !important;
}

/* Gallery Hero */
.gallery-hero {
    position: relative;
    height: 40vh;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    margin-top: 60px;
}

.gallery-hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(255, 0, 0, 0.2) 0%,
            rgba(13, 13, 13, 0.9) 50%,
            rgba(248, 250, 252, 0.1) 100%);
    z-index: 0;
}

.gallery-hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('pic/racetrack/racetrack_01.jpg') center/cover no-repeat;
    opacity: 0.15;
    filter: blur(3px);
}

.gallery-hero-content {
    position: relative;
    z-index: 1;
}

.gallery-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gallery-title .title-accent {
    -webkit-text-fill-color: initial;
    margin-right: 0.5rem;
}

.gallery-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    font-weight: 300;
    letter-spacing: 0.1em;
}

/* Gallery Container */
.gallery-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 3rem 2rem 4rem;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* Gallery Item */
.gallery-item {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.03);

    /* Initial state for scroll reveal */
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s ease;
}

.gallery-item.revealed {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.gallery-item:hover {
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(255, 0, 0, 0.2);
    transform: translateY(-8px) scale(1.02);
    z-index: 10;
}

.gallery-item.revealed:hover {
    transform: translateY(-8px) scale(1.02);
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.1);
}

/* Gallery Overlay */
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.7) 0%,
            transparent 40%,
            transparent 100%);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-zoom {
    font-size: 2rem;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.3s ease 0.1s;
}

.gallery-item:hover .gallery-zoom {
    opacity: 1;
    transform: scale(1);
}

/* ═══════════════════════════════════════════════════════════════════════
   LIGHTBOX
   ═══════════════════════════════════════════════════════════════════════ */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-counter {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 48px;
    height: 48px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    font-size: 2rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    font-size: 1.5rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-nav:hover {
    background: rgba(255, 0, 0, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 1.5rem;
}

.lightbox-next {
    right: 1.5rem;
}

@media (max-width: 768px) {
    .gallery-title {
        font-size: 2rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }

    .gallery-container {
        padding: 2rem 1rem;
    }

    .lightbox-nav {
        width: 44px;
        height: 44px;
        font-size: 1.25rem;
    }

    .lightbox-prev {
        left: 0.5rem;
    }

    .lightbox-next {
        right: 0.5rem;
    }
}

/* ═══════════════════════════════════════════════════════════════════════
   CONTENT SECTIONS (for main page)
   ═══════════════════════════════════════════════════════════════════════ */

.content-section {
    position: relative;
    z-index: 100;
    padding: 5rem 2rem;
    background: var(--bg-void);
    margin-top: -1px;
    /* Prevent sub-pixel gaps */
}

.content-section.dark {
    background: var(--bg-pure-black);
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 3rem;
    text-align: center;
}

.title-accent {
    margin-right: 0.5rem;
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.mt-3 {
    margin-top: 3rem;
}

.info-card {
    background: rgba(255, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.info-card:hover {
    border-color: rgba(255, 0, 0, 0.3);
    transform: translateY(-4px);
}

.info-card.highlight {
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.15) 0%, rgba(255, 0, 0, 0.05) 100%);
    border-color: rgba(255, 0, 0, 0.3);
}

.info-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--accent-white);
}

.info-card .big-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent-purple);
}

.info-card .subtitle {
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-muted);
}

.feature-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-purple);
}

/* Schedule Grid */
.schedule-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.schedule-item {
    text-align: center;
    padding: 1.5rem 2rem;
    background: rgba(255, 0, 0, 0.05);
    border-radius: 12px;
    min-width: 150px;
}

.schedule-item.accent-purple {
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.2) 0%, rgba(255, 0, 0, 0.1) 100%);
    border: 1px solid rgba(255, 0, 0, 0.3);
}

.schedule-label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.schedule-time {
    font-size: 1.5rem;
    font-weight: 600;
}

/* Pricing Table */
.pricing-table {
    max-width: 400px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 2rem;
}

.pricing-table h3 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.price-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.price-row:last-child {
    border-bottom: none;
}

.price {
    font-weight: 600;
    color: var(--accent-purple);
}

.price.free {
    color: #10B981;
}

/* Race Schedule Image */
.race-schedule-image {
    max-width: 800px;
    margin: 0 auto 3rem;
}

.race-schedule-image img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Race Highlights */
.race-highlights {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.highlight-card {
    text-align: center;
}

.highlight-number {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-white) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.highlight-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-purple), var(--accent-white));
}

.timeline-item {
    position: relative;
    padding-left: 3rem;
    padding-bottom: 3rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 0;
    width: 12px;
    height: 12px;
    background: var(--accent-purple);
    border-radius: 50%;
    border: 2px solid var(--bg-void);
}

.timeline-item.highlight::before {
    width: 16px;
    height: 16px;
    left: -7px;
    box-shadow: 0 0 20px var(--accent-purple-glow);
}

.timeline-year {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--accent-purple);
    margin-bottom: 0.5rem;
}

.timeline-content h3 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
}

.timeline-content p {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.highlight-text {
    color: var(--accent-purple) !important;
    font-weight: 600;
}

/* Memorial Section */
.memorial-section {
    margin-top: 4rem;
    text-align: center;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.memorial-section h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--text-muted);
}

.memorial-cards {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.memorial-card {
    padding: 1.5rem;
    text-align: center;
}

.memorial-name {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.memorial-dates {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Track Info */
.track-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.track-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.track-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.track-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.track-card h3 {
    color: var(--accent-purple);
    margin-bottom: 0.75rem;
}

.track-card h3 a {
    color: var(--accent-purple);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.track-card h3 a:hover {
    background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-white) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transform: translateY(-2px);
}

.track-card h3 a::after {
    content: ' →';
    opacity: 0;
    transition: opacity 0.3s ease;
}

.track-card h3 a:hover::after {
    opacity: 1;
}

.track-card p {
    color: var(--text-muted);
}

/* Crawler Intro */
.crawler-intro {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
}

.crawler-intro h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-white) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.crawler-intro p {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 1.125rem;
}

/* Crawler Gallery */
.crawler-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.crawler-image {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
}

.crawler-image:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(255, 0, 0, 0.2);
}

.crawler-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.crawler-image:hover img {
    transform: scale(1.05);
}

/* Meetup Items */
.meetup-item {
    margin-bottom: 1.5rem;
}

.meetup-item:last-child {
    margin-bottom: 0;
}

.meetup-item h4 {
    color: var(--accent-purple);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.meetup-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Location List */
.location-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.location-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}

.location-list li:last-child {
    border-bottom: none;
}

.location-icon {
    font-size: 1.25rem;
}

/* Crawler CTA */
.crawler-cta {
    text-align: center;
    margin-top: 3rem;
    padding: 3rem;
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.1) 0%, rgba(255, 0, 0, 0.05) 100%);
    border-radius: 20px;
    border: 1px solid rgba(255, 0, 0, 0.2);
}

.crawler-cta h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--accent-white);
}

.crawler-cta p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 1rem;
}

.contact-line {
    margin-bottom: 1.5rem !important;
}

.email-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--accent-purple) 0%, #7c3aed 100%);
    border-radius: 50px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.email-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 0, 0, 0.4);
}

.email-icon {
    font-size: 1.25rem;
}

.coming-soon {
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
}

/* Race Section */
.race-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.race-intro h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-white) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.race-tagline {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.race-schedule-image {
    max-width: 800px;
    margin: 0 auto 3rem;
}

.race-schedule-image img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Race Highlights */
.race-highlights {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.highlight-card {
    text-align: center;
}

.highlight-number {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-white) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.highlight-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Schedule List */
.schedule-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.schedule-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.schedule-row:hover {
    background: rgba(255, 255, 255, 0.06);
}

.schedule-row.accent {
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.2) 0%, rgba(255, 0, 0, 0.1) 100%);
    border: 1px solid rgba(255, 0, 0, 0.3);
}

.schedule-time-inline {
    font-weight: 600;
    color: var(--accent-purple);
    min-width: 100px;
}

.schedule-desc {
    color: var(--text-muted);
}

/* Price Rows */
.price-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.price-row:last-child {
    border-bottom: none;
}

.price {
    font-weight: 600;
    color: var(--accent-purple);
}

.price.free {
    color: #10B981;
}

/* Footer */
.site-footer {
    background: var(--bg-pure-black);
    padding: 3rem 2rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 200;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer-logo {
    height: 60px;
    width: auto;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.footer-tagline {
    color: var(--accent-purple);
    margin: 0.5rem 0;
}

.music-btn {
    background: rgba(255, 0, 0, 0.2);
    border: 1px solid var(--accent-purple);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin-left: 1rem;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.2);
}

.music-btn:hover {
    background: var(--accent-purple);
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.6);
    transform: scale(1.05);
    /* Slight scale */
}

.music-btn .icon {
    font-size: 1rem;
    line-height: 1;
    filter: none;
    color: var(--text-primary);
}

.music-btn.playing {
    background: var(--accent-purple);
    box-shadow: 0 0 15px var(--accent-purple-glow);
}

.copyright {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.legal-link {
    margin-top: 0.5rem;
}

.legal-link a {
    color: var(--text-primary);
    font-size: 0.9rem;
    text-decoration: underline;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.legal-link a:hover {
    color: var(--accent-purple);
    opacity: 1;
    text-decoration: underline;
}

/* Legal Page Styles */
.legal-page {
    background-color: var(--bg-pure-black);
}

.legal-content-container {
    max-width: 800px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.legal-section {
    margin-bottom: 4rem;
    color: var(--text-color);
}

.legal-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--accent-white);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
}

.legal-section h3 {
    font-size: 1.25rem;
    margin: 2rem 0 1rem;
    color: var(--accent-purple);
}

.legal-section p,
.legal-section ul {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.legal-section ul {
    list-style-type: disc;
    padding-left: 1.5rem;
}

.legal-section a {
    color: var(--accent-purple);
    text-decoration: none;
    transition: all 0.2s ease;
}

.legal-section a:hover {
    color: var(--accent-white);
    text-decoration: underline;
}