/* ==========================================================================
   BMW M5 CS - DESIGN SYSTEM & STYLING
   ========================================================================== */

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

:root {
    /* Color Palette */
    --bg-primary: #0a0b0d;
    --bg-secondary: #12141c;
    --bg-tertiary: #191c26;
    
    --accent-gold: #c5a059;
    --accent-gold-bright: #dfb86e;
    --accent-gold-glow: rgba(197, 160, 89, 0.25);
    
    --accent-laser-yellow: #ffcc00;
    --accent-laser-glow: rgba(255, 204, 0, 0.4);
    
    --accent-red: #ff3344;
    --accent-red-glow: rgba(255, 51, 68, 0.4);
    --accent-blue: #0066cc;
    --accent-purple: #7000cc;
    
    --text-primary: #f5f6f8;
    --text-secondary: #8f9cae;
    --text-muted: #536271;
    
    /* Typography */
    --font-header: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Effects & Transitions */
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    --glass-bg: rgba(18, 20, 28, 0.7);
    --glass-border: rgba(255, 255, 255, 0.05);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
    --border-radius: 12px;
}

/* ==========================================================================
   1. Base & Reset Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
}

body {
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-header);
    font-weight: 700;
    letter-spacing: -0.02em;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    transition: var(--transition);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--accent-gold);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-gold-bright);
}

/* Selection */
::selection {
    background-color: var(--accent-gold);
    color: var(--bg-primary);
}

/* ==========================================================================
   2. Layout & Utility Classes
   ========================================================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 8rem 0;
    position: relative;
    border-bottom: 1px solid var(--glass-border);
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
}

.section-title span {
    color: var(--accent-gold);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 4rem auto;
    text-align: center;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: var(--border-radius);
    padding: 2.5rem;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* ==========================================================================
   3. Header & Navigation
   ========================================================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 11, 13, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    padding: 0 2rem;
}

.logo {
    font-family: var(--font-header);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.03em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-m-stripes {
    display: inline-flex;
    gap: 2px;
    margin-left: 5px;
    transform: skewX(-20deg);
}

.logo-stripe {
    width: 5px;
    height: 18px;
}
.logo-stripe.blue { background-color: var(--accent-blue); }
.logo-stripe.purple { background-color: var(--accent-purple); }
.logo-stripe.red { background-color: var(--accent-red); }

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--accent-gold);
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
}

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

.nav-cta {
    background: linear-gradient(135deg, var(--accent-gold), #aa853c);
    color: var(--bg-primary);
    padding: 0.6rem 1.5rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(197, 160, 89, 0.3);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(197, 160, 89, 0.5);
    color: var(--bg-primary);
}

/* Scroll Progress Bar */
.scroll-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(to right, var(--accent-red), var(--accent-gold), var(--accent-laser-yellow));
    z-index: 1001;
    transition: width 0.1s linear;
}

/* ==========================================================================
   4. Hero Section
   ========================================================================== */
.hero {
    height: 100vh;
    min-height: 750px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 60% 50%, rgba(18, 20, 28, 0.2) 0%, rgba(10, 11, 13, 0.95) 80%), url('assets/images/hero_bmw_m5_cs.png') no-repeat center center;
    background-size: cover;
    z-index: -1;
    transform: scale(1.05);
    transition: filter 1s ease, transform 3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-content {
    z-index: 10;
    max-width: 650px;
    padding-left: 2rem;
}

.hero-tag {
    font-family: var(--font-header);
    text-transform: uppercase;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    color: var(--accent-gold);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-tag::before {
    content: '';
    display: inline-block;
    width: 40px;
    height: 2px;
    background-color: var(--accent-gold);
}

.hero h1 {
    font-size: 5.5rem;
    font-weight: 900;
    line-height: 0.95;
    text-transform: uppercase;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff 40%, var(--accent-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero h2 {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-bottom: 3rem;
}

.hero-stat-item {
    display: flex;
    flex-direction: column;
}

.hero-stat-val {
    font-family: var(--font-header);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}

.hero-stat-val span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--accent-gold);
    margin-left: 2px;
}

.hero-stat-lbl {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    margin-top: 0.3rem;
}

.hero-ctas {
    display: flex;
    gap: 1.5rem;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-primary);
}

.btn-primary:hover {
    background: var(--accent-gold);
    color: var(--bg-primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px var(--accent-gold-glow);
}

.btn-secondary {
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    border-color: var(--accent-gold);
    background: rgba(197, 160, 89, 0.05);
    color: var(--accent-gold-bright);
    transform: translateY(-3px);
}

.scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.mouse-icon {
    width: 24px;
    height: 40px;
    border: 2px solid var(--text-muted);
    border-radius: 12px;
    position: relative;
}

.mouse-wheel {
    width: 4px;
    height: 8px;
    background-color: var(--accent-gold);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 1.5s infinite;
}

@keyframes scrollWheel {
    0% { top: 6px; opacity: 1; }
    100% { top: 22px; opacity: 0; }
}

/* ==========================================================================
   5. Features / Design Highlights
   ========================================================================== */
.features-grid {
    margin-top: 1rem;
}

.feature-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 480px;
    padding: 3rem 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -2;
    transition: var(--transition);
}

