:root {
    --bg-color: #F4F4F1;
    --text-main: #111111;
    --text-sec: #5F5F5F;
    --text-muted: #777777;
    --text-white: #FFFFFF;
    --accent-red: #D33A2C;
    --border-light: #D8D8D4;
    
    --container-width: 1260px;
    --page-width: 1440px;
    --pad-x: 60px;
    
    --font-main: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    max-width: var(--page-width);
    margin: 0 auto;
    position: relative;
    overflow-x: hidden;
    animation: globalFadeIn 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes globalFadeIn {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Global Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--pad-x);
}

/* Header */
.main-header {
    position: absolute;
    top: 38px;
    left: 0;
    width: 100%;
    z-index: 20;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 var(--pad-x);
    max-width: var(--page-width);
    margin: 0 auto;
}

.nav-left, .nav-right {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-left a, .nav-right a {
    font-size: 11px;
    font-weight: 400;
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.logo-text {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-white);
    letter-spacing: 4px;
}

.btn-customize {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 34px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(4px);
    transition: background 0.3s;
}

.btn-customize:hover {
    background: rgba(255, 255, 255, 0.35);
}

/* Hero Section */
.hero {
    position: relative;
    height: 720px;
    width: 100%;
    overflow: hidden;
}

.hero-video-wrapper {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0;
    overflow: hidden;
}

.hero-bg-video {
    width: 100%;
    height: 120%; /* Extra height for parallax */
    object-fit: cover;
    object-position: center;
    position: absolute;
    top: -10%; /* Center the extra height */
    left: 0;
    will-change: transform;
    animation: zoomIn 10s ease-out forwards;
}

@keyframes zoomIn {
    0% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.7));
    z-index: 1;
}

@keyframes fadeUp {
    0% { opacity: 0; transform: translateY(40px); }
    100% { opacity: 1; transform: translateY(0); }
}

.hero-content {
    position: absolute;
    top: 150px;
    left: var(--pad-x);
    right: var(--pad-x);
    z-index: 4;
    display: flex;
    justify-content: space-between;
    max-width: var(--container-width);
    margin: 0 auto;
    width: calc(100% - var(--pad-x) * 2);
}

.hero-title {
    font-size: 72px;
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -1.5px;
    color: var(--text-white);
    width: 620px;
    opacity: 0;
    animation: fadeUp 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) 0.5s forwards;
}

.hero-supporting-text {
    font-size: 28px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--text-white);
    width: 430px;
    text-align: right;
    margin-top: 210px;
    opacity: 0;
    animation: fadeUp 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) 0.8s forwards;
}

.hero-bottom-bar {
    position: absolute;
    bottom: 0;
    left: var(--pad-x);
    right: var(--pad-x);
    height: 72px;
    z-index: 6;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(255,255,255,0.2);
    max-width: var(--container-width);
    margin: 0 auto;
    width: calc(100% - var(--pad-x) * 2);
}

.book-link {
    font-size: 13px;
    color: var(--text-white);
    text-decoration: underline;
}

