/* ==========================================
   MICHAEL MAPLES RACING - MAIN STYLES
   Version: 2.0 - Client Revision
   ========================================== */

/* ==========================================
   CSS VARIABLES
   ========================================== */
:root {
    /* Colors */
    --primary-red: #E31837;
    --primary-blue: #0066CC;
    --dark-bg: #0a0a0a;
    --card-bg: #151515;
    --text-white: #ffffff;
    --text-gray: #b0b0b0;
    --accent-orange: #FF6600;
    --accent-yellow: #FFD700;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* Typography */
    --font-primary: 'Rajdhani', sans-serif;
    --font-display: 'Michroma', sans-serif;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Effects */
    --glow-red: 0 0 20px rgba(227, 24, 55, 0.5);
    --glow-blue: 0 0 20px rgba(0, 102, 204, 0.5);
    --glow-white: 0 0 30px rgba(255, 255, 255, 0.3);
}

/* ==========================================
   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-color: var(--dark-bg);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-normal);
}

button {
    font-family: var(--font-primary);
    cursor: pointer;
    border: none;
    outline: none;
    background: none;
}

/* ==========================================
   LANGUAGE SWITCHER
   ========================================== */
.language-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(227, 24, 55, 0.9);
    color: white;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition-normal);
    backdrop-filter: blur(10px);
}

.lang-btn:hover {
    background: var(--primary-red);
    transform: scale(1.05);
    box-shadow: var(--glow-red);
}

.flag-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.flag-item {
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.flag-item.active {
    opacity: 1;
}

.flag-icon {
    width: 24px;
    height: 24px;
    object-fit: cover;
    border-radius: 50%;
}

.flag-label {
    font-size: 12px;
    font-weight: 600;
}

.language-switcher-mobile {
    display: none;
}

/* ==========================================
   LOADING SCREEN
   ========================================== */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--dark-bg) 0%, #1a1a1a 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
}

.loading-number {
    font-family: var(--font-display);
    font-size: 120px;
    font-weight: 700;
    color: var(--primary-red);
    text-shadow: var(--glow-red);
    animation: pulse 1.5s ease-in-out infinite;
}

.loading-logo {
    width: 350px;
    max-width: 90vw;
    margin: 0 auto;
    animation: pulse 1.5s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(227, 24, 55, 0.5));
    height: auto;
}

.loading-text {
    font-size: 24px;
    color: var(--text-gray);
    margin-top: 20px;
    text-transform: uppercase;
    letter-spacing: 4px;
}

.loading-bar {
    width: 300px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin: 30px auto 0;
    overflow: hidden;
}

.loading-progress {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-red), var(--accent-orange));
    border-radius: 10px;
    animation: loading 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
}

@keyframes loading {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

/* ==========================================
   NAVIGATION
   ========================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    z-index: 9998;
    padding: 15px 0;
    transition: var(--transition-normal);
}

.navbar.scrolled {
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-number {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-red);
    text-shadow: var(--glow-red);
}

.logo-text {
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 2px;
}

.nav-logo-img {
    height: 120px;
    width: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-red);
    transition: var(--transition-normal);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.nav-toggle span {
    width: 30px;
    height: 3px;
    background: var(--text-white);
    transition: var(--transition-normal);
    border-radius: 2px;
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(227, 24, 55, 0.4) 0%, 
        rgba(10, 10, 10, 0.8) 50%, 
        rgba(0, 102, 204, 0.4) 100%);
}

#particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 1200px;
    padding: 0 30px;
}

.hero-number {
    font-family: var(--font-display);
    font-size: clamp(120px, 20vw, 300px);
    font-weight: 700;
    color: var(--primary-red);
    text-shadow: 
        0 0 40px rgba(227, 24, 55, 0.8),
        0 0 80px rgba(227, 24, 55, 0.5);
    line-height: 0.9;
    animation: heroGlow 3s ease-in-out infinite;
}

@keyframes heroGlow {
    0%, 100% { 
        text-shadow: 
            0 0 40px rgba(227, 24, 55, 0.8),
            0 0 80px rgba(227, 24, 55, 0.5);
    }
    50% { 
        text-shadow: 
            0 0 60px rgba(227, 24, 55, 1),
            0 0 100px rgba(227, 24, 55, 0.7);
    }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(32px, 5vw, 64px);
    font-weight: 700;
    margin: 20px 0;
    letter-spacing: 4px;
}

.hero-subtitle {
    font-size: clamp(16px, 2.5vw, 24px);
    color: var(--text-gray);
    margin-bottom: 40px;
    letter-spacing: 2px;
}

.hero-stats-mini {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.stat-mini {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-value {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-red);
}

.stat-label {
    font-size: 14px;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn {
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 50px;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.cta-btn.primary {
    background: var(--primary-red);
    color: white;
}

.cta-btn.primary:hover {
    background: #c71530;
    box-shadow: var(--glow-red);
    transform: translateY(-2px);
}

.cta-btn.secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.cta-btn.secondary:hover {
    background: white;
    color: var(--dark-bg);
    transform: translateY(-2px);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.scroll-arrow {
    width: 2px;
    height: 50px;
    background: white;
    position: relative;
    animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    border-right: 2px solid white;
    border-bottom: 2px solid white;
    transform: translateX(-50%) rotate(45deg);
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(20px); opacity: 0.5; }
}

/* ==========================================
   SECTION COMMON STYLES
   ========================================== */
section {
    padding: var(--spacing-xl) 0;
    position: relative;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

.container-fluid {
    width: 100%;
    padding: 0 30px;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--text-white);
    margin-bottom: 20px;
}

.title-underline {
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-red), var(--accent-orange));
    margin: 0 auto;
}