.feature-card.f-lights::before {
    background-image: linear-gradient(to top, rgba(10, 11, 13, 0.95) 10%, rgba(10, 11, 13, 0.3) 100%), url('assets/images/hero_bmw_m5_cs.png');
    background-position: 30% 60%;
}

.feature-card.f-gold::before {
    background-image: linear-gradient(to top, rgba(10, 11, 13, 0.95) 10%, rgba(10, 11, 13, 0.3) 100%), url('assets/images/hero_bmw_m5_cs.png');
    background-position: 70% 30%;
}

.feature-card.f-carbon::before {
    background-image: linear-gradient(to top, rgba(10, 11, 13, 0.95) 10%, rgba(10, 11, 13, 0.3) 100%), url('assets/images/exhaust_bmw_m5_cs.png');
    background-position: center;
}

.feature-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    border-color: rgba(197, 160, 89, 0.3);
}

.feature-card:hover::before {
    transform: scale(1.08);
}

.feature-card:hover::after {
    transform: scaleX(1);
}

.feature-icon-wrapper {
    margin-bottom: 1.5rem;
    font-size: 2.2rem;
    color: var(--accent-gold);
    transition: var(--transition);
}

.feature-card.f-lights:hover .feature-icon-wrapper {
    color: var(--accent-laser-yellow);
    text-shadow: 0 0 15px var(--accent-laser-glow);
}

.feature-card.f-carbon:hover .feature-icon-wrapper {
    color: var(--accent-red);
    text-shadow: 0 0 15px var(--accent-red-glow);
}

.feature-card h3 {
    font-size: 1.6rem;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ==========================================================================
   6. Color Customizer Section
   ========================================================================== */
.customizer-box {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: center;
}

.customizer-visual {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 400px;
    border: 1px solid var(--glass-border);
    background-color: #0d0f15;
}

.customizer-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.customizer-glow {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 40px;
    background: radial-gradient(ellipse at center, rgba(197, 160, 89, 0.15) 0%, rgba(0,0,0,0) 70%);
    filter: blur(10px);
    transition: var(--transition);
}

/* Customizer CSS filter modifiers for simulating colors dynamically */
.color-green {
    /* Frozen Deep Green (default, slightly optimized) */
    filter: saturate(1) contrast(1);
}

.color-grey {
    /* Brands Hatch Grey - desaturate green, shift hue slightly */
    filter: hue-rotate(-60deg) saturate(0.2) brightness(0.85) contrast(1.05);
}

.color-frozen-grey {
    /* Frozen Brands Hatch Grey - matte finish simulation (extra brightness contrast) */
    filter: hue-rotate(-60deg) saturate(0.1) brightness(0.7) contrast(1.2);
}

.customizer-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.customizer-details h3 {
    font-size: 2rem;
    text-transform: uppercase;
    line-height: 1.1;
}

.color-subtitle {
    color: var(--accent-gold);
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.color-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.color-selector {
    display: flex;
    gap: 1.2rem;
    margin-top: 1rem;
}

.color-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.color-dot {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid transparent;
    padding: 3px;
    transition: var(--transition);
}

.color-dot-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.4);
}

.color-option.active .color-dot {
    border-color: var(--accent-gold);
    transform: scale(1.1);
}

