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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo h2 {
    color: #fff;
    font-weight: 700;
    font-size: 1.5rem;
}

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

.nav-link {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #d5001c;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #d5001c;
    transition: width 0.3s ease;
}

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: #fff;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: linear-gradient(135deg, #1a1a1a, #333);
}

.hero-graphic {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.3;
}

.racing-car-silhouette {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 150px;
    background: linear-gradient(45deg, #d5001c, #ff4757);
    clip-path: polygon(0% 70%, 15% 70%, 20% 50%, 25% 40%, 35% 35%, 45% 30%, 55% 30%, 65% 35%, 75% 40%, 80% 50%, 85% 70%, 100% 70%, 100% 85%, 0% 85%);
    animation: carFloat 3s ease-in-out infinite;
}

.track-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(90deg, transparent 48%, #d5001c 49%, #d5001c 51%, transparent 52%),
        linear-gradient(0deg, transparent 48%, rgba(213, 0, 28, 0.3) 49%, rgba(213, 0, 28, 0.3) 51%, transparent 52%);
    background-size: 100px 100px;
    animation: trackMove 10s linear infinite;
}

@keyframes carFloat {
    0%, 100% { transform: translate(-50%, -50%) translateY(0px); }
    50% { transform: translate(-50%, -50%) translateY(-10px); }
}

@keyframes trackMove {
    0% { background-position: 0 0; }
    100% { background-position: 100px 100px; }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(213, 0, 28, 0.3));
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
    animation: fadeInUp 1s ease;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #d5001c;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.8;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #d5001c, #ff4757);
    color: #fff;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(213, 0, 28, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(213, 0, 28, 0.4);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg);
}

/* Section Styles */
section {
    padding: 100px 0;
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
}

.section-divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #d5001c, #ff4757);
    margin: 0 auto;
    border-radius: 2px;
}

/* About Section */
.about {
    background: #f8f9fa;
}

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

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #666;
    line-height: 1.8;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.stat-item {
    text-align: center;
    padding: 30px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: #d5001c;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: #666;
}

/* Format Section */
.format-content {
    max-width: 1000px;
    margin: 0 auto;
}

.subsection-title {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
}

.subsection-description {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 40px;
    line-height: 1.8;
}

.qualifying-rounds {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 60px;
}

