:root {
    /* Bright blue racing color palette */
    --primary-blue: #1976d2;
    --electric-blue: #2196f3;
    --bright-cyan: #00bcd4;
    --accent-blue: #3f51b5;
    --white: #ffffff;
    --light-gray: #f5f5f5;
    --dark-gray: #333333;
    --black: #000000;
    --shadow: rgba(0, 0, 0, 0.1);
    --gradient: linear-gradient(135deg, var(--primary-blue) 0%, var(--electric-blue) 100%);
}

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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background: var(--white);
}

/* Header */
.header {
    background: var(--gradient);
    color: var(--white);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px var(--shadow);
}

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

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

.logo img {
    height: 70px;
    width: auto;
    border-radius: 10px;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.nav-links {
    display: flex;
    gap: 0.25rem;
    list-style: none;
    align-items: center;
}

.nav-links li:not(:last-child)::after {
    content: "|";
    color: var(--white);
    margin-left: 0.25rem;
    opacity: 0.6;
    font-weight: 300;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 0.25rem;
    z-index: 101;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background: var(--white);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-btn.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('images/2025-group-photo.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
    padding: 2rem 2rem 3rem 2rem;
    min-height: 47vh;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.hero-content h2 {
    font-size: 4rem;
    margin-bottom: 1rem;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.5);
    animation: slideInDown 1s ease-out;
}

.hero-content p {
    font-size: 1.5rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    animation: slideInUp 1s ease-out 0.3s both;
}

.cta-button {
    display: inline-block;
    background: var(--bright-cyan);
    color: var(--white);
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 188, 212, 0.3);
    animation: slideInUp 1s ease-out 0.6s both;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 188, 212, 0.4);
}

/* Main Content */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-blue);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: var(--gradient);
    margin: 1rem auto;
    border-radius: 2px;
}

.results-intro {
    text-align: center;
    font-size: 1.0rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    padding: 1.5rem;
    background: rgba(25, 118, 210, 0.05);
    border-left: 4px solid var(--primary-blue);
    border-radius: 8px;
    line-height: 1.6;
}

.results-intro strong {
    color: var(--primary-blue);
    font-weight: bold;
}

/* About Section */
.about {
    background: var(--light-gray);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    align-items: center;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-text p {
    margin-bottom: 1.5rem;
}

.trophy-image {
    text-align: center;
}

.trophy-image img {
    max-width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow);
}

/* Results Section */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.result-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow);
    transition: transform 0.3s ease;
}

.result-card:hover {
    transform: translateY(-5px);
}

.result-card-header {
    background: var(--gradient);
    color: var(--white);
    padding: 1.5rem;
    text-align: center;
}

.result-card-header h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.result-card-content {
    padding: 1.5rem;
}

.podium {
    list-style: none;
    margin-bottom: 1rem;
}

.podium li {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    font-weight: 500;
}

.podium li:nth-child(1) {
    background: linear-gradient(90deg, #ffd700, #ffed4e);
    color: var(--black);
}

.podium li:nth-child(2) {
    background: linear-gradient(90deg, #c0c0c0, #e8e8e8);
    color: var(--black);
}

.podium li:nth-child(3) {
    background: linear-gradient(90deg, #cd7f32, #daa520);
    color: var(--white);
}

.podium li::before {
    content: counter(list-counter);
    counter-increment: list-counter;
    background: rgba(0,0,0,0.2);
    color: var(--white);
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-weight: bold;
    font-size: 0.9rem;
}

.podium {
    counter-reset: list-counter;
}

.sponsors {
    font-size: 0.9rem;
    color: var(--dark-gray);
    border-top: 1px solid #eee;
    padding-top: 1rem;
    margin-top: 1rem;
}

.sponsors strong {
    color: var(--primary-blue);
}

/* Carousel Styles */
.carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 15px;
}

.carousel-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 33.333%;
    display: flex;
    justify-content: center;
    padding: 0 0.5rem;
}

.carousel-slide .result-card {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.carousel-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
}

.carousel-btn {
    background: var(--gradient);
    color: var(--white);
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(25, 118, 210, 0.3);
}

.carousel-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(25, 118, 210, 0.4);
}

.carousel-btn:disabled {
    background: var(--light-gray);
    color: var(--dark-gray);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--light-gray);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: var(--primary-blue);
    transform: scale(1.2);
}

.year-navigation {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.year-btn {
    background: var(--white);
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

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

.year-btn.no-event {
    background: var(--light-gray);
    color: var(--dark-gray);
    border-color: var(--light-gray);
    cursor: not-allowed;
}

/* Gallery Section */
.gallery {
    background: var(--light-gray);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow);
    transition: transform 0.3s ease;
}

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

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

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

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: var(--white);
    padding: 2rem 1rem 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

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

/* Footer */
.footer {
    background: var(--dark-gray);
    color: var(--white);
    text-align: center;
    padding: 2rem 0;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--bright-cyan);
    text-decoration: none;
    font-weight: 500;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        padding: 1rem;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 250px;
        height: 100vh;
        background: var(--gradient);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 5rem 0 2rem 0;
        gap: 0;
        box-shadow: -5px 0 15px rgba(0,0,0,0.3);
        transition: right 0.3s ease;
        z-index: 100;
    }

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

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .nav-links li::after {
        display: none;
    }

    .nav-links a {
        display: block;
        padding: 1rem 2rem;
        border-radius: 0;
        width: 100%;
        text-align: left;
        font-size: 1.1rem;
    }

    .nav-links a:hover {
        background: rgba(255, 255, 255, 0.1);
        transform: none;
    }

    .hero-content h2 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .results-grid {
        grid-template-columns: 1fr;
    }

    .carousel-slide {
        min-width: 100%;
    }

    .carousel-slide .result-card {
        max-width: 100%;
    }

    .year-navigation {
        gap: 0.5rem;
    }

    .year-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .carousel-slide {
        min-width: 50%;
    }
}

/* Animations */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}