/* ==========================================
   ABOUT SECTION
   ========================================== */
.about-section {
    background: linear-gradient(180deg, var(--dark-bg) 0%, #1a1a1a 100%);
}

.about-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h3 {
    font-size: 32px;
    color: var(--primary-red);
    margin-bottom: 20px;
}

.about-text p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 20px;
}

.about-highlights {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(227, 24, 55, 0.1);
    border-left: 3px solid var(--primary-red);
    border-radius: 5px;
}

.highlight-item i {
    font-size: 24px;
    color: var(--primary-red);
}

.about-image {
    position: relative;
}

.image-frame {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.image-frame img {
    width: 100%;
    transition: var(--transition-slow);
}

.image-frame:hover img {
    transform: scale(1.05);
}

.image-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(227, 24, 55, 0.95);
    padding: 15px 30px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.badge-number {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 700;
    display: block;
}

.badge-text {
    font-size: 14px;
    letter-spacing: 2px;
}

/* ==========================================
   STATS SECTION
   ========================================== */
.stats-section {
    background: var(--dark-bg);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.stat-card {
    background: linear-gradient(135deg, var(--card-bg) 0%, #1a1a1a 100%);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: var(--transition-normal);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-red), var(--accent-orange));
    transform: scaleX(0);
    transition: var(--transition-normal);
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(227, 24, 55, 0.3);
    border-color: var(--primary-red);
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-icon {
    font-size: 48px;
    color: var(--primary-red);
    margin-bottom: 20px;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 64px;
    font-weight: 700;
    color: var(--text-white);
    line-height: 1;
    margin-bottom: 10px;
}

.stat-suffix {
    font-size: 32px;
}

.stat-label {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-gray);
    margin-bottom: 10px;
}

.stat-description {
    font-size: 14px;
    color: var(--text-gray);
}

/* ==========================================
   CAR GALLERY SECTION - CAROUSEL
   ========================================== */
.car-gallery-section {
    background: linear-gradient(180deg, #1a1a1a 0%, var(--dark-bg) 100%);
    padding: var(--spacing-xl) 0;
}

.car-carousel-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    margin-top: var(--spacing-lg);
}

.car-carousel {
    position: relative;
    overflow: hidden;
}

.car-carousel-container {
    overflow: hidden;
    border-radius: 15px;
}

.car-carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.car-slide {
    min-width: 33.333%;
    position: relative;
    padding: 15px;
    box-sizing: border-box;
}

.car-slide img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
    border-radius: 10px;
}

.car-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(227, 24, 55, 0.9);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.car-carousel-btn:hover {
    background: var(--primary-red);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 5px 20px rgba(227, 24, 55, 0.5);
}

.car-prev {
    left: 20px;
}

.car-next {
    right: 20px;
}

.car-carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}

.car-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all var(--transition-normal);
    border: 2px solid transparent;
}

.car-indicator.active {
    background: var(--primary-red);
    border-color: var(--primary-red);
    transform: scale(1.3);
}

.car-indicator:hover {
    background: rgba(227, 24, 55, 0.7);
}

/* ==========================================
   GALLERY SECTION - CAROUSEL
   ========================================== */
.gallery-section {
    background: var(--dark-bg);
    padding: var(--spacing-xl) 0;
}

