
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&family=Inter:wght@300;400;600;800&display=swap');

:root {
    --primary-color: #ff9d00; /* Endurance Amber */
    --primary-hover: #ffb700;
    --secondary-color: #222;
    --background-color: #f8f9fa;
    --card-bg-color: #ffffff;
    --text-color: #111;
    --text-secondary-color: #666;
    --header-bg: #111;
    --header-text: #ffffff;
    --font-family-headings: 'Orbitron', sans-serif;
    --font-family-body: 'Inter', sans-serif;
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(0, 0, 0, 0.05);
    --card-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

[data-theme="dark"] {
    --background-color: #080808;
    --card-bg-color: #121212;
    --text-color: #eee;
    --text-secondary-color: #999;
    --header-bg: #000;
    --glass-bg: rgba(18, 18, 18, 0.8);
    --glass-border: rgba(255, 255, 255, 0.05);
    --card-shadow: 0 10px 40px rgba(0,0,0,0.4);
}

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

body {
    font-family: var(--font-family-body);
    background-color: var(--background-color);
    color: var(--text-color);
    transition: all 0.4s ease;
    line-height: 1.6;
}

header {
    background-color: var(--header-bg);
    color: var(--header-text);
    padding: 1rem 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(10px);
}

header h1 a {
    font-family: var(--font-family-headings);
    font-size: 1.5rem;
    text-decoration: none;
    color: var(--primary-color);
    letter-spacing: 2px;
}

nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-button {
    background: none;
    border: none;
    color: #888;
    font-family: var(--font-family-headings);
    font-size: 0.8rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.3s;
    padding: 0.5rem 0;
    position: relative;
}

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

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

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

#theme-toggle {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.7rem;
    cursor: pointer;
    font-family: var(--font-family-headings);
}

/* Hero Section */
.hero {
    height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), 
                url('https://images.unsplash.com/photo-1600706432502-77a0e2e32771?auto=format&fit=crop&q=80&w=2070') center/cover;
    color: white;
    padding: 0 10%;
}

.hero h2 {
    font-family: var(--font-family-headings);
    font-size: clamp(2rem, 8vw, 4rem);
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.1rem;
    max-width: 800px;
    margin-bottom: 2.5rem;
    font-weight: 300;
    opacity: 0.9;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-cta {
    background: var(--primary-color);
    color: #000;
    padding: 1rem 2.5rem;
    border: 2px solid var(--primary-color);
    border-radius: 2px;
    text-decoration: none;
    font-family: var(--font-family-headings);
    font-weight: bold;
    font-size: 0.8rem;
    cursor: pointer;
    transition: 0.3s;
}

.hero-cta.secondary {
    background: transparent;
    color: white;
    border-color: white;
}

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

/* Race Cards */
.race-card {
    border-left: 5px solid var(--primary-color);
    border-top: none;
}

.race-location {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

/* Timeline for History */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--glass-border);
}

.timeline-item {
    display: flex;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-year {
    min-width: 100px;
    font-family: var(--font-family-headings);
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1.2rem;
    padding-top: 0.5rem;
}

.timeline-content {
    background: var(--card-bg-color);
    padding: 2rem;
    box-shadow: var(--card-shadow);
    flex-grow: 1;
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 25px;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    transform: translateX(-50%);
}

.timeline-content h3 {
    font-family: var(--font-family-headings);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 1rem;
    }
    
    nav {
        margin-top: 1rem;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    nav ul {
        gap: 0.5rem;
    }

    .nav-button {
        font-size: 0.7rem;
    }

    .timeline::before {
        left: 20px;
    }
    .timeline-year {
        min-width: 60px;
        font-size: 0.9rem;
    }
}

/* Content Sections */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 5%;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-family: var(--font-family-headings);
    font-size: 2.5rem;
    color: var(--primary-color);
    display: inline-block;
    border-bottom: 4px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

/* Cards Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.info-card {
    background: var(--card-bg-color);
    padding: 2.5rem;
    border-radius: 0;
    box-shadow: var(--card-shadow);
    border-top: 5px solid var(--primary-color);
    transition: 0.3s;
}

.info-card:hover {
    transform: translateY(-10px);
}

.info-card h3 {
    font-family: var(--font-family-headings);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.info-card p {
    font-size: 0.95rem;
    color: var(--text-secondary-color);
}

.info-card .tag {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background: rgba(255, 157, 0, 0.1);
    color: var(--primary-color);
    font-size: 0.7rem;
    font-weight: bold;
    margin-bottom: 1rem;
    font-family: var(--font-family-headings);
}

/* Contact Form Styles */
.form-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--card-bg-color);
    padding: 3rem;
    box-shadow: var(--card-shadow);
    border-top: 5px solid var(--primary-color);
}

.contact-form {
    display: grid;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-family: var(--font-family-headings);
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-secondary-color);
}

.form-group input, 
.form-group select, 
.form-group textarea {
    padding: 1rem;
    background: var(--background-color);
    border: 1px solid var(--glass-border);
    color: var(--text-color);
    font-family: var(--font-family-body);
    font-size: 1rem;
    transition: 0.3s;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(255, 157, 0, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.submit-button {
    background: var(--primary-color);
    color: #000;
    padding: 1rem;
    border: none;
    font-family: var(--font-family-headings);
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
}

.submit-button:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

/* Footer Styles */
.main-footer {
    background-color: var(--header-bg);
    color: white;
    padding: 4rem 5% 2rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3, .footer-section h4 {
    font-family: var(--font-family-headings);
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-section p {
    font-size: 0.9rem;
    color: #888;
}

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

.footer-section .nav-button {
    text-align: left;
    display: block;
    width: 100%;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: 0.8rem;
    color: #666;
}

/* Content Text Styles */
.content-text p {
    margin-bottom: 1.5rem;
}

.content-text h3 {
    font-family: var(--font-family-headings);
    color: var(--primary-color);
    margin: 2rem 0 1rem;
}

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

.animate-fade {
    animation: fadeIn 0.8s ease forwards;
}
