/* ION MOTORS - Dark Matter & Electricity Design System */

/* CSS Custom Properties - The "Stealth" Mode */
:root {
    /* Core Color Palette */
    --canvas: #020202; /* Vantablack */
    --chassis: #1C1C1C; /* Matte Carbon */
    --ion-stream-start: #00F0FF; /* Cyan */
    --ion-stream-end: #0057FF; /* Electric Blue */
    --warning-sport: #FF2A00; /* Molten Red */
    --typography-white: #FFFFFF;
    --typography-grey: #666666;

    /* Gradient System */
    --ion-gradient: linear-gradient(135deg, var(--ion-stream-start) 0%, var(--ion-stream-end) 100%);
    --sport-gradient: linear-gradient(135deg, var(--warning-sport) 0%, #FF6B00 100%);

    /* Glassmorphism System */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-blur: blur(10px);

    /* Typography */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-data: 'Rajdhani', sans-serif;

    /* Spacing & Layout */
    --section-height: 100vh;
    --nav-height: 80px;
    --border-width: 1px;
    --corner-bracket-size: 12px;

    /* Animations */
    --transition-fast: 0.2s ease-out;
    --transition-smooth: 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-heavy: 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

html {
    overflow-x: hidden;
}

body {
    font-family: var(--font-data);
    background: var(--canvas);
    color: var(--typography-white);
    overflow-x: hidden;
    cursor: none;
}

/* Custom Cursor */
.custom-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 1px solid var(--ion-stream-start);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transition: all 0.1s ease-out;
    mix-blend-mode: difference;
}

.custom-cursor.active {
    transform: scale(2);
    background: var(--ion-stream-start);
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--canvas);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity var(--transition-heavy);
}

.loading-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loading-content {
    text-align: center;
}

.ion-logo {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 700;
    background: var(--ion-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 2rem;
    animation: logoPulse 2s infinite;
}

.loading-text {
    font-family: var(--font-data);
    font-size: 0.9rem;
    color: var(--typography-grey);
    letter-spacing: 0.2em;
    margin-bottom: 2rem;
}

.loading-bar {
    width: 300px;
    height: 2px;
    background: var(--chassis);
    border-radius: 1px;
    overflow: hidden;
}

.loading-progress {
    height: 100%;
    background: var(--ion-gradient);
    width: 0%;
    animation: loadingProgress 2s ease-out forwards;
}

@keyframes logoPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes loadingProgress {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* Navigation */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(2, 2, 2, 0.8);
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    transform: translateY(-100%);
    transition: transform var(--transition-smooth);
}

.main-nav.active {
    transform: translateY(0);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--ion-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.nav-link {
    font-family: var(--font-data);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--typography-grey);
    text-decoration: none;
    transition: color var(--transition-fast);
    position: relative;
}

.nav-link:hover {
    color: var(--typography-white);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--ion-gradient);
    transition: width var(--transition-fast);
}

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

.nav-divider {
    width: 1px;
    height: 30px;
    background: var(--glass-border);
}

.sport-mode-toggle {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.sport-mode-toggle:hover {
    background: rgba(255, 42, 0, 0.1);
    border-color: var(--warning-sport);
}

.toggle-label {
    font-family: var(--font-data);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
}

.toggle-switch {
    width: 40px;
    height: 20px;
    background: var(--chassis);
    border-radius: 10px;
    position: relative;
    transition: background var(--transition-fast);
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background: var(--typography-white);
    border-radius: 50%;
    transition: transform var(--transition-fast);
}

.sport-mode-toggle.active .toggle-switch {
    background: var(--warning-sport);
}

.sport-mode-toggle.active .toggle-switch::after {
    transform: translateX(20px);
}

/* Section 1: Hero - The Ignition */
.hero-section {
    position: relative;
    height: var(--section-height);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--canvas);
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.particle-field {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 1200px;
    padding: 0 2rem;
}

.hero-title-container {
    margin-bottom: 3rem;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    line-height: 0.9;
    letter-spacing: -0.05em;
}

.title-line {
    display: block;
    opacity: 0;
    transform: translateY(50px);
    animation: titleReveal 1s ease-out forwards;
}

.title-line:nth-child(1) {
    animation-delay: 0.2s;
}

.title-line:nth-child(2) {
    animation-delay: 0.4s;
}

@keyframes titleReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 4rem;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.6s forwards;
}

.tech-spec {
    font-family: var(--font-data);
    font-size: 1rem;
    font-weight: 600;
    color: var(--typography-grey);
    letter-spacing: 0.2em;
}