.gallery-carousel-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    margin-top: var(--spacing-lg);
}

.gallery-carousel {
    position: relative;
    overflow: hidden;
}

.gallery-carousel-container {
    overflow: hidden;
    border-radius: 15px;
}

.gallery-carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.gallery-slide {
    min-width: 33.333%;
    position: relative;
    padding: 15px;
    box-sizing: border-box;
}

.gallery-slide img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    border-radius: 10px;
}

.gallery-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(227, 24, 55, 0.9);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.gallery-carousel-btn:hover {
    background: var(--primary-red);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 5px 20px rgba(227, 24, 55, 0.5);
}

.gallery-prev {
    left: 20px;
}

.gallery-next {
    right: 20px;
}

.gallery-carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}

.gallery-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all var(--transition-normal);
    border: 2px solid transparent;
}

.gallery-indicator.active {
    background: var(--primary-red);
    border-color: var(--primary-red);
    transform: scale(1.3);
}

.gallery-indicator:hover {
    background: rgba(227, 24, 55, 0.7);
}

/* ==========================================
   DRIVERS SECTION
   ========================================== */
.drivers-section {
    background: var(--dark-bg);
    padding: var(--spacing-xl) 0;
}

/* Driver Timeline Card */
.driver-timeline-card {
    padding: 0 !important;
    overflow: hidden;
}

.driver-timeline-card .driver-image {
    width: 100%;
    overflow: hidden;
}

.driver-timeline-card .driver-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.driver-info {
    padding: 20px;
}

.driver-name {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 8px;
}

.driver-location {
    color: var(--primary-red);
    font-size: 13px;
    margin-bottom: 3px;
}

.driver-location i {
    margin-right: 5px;
}

.driver-age {
    color: var(--text-gray);
    font-size: 12px;
    margin-bottom: 10px;
}

.driver-bio {
    color: var(--text-gray);
    font-size: 12px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.driver-expanded {
    display: none;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 15px;
}

.driver-expanded.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.driver-full-bio {
    color: var(--text-gray);
    font-size: 11px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.driver-achievements {
    background: rgba(227, 24, 55, 0.1);
    padding: 12px;
    border-radius: 8px;
    border-left: 3px solid var(--primary-red);
}

.driver-achievements h4 {
    font-family: var(--font-display);
    font-size: 12px;
    color: var(--primary-red);
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.driver-achievements ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.driver-achievements li {
    color: var(--text-gray);
    font-size: 11px;
    padding: 4px 0;
    padding-left: 18px;
    position: relative;
}

.driver-achievements li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--primary-red);
    font-size: 10px;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--primary-red);
    border: 1px solid var(--primary-red);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition-normal);
}

.read-more-btn:hover {
    background: var(--primary-red);
    color: white;
}

.read-more-btn i {
    transition: transform 0.3s ease;
    font-size: 10px;
}

.read-more-btn.active i {
    transform: rotate(180deg);
}

@media (max-width: 768px) {
    .drivers-grid {
        grid-template-columns: 1fr;
        justify-content: center;
    }

    .driver-card {
        max-width: 100%;
    }

    .driver-info {
        padding: 15px;
    }

    .driver-name {
        font-size: 16px;
    }
}

/* ==========================================
   TIMELINE SECTION
   ========================================== */
.timeline-section {
    background: var(--dark-bg);
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, 
        var(--primary-red) 0%, 
        var(--accent-orange) 50%, 
        var(--primary-blue) 100%);
    transform: translateX(-50%);
}

.timeline-item {
    margin-bottom: 50px;
    position: relative;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: auto;
    margin-right: 60px;
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-right: auto;
    margin-left: 60px;
}

.timeline-content {
    width: calc(50% - 60px);
    background: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    position: relative;
    transition: var(--transition-normal);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(227, 24, 55, 0.3);
    border-color: var(--primary-red);
}

.timeline-year {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-red);
    margin-bottom: 10px;
}

.timeline-content h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.timeline-content p {
    color: var(--text-gray);
    line-height: 1.6;
}

/* ==========================================
   GALLERY SECTION
   ========================================== */
.gallery-section {
    background: linear-gradient(180deg, #1a1a1a 0%, var(--dark-bg) 100%);
}

/* Desktop Gallery */
.desktop-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    aspect-ratio: 16/9;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.95), transparent);
    transform: translateY(100%);
    transition: var(--transition-normal);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h3 {
    font-size: 22px;
    margin-bottom: 5px;
}