.dot-green { background-color: #1a3026; }
.dot-grey { background-color: #4a5056; }
.dot-frozen-grey { background-color: #2b2e32; }

.color-option span {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.color-option.active span {
    color: var(--text-primary);
}

/* ==========================================================================
   7. V8 Exhaust Simulator
   ========================================================================== */
.simulator-box {
    display: grid;
    grid-template-columns: 1.12fr 0.88fr;
    gap: 3rem;
    align-items: stretch;
}

.sim-panel {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 480px;
    position: relative;
    background: radial-gradient(circle at top, rgba(25, 28, 38, 0.8) 0%, rgba(18, 20, 28, 0.95) 100%);
}

.sim-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}

.sim-title {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.sim-title h3 {
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sim-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--text-muted);
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.sim-indicator.active {
    background-color: var(--accent-red);
    box-shadow: 0 0 15px var(--accent-red-glow);
    animation: pulseGlow 1.5s infinite;
}

@keyframes pulseGlow {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

.engine-status-txt {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.engine-status-txt.active {
    color: var(--accent-red);
}

/* Dash Gauges Layout */
.sim-dash {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-grow: 1;
    margin-bottom: 2rem;
    gap: 1.5rem;
}

/* RPM Gauge Styling */
.gauge-container {
    position: relative;
    width: 240px;
    height: 240px;
}

.gauge-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.gauge-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.03);
    stroke-width: 12;
    stroke-dasharray: 527.7;
    stroke-dashoffset: 131.9; /* 3/4 circle */
    stroke-linecap: round;
}

.gauge-fill {
    fill: none;
    stroke: var(--accent-gold);
    stroke-width: 12;
    stroke-dasharray: 527.7;
    stroke-dashoffset: 527.7; /* Full offset = 0 progress */
    stroke-linecap: round;
    transition: stroke-dashoffset 0.1s linear, stroke 0.3s ease;
}

.gauge-fill.redline {
    stroke: var(--accent-red);
    filter: drop-shadow(0 0 4px var(--accent-red));
}

.gauge-needle {
    position: absolute;
    width: 2px;
    height: 100px;
    background-color: var(--accent-red);
    left: 50%;
    bottom: 50%;
    transform-origin: bottom center;
    transform: translateX(-50%) rotate(-120deg);
    transition: transform 0.1s linear;
    box-shadow: 0 0 10px var(--accent-red);
}

.gauge-needle::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--accent-red);
    border: 3px solid var(--bg-secondary);
}

.gauge-readout {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.rpm-val {
    font-family: var(--font-header);
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1;
    color: var(--text-primary);
}

.rpm-lbl {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 2px;
    letter-spacing: 0.05em;
}

.shift-light {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}

.light-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    transition: var(--transition-fast);
}

.light-dot.green { background-color: rgba(0, 200, 80, 0.1); }
.light-dot.orange { background-color: rgba(255, 120, 0, 0.1); }
.light-dot.red { background-color: rgba(255, 50, 50, 0.1); }

.light-dot.green.active { background-color: #00c850; box-shadow: 0 0 10px #00c850; }
.light-dot.orange.active { background-color: #ff7800; box-shadow: 0 0 10px #ff7800; }
.light-dot.red.active { background-color: #ff3232; box-shadow: 0 0 10px #ff3232; animation: flash 0.15s infinite; }

@keyframes flash {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* Pedal Controls Section */
.sim-controls {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    background: rgba(255, 255, 255, 0.01);
    border-left: 1px solid rgba(255, 255, 255, 0.03);
    padding: 2.5rem;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

/* Engine Start/Stop Button */
.start-btn-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.start-btn {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: linear-gradient(135deg, #181b24, #0a0b0d);
    border: 3px solid var(--text-muted);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4), inset 0 2px 4px rgba(255,255,255,0.05);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    gap: 4px;
}

.start-btn-glow {
    font-size: 0.5rem;
    color: #555;
    transition: var(--transition);
}

.start-btn.running {
    border-color: var(--accent-red);
    box-shadow: 0 0 20px var(--accent-red-glow), inset 0 2px 4px rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.start-btn.running .start-btn-glow {
    color: var(--accent-red);
    text-shadow: 0 0 8px var(--accent-red-glow);
}

.start-btn:active {
    transform: scale(0.95);
}

/* Accelerator Pedal */
.pedal-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.pedal-wrapper {
    perspective: 400px;
}

.pedal {
    width: 80px;
    height: 180px;
    background: linear-gradient(to bottom, #2b303c 0%, #15181e 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
    border-radius: 12px 12px 25px 25px;
    position: relative;
    cursor: pointer;
    transform-origin: bottom center;
    transition: transform 0.1s linear, box-shadow 0.1s linear;
    user-select: none;
    -webkit-user-select: none;
}

/* Pedal Metal Stripes */
.pedal::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 15px;
    right: 15px;
    bottom: 30px;
    background: repeating-linear-gradient(to right, 
        transparent 0px, 
        transparent 8px, 
        rgba(255, 255, 255, 0.03) 8px, 
        rgba(255, 255, 255, 0.03) 12px,
        rgba(197, 160, 89, 0.15) 12px,
        rgba(197, 160, 89, 0.15) 14px
    );
    border-radius: 6px;
}

.pedal.pressed {
    transform: rotateX(25deg) scaleY(0.92);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.8);
}

.pedal-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ==========================================================================
   8. Specifications Section
   ========================================================================== */
.specs-toggle-container {
    display: flex;
    justify-content: center;
    margin-bottom: 3.5rem;
}

.specs-toggle-bar {
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    padding: 6px;
    border-radius: 40px;
    display: inline-flex;
    position: relative;
}

.specs-toggle-btn {
    padding: 0.8rem 2.2rem;
    border-radius: 35px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    z-index: 2;
}

.specs-toggle-btn.active {
    color: var(--bg-primary);
}

.specs-toggle-slider {
    position: absolute;
    top: 6px;
    left: 6px;
    height: calc(100% - 12px);
    width: calc(50% - 6px);
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-bright));
    border-radius: 35px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
}

.specs-toggle-bar.toggled .specs-toggle-slider {
    transform: translateX(100%);
}

.specs-display-box {
    position: relative;
    height: 420px;
    overflow: hidden;
}

.specs-panel-side {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.specs-panel-side.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.spec-grid-card {
    background: linear-gradient(135deg, rgba(25, 28, 38, 0.4) 0%, rgba(18, 20, 28, 0.7) 100%);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: var(--border-radius);
    padding: 2.2rem 1.8rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
}

.spec-grid-card:hover {
    border-color: rgba(197, 160, 89, 0.2);
    background: linear-gradient(135deg, rgba(25, 28, 38, 0.6) 0%, rgba(18, 20, 28, 0.8) 100%);
    transform: translateY(-5px);
}

.spec-card-icon {
    font-size: 1.8rem;
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
}

.spec-card-name {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 0.08em;
}

.spec-card-val {
    font-family: var(--font-header);
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-top: 0.5rem;
    line-height: 1.1;
}

.spec-card-val span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--accent-gold);
    margin-left: 2px;
}

.spec-card-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    margin-top: 1.5rem;
    padding-top: 1rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.spec-card-footer span {
    font-weight: 600;
    color: var(--text-primary);
}

/* Highlight badge for CS exclusives */
.cs-exclusive-badge {
    align-self: flex-start;
    background: rgba(255, 51, 68, 0.12);
    border: 1px solid rgba(255, 51, 68, 0.3);
    color: var(--accent-red);
    font-size: 0.65rem;
    padding: 0.2rem 0.6rem;
    border-radius: 10px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

/* ==========================================================================
   9. Interior Section
   ========================================================================== */
.interior-section {
    background: linear-gradient(to bottom, var(--bg-primary), rgba(18, 20, 28, 0.4)), url('assets/images/interior_bmw_m5_cs.png') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    height: 90vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    position: relative;
}

.interior-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(10, 11, 13, 0.95) 20%, rgba(10, 11, 13, 0.3) 100%);
    z-index: 1;
}

.interior-content {
    position: relative;
    z-index: 2;
    max-width: 550px;
}

.interior-content h2 {
    font-size: 3.5rem;
    line-height: 1;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.interior-content h2 span {
    color: var(--accent-gold);
}

.interior-content p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.interior-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.interior-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.interior-item-num {
    font-family: var(--font-header);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-red);
    border: 1px solid rgba(255, 51, 68, 0.3);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.interior-item-text h4 {
    font-size: 1rem;
    text-transform: uppercase;
    margin-bottom: 0.2rem;
}

.interior-item-text p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* ==========================================================================
   10. Footer Section
   ========================================================================== */
footer {
    background-color: #050608;
    padding: 5rem 0 2rem 0;
    border-top: 1px solid var(--glass-border);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 4rem;
}

.footer-brand {
    max-width: 320px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 1rem;
}

.footer-links-col h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

.footer-links-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links-col a {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-links-col a:hover {
    color: var(--accent-gold-bright);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding-top: 2rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-socials {
    display: flex;
    gap: 1.5rem;
}

.footer-socials a:hover {
    color: var(--accent-gold);
}

/* ==========================================================================
   11. Scroll Animations (Reveal On Scroll)
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }

/* ==========================================================================
   12. Responsive Design (Media Queries)
   ========================================================================== */
@media (max-width: 1024px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .customizer-box {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .simulator-box {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .sim-controls {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.03);
        flex-direction: row;
        justify-content: space-around;
        border-radius: 0 0 var(--border-radius) var(--border-radius);
    }
    
    .specs-panel-side {
        grid-template-columns: repeat(2, 1fr);
        height: auto;
    }
    
    .specs-display-box {
        height: auto;
        min-height: 800px;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 5rem 0;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .hero {
        align-items: center;
        text-align: center;
    }
    
    .hero-bg {
        background-position: 45% center;
    }
    
    .hero-content {
        padding-left: 0;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero h1 {
        font-size: 3.8rem;
    }
    
    .hero h2 {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .hero-stats {
        gap: 1.5rem;
        justify-content: center;
    }
    
    .hero-stat-val {
        font-size: 2rem;
    }
    
    .nav-links, .nav-cta {
        display: none; /* Mobile navigation simplified */
    }
    
    .grid-3 {
        grid-template-columns: 1fr;
    }
    
    .customizer-visual {
        height: 280px;
    }
    
    .sim-dash {
        flex-direction: column;
        padding: 1rem 0;
    }
    
    .interior-section {
        background-attachment: scroll;
        background-position: 25% center;
    }
    
    .footer-top {
        flex-direction: column;
        gap: 3rem;
    }
}
