/* Style: Carbon Race (Dark, Red, Carbon) */
:root {
    --bg-dark: #121212;
    --bg-panel: #1e1e1e;
    --red: #FF0000;
    --dark-red: #cc0000;
    --white: #ffffff;
    --grey: #aaaaaa;
    --carbon: #111; /* Simplify carbon texture with dark color */
    
    --font-head: 'Racing Sans One', cursive;
    --font-body: 'Roboto', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-dark);
    color: var(--white);
    font-family: var(--font-body);
    line-height: 1.5;
}

.container { width: 95%; max-width: 1200px; margin: 0 auto; }
.section-padding { padding: 100px 0; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
img { max-width: 100%; height: auto; display: block; }

/* Nav */
.race-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: rgba(0,0,0,0.9);
    border-bottom: 2px solid var(--red);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo { font-family: var(--font-head); font-size: 2rem; color: var(--white); letter-spacing: 1px; }
.red { color: var(--red); font-style: italic; }

.nav-items { display: flex; align-items: center; gap: 30px; }
.nav-items a { font-weight: 700; font-size: 0.9rem; letter-spacing: 1px; color: var(--grey); }
.nav-items a:hover, .nav-items a.active { color: var(--white); text-shadow: 0 0 10px var(--red); }

.btn-race { background: var(--red); color: var(--white) !important; padding: 10px 20px; border-radius: 4px; transform: skew(-10deg); }
.btn-race:hover { background: var(--dark-red); }

.mobile-toggle { display: none; background: none; border: none; color: var(--red); font-size: 2rem; font-weight: 700; cursor: pointer; }

/* Mobile Overlay */
.mobile-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: var(--bg-dark); z-index: 2000; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 30px; transform: translateX(100%); transition: 0.3s; border-left: 5px solid var(--red); }
.mobile-overlay.active { transform: translateX(0); }
.mobile-overlay a { font-family: var(--font-head); font-size: 2.5rem; color: var(--white); text-transform: uppercase; }
.close-overlay { position: absolute; top: 20px; right: 20px; color: var(--red); background: none; border: 2px solid var(--red); padding: 5px 10px; font-weight: 700; cursor: pointer; }

/* Hero */
.hero-race { height: 90vh; background-size: cover; background-position: center; position: relative; }
.carbon-overlay { width: 100%; height: 100%; background: linear-gradient(to right, rgba(0,0,0,0.9), rgba(0,0,0,0.3)); display: flex; align-items: center; }
.hero-data { margin-left: 10%; max-width: 600px; }

.rpm-meter { border: 2px solid var(--red); width: 100px; height: 100px; border-radius: 50%; display: flex; flex-direction: column; justify-content: center; align-items: center; margin-bottom: 20px; box-shadow: 0 0 20px rgba(255,0,0,0.3); }
.rpm-val { font-family: var(--font-head); font-size: 1.5rem; color: var(--red); line-height: 1; }
.rpm-label { font-size: 0.7rem; color: var(--grey); }

.hero-data h1 { font-family: var(--font-head); font-size: 4rem; line-height: 1; margin-bottom: 20px; text-transform: uppercase; font-style: italic; }
.hero-data p { font-size: 1.2rem; color: var(--grey); margin-bottom: 40px; }

.stats-row { display: flex; gap: 30px; margin-bottom: 40px; }
.stat strong { display: block; font-family: var(--font-head); font-size: 2.5rem; color: var(--red); line-height: 1; }
.stat span { font-size: 0.8rem; color: var(--grey); }

.btn-start { display: inline-block; background: transparent; border: 2px solid var(--white); color: var(--white); padding: 15px 40px; font-family: var(--font-head); font-size: 1.2rem; transition: 0.3s; }
.btn-start:hover { background: var(--white); color: var(--bg-dark); border-color: var(--white); }

/* Brands Strip */
.brands-strip { background: var(--red); color: var(--white); padding: 15px 0; display: flex; justify-content: space-around; font-family: var(--font-head); font-size: 1.2rem; overflow: hidden; white-space: nowrap; }

/* Mods Grid */
.section-header h1 { font-family: var(--font-head); font-size: 3rem; margin-bottom: 10px; }
.red-bar { width: 100px; height: 5px; background: var(--red); margin-bottom: 50px; }
.red-bar.left { margin: 20px 0 40px; }

