:root {
    --bg-color: #1a1a1a;
    --accent-blue: #0066b2;
    --text-light: #f4f4f4;
    --bmw-blue: #0066b2;
    --bmw-red: #e30613;
    --bmw-dark-blue: #003366;
    --bg-dark: #121212;
    --card-bg: #1e1e1e;
}

body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-light);
    overflow-x: hidden;
    width: 100%;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: rgba(0,0,0,0.9);
    position: fixed;
    width: 90%;
    z-index: 1000;
}

.logo img { height: 60px; }

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

nav a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    transition: color 0.3s;
}

nav a:hover { color: var(--accent-blue); }

.hero {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), 
                url('https://images.unsplash.com/photo-1558981403-c5f91cbba527?auto=format&fit=crop&w=1350&q=80') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px;
}

.hero-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    margin-bottom: 2rem;
    border-bottom: 4px solid var(--bmw-blue);
}

.sponsors {
    padding: 2rem 0;
    background: #3b3b3b;
    color: #d8d8d8;
    overflow: hidden;
}

.sponsors h3 { text-align: center; margin-bottom: 1rem; }

.slider {
    width: 100%;
    height: 100px;
    position: relative;
    display: flex;
    overflow: hidden;
}

.slide-track {
    display: flex;
    gap: 10px;
    width: max-content;
    animation: scroll 50s linear infinite;
}

.slide {
    width: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide img {
    width: 150px;
    filter: grayscale(100%);
    transition: filter 0.3s;
}

.slide img:hover { filter: grayscale(0%); }

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.about-hero {
    height: 40vh;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), 
                url('https://via.placeholder.com/1920x600?text=Track+Background');
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
}

.bio-section { padding: 4rem 0; background: #1a1a1a; }

.bio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.bio-image img {
    width: 100%;
    border-left: 5px solid var(--accent-blue);
    box-shadow: 20px 20px 0px rgba(0, 102, 178, 0.1);
}

.bio-text h2 { color: var(--accent-blue); font-size: 2.5rem; }

.stats-list {
    list-style: none;
    padding: 0;
}

.stats-list li {
    padding: 10px 0;
    border-bottom: 1px solid #333;
}

.racer-quote {
    margin-top: 2rem;
    font-style: italic;
    border-left: 3px solid #fff;
    padding-left: 20px;
    color: #ccc;
}

.bike-specs { padding: 4rem 0; background: #000; text-align: center; }

.section-title {
    font-size: 2.5rem;
    letter-spacing: 2px;
    margin-bottom: 3rem;
    text-transform: uppercase;
    background: linear-gradient(90deg, #fff, var(--bmw-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    padding: 20px;
}

.spec-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #333;
    text-align: left;
    position: relative;
    overflow: hidden;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.spec-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--bmw-blue);
    transition: width 0.3s ease;
}

.spec-card:hover {
    transform: scale(1.05);
    border-color: var(--bmw-blue);
}

.spec-card:hover::before {
    width: 100%;
    opacity: 0.1;
}

.spec-icon {
    font-size: 2rem;
    margin-bottom: 15px;
}

.spec-card h4 {
    color: var(--accent-blue);
    margin: 10px 0;
    font-size: 1.2rem;
    text-transform: uppercase;
}

.spec-card p {
    color: var(--bmw-blue);
    font-weight: bold;
    font-size: 1.1rem;
    margin: 5px 0;
}

.spec-card small {
    color: #888;
    display: block;
    font-size: 0.85rem;
}

.career-stats {
    padding: 4rem 0;
    background: #111;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
    color: #fff;
    min-width: 500px;
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #333;
}

th {
    background-color: var(--bmw-blue);
    text-transform: uppercase;
    letter-spacing: 1px;
}

tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.support-initiative {
    padding: 5rem 0;
    background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)), url('paddock-photo.jpg') center/cover;
}

.initiative-card {
    background: rgba(0, 102, 178, 0.9);
    padding: 40px;
    border-radius: 4px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.initiative-card h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: #fff;
}

.initiative-card p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.cta-btn.blue {
    background: #fff;
    color: var(--bmw-blue);
    padding: 15px 30px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 2px;
    transition: 0.3s;
}