.tech-value {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--ion-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.engine-start-container {
    margin-bottom: 4rem;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.8s forwards;
}

.engine-start-btn {
    position: relative;
    background: transparent;
    border: none;
    padding: 2rem 4rem;
    cursor: pointer;
    transition: all var(--transition-smooth);
}

.btn-inner {
    position: relative;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    padding: 1.5rem 3rem;
    overflow: hidden;
}

.btn-text {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--typography-white);
    position: relative;
    z-index: 2;
}

.btn-pulse {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--ion-gradient);
    transition: left 0.6s ease-out;
}

.engine-start-btn:hover .btn-pulse {
    left: 100%;
}

.btn-bracket {
    position: absolute;
    width: var(--corner-bracket-size);
    height: var(--corner-bracket-size);
    border: 1px solid var(--ion-stream-start);
}

.btn-bracket.top-left {
    top: -1px;
    left: -1px;
    border-right: none;
    border-bottom: none;
}

.btn-bracket.top-right {
    top: -1px;
    right: -1px;
    border-left: none;
    border-bottom: none;
}

.btn-bracket.bottom-left {
    bottom: -1px;
    left: -1px;
    border-right: none;
    border-top: none;
}

.btn-bracket.bottom-right {
    bottom: -1px;
    right: -1px;
    border-left: none;
    border-top: none;
}

.engine-start-btn:hover .btn-bracket {
    border-color: var(--warning-sport);
}

.engine-start-btn.started .btn-text {
    color: var(--warning-sport);
}

.hero-car-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0;
    transition: opacity var(--transition-heavy);
}

.hero-car-container.visible {
    opacity: 1;
}

.car-visual {
    position: relative;
}

.hero-car-image {
    width: 100%;
    height: auto;
    filter: brightness(0.3) contrast(1.2);
    transition: filter 2s ease-out;
}

.hero-car-container.visible .hero-car-image {
    filter: brightness(1) contrast(1);
}

.headlight {
    position: absolute;
    top: 40%;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, var(--ion-stream-start) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 1s ease-out;
}

.headlight.left {
    left: 20%;
}

.headlight.right {
    right: 20%;
}

.headlight.visible {
    opacity: 1;
    animation: headlightPulse 2s infinite;
}

@keyframes headlightPulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.2); opacity: 1; }
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    opacity: 0;
    animation: fadeInUp 1s ease-out 1s forwards, scrollBounce 2s infinite 2s;
}

.scroll-text {
    font-family: var(--font-data);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--typography-grey);
    margin-bottom: 1rem;
}

.scroll-arrow {
    width: 2px;
    height: 30px;
    background: var(--ion-gradient);
    margin: 0 auto;
    position: relative;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: -4px;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--ion-stream-end);
    border-bottom: 2px solid var(--ion-stream-end);
    transform: rotate(45deg);
}

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

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

/* Section 2: Studio - 360° Showroom */
.studio-section {
    position: relative;
    min-height: var(--section-height);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--canvas);
}

.studio-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, var(--chassis) 0%, var(--canvas) 100%);
}

.reflective-floor {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 240, 255, 0.05) 100%);
    transform: perspective(1000px) rotateX(70deg);
    transform-origin: bottom;
}

.studio-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1400px;
    padding: 0 2rem;
}

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

.section-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--ion-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    font-family: var(--font-data);
    font-size: 1.1rem;
    color: var(--typography-grey);
    letter-spacing: 0.1em;
}

.car-viewer {
    position: relative;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.car-container {
    position: relative;
    width: 100%;
    padding-bottom: 60%;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
}

.car-image {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 90%;
    height: auto;
    transform: translate(-50%, -50%);
    filter: drop-shadow(0 20px 40px rgba(0, 87, 255, 0.3));
    transition: transform 0.3s ease-out;
}

.hotspot {
    position: absolute;
    cursor: pointer;
    z-index: 10;
}

.hotspot-dot {
    width: 20px;
    height: 20px;
    background: var(--ion-stream-start);
    border-radius: 50%;
    border: 2px solid var(--typography-white);
    position: relative;
    z-index: 2;
    animation: hotspotPulse 2s infinite;
}

.hotspot-pulse {
    position: absolute;
    top: -10px;
    left: -10px;
    width: 40px;
    height: 40px;
    background: var(--ion-stream-start);
    border-radius: 50%;
    opacity: 0.3;
    animation: hotspotRing 2s infinite;
}

.hotspot-label {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-data);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--typography-white);
    background: var(--chassis);
    padding: 0.5rem 1rem;
    border-radius: 15px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.hotspot:hover .hotspot-label {
    opacity: 1;
}

@keyframes hotspotPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