.mods-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.mod-card { background: var(--bg-panel); border: 1px solid #333; overflow: hidden; transition: 0.3s; }
.mod-card:hover { transform: translateY(-5px); border-color: var(--red); }
.mod-img { position: relative; height: 250px; }
.mod-img img { width: 100%; height: 100%; object-fit: cover; opacity: 0.8; transition: 0.3s; }
.mod-card:hover img { opacity: 1; }
.stage-badge { position: absolute; top: 10px; right: 10px; background: var(--red); padding: 5px 10px; font-family: var(--font-head); font-size: 0.8rem; transform: skew(-10deg); }
.mod-info { padding: 30px; }
.mod-info h3 { font-family: var(--font-head); font-size: 1.5rem; margin-bottom: 15px; }
.specs { list-style: none; margin-top: 20px; color: var(--grey); font-size: 0.9rem; }
.specs li::before { content: '>'; color: var(--red); margin-right: 10px; }

/* Gallery / Projects */
.gallery-grid { display: grid; gap: 40px; }
.project-box { display: flex; background: var(--bg-panel); border: 1px solid #333; }
.p-image { width: 40%; background-size: cover; background-position: center; }
.p-details { padding: 40px; width: 60%; }
.p-details h3 { font-family: var(--font-head); font-size: 2rem; color: var(--white); margin-bottom: 10px; }
.dyno-stats { display: flex; gap: 20px; margin-bottom: 20px; font-family: var(--font-head); font-size: 1.2rem; }
.boosted { color: var(--red); }
.review { font-style: italic; color: var(--grey); border-left: 3px solid var(--red); padding-left: 20px; }

/* Booking */
.booking-terminal { background: var(--bg-panel); padding: 50px; border: 1px solid #333; max-width: 900px; margin: 0 auto; }
.terminal-header { text-align: center; margin-bottom: 50px; }
.terminal-header h2 { font-family: var(--font-head); font-size: 2.5rem; color: var(--red); }

.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 50px; }
.info-panel p { margin-bottom: 10px; color: var(--grey); }
.info-panel strong { color: var(--white); }
.map-placeholder { height: 150px; background: #333; display: flex; align-items: center; justify-content: center; margin-top: 20px; color: var(--grey); font-family: var(--font-head); }

.race-form .form-group { margin-bottom: 20px; }
.race-form label { display: block; font-family: var(--font-head); color: var(--grey); margin-bottom: 5px; font-size: 0.8rem; }
.race-form input, .race-form select, .race-form textarea { width: 100%; background: var(--bg-dark); border: 1px solid #444; color: var(--white); padding: 12px; font-family: var(--font-body); }
.race-form input:focus, .race-form select:focus, .race-form textarea:focus { border-color: var(--red); outline: none; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.submit-nitro { width: 100%; background: var(--red); color: var(--white); border: none; padding: 15px; font-family: var(--font-head); font-size: 1.5rem; cursor: pointer; transform: skew(-5deg); transition: 0.3s; }
.submit-nitro:hover { background: var(--white); color: var(--bg-dark); }

/* Legal */
.legal-doc { max-width: 800px; margin: 0 auto; background: var(--bg-panel); padding: 50px; }
.legal-doc h1 { font-family: var(--font-head); margin-bottom: 10px; }

/* Footer */
.race-footer { border-top: 2px solid #333; padding: 60px 0 20px; margin-top: 80px; }
.footer-split { display: flex; justify-content: space-between; margin-bottom: 30px; border-bottom: 1px solid #222; padding-bottom: 30px; }
.f-left h4 { font-family: var(--font-head); color: var(--white); font-size: 1.5rem; }
.f-right a { margin-left: 20px; color: var(--grey); }
.f-right a:hover { color: var(--red); }
.copyright { text-align: center; color: #444; font-size: 0.8rem; }

/* Cookie */
.cookie-race { position: fixed; bottom: 20px; right: 20px; background: var(--bg-panel); border: 1px solid var(--red); padding: 20px; z-index: 3000; display: none; }
.cookie-race.active { display: block; }
.cookie-race p { font-family: var(--font-head); margin: 0 0 10px 0; }
.cookie-race button { background: var(--red); color: var(--white); border: none; padding: 5px 20px; cursor: pointer; font-family: var(--font-head); width: 100%; }

@media (max-width: 900px) {
    .nav-items { display: none; }
    .mobile-toggle { display: block; }
    .stats-row { justify-content: space-between; }
    .mods-grid, .contact-grid, .project-box, .footer-split { grid-template-columns: 1fr; flex-direction: column; }
    .project-box { flex-direction: column; }
    .p-image { width: 100%; height: 200px; }
    .p-details { width: 100%; }
    .form-row { grid-template-columns: 1fr; }
}