.round-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 30px;
    align-items: center;
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.round-number {
    font-size: 2rem;
    font-weight: 800;
    color: #d5001c;
    background: rgba(213, 0, 28, 0.1);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.round-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

.round-track {
    font-size: 1.1rem;
    font-weight: 600;
    color: #d5001c;
    margin-bottom: 10px;
}

.round-description {
    color: #666;
    line-height: 1.6;
}

.round-icon {
    width: 120px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.track-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    position: relative;
}

.bathurst-icon {
    background: linear-gradient(135deg, #28a745, #20c997);
    position: relative;
}

.bathurst-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    box-shadow: 0 -8px 0 #fff, 0 8px 0 #fff;
}

.nurburgring-icon {
    background: linear-gradient(135deg, #198754, #157347);
    position: relative;
}

.nurburgring-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border: 3px solid #fff;
    border-radius: 50%;
    border-top-color: transparent;
    border-right-color: transparent;
}

.lemans-icon {
    background: linear-gradient(135deg, #0d6efd, #0b5ed7);
    position: relative;
}

.lemans-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 35px;
    height: 20px;
    border: 3px solid #fff;
    border-radius: 20px;
}

.finals-section {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 15px;
}

.finals-tracks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.track-item {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.track-item h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.track-item p {
    color: #666;
    line-height: 1.6;
}

/* Champions Section */
.champions {
    background: #f8f9fa;
}

.champion-spotlight {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.champion-name {
    font-size: 2.2rem;
    font-weight: 800;
    color: #333;
    margin-bottom: 10px;
}

.champion-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #d5001c;
    margin-bottom: 5px;
}

.champion-country {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
}

.champion-description p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.8;
}

.champion-achievement {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    border-left: 4px solid #d5001c;
    margin-top: 30px;
}

.champion-achievement h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.champion-achievement p {
    color: #666;
    line-height: 1.6;
}

.champion-visual {
    text-align: center;
}

.trophy-icon {
    font-size: 6rem;
    margin-bottom: 30px;
}

.champion-stats {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stat {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: #d5001c;
}

.stat-label {
    font-size: 1rem;
    color: #666;
    font-weight: 600;
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 16/10;
    cursor: pointer;
    transition: transform 0.3s ease;
}

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

.car-infographic,
.racing-infographic {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: transform 0.3s ease;
}

.porsche-918 {
    background: linear-gradient(135deg, #d5001c, #ff4757);
    position: relative;
}

.porsche-918::before {
    content: '918';
    position: absolute;
    color: #fff;
    font-size: 2rem;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.porsche-918::after {
    content: '';
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 30px;
    background: rgba(255,255,255,0.2);
    clip-path: polygon(0% 70%, 15% 70%, 20% 50%, 25% 40%, 35% 35%, 45% 30%, 55% 30%, 65% 35%, 75% 40%, 80% 50%, 85% 70%, 100% 70%, 100% 85%, 0% 85%);
}

.porsche-911 {
    background: linear-gradient(135deg, #0d6efd, #0b5ed7);
    position: relative;
}

.porsche-911::before {
    content: '911';
    position: absolute;
    color: #fff;
    font-size: 2rem;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.porsche-911::after {
    content: '';
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 30px;
    background: rgba(255,255,255,0.2);
    clip-path: polygon(0% 70%, 15% 70%, 20% 50%, 25% 40%, 35% 35%, 45% 30%, 55% 30%, 65% 35%, 75% 40%, 80% 50%, 85% 70%, 100% 70%, 100% 85%, 0% 85%);
}

.porsche-919 {
    background: linear-gradient(135deg, #198754, #20c997);
    position: relative;
}

.porsche-919::before {
    content: '919';
    position: absolute;
    color: #fff;
    font-size: 2rem;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.porsche-919::after {
    content: '';
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 30px;
    background: rgba(255,255,255,0.2);
    clip-path: polygon(0% 60%, 10% 60%, 15% 40%, 20% 30%, 30% 25%, 40% 20%, 60% 20%, 70% 25%, 80% 30%, 85% 40%, 90% 60%, 100% 60%, 100% 80%, 0% 80%);
}

.virtual-racing {
    background: linear-gradient(135deg, #6f42c1, #8e44ad);
    position: relative;
}

.virtual-racing::before {
    content: '🎮';
    position: absolute;
    font-size: 3rem;
}

.championship {
    background: linear-gradient(135deg, #fd7e14, #e76f00);
    position: relative;
}

.championship::before {
    content: '🏆';
    position: absolute;
    font-size: 3rem;
}

.excellence {
    background: linear-gradient(135deg, #20c997, #17a2b8);
    position: relative;
}

.excellence::before {
    content: '⚡';
    position: absolute;
    font-size: 3rem;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: #fff;
    padding: 30px 20px 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

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

.gallery-overlay h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.gallery-overlay p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* News Section */
.news {
    background: #f8f9fa;
    text-align: center;
}

.news-content {
    max-width: 600px;
    margin: 0 auto;
}

.news-content p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 40px;
    line-height: 1.8;
}

.blog-button {
    display: inline-block;
    background: linear-gradient(135deg, #333, #555);
    color: #fff;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.blog-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.blog-description {
    color: #666;
    font-style: italic;
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
}

.contact-info p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.8;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-item {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-3px);
}

.contact-item h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.contact-item p {
    color: #666;
    margin: 0;
}

/* Footer */
.footer {
    background: #333;
    color: #fff;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 20px;
    font-weight: 700;
}

.footer-section h3 {
    font-size: 1.5rem;
    color: #d5001c;
}

.footer-section h4 {
    font-size: 1.2rem;
}

.footer-section p {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 15px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #d5001c;
}

.footer-bottom {
    border-top: 1px solid #555;
    padding-top: 20px;
    text-align: center;
    color: #ccc;
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(0, 0, 0, 0.95);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 30px 0;
        gap: 1rem;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-stats {
        flex-direction: row;
        justify-content: space-around;
    }
    
    .round-card {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .round-image {
        width: 100%;
        height: 200px;
    }
    
    .finals-tracks {
        grid-template-columns: 1fr;
    }
    
    .champion-spotlight {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media screen and (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .cta-button {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .about-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
}