.gallery-overlay p {
    color: var(--text-gray);
    font-size: 14px;
}

/* Mobile Carousel */
.mobile-gallery {
    display: none;
}

.carousel-container {
    position: relative;
    overflow: hidden;
}

.carousel-track-container {
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-slide {
    min-width: 100%;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 10px;
}

.carousel-caption {
    position: absolute;
    bottom: 30px;
    left: 30px;
    right: 30px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.carousel-caption h3 {
    font-size: 20px;
    margin: 0;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(227, 24, 55, 0.9);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    z-index: 10;
    transition: var(--transition-normal);
}

.carousel-btn:hover {
    background: var(--primary-red);
    box-shadow: var(--glow-red);
}

.carousel-btn.prev {
    left: 20px;
}

.carousel-btn.next {
    right: 20px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition-normal);
}

.carousel-dot.active {
    background: var(--primary-red);
    transform: scale(1.3);
}

/* ==========================================
   TEAM SECTION - CAROUSEL
   ========================================== */
.team-section {
    background: var(--dark-bg);
    padding: var(--spacing-xl) 0;
}

.team-carousel-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    margin-top: var(--spacing-lg);
}

.team-carousel {
    position: relative;
    overflow: hidden;
}

.team-carousel-container {
    overflow: hidden;
    border-radius: 15px;
}

.team-carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.team-slide {
    min-width: 33.333%;
    position: relative;
    padding: 15px;
    box-sizing: border-box;
}

.team-slide img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    border-radius: 10px;
    transition: var(--transition-normal);
}

.team-slide:hover img {
    transform: scale(1.05);
}

.team-member-info {
    text-align: center;
    padding: 10px 5px;
}

.team-member-name {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.team-member-role {
    font-family: var(--font-primary);
    font-size: 0.85rem;
    color: var(--primary-red);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.team-member-bio {
    font-size: 0.8rem;
    color: var(--text-gray);
    margin-top: 8px;
    line-height: 1.5;
}

.team-member-expanded {
    display: none;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 10px;
}

.team-member-expanded.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

.team-member-expanded p {
    font-size: 0.8rem;
    color: var(--text-gray);
    line-height: 1.6;
}

.team-member-info .read-more-btn {
    margin-top: 10px;
    font-size: 0.75rem;
    padding: 5px 12px;
}

.team-slide-overlay {
    position: absolute;
    bottom: 15px;
    left: 15px;
    right: 15px;
    top: 15px;
    background: rgba(227, 24, 55, 0.95);
    padding: 30px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-normal);
    overflow-y: auto;
}

.team-slide:hover .team-slide-overlay {
    opacity: 1;
}

.team-slide-overlay p {
    color: white;
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
}

.team-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(227, 24, 55, 0.9);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.team-carousel-btn:hover {
    background: var(--primary-red);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 5px 20px rgba(227, 24, 55, 0.5);
}

.team-prev {
    left: 10px;
}

.team-next {
    right: 10px;
}

.team-carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}

.team-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all var(--transition-normal);
    border: 2px solid transparent;
}

.team-indicator.active {
    background: var(--primary-red);
    border-color: var(--primary-red);
    transform: scale(1.3);
}

.team-indicator:hover {
    background: rgba(227, 24, 55, 0.7);
}

/* ==========================================
   SPONSORS SECTION
   ========================================== */
.sponsors-section {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(180deg, var(--dark-bg) 0%, #111 50%, var(--dark-bg) 100%);
    position: relative;
    overflow: hidden;
}

.sponsors-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-red), transparent);
}

.sponsors-subtitle {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--primary-red);
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-top: 15px;
    text-shadow: 0 0 20px rgba(227, 24, 55, 0.3);
}

.sponsors-description {
    color: var(--text-gray);
    font-size: 1.05rem;
    line-height: 1.8;
    max-width: 750px;
    margin: 20px auto 0;
    text-align: center;
}

.sponsors-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: var(--spacing-lg);
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.sponsors-grid .sponsor-item:nth-child(4) {
    grid-column: 2 / 3;
}

.sponsor-item {
    background: linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    height: 180px;
    backdrop-filter: blur(5px);
}

.sponsor-item:hover {
    background: linear-gradient(145deg, rgba(227, 24, 55, 0.15), rgba(255,255,255,0.05));
    border-color: rgba(227, 24, 55, 0.5);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(227, 24, 55, 0.15), 0 0 60px rgba(227, 24, 55, 0.05);
}

.sponsor-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: all 0.4s ease;
}