@keyframes hotspotRing {
    0% {
        transform: scale(0.8);
        opacity: 0.3;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

.viewer-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.control-btn {
    width: 50px;
    height: 50px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    color: var(--typography-white);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.control-btn:hover {
    background: var(--ion-stream-start);
    border-color: var(--ion-stream-start);
    transform: scale(1.1);
}

.feature-cards {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    max-width: 400px;
    width: 90%;
}

.feature-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    animation: slideInRight 0.6s ease-out;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.feature-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--ion-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.close-btn {
    background: none;
    border: none;
    color: var(--typography-white);
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform var(--transition-fast);
}

.close-btn:hover {
    transform: rotate(90deg);
}

.feature-description {
    font-family: var(--font-data);
    color: var(--typography-grey);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.feature-specs {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
}

.spec-label {
    font-family: var(--font-data);
    font-weight: 600;
    color: var(--typography-grey);
}

.spec-value {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--ion-stream-start);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Section 3: Physics - Speed Tunnel */
.physics-section {
    position: relative;
    min-height: var(--section-height);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tunnel-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--canvas);
}

.tunnel-lights {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        repeating-linear-gradient(
            90deg,
            transparent 0px,
            transparent 50px,
            rgba(0, 240, 255, 0.1) 50px,
            rgba(0, 240, 255, 0.1) 52px
        ),
        repeating-linear-gradient(
            0deg,
            transparent 0px,
            transparent 50px,
            rgba(0, 87, 255, 0.1) 50px,
            rgba(0, 87, 255, 0.1) 52px
        );
    transform: translateX(0);
    transition: transform 0.1s linear;
}

.tunnel-lights.fast {
    animation: tunnelSpeed 0.5s linear infinite;
}

@keyframes tunnelSpeed {
    0% { transform: translateX(0); }
    100% { transform: translateX(52px); }
}

.physics-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 1200px;
    padding: 0 2rem;
}

.speed-meter {
    margin-bottom: 4rem;
}

.speed-value {
    font-family: var(--font-heading);
    font-size: 8rem;
    font-weight: 700;
    background: var(--ion-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all var(--transition-fast);
}

.speed-unit {
    font-family: var(--font-data);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--typography-grey);
    letter-spacing: 0.2em;
}

.physics-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.stat-item {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    border-radius: 15px;
    transition: all var(--transition-fast);
}

.stat-item:hover {
    transform: translateY(-5px);
    border-color: var(--ion-stream-start);
}

.stat-label {
    font-family: var(--font-data);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--typography-grey);
    margin-bottom: 0.5rem;
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--typography-white);
}

.physics-description {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.physics-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    background: var(--ion-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.physics-text {
    font-family: var(--font-data);
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--typography-grey);
}

/* Section 4: Interactive Cockpit */
.cockpit-section {
    position: relative;
    min-height: var(--section-height);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cockpit-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--canvas);
}

.dashboard-view {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.dashboard-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.cockpit-overlay {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    padding: 0 2rem;
}

.dashboard-ui {
    position: relative;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 3rem;
    margin: 0 auto;
    max-width: 800px;
}

.speed-display {
    text-align: center;
    margin-bottom: 3rem;
}

.digital-speed {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 700;
    background: var(--ion-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all var(--transition-fast);
}

.speed-label {
    font-family: var(--font-data);
    font-size: 1rem;
    color: var(--typography-grey);
    letter-spacing: 0.2em;
    margin-top: 0.5rem;
}

.dashboard-controls {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
}

.control-group {
    display: flex;
    gap: 1rem;
}

.dash-btn {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 1rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    min-width: 80px;
}

.dash-btn:hover {
    background: var(--ion-stream-start);
    border-color: var(--ion-stream-start);
    transform: scale(1.05);
}

.btn-icon {
    font-size: 1.5rem;
}

.btn-label {
    font-family: var(--font-data);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.steering-wheel {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 2rem auto;
    border-radius: 50%;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 2px solid var(--glass-border);
    transition: transform 0.1s ease-out;
}

.wheel-center {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    background: var(--chassis);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid var(--ion-stream-start);
}

.wheel-rim {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 3px solid var(--glass-border);
    border-radius: 50%;
}

.infotainment-screen {
    background: var(--chassis);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    margin-top: 2rem;
}

.screen-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
}

.screen-header h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--ion-stream-start);
}

.system-status {
    font-family: var(--font-data);
    font-size: 0.8rem;
    color: #00FF00;
    letter-spacing: 0.05em;
}

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

.nav-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.nav-item:hover {
    background: rgba(0, 240, 255, 0.1);
    border-color: var(--ion-stream-start);
}

.nav-icon {
    font-size: 1.5rem;
}

.nav-label {
    font-family: var(--font-data);
    font-weight: 600;
    letter-spacing: 0.05em;
}

/* Section 5: Battery X-Ray */
.battery-section {
    position: relative;
    min-height: var(--section-height);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--canvas);
}