.page-label {
    font-size: 11px;
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-desc {
    font-size: 12px;
    color: var(--text-white);
    width: 250px;
}

.btn-scroll {
    width: 150px;
    height: 32px;
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 999px;
    background: transparent;
    color: var(--text-white);
    font-size: 10px;
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
}

.btn-scroll:hover {
    background: rgba(255,255,255,0.1);
}

/* Section Common */
.section {
    padding: 90px 0;
}

/* Details Section */
.two-col {
    display: flex;
    gap: 60px;
}

.col-left, .col-right {
    flex: 1;
}

.pill-label {
    display: inline-block;
    font-size: 10px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    border: 1px solid var(--text-main);
    border-radius: 999px;
    padding: 5px 14px;
}

.section-title {
    font-size: 46px;
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -1px;
    margin-top: 42px;
    max-width: 500px;
}

.section-desc {
    font-size: 14px;
    margin-top: 80px;
    margin-bottom: 40px;
}

.features-row {
    display: flex;
    gap: 70px;
}

.feature-card {
    width: 230px;
}

.feature-icon {
    margin-bottom: 22px;
    color: var(--accent-red);
}

.feature-title {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 12px;
}

.feature-desc {
    font-size: 12px;
    line-height: 1.45;
    color: var(--text-sec);
}

.col-right {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.section-index {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.image-wrapper {
    position: relative;
    margin-top: 48px;
    border-radius: 18px;
    overflow: hidden;
}

.image-wrapper img {
    width: 520px;
    height: 360px;
    object-fit: cover;
    display: block;
}

.quote-card {
    position: absolute;
    left: 22px;
    bottom: 22px;
    width: 230px;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    padding: 24px;
    z-index: 5;
}

.quote-text {
    font-size: 13px;
    line-height: 1.35;
    color: var(--text-white);
}

.quote-author {
    font-size: 12px;
    font-weight: 600;
    margin-top: 20px;
    color: var(--text-white);
}

/* Specs Section */
.specs-section {
    padding-bottom: 40px;
}

.specs-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 60px;
}

.specs-heading {
    font-size: 26px;
    font-weight: 400;
    line-height: 1.25;
    width: 520px;
    text-align: left;
}

.accordion-item {
    border-top: 1px solid var(--border-light);
}

.accordion-header {
    height: 88px;
    display: grid;
    grid-template-columns: 80px 1fr 48px;
    align-items: center;
    cursor: pointer;
}

.acc-num {
    font-size: 16px;
    color: var(--text-muted);
}

.acc-title {
    font-size: 38px;
    font-weight: 400;
    letter-spacing: -1px;
}

.btn-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    position: relative;
    background-color: var(--text-main);
    color: var(--text-white);
    transition: background-color 0.4s ease, transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-icon .icon-arrow,
.btn-icon .icon-close {
    position: absolute;
    transition: opacity 0.4s ease, transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-icon .icon-close {
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
}

.accordion-item.active .btn-icon {
    background-color: var(--accent-red);
    transform: rotate(90deg);
}

.accordion-item.active .btn-icon .icon-arrow {
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
}

.accordion-item.active .btn-icon .icon-close {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.accordion-content {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-inner {
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease 0.1s, transform 0.6s ease 0.1s;
}

.accordion-item.active .accordion-content {
    grid-template-rows: 1fr;
}

.accordion-item.active .accordion-inner {
    padding-bottom: 60px;
    opacity: 1;
    transform: translateY(0);
}

/* Engine Performance Panel */
.engine-panel {
    margin-top: 24px;
}

.engine-image-card {
    position: relative;
    width: 100%;
    height: 360px;
    border-radius: 20px;
    overflow: hidden;
}

.engine-image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlay-grad {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, rgba(0,0,0,0.55), transparent 45%, rgba(0,0,0,0.35));
    z-index: 2;
}

.stat-left, .stat-right {
    position: absolute;
    z-index: 3;
    color: var(--text-white);
}

.stat-left {
    top: 42px;
    left: 36px;
}

.stat-right {
    bottom: 40px;
    right: 40px;
    text-align: right;
}

.stat-main {
    font-size: 64px;
    line-height: 1;
}

.stat-unit {
    font-size: 26px;
}

.stat-label {
    font-size: 12px;
    margin-top: 8px;
}

.engine-stats-row {
    display: flex;
    margin-top: 40px;
}

.stats-left-col {
    width: 250px;
}

.stat-big {
    font-size: 54px;
    line-height: 1;
}

.plus-red {
    color: var(--accent-red);
}

.stat-sub {
    font-size: 13px;
    margin-top: 8px;
    color: var(--text-sec);
}

.stats-right-col {
    flex: 1;
}

.pill-small {
    font-size: 9px;
    padding: 4px 12px;
    margin-bottom: 24px;
}

.engine-desc {
    font-size: 32px;
    line-height: 1.15;
    max-width: 560px;
    margin-bottom: 40px;
}

.tech-row {
    display: flex;
    gap: 40px;
    margin-bottom: 32px;
}

.tech-label {
    font-size: 11px;
    font-weight: 500;
}

.tech-text {
    font-size: 11px;
    line-height: 1.35;
    max-width: 420px;
    color: var(--text-sec);
}

.btn-red {
    background: var(--accent-red);
    color: var(--text-white);
    border: none;
    border-radius: 999px;
    height: 34px;
    padding: 0 18px;
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.circle-arrow-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    background: var(--text-main);
    color: var(--text-white);
    border-radius: 50%;
    font-size: 8px;
}

/* Gallery Section */
.gallery-section {
    padding-top: 95px;
    padding-bottom: 110px;
}

.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 60px;
}

.gallery-title {
    font-size: 42px;
    font-weight: 400;
    line-height: 1.1;
    margin-top: 12px;
}

.gallery-header-right {
    text-align: right;
}

.gallery-note {
    font-size: 10px;
    width: 180px;
    margin-top: 12px;
    color: var(--text-muted);
}

.gallery-grid {
    display: flex;
    gap: 30px;
}

.gallery-card {
    display: flex;
    flex-direction: column;
}

.large-card {
    flex: 2;
}

.small-card {
    flex: 1;
}

.card-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 16px;
}

.card-img-wrap {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
}

.large-card .card-img-wrap img {
    width: 100%;
    height: 290px;
    object-fit: cover;
}

.small-card .card-img-wrap img {
    width: 100%;
    height: 290px;
    object-fit: cover;
}

.btn-red-circle-large {
    position: absolute;
    right: 36px;
    bottom: 36px;
    width: 64px;
    height: 64px;
    background: var(--accent-red);
    color: var(--text-white);
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 4;
}

.card-caption {
    font-size: 11px;
    margin-top: 12px;
    color: var(--text-sec);
}

/* Footer */
.main-footer {
    padding: 70px 0 50px;
    background: var(--bg-color);
    border-top: 1px solid var(--border-light);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.footer-heading {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    font-size: 11px;
    color: var(--text-sec);
}

.footer-bottom {
    display: flex;
    gap: 32px;
    border-top: 1px solid var(--border-light);
    padding-top: 32px;
}

.footer-bottom a {
    font-size: 10px;
    color: var(--text-sec);
}

/* Responsive */
@media (max-width: 1024px) {
    .two-col {
        flex-direction: column;
    }
    
    .gallery-grid {
        flex-direction: column;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =========================================
   CONFIGURATOR PAGE (NEW MINIMAL LAYOUT)
   ========================================= */

.configurator-page-new {
    background-color: #FFFFFF;
    color: #111111;
    overflow-x: hidden;
    font-family: var(--font-main);
    min-height: 100vh;
}

.config-simple-header {
    padding: 24px 40px;
}

.config-simple-header .logo-text {
    font-size: 16px;
    letter-spacing: 3px;
    font-weight: 500;
}

.config-new-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 40px;
}

.config-header-section {
    margin-bottom: 60px;
}

.config-title {
    font-size: 36px;
    font-weight: 400;
    margin-bottom: 8px;
}

.config-subtitle {
    font-size: 14px;
    color: #777;
    margin-bottom: 24px;
}

.config-controls-row {
    display: flex;
    align-items: center;
    gap: 40px;
}

.color-picker-new {
    display: flex;
    gap: 16px;
}

.color-swatch-new {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #E0E0E0;
    cursor: pointer;
    position: relative;
    transition: transform 0.2s ease;
}

.color-swatch-new:hover {
    transform: scale(1.1);
}

.color-swatch-new.active::after {
    content: '';
    position: absolute;
    top: -6px; left: -6px; right: -6px; bottom: -6px;
    border: 1.5px solid #111;
    border-radius: 50%;
}

.view-toggle {
    display: flex;
    background: #F4F4F4;
    border-radius: 999px;
    padding: 4px;
}

.toggle-btn {
    padding: 8px 24px;
    border-radius: 999px;
    border: none;
    background: transparent;
    font-size: 12px;
    font-weight: 500;
    color: #777;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-btn.active {
    background: #FFFFFF;
    color: #111;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* INTERACTIVE AREA */
.car-interactive-area-new {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
}

.car-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 1200px;
    aspect-ratio: 16 / 7;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1500px;
}

@media (max-width: 768px) {
    .car-image-wrapper { aspect-ratio: 16 / 10; }
}

.main-car-img-new {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    filter: blur(12px);
    transform: translateZ(-150px) rotateY(15deg);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1),
                filter 0.8s cubic-bezier(0.25, 1, 0.5, 1),
                transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.main-car-img-new.active {
    opacity: 1;
    filter: blur(0);
    transform: translateZ(0) rotateY(0deg);
    z-index: 2;
}

.main-car-img-new.exit {
    opacity: 0;
    filter: blur(12px);
    transform: translateZ(150px) rotateY(-15deg);
    z-index: 1;
}




.configurator-page {
    background-color: #FFFFFF;
    color: #111111;
    overflow-x: hidden;
}

.config-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* LEFT PANEL */
.config-left {
    width: 65%;
    padding: 32px 60px;
    background-color: #FFFFFF;
    position: relative;
    border-right: 1px solid #E5E5E5;
}

.config-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
}

.config-header nav {
    display: flex;
    gap: 24px;
}

.config-header nav a {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 1px;
    color: #555555;
    text-transform: uppercase;
}

.config-header .logo-text.dark {
    color: #111111;
    font-size: 20px;
    letter-spacing: 3px;
}

.car-title-section h1 {
    font-size: 32px;
    font-weight: 400;
    margin-bottom: 4px;
}

.car-title-section p {
    font-size: 12px;
    color: #777777;
    margin-bottom: 24px;
}

.color-picker {
    display: flex;
    gap: 12px;
}

.color-swatch {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid #DDDDDD;
    cursor: pointer;
    position: relative;
}

.color-swatch.active::after {
    content: '';
    position: absolute;
    top: -4px; left: -4px; right: -4px; bottom: -4px;
    border: 1px solid #111111;
    border-radius: 50%;
}

.car-interactive-area {
    position: relative;
    width: 100%;
    height: 450px;
    margin-top: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-car-img {
    width: 90%;
    max-width: 800px;
    object-fit: contain;
    position: relative;
    z-index: 2;
}

/* Callouts */
.callout {
    position: absolute;
    background: #FFFFFF;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 3;
}

.callout-title {
    font-size: 10px;
    font-weight: 600;
    color: #333;
}

.callout-img-box img {
    width: 100px;
    height: 60px;
    border-radius: 6px;
    object-fit: cover;
}

.callout-line {
    position: absolute;
    background-color: #333;
}

/* Hardcoded connecting lines for illustration */
.line-1 { width: 60px; height: 1px; top: 50%; right: -60px; }
.line-2 { width: 1px; height: 40px; bottom: -40px; left: 50%; }
.line-3 { width: 1px; height: 50px; top: -50px; left: 50%; }

.rotation-control {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 16px;
    background: #F4F4F1;
    padding: 4px 16px;
    border-radius: 999px;
}

.rotation-control button {
    border: none;
    background: transparent;
    font-size: 16px;
    cursor: pointer;
    color: #555;
}

.rotation-control span {
    font-size: 10px;
    font-weight: 500;
}

.config-bottom-grid {
    margin-top: 80px;
    display: flex;
    gap: 40px;
    align-items: center;
}

.thumbnails {
    display: flex;
    gap: 12px;
}

.thumb {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #E5E5E5;
    cursor: pointer;
    opacity: 0.6;
}

.thumb.active {
    opacity: 1;
    border-color: #111;
}

.thumb img { width: 100%; height: 100%; object-fit: cover; }

.stats-grid {
    display: flex;
    gap: 40px;
    flex: 1;
    justify-content: flex-end;
}

.stat-item {
    text-align: left;
    border-left: 1px solid #E5E5E5;
    padding-left: 20px;
}

.stat-lbl { font-size: 10px; color: #777; margin-bottom: 4px; }
.stat-val { font-size: 16px; font-weight: 500; color: #111; }

.overview-section {
    display: flex;
    gap: 40px;
    margin-top: 80px;
    padding-top: 60px;
    border-top: 1px solid #E5E5E5;
}

.charging-box {
    background: #F8F8F8;
    padding: 24px;
    border-radius: 12px;
    flex: 1;
}

.charging-box h4 { font-size: 14px; margin-bottom: 20px; }

.progress-bar-group { margin-bottom: 16px; }
.progress-bar-group label { font-size: 10px; color: #555; display: block; margin-bottom: 6px; }
.progress-track { width: 100%; height: 8px; background: #E5E5E5; border-radius: 999px; overflow: hidden; }
.progress-fill { height: 100%; background: #111; border-radius: 999px; }

.overview-text {
    flex: 2;
}

.overview-text h4 { font-size: 14px; margin-bottom: 12px; }
.overview-text p { font-size: 12px; color: #555; line-height: 1.6; }

.features-section {
    margin-top: 80px;
    text-align: center;
}

.features-section h3 { font-size: 20px; font-weight: 500; margin-bottom: 8px; }
.features-sub { font-size: 12px; color: #777; margin-bottom: 40px; }

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feat-col { text-align: center; }
.feat-icon { font-size: 24px; margin-bottom: 12px; display: block; }
.feat-col h5 { font-size: 12px; font-weight: 600; margin-bottom: 8px; }
.feat-col p { font-size: 10px; color: #777; line-height: 1.4; }

/* RIGHT PANEL */
.config-right {
    width: 35%;
    padding: 32px 40px;
    background-color: #F8F8F8;
    overflow-y: auto;
}

.config-right h2 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 24px;
    text-align: center;
}

.editorial-images {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 60px;
}

.ed-img-large img {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
}

.ed-img-text h4 { font-size: 12px; margin-bottom: 4px; }
.ed-img-text p { font-size: 10px; color: #777; }

.ed-img-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.ed-img-grid img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 12px;
}

.explore-models {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 32px;
    margin-top: 24px;
}

.explore-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 32px;
}

.explore-header h4 { font-size: 16px; font-weight: 500; margin-bottom: 12px; }
.explore-header p { font-size: 10px; color: #777; margin-bottom: 16px; max-width: 250px; }

.btn-dark-round {
    background: #111;
    color: #FFF;
    border: none;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 10px;
    cursor: pointer;
}

.explore-nav {
    display: flex;
    justify-content: center;
    gap: 24px;
    border-bottom: 1px solid #E5E5E5;
    padding-bottom: 12px;
    margin-bottom: 24px;
}

.explore-nav span {
    font-size: 10px;
    font-weight: 500;
    color: #777;
    cursor: pointer;
}

.explore-nav span.active { color: #111; border-bottom: 2px solid #111; padding-bottom: 11px; }

.explore-card {
    position: relative;
    text-align: center;
}

.bg-text {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 120px;
    font-weight: 600;
    color: #F4F4F4;
    z-index: 0;
}

.explore-card img {
    width: 100%;
    position: relative;
    z-index: 1;
    margin-bottom: 24px;
}

.card-stats {
    display: flex;
    justify-content: center;
    gap: 24px;
    position: relative;
    z-index: 1;
}

.c-stat span { font-size: 9px; color: #777; }
.c-stat { font-size: 12px; font-weight: 500; color: #111; text-align: left; }

/* Dynamic Color Filters for Wikimedia Base Image (Shark Blue) */
.filter-red {
    filter: hue-rotate(-140deg) saturate(1.5);
}
.filter-yellow {
    filter: hue-rotate(-180deg) saturate(2) brightness(1.2);
}
.filter-white {
    filter: grayscale(1) brightness(1.8) contrast(0.8);
}

/* =========================================
   LAP RECORD MODAL
   ========================================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    transform: scale(0.95) translateY(20px);
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.1s, opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.modal-content img {
    width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal-close-btn {
    position: absolute;
    top: -40px;
    right: -40px;
    background: var(--accent-red);
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.modal-close-btn:hover {
    transform: rotate(90deg) scale(1.1);
    background-color: #d11;
}

/* Responsive adjustments for all devices */
@media (max-width: 1024px) {
    .two-col { flex-direction: column; }
    .gallery-grid { flex-direction: column; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-content { flex-direction: column; gap: 20px; }
    .hero-supporting-text { margin-top: 20px; text-align: left; }
    .engine-stats-row { flex-direction: column; gap: 30px; }
    .stats-left-col, .stats-right-col { width: 100%; }
}

@media (max-width: 768px) {
    .header-container { flex-direction: column; gap: 15px; }
    .nav-left, .nav-right { justify-content: center; flex-wrap: wrap; gap: 15px; }
    .hero-title { font-size: 48px; width: 100%; }
    .hero-bottom-bar { flex-direction: column; height: auto; padding: 20px 0; gap: 15px; align-items: center; text-align: center; }
    .hero-desc { width: 100%; }
    .section-title { font-size: 36px; }
    .features-row { flex-direction: column; gap: 40px; }
    .feature-card { width: 100%; }
    .image-wrapper img { width: 100%; height: auto; }
    .quote-card { position: relative; left: 0; bottom: 0; width: 100%; border-radius: 0 0 16px 16px; margin-top: -10px; }
    .specs-heading { font-size: 24px; width: 100%; }
    .acc-title { font-size: 28px; }
    .accordion-header { grid-template-columns: 40px 1fr 40px; }
    .engine-image-card { height: 240px; }
    .stat-main { font-size: 42px; }
    .stat-unit { font-size: 18px; }
    .stat-left { top: 20px; left: 20px; }
    .stat-right { bottom: 20px; right: 20px; }
    .gallery-title { font-size: 32px; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 15px; }

    /* Configurator */
    .config-left, .config-right { width: 100%; padding: 20px; }
    .config-container { flex-direction: column; }
    .config-controls-row { flex-direction: column; align-items: flex-start; gap: 15px; }
    .car-interactive-area { height: auto; padding: 40px 0; }
    .stats-grid, .overview-section { flex-direction: column; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .modal-close-btn { top: -50px; right: 0; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 36px; }
    .section-title { font-size: 28px; }
    .logo-text { font-size: 20px; }
    .acc-title { font-size: 22px; }
    .stat-main { font-size: 32px; }
    .features-grid { grid-template-columns: 1fr; }
    .ed-img-grid { grid-template-columns: 1fr; }
}