.sponsor-item:hover img {
    transform: scale(1.05);
}

.sponsors-cta {
    text-align: center;
    margin-top: 60px;
    padding: 50px 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sponsors-cta h3 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.sponsors-cta p {
    color: var(--text-gray);
    font-size: 1.05rem;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .sponsors-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .sponsors-grid .sponsor-item:nth-child(4),
    .sponsors-grid .sponsor-item:nth-child(5) {
        grid-column: auto;
        justify-self: auto;
    }

    .sponsor-item {
        height: 140px;
        padding: 25px;
    }
}

/* ==========================================
   CONTACT SECTION
   ========================================== */
.contact-section {
    background: linear-gradient(180deg, #1a1a1a 0%, var(--dark-bg) 100%);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-red);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.contact-details h3 {
    font-size: 20px;
    margin-bottom: 5px;
}

.contact-details p {
    color: var(--text-gray);
}

.contact-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.contact-social a {
    width: 50px;
    height: 50px;
    background: rgba(227, 24, 55, 0.1);
    color: var(--primary-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: var(--transition-normal);
}

.contact-social a:hover {
    transform: scale(1.1);
}

.social-facebook {
    background: rgba(24, 119, 242, 0.1) !important;
    color: #1877F2 !important;
}

.social-facebook:hover {
    background: #1877F2 !important;
    color: white !important;
}

.social-instagram {
    background: rgba(253, 204, 99, 0.1) !important;
    color: #FDCC63 !important;
}

.social-instagram:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888) !important;
    color: white !important;
}

.contact-form {
    position: relative;
}

.form-group {
    position: relative;
    margin-bottom: 30px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: var(--card-bg);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    color: white;
    font-size: 16px;
    font-family: var(--font-primary);
    transition: var(--transition-normal);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: var(--glow-red);
}

.form-group label {
    position: absolute;
    top: 15px;
    left: 15px;
    color: var(--text-gray);
    transition: var(--transition-normal);
    pointer-events: none;
}

.form-group input:focus + label,
.form-group input:valid + label,
.form-group textarea:focus + label,
.form-group textarea:valid + label {
    top: -10px;
    left: 10px;
    font-size: 12px;
    background: var(--dark-bg);
    padding: 0 5px;
    color: var(--primary-red);
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: var(--primary-red);
    color: white;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 50px;
    transition: var(--transition-normal);
}

.submit-btn:hover {
    background: #c71530;
    box-shadow: var(--glow-red);
    transform: translateY(-2px);
}

.form-success {
    display: none;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: rgba(34, 197, 94, 0.1);
    border: 2px solid #22c55e;
    border-radius: 10px;
    margin-top: 20px;
}

.form-success.show {
    display: flex;
}

.form-success i {
    font-size: 24px;
    color: #22c55e;
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    background: var(--card-bg);
    padding: 60px 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand {
    max-width: 350px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.footer-logo-img {
    height: 120px;
    width: auto;
    object-fit: contain;
}

.footer-brand p {
    color: var(--text-gray);
    line-height: 1.6;
}

.footer-links h4 {
    font-size: 18px;
    margin-bottom: 20px;
}

.footer-links a {
    display: block;
    color: var(--text-gray);
    margin-bottom: 10px;
    transition: var(--transition-normal);
}

.footer-links a:hover {
    color: var(--primary-red);
    padding-left: 5px;
}

.footer-social h4 {
    font-size: 18px;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(227, 24, 55, 0.1);
    color: var(--primary-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: var(--transition-normal);
}

.social-links a:hover {
    background: var(--primary-red);
    color: white;
    transform: scale(1.1);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-gray);
    font-size: 14px;
}

/* ==========================================
   SCROLL TO TOP BUTTON
   ========================================== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-red);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
    z-index: 9999;
    box-shadow: 0 5px 20px rgba(227, 24, 55, 0.5);
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: #c71530;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(227, 24, 55, 0.7);
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

/* Tablets */
@media (max-width: 1024px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 60px;
        margin-right: 0;
        text-align: left;
        width: calc(100% - 60px);
    }
}

/* Mobile */
@media (max-width: 768px) {
    /* Navigation */
    .navbar {
        padding: 10px 0;
    }

    .nav-menu {
        position: fixed;
        top: 120px;
        right: -100%;
        width: 250px;
        height: calc(100vh - 120px);
        background: rgba(10, 10, 10, 0.98);
        flex-direction: column;
        padding: 30px;
        transition: var(--transition-normal);
        backdrop-filter: blur(10px);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .nav-logo-img {
        height: 100px;
    }

    .language-switcher {
        display: none;
    }

    .language-switcher-mobile {
        display: block;
        margin-top: 20px;
        padding-top: 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .language-switcher-mobile .lang-btn {
        width: 100%;
        justify-content: flex-start;
        padding: 10px;
    }

    .language-switcher-mobile .flag-icon {
        width: 28px;
        height: 28px;
    }

    .language-switcher-mobile .flag-label {
        font-size: 14px;
    }

    .nav-toggle {
        z-index: 10001;
        position: relative;
    }

    .nav-toggle span {
        background: var(--text-white);
        box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
    }

    /* Gallery */
    .desktop-gallery {
        display: none;
    }
    
    .mobile-gallery {
        display: block;
    }
    
    /* Other sections */
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .car-slide {
        min-width: 100%;
        padding: 0;
        height: auto;
    }

    .car-slide img {
        aspect-ratio: 4/5;
        height: auto;
    }

    .car-carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .car-prev {
        left: 10px;
    }

    .car-next {
        right: 10px;
    }

    .gallery-carousel-track {
        gap: 0;
    }

    .gallery-slide {
        width: 100%;
        min-width: 100%;
        height: auto;
    }

    .gallery-slide img {
        aspect-ratio: 1 / 1;
    }

    .gallery-carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .gallery-prev {
        left: 10px;
    }

    .gallery-next {
        right: 10px;
    }
    
    .team-slide {
        min-width: 100%;
        padding: 10px;
    }

    .team-carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .team-prev {
        left: 5px;
    }

    .team-next {
        right: 5px;
    }

    .team-slide-overlay {
        padding: 20px;
    }

    .team-slide-overlay p {
        font-size: 12px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-brand {
        max-width: 100%;
        margin: 0 auto;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    section {
        padding: var(--spacing-lg) 0;
    }
    
    .hero-stats-mini {
        gap: 20px;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .cta-btn {
        width: 100%;
    }
}

/* ==========================================
   SCHEDULE 2026 SECTION
   ========================================== */
.schedule-section {
    background: linear-gradient(135deg, var(--dark-bg) 0%, #1a1a1a 100%);
    padding: var(--spacing-xl) 0;
    position: relative;
    overflow: hidden;
}

.schedule-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-red), transparent);
}

.schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: var(--spacing-lg);
}

.race-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 25px;
    border: 2px solid transparent;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.race-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--primary-red);
    transform: scaleY(0);
    transition: transform var(--transition-normal);
}

.race-card:hover {
    border-color: var(--primary-red);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(227, 24, 55, 0.3);
}

.race-card:hover::before {
    transform: scaleY(1);
}

.race-number {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-red), #ff4560);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    box-shadow: 0 5px 15px rgba(227, 24, 55, 0.4);
}

.race-date {
    margin-bottom: 15px;
}

.date-day {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-yellow);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.race-track {
    margin-bottom: 20px;
    padding-right: 60px;
}

.race-track h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--text-white);
    margin-bottom: 8px;
    line-height: 1.3;
}