.battery-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.energy-flow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0, 240, 255, 0.1) 0%, transparent 70%);
    animation: energyPulse 3s ease-in-out infinite;
}

@keyframes energyPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

.battery-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1400px;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.battery-visual {
    position: relative;
}

.car-skeleton {
    position: relative;
    margin-bottom: 3rem;
}

.drivetrain-image {
    width: 100%;
    height: auto;
    opacity: 0.8;
    filter: brightness(1.2) contrast(1.1);
}

.battery-pack {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
}

.battery-cells {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.battery-cell {
    flex: 1;
    height: 80px;
    background: var(--chassis);
    border: 2px solid var(--glass-border);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.battery-cell::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--ion-gradient);
    transition: height 0.6s ease-out;
}

.battery-cell[data-charge="100"]::after { height: 100%; }
.battery-cell[data-charge="95"]::after { height: 95%; }
.battery-cell[data-charge="98"]::after { height: 98%; }
.battery-cell[data-charge="92"]::after { height: 92%; }
.battery-cell[data-charge="97"]::after { height: 97%; }

.battery-info h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: var(--ion-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.battery-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.battery-stat {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
}

.battery-details {
    padding: 2rem;
}

.battery-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    background: var(--ion-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.battery-description {
    font-family: var(--font-data);
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--typography-grey);
    margin-bottom: 3rem;
}

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

.tech-feature {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all var(--transition-fast);
}

.tech-feature:hover {
    transform: translateY(-5px);
    border-color: var(--ion-stream-start);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.tech-feature h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--typography-white);
}

.tech-feature p {
    font-family: var(--font-data);
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--typography-grey);
}

/* Configuration Modal */
.config-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 2, 2, 0.9);
    backdrop-filter: var(--glass-blur);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.config-modal.active {
    display: flex;
}

.modal-content {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 3rem;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.modal-header h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--ion-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modal-close {
    background: none;
    border: none;
    color: var(--typography-white);
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform var(--transition-fast);
}

.modal-close:hover {
    transform: rotate(90deg);
}

.config-section {
    margin-bottom: 2rem;
}

.config-section h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--typography-white);
}

.color-options, .perf-options {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.color-btn, .perf-btn {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
    color: var(--typography-white);
    font-family: var(--font-data);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.color-btn:hover, .perf-btn:hover {
    background: var(--ion-stream-start);
    border-color: var(--ion-stream-start);
}

.modal-footer {
    text-align: center;
    margin-top: 2rem;
}

.configure-btn {
    background: var(--ion-gradient);
    border: none;
    border-radius: 25px;
    padding: 1rem 3rem;
    color: var(--typography-white);
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.configure-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.3);
}

/* Contact Section */
.contact-section {
    padding: 6rem 0;
    background: var(--chassis);
}

.contact-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.contact-container h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 3rem;
    background: var(--ion-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

input, select {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 1rem;
    color: var(--typography-white);
    font-family: var(--font-data);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

input::placeholder {
    color: var(--typography-grey);
}

input:focus, select:focus {
    outline: none;
    border-color: var(--ion-stream-start);
    background: rgba(255, 255, 255, 0.1);
}

select {
    cursor: pointer;
}

.submit-btn {
    background: var(--ion-gradient);
    border: none;
    border-radius: 25px;
    padding: 1.5rem;
    color: var(--typography-white);
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all var(--transition-fast);
    margin-top: 2rem;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.3);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .physics-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .battery-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .tech-features {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        gap: 1rem;
    }

    .nav-link {
        font-size: 0.8rem;
    }

    .hero-title {
        font-size: 3rem;
    }

    .engine-start-btn {
        padding: 1.5rem 2rem;
    }

    .btn-inner {
        padding: 1rem 2rem;
    }

    .btn-text {
        font-size: 1rem;
    }

    .viewer-controls {
        flex-wrap: wrap;
    }

    .dashboard-controls {
        flex-direction: column;
        gap: 1rem;
    }

    .control-group {
        justify-content: center;
    }

    .screen-content {
        grid-template-columns: 1fr;
    }

    .physics-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .form-group {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 1rem;
    }

    .nav-menu {
        display: none;
    }

    .hero-title {
        font-size: 2rem;
    }

    .tech-value {
        font-size: 2rem;
    }

    .hero-subtitle {
        flex-direction: column;
        gap: 1rem;
    }

    .studio-header {
        margin-bottom: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .speed-value {
        font-size: 4rem;
    }

    .digital-speed {
        font-size: 3rem;
    }

    .steering-wheel {
        width: 150px;
        height: 150px;
    }

    .tech-features {
        grid-template-columns: 1fr;
    }
}