.cta-btn.blue:hover {
    background: #000;
    color: #fff;
}

.highlight {
    color: var(--bmw-blue);
}

.caption {
    font-size: 0.8rem;
    color: #888;
    margin-top: 10px;
    font-style: italic;
}

.contact-hero {
    height: 30vh;
    background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)), url('assests/chris/paddock.jpg') center/cover;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
}

.contact-main {
    padding: 5rem 0;
    background: var(--bg-color);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.contact-info h2 {
    color: var(--bmw-blue);
    margin-bottom: 1.5rem;
}

.info-item {
    margin-bottom: 1.5rem;
}

.info-item strong {
    display: block;
    color: var(--accent-blue);
    font-size: 0.9rem;
    text-transform: uppercase;
}

.social-links h3 {
    margin-top: 3rem;
    font-size: 1rem;
    border-bottom: 1px solid #333;
    padding-bottom: 0.5rem;
}

.social-icons {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

.social-icons a {
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: var(--bmw-red);
}

.contact-form-container {
    background: #252525;
    padding: 40px;
    border-radius: 4px;
    border-top: 4px solid var(--bmw-blue);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    color: #888;
}

.form-group input, 
.form-group textarea, 
.form-group select {
    width: 100%;
    padding: 12px;
    background: #1a1a1a;
    border: 1px solid #333;
    color: #fff;
    font-family: inherit;
    border-radius: 2px;
}

.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--bmw-blue);
}

.contact-centered {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 0;
}

.contact-card {
    background: #252525;
    padding: 60px;
    border-radius: 8px;
    border-left: 6px solid var(--bmw-blue);
    max-width: 700px;
    width: 100%;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.contact-card h2 {
    color: var(--bmw-blue);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.info-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
}

.info-item strong {
    display: block;
    color: var(--bmw-red);
    font-size: 0.8rem;
    margin-bottom: 5px;
}

.email-link {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.email-link:hover {
    color: var(--bmw-blue);
}

.social-pills {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.pill {
    padding: 10px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    color: #fff;
    font-size: 0.9rem;
    transition: transform 0.3s, background 0.3s;
}

.pill.instagram { background: #e1306c; }
.pill.tiktok { background: #000; border: 1px solid #fff; }

.pill:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

.support-footer {
    margin-top: 40px;
    padding: 20px;
    background: rgba(0, 102, 178, 0.1);
    border-radius: 4px;
    font-size: 0.95rem;
}

.mission-statement {
    padding: 6rem 0;
    background: #1a1a1a;
    border-top: 1px solid #333;
    width: 100%;
}

.mission-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    width: 90%;
}

.tag {
    color: var(--bmw-red);
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 2px;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 1rem;
}

.mission-text h2 {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.mission-text p {
    font-size: 1.1rem;
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.text-link {
    color: var(--bmw-blue);
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    border-bottom: 2px solid transparent;
    transition: 0.3s;
}

.text-link:hover {
    border-bottom: 2px solid var(--bmw-blue);
}

.mission-stats {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 2rem;
    background: #222;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--bmw-blue);
}

.stat-label {
    text-transform: uppercase;
    color: #888;
    letter-spacing: 1px;
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        width: 100%;
        padding: 1rem 0;
        position: relative;
    }
    nav ul {
        margin-top: 1rem;
        gap: 0.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    .hero {
        height: auto;
        padding: 120px 5% 40px 5%;
    }
    .hero-image {
        max-width: 100%;
    }
    .mission-grid, .bio-grid, .contact-grid, .info-group {
        grid-template-columns: 1fr !important;
        width: 100%;
        gap: 2rem;
        box-sizing: border-box;
    }
    .mission-text {
        text-align: center;
        width: 100%;
    }
    .mission-text h2 {
        font-size: 2rem;
    }
    .mission-stats {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
        padding: 1rem;
    }
    .stat-item {
        min-width: 100px;
    }
    .bio-text h2, .section-title {
        font-size: 1.8rem;
    }
    .initiative-card {
        padding: 20px;
        width: 90%;
    }
    .contact-card {
        padding: 20px;
        width: 95%;
        box-sizing: border-box;
    }
    .social-pills {
        flex-direction: column;
    }
}