.race-location {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-gray);
    font-size: 0.95rem;
}

.race-location i {
    color: var(--primary-red);
    font-size: 0.9rem;
}

.race-info {
    display: flex;
    gap: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.race-time,
.race-tv {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: var(--text-white);
}

.race-time i,
.race-tv i {
    color: var(--primary-blue);
    font-size: 1rem;
}

.race-tv span {
    background: linear-gradient(135deg, var(--primary-blue), #0088ff);
    padding: 4px 12px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.schedule-footer {
    text-align: center;
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.schedule-footer p {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 20px;
}

.schedule-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    background: linear-gradient(135deg, var(--primary-red), #ff4560);
    color: white;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--transition-normal);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.schedule-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(227, 24, 55, 0.4);
}

.schedule-link i {
    font-size: 0.9rem;
    transition: transform var(--transition-normal);
}

.schedule-link:hover i {
    transform: translateX(5px);
}

/* Responsive Design for Schedule */
@media (max-width: 768px) {
    .schedule-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .race-card {
        padding: 20px;
    }

    .race-track h3 {
        font-size: 1.1rem;
    }

    .race-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .race-info {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .schedule-section {
        padding: var(--spacing-lg) 0;
    }

    .race-track {
        padding-right: 50px;
    }

    .race-track h3 {
        font-size: 1rem;
    }

    .schedule-link {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}