﻿@font-face {
    font-family: 'avatrfont-bold';
    src: url('../fonts/avatr/avatrfont-bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'avatrfont-light';
    src: url('../fonts/avatr/avatrfont-light.ttf') format('truetype');
}

@font-face {
    font-family: 'avatrfont-regular';
    src: url('../fonts/avatr/avatrfont-regular.ttf') format('truetype');
}
/* ================================
           Global Reset & Base
  ================================ */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    /* ✅ يعيد سلوك اللمس الطبيعي المرن (momentum scrolling) على iOS تحديداً */
    -webkit-overflow-scrolling: touch;
    scroll-behavior: auto; /* تجنّب أي تعارض مع smoothScrollTo المخصص بالهيدر */
}

body {
    overscroll-behavior-y: none; /* يمنع "bounce" غريب أو ازدواجية سكرول بأقسام pin */

    font-family: avatrfont-bold;
    background: #cdcbce;
    color: #111;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Target the whole scrollbar */
::-webkit-scrollbar {
    width: 12px; /* Set the width for vertical scrollbars */
    height: 12px; /* Set the height for horizontal scrollbars */
}

/* Target the track (background) */
::-webkit-scrollbar-track {
    background: #f1f1f1;
}

/* Target the thumb (draggable part) */
::-webkit-scrollbar-thumb {
    background: linear-gradient(184deg, rgba(181, 181, 181, 1) 0%, rgb(122 122 122) 50%, rgb(0 0 13 / 51%) 100%);
    border-radius: 6px; /* Optional: adds rounded corners */
}

    /* Change thumb color on hover */
    ::-webkit-scrollbar-thumb:hover {
        background: #555;
    }


/* ✅ FIX: حجز نسبة أبعاد لكل الصور اللي تتحمل أثناء السكرول لمنع reflow */
.section--rear img,
.section--Panoramic img,
.detail-img,
#carColorImg,
.car-image-container img {
    aspect-ratio: attr(width) / attr(height); /* fallback عام */
}
.hero__tagline {
    margin: 0 0 0 -1600px;
    display: none;
}
/* ========== POLESTAR STYLE SUB SECTION ========== */

.deepal-sub {
    width: 100%;
    height: 85vh; /* شبه شاشة كاملة */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 7%;
    background: #ffffff;
}

.sub-left {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

    .sub-left a {
        font-size: 42px; /* خطوط كبيرة مثل الصورة */
        color: #000;
        font-weight: 300;
        letter-spacing: -1px;
        transition: .2s ease;
    }

        .sub-left a:hover {
            opacity: .5;
        }

.sub-right img {
    width: 700px; /* عدّل الحجم حسب سيارتك */
    max-width: 45vw;
    object-fit: contain;
    user-select: none;
    pointer-events: none;
    transform: translateX(40px);
    opacity: 0;
    transition: .8s ease;
}

.deepal-sub.loaded .sub-right img {
    transform: translateX(0);
    opacity: 1;
}

/* موبايل بسيط */
@media (max-width: 900px) {
    .header-row {
        padding: 10px 4%;
    }

    .deepal-sub {
        flex-direction: column;
        justify-content: center;
        text-align: left;
        padding: 120px 6% 40px;
        height: auto;
    }

    .sub-left a {
        font-size: 32px;
    }

    .sub-right img {
        margin-top: 30px;
        max-width: 80vw;
    }

    .car-menu {
        gap: 15px;
        font-size: 14px;
    }
}


.ModelName {
    margin: 0 0 -2.8rem 0;
    font-size: 32px;
    width: 133%;
}
/* ================================
           Sections base
        ================================ */
/*main {
    margin-top: 72px;*/ /* space for fixed navbar */
/*}*/
.section {
    min-height: auto !IMPORTANT;
    display: flex;
    min-height: 100vh;
    justify-content: center;
    align-items: center;
    position: relative;
    background: #cdcbce;
    /* background: #cdcbce; */
    overflow: hidden;
}

.section--dark {
    background: #111;
    color: #fff;
}

.section__inner {
    /*width: min(1200px, 100%);*/
    width: 100%;
    margin-inline: auto;
    /*padding: 40px 40px;*/
}

/* ================================
           HERO
        ================================ */



/* HERO SECTION */
/*.hero {
    width: 100%;
    background: #e6e7e8;
    padding: 120px 0 40px;
}*/
.hero {
    background-image: url("../../Deepal/Images/G318/MainPageBackground.png") !important; background-size: cover; background-position: center;
    background-repeat: no-repeat;
}

/*.hero__content {
    max-width: 1400px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
}*/

.hero__content {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
    align-items: center;
    gap: 40px;
    width: min(1300px, 100%);
    padding: 40px 10px;
    width: 100%;
    background-image: url(../../Deepal/Images/S07/MainPageBackground.png) !important;
    background-size: cover;
    background-position: center;
    /* padding: 150px 50px; */
    height: 600PX;
}

.hero__text {
    width: 40%;
    padding-left: 0px;
    margin-top: -210px;
}


    .hero__text h1 {
        font-size: 48px;
        font-weight: 600;
        margin-bottom: 15px;
    }
/* Slide from right */
.hero__text {
    opacity: 1;
    transform: translateX(80px);
    transition: 1s ease-out;
    z-index: 2300;
}

    .hero__text.show {
        opacity: 1;
        transform: translateX(0);
    }


    /* Slide from left when scrolling */
    .hero__text.scroll-anim {
        opacity: 0;
        transform: translateX(-60px);
    }

        .hero__text.scroll-anim.active {
            opacity: 1;
            transform: translateX(0);
        }
.hero__tabs {
    font-size: 31px;
    font-weight: 500;
    letter-spacing: 2px;
    margin-bottom: 35px;
    width: 172%;
    margin: 0 0 0.7rem 15rem;
}

.hero-hr {
    height: 1.6px;
    background: #0000007d;
    border: #0000007d;
    width: 12rem;
    margin: 0.7rem 0 1.6rem -0.2rem;
}


.hero__tabs span {
    cursor: pointer;
    margin-right: 20px;
}

.hero__tabs .active {
    color: #66666669;
}

.hero__tabs .inactive {
    color: #aaa;
}

.hero__spec-list {
    display: flex;
    gap: 11px;
    margin-top: -1rem;
    transition: opacity .35s ease, transform .35s ease;
}

.hero-col {
    flex-direction: column;
}

.hero__spec-main strong {
    font-size: 31px;
    display: block;
    color: #aaaaaa;
}
.span {
    font-size: 12px;
}
/*.hero__car img {
    width: 780px;
    transition: 0.4s ease;
    opacity: 1;
}*/

.hero__car img {
    width: 110%;
    will-change: transform;
    margin: 4rem 0 0 -4rem;
    transition: 0.4s ease;
    opacity: 1;
    max-width: none;
}
/* ================= Hero Specs Slide ================= */

#hero .hero__spec-list {
    position: relative;
    transition: transform .45s cubic-bezier(.4,0,.2,1), opacity .3s ease;
}

#hero .slide-out-left {
    transform: translateX(-60px);
    opacity: 0;
}

#hero .slide-out-right {
    transform: translateX(60px);
    opacity: 0;
}

#hero .slide-in-left {
    transform: translateX(-60px);
    opacity: 0;
}

#hero .slide-in-right {
    transform: translateX(60px);
    opacity: 0;
}

#hero .slide-active {
    transform: translateX(0);
    opacity: 1;
}



/* ================================
           Simple image panels (other sections)
        ================================ */
.panel-center img {
    /*width: min(1200px, 100%);*/
    width: 100%;
    margin-inline: auto;
}

.section--colors {
    background-image: url(../../Deepal/Images/G318/CarColorsBackground.png) !important;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

    .section--colors img {
        width: min(70%, 100%);
        /*width: 100%;*/
        margin-inline: auto;
    }


/* COLOR SELECTOR */

.colors-container {
    position: absolute;
    left: 60px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 18px;
    z-index: 5;
}

.color-option {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid #666;
    cursor: pointer;
    transition: 0.25s;
    background-size: cover;
    background-position: center;
}

    .color-option.active {
        border-color: #000;
        transform: scale(1.15);
    }

.pos {
    position: relative
}

/* ================================
           CONFIGURATOR
        ================================ */
.configurator {
    position: absolute;
    left: 30px;
    top: 30px;
    width: 180px;
    padding: 16px;
    z-index: 20;
    backdrop-filter: blur(6px);
    background: rgba(243,243,243,0.92);
    box-shadow: 0 12px 30px rgba(0,0,0,.15);
    border-radius: 7px;
}
/*@media (max-width: 768px) {
    .configurator {
        
        transform: translateX(-50%);
        width: calc(100% - 32px);
    }
}*/

/* HEADER */
.config-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    cursor: pointer;
}

    .config-header button {
        background: none;
        border: none;
        font-size: 20px;
        cursor: pointer;
    }

/* SECTION */
.config-section {
    margin-bottom: 18px;
}




.config-content {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(-8px);
    transition: max-height .45s cubic-bezier(.4,0,.2,1), opacity .25s ease, transform .35s ease;
}

/* عند الفتح */
.config-section.active .config-content {
    opacity: 1;
    transform: translateY(0);
}


.config-section.active .toggle {
    transform: rotate(45deg);
}

/* COLORS */
.color-grid {
    display: grid;
    grid-template-columns: repeat(3, 0fr);
    gap: 3px;
}

.color-swatch {
    width: 45px;
    height: 45px;
    border: 1px solid #00000000;
    cursor: pointer;
}

    .color-swatch.active {
        border: 1px solid #000;
    }

/* LABEL */
.color-label {
    margin-top: 8px;
    font-weight: bold;
    height: 40px;
}

/* WHEELS */
.config-content.wheels {
    display: flex;
    gap: 10px;
}

.wheel-option {
    width: 55px;
    cursor: pointer;
    opacity: .5;
}

    .wheel-option.active {
        opacity: 1;
        border: 2px solid #000;
    }

/* CAR IMAGE */
.car-preview {
    width: 100%;
    margin-top: 20px;
}

/* ANIMATION */
@keyframes fadeSlide {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* IMAGE SLIDE ANIMATION */
#carColorImg {
    width: 80%;
    transition: transform 0.6s ease, opacity 0.6s ease;
    MARGIN: 0 0 0 0rem;
}

/* ================================
           Rear images
        ================================ */
.section--rear {
    min-height: 760px !important;
}

    .section--rear img {
        width: 66rem;
        max-width: none;
        margin-top: 20rem;
        margin-bottom: 0rem;
    }
/*.left-text-absolute {
    position: absolute;
    top: 4rem;
    left: 5.5%;
    max-width: 420px;
    font-size: 1.2rem;
    line-height: 1.6;
}

.rear-text-absolute p {
    font-size: 1.2rem;
    line-height: 1.6;
}*/

/* ================================
           Colors
        ================================ */

.section--colors {
    background-image: url(../../Deepal/Images/G318/CarColorsBackground.png) !important;
    background-size: cover;
    background-position: center;
    padding: 150px 50px;
}

/* Car Card الحاوية الكلية للكرت */
.car-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* cursor: pointer; */
    transition: transform 0.5s ease;
    padding: 20px;
    width: 30%;
    margin: 0 0 0 15%;
}

    /* .car-card:hover {
        transform: translateY(-10px);
    }*/

    /* تعديل كلاس الأكتيف لتجنب اختفاء الكرت */
    .car-card.active {
        transform: scale(1);
    }

/* الحاوية الخارجية (تمثل الإطار الأبيض الخارجي الرفيع) */
.car-image-container {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #ffffff; /* الخلفية البيضاء الحاضنة للإطار */
    /*border: 2.2px solid #b5b1b1;*/ /* الخط الخارجي الرفيع جداً */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 24px;
    /*padding: 6px;*/ /* هذه المسافة الفاصلة بين الإطار الخارجي والإطار الداخلي */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.5s ease;
}
    /* الحالة الابتدائية للصور: مخفية ومزاحة لأسفل بقيمة 30 بكسل */
    .car-image-container img.car {
        opacity: 0;
        transform: translateY(30px);
        /* الحركة نفسها تُدار الآن عبر GSAP (animateColorImages) بدل CSS transition */
    }

    .car-image-container:hover {
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
    }

    /* هنا السر: الصورة تأخذ المساحة كاملة داخل البادينج */
    .car-image-container img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform 0.7s ease;
    }

/* الإطار الداخلي الذي يظهر فوق الصورة تماماً وبنفس أبعادها الداخلية */
.selection-border {
    position: absolute;
    top: -4px;
    left: 3.3px;
    right: -3.3px;
    bottom: 4px;
    border: 1.4px solid #b5b1b1;
    box-sizing: border-box;
    pointer-events: none;
    z-index: 10;
    transition: all 0.3s ease;
}

/* عند تفعيل الكرت، يتغير لون الإطار الداخلي فقط */
.car-card.active .selection-border {
    border-color: var(--primary, #000); /* يضيء باللون المختار أو الأسود */
    border-width: 2px;
}

/* اسم اللون */
.car-label {
    font-weight: bolder;
    letter-spacing: -0.9px;
    text-transform: uppercase;
    color: #111111;
    text-align: center;
    margin-top: 11px;
    transition: all 0.3s;
}

.car-card.active .car-label {
    color: var(--primary, #000);
}

.pos {
    position: relative
}

/* ================================
           Topview images
        ================================ */


.section--topview {
    position: relative;
    /* ✅ FIX: كانت 110vh بينما .topview-inner جواها 100vh بالضبط — الـ 10vh الزيادة كانت
    غير مرئية أثناء الـ pin، بس لحظة ما الـ pin ينفك كان السكرول العادي يكمل هالـ 10vh
    الفاضية دفعة وحدة قبل ما يوصل للسكشن التالي — وهاد اللي كان يحس "قفزة" فجائية
    عند انتهاء حركة السيارة (نفس الفحص والفيكس المطبّق على G318.css) */
    height: 100vh;
    overflow: hidden;
    /* background-color: #bec6cc; */
    /*background-image: linear-gradient( 180deg, #bec6cc, #dbe2e6);*/
}

#PanoramicView {
    /*background-image: linear-gradient(180deg, #dbe2e6, #bec6cc);*/
    /* الارتفاع لا يُفرض بقيمة dvh ثابتة — القسم يلتزم بحجم الصورة نفسها فقط، فما بيتغير حجمه أبداً */
    height: auto;
    margin-bottom: 0rem;
    margin-top:-1px;
}


.topview-inner {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

#topViewDesktop {
    width: 1000px;
    transform: translateX(-60vw);
    will-change: transform;
    display: block;
    margin-top: 74px;
}

#topViewBase,
#topViewRoof {
    display: none;
}
/*.center-text p {
    font-size: 1.2rem;
    line-height: 1.6;
    max-width: 420px;
    MARGIN: 0 0 0 -46rem;*/
/*transform: translateY(-50%);*/
/*}*/
/* ================================
           Panoramic grid images
        ================================ */
#topViewDesktop, #topViewRoof {
    will-change: transform, opacity; /* تحسين للـ animation */
}

.section--Panoramic img {
    width: 100%;
    max-width: none;
    display: block;
    margin-top: 12rem;
}

 




/* ================================
           Interior with three images
        ================================ */
/* سكشن كامل */
.interior-section {
    width: auto;
    background: #cdcbce;
    padding: 0;
    margin: 0;
    position: relative;
    margin-top: 4rem;
}

.interior-photo-wrap {
    position: relative;
    width: 100%;
}
    /* الصورة كاملة */
    .interior-photo-wrap img {
        width: 100%;
        display: block;
        opacity: 1;
        /*transition: opacity .5s ease, transform .5s ease;*/
        inset: 0;
        object-fit: cover;
    }

/* الصورة المتحركة */
.interiorOverlay {
    z-index: 2;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    margin-top: 0 !important;
}

/* الحركة */
/*.fade-out {
    opacity: 0;
    transform: translateX(0px);
}

.fade-in {
    opacity: 1;
    transform: translateX(0);
}*/

/* خيارات — تحت الصورة — يمين */
.interior-options {
    width: 100%;
    padding: 15px 5%;
    text-align: right;
    background: #cdcbce;
}

.opt {
    font-size: 18px;
    margin-left: 20px;
    cursor: pointer;
    color: #999;
    letter-spacing: 1px;
    transition: .3s;
}

    .opt.active {
        color: #000;
        font-weight: bold;
        border-bottom: 2px solid #000;
        padding-bottom: 3px;
    }

/* النص */
.interior-text {
    width: 100%
}

    .interior-text p {
        font-size: 1.6rem;
        line-height: 1.6;
        max-width: 39%;
        margin: 0 0 0 3.1rem;
    }


/* ================================
           Interior Details with three images
        ================================ */
.details-section {
    background: #e6e6e6; /* نفس لون الخلفية بالصورة */
    padding: 60px 0;
}

.details-grid {
    max-width: 1420px;
    margin: auto;
    display: flex;
    justify-content: center;
    gap: 44px;
}

.detail-img {
    width: 29%;
    border-radius: 4px;
    opacity: 0;
    transform: translateY(40px);
    /* الحركة نفسها تُدار الآن عبر GSAP (animateDetailImages) بدل CSS transition */
}
/* ================================
           Interior Details with three images
        ================================ */
.section--extra {
    min-height: 95vh;
    overflow: hidden;
}
/* ================================
           Learn more section (new)
        ================================ */
.learn-section {
    background: #000;
    color: #fff;
    padding: 80px 40px;
    text-align: center;
}

.learn-title {
    font-size: 38px;
    font-weight: 300;
    margin-bottom: 50px;
    opacity: .85;
    text-align: left;
    margin-left: 5rem;
}

.learn-boxes {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 50px;
    transition: opacity .35s ease, transform .35s ease;
}

.hero__spec-list.hidden {
    opacity: 0;
    transform: translateY(20px);
}

.hero-specs-reev {
    display: none;
}

.learn-box {
    background: #8f8f8f;
    width: 340px;
    padding: 30px;
    text-align: left;
}

    .learn-box h3 {
        font-size: 22px;
        font-weight: 500;
        margin-bottom: 10px;
        color: black;
    }

    .learn-box .value {
        font-size: 46px;
        font-weight: 600;
        margin-bottom: 18px;
        color: #212121b8;
    }

    .learn-box .sub {
        font-size: 17px;
        opacity: .9;
        color: black;
    }

    .learn-box .dim {
        font-size: 20px;
        opacity: .7;
        margin-top: 4px;
        color: #212121b8;
    }

.learn-buttons {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
    flex-wrap: wrap;
    width: 72%;
    place-self: center;
}

.learn-btn {
    background: #8f8f8f;
    color: #000;
    padding: 16px 40px;
    text-decoration: none;
    font-size: 20px;
    border-radius: 3px;
    transition: 0.2s ease;
    width: 100%;
}

.section--extra {
    min-height: auto;
    overflow: hidden;
    margin: 34px;
}

.extra {
    margin: 0 !important;
    background: #eeecec;
}

    .learn-btn:hover {
        background: #b5b5b5;
    }

/* ================================
           Contact footer (new)
        ================================ */
.contact-footer {
    background: #fff;
    padding: 40px 50px;
    border-top: 1px solid #000;
}

.contact-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1300px;
    margin: auto;
}

.contact-left {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    color: #000;
}

.contact-sep {
    font-weight: 400;
}

.contact-right {
    display: flex;
    align-items: center;
    gap: 18px;
}

    .contact-right a img {
        width: 46px;
        height: 46px;
        object-fit: contain;
        /* border: 2px solid #000; */
        padding: 5px;
        border-radius: 5px;
        transition: 0.25s;
    }

        .contact-right a img:hover {
            background: #000;
            filter: invert(100%);
            transform: scale(1.05);
        }

/* ================================
           Optional bottom footer (copyright)
        ================================ */
.bottom-footer {
    background: #111;
    color: #aaa;
    text-align: center;
    padding: 18px 0;
    font-size: 14px;
}

/* ================================
           Animation pre-state
        ================================ */
.anim {
    opacity: 0;
    transform: translateY(40px);
}


/* =========================
   3D CAR SECTION
========================= */
/* =========================
   PERFORMANCE SECTION
========================= */

#performance {
    position: relative;
    min-height: 100dvh !important;
    overflow: hidden;
}

    /* IMAGE + 3D share same space */
    #performance .section__inner {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
    }




/* Image view */
.section__inner--image {
    display: grid;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

/* 3D view */


.section--3d {
    min-height: 100vh;
    background: #cdcbce; /* نفس خلفية الموقع */
    padding: 0;
}

.section__inner--3d {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    z-index: 100;
}

/* Canvas */
#car3d {
    width: 100%;
    height: 100%;
    display: block;
    cursor: ew-resize;
}

/* Title فوق الـ 3D */
.car3d-title {
    position: absolute;
    top: 40px;
    left: 60px;
    font-size: 42px;
    font-weight: 300;
    z-index: 3;
}


/* =========================
   VIEW TOGGLE BUTTONS
========================= */

/* Buttons */
.view-toggle {
    position: absolute;
    right: 40px;
    bottom: 40px;
    z-index: 105;
    display: flex;
    gap: 12px;
}

.toggle-btn {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 1px solid #000;
    background: #fff;
    cursor: pointer;
}

    .toggle-btn.hidden {
        display: none;
    }

    .toggle-btn:hover {
        background: #000;
        color: #fff;
    }

    .toggle-btn.active {
        display: none; /* نخفي الزر النشط */
    }


.section__inner,
.section__inner--3d {
    transition: opacity 0.4s ease;
}




    .section__inner--3d:hover #car3d {
        cursor: url('../images/arrows.png') 16 16, ew-resize;
    }


/* =====================
   VIDEO SECTION
===================== */

.video-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    max-height: 100vh;
    margin: 0rem 0 0 0;
}

.video-bg,
.video-poster {
    width: 100%;
    height: auto;
    display: block;
}

.video-bg {
    width: 100%;
    height: 100%;
    max-width: 100vw; /* لا يتجاوز العرض */
    max-height: 100vh; /* لا يتجاوز الارتفاع */
    object-fit: cover; /* يلتزم بحجم السكشن */
    display: block;
    opacity: 1;
}

    .video-bg.ready {
        opacity: 1;
    }


.video-poster.hide {
    opacity: 0;
}

/* زر التشغيل */
.video-control {
    position: absolute;
    right: clamp(16px, 4vw, 32px);
    bottom: clamp(16px, 5vw, 75px);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.55);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    backdrop-filter: blur(8px);
    z-index: 10;
    transition: .25s ease;
}

    .video-control:hover {
        background: rgba(0,0,0,0.85);
        transform: scale(1.05);
    }

    .video-control.hidden {
        opacity: 0;
        pointer-events: none;
    }


/* progress */
.video-progress {
    position: absolute;
    right: clamp(16px, 4vw, 32px);
    bottom: clamp(16px, 5vw, 75px);
    width: 56px;
    height: 56px;
    pointer-events: none;
    z-index: 9;
}

    .video-progress svg {
        width: 100%;
        height: 100%;
        transform: rotate(-90deg);
    }

.progress-bg {
    fill: none;
    stroke: rgba(255,255,255,0.2);
    stroke-width: 3;
}

.progress-bar {
    fill: none;
    stroke: #fff;
    stroke-width: 3;
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    transition: stroke-dashoffset .2s linear;
}


/* =============================
   EXTERIOR SWIPER
============================= */

.exterior-slider {
    background: #cdcbce;
}

.slider-wrap {
    width: 100%;
    height: 100%;
    position: relative;
}

/* Swiper نفسه */
.exteriorSwiper {
    width: 100%;
    height: 100%;
}

    /* كل شريحة */
    .exteriorSwiper .swiper-slide {
        width: 100% !important;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

        /* الصورة */
        .exteriorSwiper .swiper-slide img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

    /* أزرار التنقل – فخمة وبسيطة */
    .exteriorSwiper .swiper-button-next, .exteriorSwiper .swiper-button-prev {
        color: #ffffff;
        width: 44px;
        height: 44px;
        background: rgb(0 0 0 / 15%);
        border-radius: 50%;
        backdrop-filter: blur(61px);
        transition: .25s ease;
        padding: 0;
    }

        .exteriorSwiper .swiper-button-next:hover,
        .exteriorSwiper .swiper-button-prev:hover {
            /*background: rgba(255,255,255,0.9);*/
            backdrop-filter: blur(17px);
            transform: scale(1.05);
        }

.swiper-button-next:after, .swiper-button-prev:after {
    font-family: swiper-icons;
    font-size: var(--swiper-navigation-size);
    text-transform: none !important;
    letter-spacing: 0;
    font-variant: initial;
    line-height: 1;
    font-size: 15px !important;
}



.learn-boxes.hidden {
    opacity: 0;
    transform: translateY(20px);
}




.main-menu.show {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 70px;
    right: 0;
    background: #fff;
    padding: 20px;
    gap: 20px;
    width: 220px;
    box-shadow: 0 4px 20px #0001;
}

.left-text {
    position: absolute;
    top: 3.5rem;
    left: 5.4%;
    max-width: 32%;
    font-size: 1.6rem;
    line-height: 1.6;
    width: 100%;
    padding: 0;
    /* margin: 0 0 0 27px; */
}

.center-text p {
    font-size: 1.5rem;
    line-height: 1.6;
    max-width: 483px;
    MARGIN: -5.4% 0 0 -954px;
    /* transform: translateY(-50%); */
    width: 100%;
    position: absolute;
   
    z-index: -2;
}

.left-text-absolute {
    position: absolute;
    top: 5rem;
    left: 5.4%;
    max-width: 35%;
    font-size: 1.5rem;
    line-height: 1.6;
}

.rear-text-absolute p {
    font-size: 1.2rem;
    line-height: 1.6;
}
/*----------------------------------------------------------------------------------------------*/
/* ===============================
   MOBILE FIRST NORMALIZATION
================================ */
/* Base  : Mobile Large      (0 - 767) */
/* Tablet: Portrait / iPad  (768 - 1023) */
/* Tablet: Landscape        (1024- 1279) */




/*.section,
.section--extra,
.section--3d,
.section--rear,
.section--topview {
    min-height: auto;
    height: auto;
}*/

.section__inner {
    width: 100%;
}

.inner {
    margin: 35px;
}
/* Touch Optimization */
@media (pointer: coarse) {
    button,
    a,
    .color-swatch,
    .wheel-option,
    .toggle-btn {
        min-width: 44px;
        min-height: 44px;
    }
}
/* Tabs تظهر فقط على الموبايل والتابلت */
.configurator-tabs {
    display: none;
}


/* ===================================================
   MOBILE SMALL (0px ==> 767px)
=================================================== */

@media (max-width: 767px) {
    main {
        width: 100%;
        /* max-width: 1600px; */
        margin: 0 auto;
    }

    .section {
        overflow: hidden;
        margin: 0;
        min-height: clamp(520px, 100dvh, 900px) !important;
        padding-block: clamp(64px, 10vw, 140px) !important;
        position: relative;
    }

    #hero {
        position: relative;
        display: flex;
        min-height: 100dvh !important;
        background-image: none !important;
    }


    /* ===== HERO ===== */
    /* ✅ FIX: نفس تصميم الموبايل تبع G318 حرفياً — .hero__text display:contents يفكّك
    صندوقه بصرياً بس بيخلي عناصره الداخلية (tagline/specs) تصير أولاد مباشرين لـ
    .hero__content، فبيصير ممكن نرتبها بالـ order مع .hero__car بنفس المستوى */
    .hero__text {
        display: contents;
    }

    .ModelName,
    .hero__tabs,
    .hero-hr {
        display: none;
    }

    .hero__tagline {
        order: 1;
        font-size: 15px;
        line-height: 1.5;
        color: #000;
        text-align: left;
        margin: -2rem 0 2rem 0;
    }

    .hero__car {
        order: 2;
        position: static !important; /* نقتل absolute */
        display: flex;
        justify-content: center;
        width: 100%;
        max-width: 420px;
        margin: 0 auto;
        height: auto;
    }

    .hero__content {
        display: flex;
        flex: 1;
        flex-direction: column;
        padding: clamp(24px, 5vw, 48px);
        gap: 24px;
        text-align: left;
        background-image: none !important;
    }

    .hero__spec-list, #hero .hero__spec-list {
        order: 3;
        position: static !important;
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 30px;
        padding: 0;
        transition: none;
        margin: 3rem 0 0 0;
    }

    .hero__spec-main {
        width: 100%;
        text-align: left;
        padding: 1px 0;
        border-bottom: 0px solid #989393;
        margin: -15px 0 -9px 0;
    }

        .hero__spec-main:last-child {
            border-bottom: 0px solid #989393;
        }

    .hero__car img {
        position: static;
        width: 120%;
        max-width: 200%;
        height: auto;
        display: block;
        will-change: transform;
        transition: 0.4s ease;
        opacity: 1;
        margin: 0 0 0 4rem;
    }

    .hero__spec-main strong {
        font-size: 34px;
        font-weight: 400;
        display: block;
        color: #838383;
        margin-bottom: 4px;
        border-bottom: 1px solid #9893934d;
    }

    .hero__spec-main span {
        font-size: 16px;
        color: #000000;
    }


    /* ===== REAR ===== */
    .section--rear img {
        width: 100%;
        margin-top: 10rem;
    }

    .interior-section {
        width: 100%;
        background: #cdcbce;
        padding: 0;
        margin: 0;
        position: relative;
        margin-top: 1rem;
        display: grid;
        grid-template-columns: repeat(1, 1fr);
    }

    .section--Panoramic img {
        width: 100%;
        margin-top: 2rem;
        transform: translate(0px, 56px);
    }

    .car-label {
        font-weight: bolder;
        letter-spacing: -0.9px;
        text-transform: uppercase;
        color: #111111;
        text-align: center;
        margin-top: -4px;
        transition: all 0.3s;
    }

    .opt {
        font-size: 13px;
        margin-left: 0;
        cursor: pointer;
        color: #999;
        letter-spacing: 1px;
        transition: .3s;
    }
    .center {
        text-align: center;
        margin: -0.6rem 0 0.6rem 0;
    }

    div#car {
        grid-column: 2;
    }

    div#text {
        grid-column: 1;
        position: relative !important;
    }

    /* ===== PERFORMANCE ===== */
    #performance {
        position: relative;
        min-height: 100vh !important;
        overflow: hidden;
    }

        #performance .section__inner {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100vh;
            max-height: 150dvh;
            top: 0px;
        }


    /* ===== CONFIGURATOR ===== */
    #colors {
        display: flex;
        flex-direction: column;
        position: relative;
        min-height: clamp(520px, 100dvh, 900px) !important;
        padding-block: 40px 0px !important;
    }

    .car-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        /* cursor: pointer; */
        transition: transform 0.5s ease;
        padding: 20px;
        width: 100%;
        margin: 0;
    }

    /* المحتوى العلوي */
    .colors-content {
        flex: 1 1 auto;
        display: grid;
        justify-content: center;
        padding: 0 0 24px 0;
    }

    .flex {
        display: block !important;
    }

    /* ❌ ألغِ أي top / relative */
    #carColorImg {
        width: 100%;
        max-width: 720px;
        height: auto;
        position: static;
        margin: 0 0 0 -3rem;
    }

    /* البوكس */
    .configurator {
        margin: 208px 0 80px 0;
        width: 100%;
        padding: 12px 12px 8px;
        background: #f1f1f1;
        border-radius: 0;
        position: sticky;
        left: 0;
        top: 0;
        transform: none;
    }



    /* ===== HEADER TABS ===== */
    .config-header {
        justify-content: center;
        gap: 24px;
        font-size: 24px;
        border-bottom: 1px solid #ccc;
        margin-bottom: 8px;
    }

        .config-header span {
            position: relative;
        }

    .config-section.active .config-header span::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: -6px;
        width: 100%;
        height: 2px;
        background: #000;
    }

    .config-header button {
        display: none; /* + تختفي */
    }

    /* ===== SECTIONS ===== */
    .config-section {
        margin: 0;
    }

    .config-header button {
        display: none; /* + - تختفي */
    }

    .config-section .config-header span {
        position: relative;
        opacity: .5;
        cursor: pointer;
    }

    .config-section.active .config-header span {
        opacity: 1;
        font-weight: 500;
    }

        .config-section.active .config-header span::after {
            content: "";
            position: absolute;
            left: 0;
            bottom: -6px;
            width: 100%;
            height: 2px;
            background: #000;
        }
    /* كل الأقسام مغلقة إلا active */
    .config-content {
        /* max-height: none;
        opacity: 1;
        transform: none;
        display: none;
        padding-top: 8px;*/
        max-height: none !important;
        opacity: 1 !important;
        transform: none !important;
        display: none;
        padding-top: 10px;
    }

    .config-section.active .config-content {
        display: block;
    }

    /* ===== COLOR GRID ===== */
    .color-grid {
        display: flex;
        flex-direction: row;
        gap: 8px;
    }

    .color-swatch {
        width: 45px;
        height: 45px;
        border-width: 1.5px;
    }

    /* ===== LABEL ===== */
    .color-label {
        font-size: 16px;
        font-weight: normal;
        color: #333;
        margin-top: 4px;
    }




    /**************************************************/


    /* شريط التبويبات */
    .configurator-tabs {
        display: flex;
        gap: 18px;
        padding: 0 0px 6px;
        border-bottom: 1px solid #ccc;
        font-size: 19px;
    }

        .configurator-tabs .tab {
            position: relative;
            padding-bottom: 6px;
            opacity: .45;
            cursor: pointer;
            white-space: nowrap;
        }

            .configurator-tabs .tab.active {
                opacity: 1;
                font-weight: 500;
            }

                .configurator-tabs .tab.active::after {
                    content: "";
                    position: absolute;
                    left: 0;
                    bottom: -1px;
                    width: 100%;
                    height: 2px;
                    background: #000;
                }

    /* إخفاء الهيدر القديم */
    .config-header {
        display: none !important;
    }



    /* Override أي display:none سابق */
    .configurator .config-section .config-content {
        display: block !important; /* مهم جداً */
        overflow: hidden !important;
        max-height: 0 !important; /* مخفي */
        opacity: 0 !important;
        transform: translateX(16px) !important;
        /* نخلي الانتقال فعلاً يصير */
        transition: max-height .28s ease, opacity .25s ease, transform .25s ease !important;
    }

    .configurator .config-section.active .config-content {
        max-height: 600px !important; /* رقم كبير يكفي المحتوى */
        opacity: 1 !important;
        transform: translateX(0) !important;
    }


    /* الألوان صف واحد */
    .color-grid {
        display: flex;
        gap: 8px;
        overflow-x: auto;
    }

    .color-swatch {
        width: 32px;
        height: 32px;
        border-width: 1.5px;
    }


    /**************************************************/
    /* ===== IMAGE SECTIONS ===== */
    .mob-height {
        min-height: 30dvh;
        margin: 0;
    }

    #tech {
        will-change: transform, filter;
        min-height: 156dvh !important;
        margin-bottom: -21dvh;
    }

    #topViewDesktop {
        display: none;
    }

    #topViewBase, #topViewRoof {
        display: block;
    }


    #topViewRoof {
        opacity: 0;
        z-index: 2;
    }



    /* ===== 3D ===== */
    .section__inner--3d {
        height: 65vh;
    }

    #car3d {
        cursor: grab;
        touch-action: pan-y;
    }

    /* ===== VIDEO ===== */
    /* ✅ FIX: قياس الفيديو على الموبايل أصبح عمودي (Portrait 9:16) بدل الأفقي */
    .video-wrap {
        max-height: none;
        width: 100%;
        aspect-ratio: 9 / 16;
        margin: 0;
        background: #000;
    }

    .video-bg {
        width: 100%;
        height: 100%;
        aspect-ratio: 9 / 16;
        max-width: 100vw;
        max-height: none;
        object-fit: cover;
        background: #000;
    }

    /* ===== PANORAMIC ===== */
    /* سكشنات الصور البسيطة (rear, panoramic, extra, إلخ) */
    .section--rear,
    .section--Panoramic,
    .section--extra,
    .section--topview {
        padding-block: 20px 40px !important; /* مسافات أقل */
    }

    /* ===== INTERIOR ===== */
    .interior-options {
        display: flex;
        justify-content: center;
        /* ✅ FIX: مسافة أريح بين خيارات الألوان الداخلية */
        gap: 18px;
        margin: 3.4rem 0 -4rem 0;
    }

    .section__inner {
        width: 100%;
        height: auto;
    }
    /* ===== DETAILS ===== */
    .details-section {
        background: #bab7bc;
        padding: 0 0 45px 0;
    }

    .details-grid {
        flex-direction: column;
        /* ✅ FIX: مسافة عمودية مريحة بين صور التفاصيل الثلاث على الموبايل */
        gap: 18px;
        padding: 30px;
    }

    .detail-img {
        width: 100%;
        margin-bottom: 4px;
    }
    .panel-center img {
        /* width: min(1200px, 100%); */
        width: 100%;
        margin-inline: auto;
        /* margin: -40px 0 0 0; */
    }
    /* ===== LEARN / CTA ===== */
    .learn-title {
        text-align: left;
        margin: -3rem 0 0 0rem;
        font-size: 18px;
    }
    .learn-section {
        background: #000;
        color: #8f8f8f;
        padding: 80px 31px;
        text-align: center;
    }

    .learn-box {
        width: 100%;
    }

    .learn-buttons {
        flex-direction: column;
        gap: 16px;
        width: 100%;
    }

    .learn-btn {
        width: 100%;
        font-size: 18px;
    }



    /* Swiper نفسه */
    .exteriorSwiper {
        width: 100%;
        height: 390px;
    }

        /* كل شريحة */
        .exteriorSwiper .swiper-slide {
            width: 100% !important;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
        }

            /* الصورة */
            .exteriorSwiper .swiper-slide img {
                width: 100%;
                height: 100%;
                object-fit: cover;
                display: block;
                padding: 20px;
            }

    /* ===== FOOTER ===== */
    .contact-inner {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    /* ✅ FIX: فوتر الموبايل صار مطابق للصورة — الأيقونات فوق جوا مربعات بحدود، والتواصل تحت */
    .contact-left {
        order: 2;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        font-size: 14px;
        color: #000;
        white-space: nowrap;
    }

    .contact-right {
        order: 1;
        justify-content: center;
        gap: 25px;
    }

        .contact-right a {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 56px;
            height: 56px;
            border: 0px solid #000;
            border-radius: 12px;
        }

            .contact-right a img {
                width: 48px;
                height: 48px;
                padding: 0;
            }







    .section {
        overflow: hidden;
        margin: 0;
        min-height: auto !important; /* بدل clamp الكبير */
        height: auto !important;
        padding-block: 40px 60px !important; /* مسافات معقولة، مش متغيرة كتير */
        position: relative;
    }




    .topview-mobile-wrapper {
        position: relative;
        display: inline-block;
        width: 96dvw;
        max-width: 420px;
        margin: 0 auto;
        margin-left: 1rem;
    }

        .topview-mobile-wrapper #topViewBase {
            /* ✅ FIX: كانت 60% هون و100% بنسخة تابلت-بورتريت تحت — معكوسة عن G318 (100% هون
            و60% تحت). رجّعناها تطابق G318 بالضبط */
            width: 90%;
            height: auto;
            display: block;
        }

        .topview-mobile-wrapper #topViewRoof {
            position: absolute;
            top: 40.3%;
            left: 10.6%;
            right: 30%;
            bottom: 0;
            width: 32.1%;
            height: auto;
            opacity: 0;
            pointer-events: none;
            z-index: 2;
            object-fit: contain;
        }

    .section--topview {
        height: auto !important;
        min-height: 60vh;
        padding: 40px 0 !important;
    }
    .sub-menu a.active::after {
        transform: scaleX(0) !important;
    }
    .inner {
        margin: -40px 0 0 0;
    }

    .extra {
        margin: 0 !important;
        background: #ffffff00;
    }
    .interior-text {
        width: 100%
    }

    div#text {
        grid-column: 1;
        position: relative !important;
    }

    .interior-text p {
        font-size: 1.1rem;
        line-height: 1.6;
        max-width: 100%;
        margin: 2rem 0 0 0rem;
        padding: 0 17px;
        text-align: left;
        width: 100%;
    }

    .left-text-absolute {
        position: absolute;
        top: 0%;
        left: 0%;
        max-width: 100%;
        font-size: 18px;
        line-height: 1.6;
        text-align: left;
        padding: 0 17px;
    }
    .opt.active {
        color: #000;
        font-weight: bold;
        border-bottom: 0px solid #000;
        padding-bottom: 3px;
    }
    .center-text p {
        font-size: 18px;
        line-height: 1.6;
        max-width: 90%;
        text-align: left;
        margin: -23px 0;
        padding: 0 17px;
        z-index: 1;
    }
    #PanoramicView {
        background-image: none !important;
        height: auto;
        margin-bottom: 0rem;
        margin-top: 0px;
    }

    .center-text {
        position: absolute;
        top: 5%;
        width: 100%;
    }

    .left-text {
        position: absolute;
        top: 2rem;
        left: 0;
        max-width: 80%;
        font-size: 18px;
        line-height: 1.6;
        width: 100%;
        padding: 0 17px;
        /* margin: 0 0 0 27px; */
    }
}



/*===================================================
   TABLET PORTRAIT (768px – 1023px)
=================================================== */
@media (min-width: 768px) and (max-width: 1023px) {

    main {
        width: 100%;
        /* max-width: 1600px; */
        margin: 0 auto;
    }

    .section {
        overflow: hidden;
        margin: 0;
        min-height: clamp(520px, 100dvh, 900px) !important;
        padding-block: clamp(64px, 10vw, 140px) !important;
        position: relative;
    }

    #hero {
        position: relative;
        display: flex;
        min-height: 100dvh !important;
        background-image: none !important;
    }


    /* ===== HERO ===== */
    /* ✅ FIX: نفس تصميم الموبايل تبع G318 حرفياً — .hero__text display:contents يفكّك
    صندوقه بصرياً بس بيخلي عناصره الداخلية (tagline/specs) تصير أولاد مباشرين لـ
    .hero__content، فبيصير ممكن نرتبها بالـ order مع .hero__car بنفس المستوى */
    .hero__text {
        display: contents;
    }

    .ModelName,
    .hero__tabs,
    .hero-hr {
        display: none;
    }

    .hero__tagline {
        order: 1;
        font-size: 15px;
        line-height: 1.5;
        color: #000;
        text-align: left;
        margin: -2rem 0 2rem -200rem;
        display: none !important;
    }

    .hero__car {
        order: 2;
        position: static !important; /* نقتل absolute */
        display: flex;
        justify-content: center;
        width: 100%;
        max-width: 420px;
        margin: 0 auto;
        height: auto;
    }

    .hero__content {
        display: flex;
        flex: 1;
        flex-direction: column;
        padding: clamp(24px, 5vw, 48px);
        gap: 24px;
        text-align: left;
        background-image: none !important;
    }

    .hero__spec-list, #hero .hero__spec-list {
        order: 3;
        position: static !important;
        display: flex;
        flex-direction: row-reverse;
        width: 100%;
        gap: 30px;
        padding: 0;
        transition: none;
        margin: 12rem 0 0 0;
        text-align-last: center;
    }

    .hero__spec-main {
        width: 100%;
        text-align: left;
        padding: 1px 0;
        border-bottom: 0px solid #989393;
        margin: -15px 0 -9px 0;
    }

        .hero__spec-main:last-child {
            border-bottom: 0px solid #989393;
        }

    .hero__car img {
        position: static;
        width: 180%;
        max-width: 200%;
        height: auto;
        display: block;
        will-change: transform;
        transition: 0.4s ease;
        opacity: 1;
        margin: -10rem 0 0 -2.7rem;
    }

    .hero__spec-main strong {
        font-size: 34px;
        font-weight: 400;
        display: block;
        color: #838383;
        margin-bottom: 4px;
        border-bottom: 1px solid #9893934d;
    }

    .hero__spec-main span {
        font-size: 16px;
        color: #000000;
    }


    /* ===== REAR ===== */
    .section--rear img {
        width: 100%;
        margin-top: 10rem;
    }

    .interior-section {
        width: 100%;
        background: #cdcbce;
        padding: 0;
        margin: 0;
        position: relative;
        margin-top: 1rem;
        display: grid;
        grid-template-columns: repeat(1, 1fr);
    }

    .section--Panoramic img {
        width: 100%;
        margin-top: 2rem;
        transform: translate(0px, 56px);
    }

    .car-label {
        font-weight: bolder;
        letter-spacing: -0.9px;
        text-transform: uppercase;
        color: #111111;
        text-align: center;
        margin-top: -4px;
        transition: all 0.3s;
    }

    .opt {
        font-size: 13px;
        margin-left: 0;
        cursor: pointer;
        color: #999;
        letter-spacing: 1px;
        transition: .3s;
    }

    div#car {
        grid-column: 2;
    }

    div#text {
        grid-column: 1;
        position: relative !important;
    }

    /* ===== PERFORMANCE ===== */
    #performance {
        position: relative;
        min-height: 100vh !important;
        overflow: hidden;
    }

        #performance .section__inner {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100vh;
            max-height: 150dvh;
            top: 0;
        }


    /* ===== CONFIGURATOR ===== */
    #colors {
        display: flex;
        flex-direction: column;
        position: relative;
        min-height: clamp(520px, 100dvh, 900px) !important;
        padding-block: 40px 0px !important;
    }

    .car-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        /* cursor: pointer; */
        transition: transform 0.5s ease;
        padding: 20px;
        width: 100%;
        margin: 0;
    }
    /* المحتوى العلوي */
    .colors-content {
        flex: 1 1 auto;
        display: grid;
        justify-content: center;
        padding: 0 0 24px 0;
    }

    .flex {
        display: block !important;
    }

    /* ❌ ألغِ أي top / relative */
    #carColorImg {
        width: 100%;
        max-width: 720px;
        height: auto;
        position: static;
        margin: 0 0 0 -3rem;
    }

    /* البوكس */
    .configurator {
        margin: 208px 0 80px 0;
        width: 100%;
        padding: 12px 12px 8px;
        background: #f1f1f1;
        border-radius: 0;
        position: sticky;
        left: 0;
        top: 0;
        transform: none;
    }



    /* ===== HEADER TABS ===== */
    .config-header {
        justify-content: center;
        gap: 24px;
        font-size: 24px;
        border-bottom: 1px solid #ccc;
        margin-bottom: 8px;
    }

        .config-header span {
            position: relative;
        }

    .config-section.active .config-header span::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: -6px;
        width: 100%;
        height: 2px;
        background: #000;
    }

    .config-header button {
        display: none; /* + تختفي */
    }

    /* ===== SECTIONS ===== */
    .config-section {
        margin: 0;
    }

    .config-header button {
        display: none; /* + - تختفي */
    }

    .config-section .config-header span {
        position: relative;
        opacity: .5;
        cursor: pointer;
    }

    .config-section.active .config-header span {
        opacity: 1;
        font-weight: 500;
    }

        .config-section.active .config-header span::after {
            content: "";
            position: absolute;
            left: 0;
            bottom: -6px;
            width: 100%;
            height: 2px;
            background: #000;
        }
    /* كل الأقسام مغلقة إلا active */
    .config-content {
        /* max-height: none;
        opacity: 1;
        transform: none;
        display: none;
        padding-top: 8px;*/
        max-height: none !important;
        opacity: 1 !important;
        transform: none !important;
        display: none;
        padding-top: 10px;
    }

    .config-section.active .config-content {
        display: block;
    }

    /* ===== COLOR GRID ===== */
    .color-grid {
        display: flex;
        flex-direction: row;
        gap: 8px;
    }

    .color-swatch {
        width: 45px;
        height: 45px;
        border-width: 1.5px;
    }

    /* ===== LABEL ===== */
    .color-label {
        font-size: 16px;
        font-weight: normal;
        color: #333;
        margin-top: 4px;
    }




    /**************************************************/


    /* شريط التبويبات */
    .configurator-tabs {
        display: flex;
        gap: 18px;
        padding: 0 0px 6px;
        border-bottom: 1px solid #ccc;
        font-size: 19px;
    }

        .configurator-tabs .tab {
            position: relative;
            padding-bottom: 6px;
            opacity: .45;
            cursor: pointer;
            white-space: nowrap;
        }

            .configurator-tabs .tab.active {
                opacity: 1;
                font-weight: 500;
            }

                .configurator-tabs .tab.active::after {
                    content: "";
                    position: absolute;
                    left: 0;
                    bottom: -1px;
                    width: 100%;
                    height: 2px;
                    background: #000;
                }

    /* إخفاء الهيدر القديم */
    .config-header {
        display: none !important;
    }



    /* Override أي display:none سابق */
    .configurator .config-section .config-content {
        display: block !important; /* مهم جداً */
        overflow: hidden !important;
        max-height: 0 !important; /* مخفي */
        opacity: 0 !important;
        transform: translateX(16px) !important;
        /* نخلي الانتقال فعلاً يصير */
        transition: max-height .28s ease, opacity .25s ease, transform .25s ease !important;
    }

    .configurator .config-section.active .config-content {
        max-height: 600px !important; /* رقم كبير يكفي المحتوى */
        opacity: 1 !important;
        transform: translateX(0) !important;
    }


    /* الألوان صف واحد */
    .color-grid {
        display: flex;
        gap: 8px;
        overflow-x: auto;
    }

    .color-swatch {
        width: 32px;
        height: 32px;
        border-width: 1.5px;
    }


    /**************************************************/
    /* ===== IMAGE SECTIONS ===== */
    .mob-height {
        min-height: 30dvh;
        margin: 0;
    }

    #tech {
        will-change: transform, filter;
        min-height: 137dvh !important;
        margin-bottom: 2dvh;
        background-image: none !important;
    }

    .sub-menu a.active::after {
        transform: scaleX(0) !important;
    }

    #topViewDesktop {
        display: none;
    }

    #topViewBase, #topViewRoof {
        display: block;
    }


    #topViewRoof {
        opacity: 0;
        z-index: 2;
    }



    /* ===== 3D ===== */
    .section__inner--3d {
        height: 65vh;
    }

    #car3d {
        cursor: grab;
        touch-action: pan-y;
    }

    /* ===== VIDEO ===== */
    /* ✅ FIX: قياس الفيديو على الموبايل أصبح عمودي (Portrait 9:16) بدل الأفقي */
    .video-wrap {
        max-height: none;
        width: 100%;
        aspect-ratio: 9 / 16;
        margin: 0;
        background: #000;
    }

    .video-bg {
        width: 100%;
        height: 100%;
        aspect-ratio: 9 / 16;
        max-width: 100vw;
        max-height: none;
        object-fit: cover;
        background: #000;
    }

    /* ===== PANORAMIC ===== */
    /* سكشنات الصور البسيطة (rear, panoramic, extra, إلخ) */
    .section--rear,
    .section--Panoramic,
    .section--extra,
    .section--topview {
        padding-block: 20px 40px !important; /* مسافات أقل */
    }

    .center {
        text-align: center;
        margin: -0.6rem 0 0.6rem 0;
    }
    /* ===== INTERIOR ===== */
    .interior-options {
        display: flex;
        justify-content: center;
        /* ✅ FIX: مسافة أريح بين خيارات الألوان الداخلية */
        gap: 18px;
        margin: 3.4rem 0 -4rem 0;
    }

    .section__inner {
        width: 100%;
        height: auto;
    }
    /* ===== DETAILS ===== */
    .details-section {
        background: #bab7bc;
        padding: 0 0 45px 0;
    }

    .details-grid {
        flex-direction: column;
        /* ✅ FIX: مسافة عمودية مريحة بين صور التفاصيل الثلاث على الموبايل */
        gap: 18px;
        padding: 30px;
    }

    .detail-img {
        width: 100%;
        margin-bottom: 4px;
    }

    .panel-center img {
        /* width: min(1200px, 100%); */
        width: 100%;
        margin-inline: auto;
        /* margin: -40px 0 0 0; */
    }
    /* ===== LEARN / CTA ===== */
    .learn-title {
        text-align: left;
        margin: -3rem 0 0 0rem;
        font-size: 18px;
    }

    .learn-section {
        background: #000;
        color: #8f8f8f;
        padding: 80px 31px;
        text-align: center;
    }

    .learn-box {
        width: 100%;
    }

    .learn-buttons {
        flex-direction: column;
        gap: 16px;
        width: 100%;
    }

    .learn-btn {
        width: 100%;
        font-size: 18px;
    }



    /* Swiper نفسه */
    .exteriorSwiper {
        width: 100%;
        height: 600px;
    }

        /* كل شريحة */
        .exteriorSwiper .swiper-slide {
            width: 100% !important;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
        }

            /* الصورة */
            .exteriorSwiper .swiper-slide img {
                width: 100%;
                height: 100%;
                object-fit: cover;
                display: block;
                padding: 20px;
            }

    .learn-box .value {
        font-size: 37px;
        font-weight: 600;
        margin-bottom: 18px;
        color: #212121b8;
    }

    /* ===== FOOTER ===== */
    .contact-inner {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    /* ✅ FIX: فوتر الموبايل صار مطابق للصورة — الأيقونات فوق جوا مربعات بحدود، والتواصل تحت */
    .contact-left {
        order: 2;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        font-size: 14px;
        color: #000;
        white-space: nowrap;
    }

    .contact-right {
        order: 1;
        justify-content: center;
        gap: 25px;
    }

        .contact-right a {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 56px;
            height: 56px;
            border: 0px solid #000;
            border-radius: 12px;
        }

            .contact-right a img {
                width: 48px;
                height: 48px;
                padding: 0;
            }







    .section {
        overflow: hidden;
        margin: 0;
        min-height: auto !important; /* بدل clamp الكبير */
        height: auto !important;
        padding-block: 40px 60px !important; /* مسافات معقولة، مش متغيرة كتير */
        position: relative;
    }




    .topview-mobile-wrapper {
        position: absolute;
        display: inline-block;
        width: 80%;
        max-width: 100%;
        margin: 0 auto;
        margin-left: 0;
    }

        .topview-mobile-wrapper #topViewBase {
            /* ✅ FIX: كانت 60% هون و100% بنسخة تابلت-بورتريت تحت — معكوسة عن G318 (100% هون
            و60% تحت). رجّعناها تطابق G318 بالضبط */
            width: 100%;
            height: auto;
            display: block;
            margin: 260px 0 0 0;
        }

        .topview-mobile-wrapper #topViewRoof {
            position: absolute;
            top: 40.3%;
            left: 10.6%;
            right: 30%;
            bottom: 0;
            width: 32.1%;
            height: auto;
            opacity: 0;
            pointer-events: none;
            z-index: 2;
            object-fit: contain;
        }

    .section--topview {
        height: auto !important;
        min-height: 60vh;
        padding: 40px 0 !important;
    }

    .sub-menu a.active::after {
        transform: scaleX(0) !important;
    }

    .inner {
        margin: -40px 0 -40px 0px;
    }

    .extra {
        margin: 0 !important;
        background: #ffffff00;
    }

    .interior-text {
        width: 100%
    }

    div#text {
        grid-column: 1;
        position: relative !important;
    }

    .interior-text p {
        font-size: 1.1rem;
        line-height: 1.6;
        max-width: 100%;
        margin: 2rem 0 0 0rem;
        padding: 0 17px;
        text-align: left;
        width: 100%;
    }

    .left-text-absolute {
        position: absolute;
        top: 0%;
        left: 0%;
        max-width: 100%;
        font-size: 25px;
        line-height: 1.6;
        text-align: left;
        padding: 0 17px;
    }

    .center-text p {
        font-size: 25px;
        line-height: 1.6;
        max-width: 100%;
        text-align: left;
        margin: -23px 0;
        padding: 0 17px;
        z-index: 1;
    }

    .opt.active {
        color: #000;
        font-weight: bold;
        border-bottom: 0px solid #000;
        padding-bottom: 3px;
    }

    .center-text {
        position: absolute;
        top: 5%;
        width: 100%;
    }

    .left-text {
        position: absolute;
        top: 2rem;
        left: 0;
        max-width: 100%;
        font-size: 25px;
        line-height: 1.6;
        width: 100%;
        padding: 0 17px;
        /* margin: 0 0 0 27px; */
    }

    /* ===== PANORAMIC VIEW ===== */

    #PanoramicView {
        background-image: none !important;
        height: auto;
        margin-bottom: 0rem;
        margin-top: 0px;
    }
}

/* ===================================================
   TABLET LANDSCAPE (1024px – 1279px)
=================================================== */
@media (min-width: 1024px) and (max-width: 1279px) {

    /* ================================
           Global Reset & Base
  ================================ */
    * {
        box-sizing: border-box;
        margin: 0;
        padding: 0;
    }

    body {
        /*font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;*/
        font-family: avatrfont-bold;
        background: #cdcbce;
        color: #111;
        overflow-x: hidden;
    }

    img {
        max-width: 100%;
        display: block;
    }

    a {
        text-decoration: none;
        color: inherit;
    }


    /* Target the whole scrollbar */
    ::-webkit-scrollbar {
        width: 12px; /* Set the width for vertical scrollbars */
        height: 12px; /* Set the height for horizontal scrollbars */
    }

    /* Target the track (background) */
    ::-webkit-scrollbar-track {
        background: #f1f1f1;
    }

    /* Target the thumb (draggable part) */
    ::-webkit-scrollbar-thumb {
        background: linear-gradient(184deg, rgba(181, 181, 181, 1) 0%, rgb(122 122 122) 50%, rgb(0 0 13 / 51%) 100%);
        border-radius: 6px; /* Optional: adds rounded corners */
    }

        /* Change thumb color on hover */
        ::-webkit-scrollbar-thumb:hover {
            background: #555;
        }




    /* ========== POLESTAR STYLE SUB SECTION ========== */

    .deepal-sub {
        width: 100%;
        height: 85vh; /* شبه شاشة كاملة */
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 7%;
        background: #ffffff;
    }

    .sub-left {
        display: flex;
        flex-direction: column;
        gap: 25px;
    }

        .sub-left a {
            font-size: 42px; /* خطوط كبيرة مثل الصورة */
            color: #000;
            font-weight: 300;
            letter-spacing: -1px;
            transition: .2s ease;
        }

            .sub-left a:hover {
                opacity: .5;
            }

    .sub-right img {
        width: 700px; /* عدّل الحجم حسب سيارتك */
        max-width: 45vw;
        object-fit: contain;
        user-select: none;
        pointer-events: none;
        transform: translateX(40px);
        opacity: 0;
        transition: .8s ease;
    }

    .deepal-sub.loaded .sub-right img {
        transform: translateX(0);
        opacity: 1;
    }

    /* موبايل بسيط */
    @media (max-width: 900px) {
        .header-row {
            padding: 10px 4%;
        }

        .deepal-sub {
            flex-direction: column;
            justify-content: center;
            text-align: left;
            padding: 120px 6% 40px;
            height: auto;
        }

        .sub-left a {
            font-size: 32px;
        }

        .sub-right img {
            margin-top: 30px;
            max-width: 80vw;
        }

        .car-menu {
            gap: 15px;
            font-size: 14px;
        }
    }


    .ModelName {
        margin: 0 0 -2.8rem 0;
        font-size: 32px;
        width: 133%;
    }
    /* ================================
           Sections base
        ================================ */
    /*main {
    margin-top: 72px;*/ /* space for fixed navbar */
    /*}*/
    .section {
        min-height: 80vh;
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
        background: #cdcbce;
        /*background: #cdcbce;*/
        overflow: hidden;
    }

    .section--dark {
        background: #111;
        color: #fff;
    }

    .section__inner {
        /*width: min(1200px, 100%);*/
        width: 100%;
        margin-inline: auto;
        /*padding: 40px 40px;*/
    }

    /* ================================
           HERO
        ================================ */



    /* HERO SECTION */
    /*.hero {
    width: 100%;
    background: #e6e7e8;
    padding: 120px 0 40px;
}*/
    .hero {
        background-image: url("../../Deepal/Images/G318/MainPageBackground.png") %>") !important; background-size: cover; background-position: center; background-repeat: no-repeat;
    }

    /*.hero__content {
    max-width: 1400px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
}*/

    .hero__content {
        display: grid;
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
        align-items: center;
        gap: 40px;
        width: min(1300px, 100%);
        padding: 40px 10px;
        width: 100%;
    }

    .hero__text {
        width: 40%;
        padding-left: 0px;
        margin-top: 55px;
        margin-left: -3rem;
    }


        .hero__text h1 {
            font-size: 48px;
            font-weight: 600;
            margin-bottom: 15px;
        }
    /* Slide from right */
    .hero__text {
        opacity: 1;
        transform: translateX(80px);
        transition: 1s ease-out;
    }

        .hero__text.show {
            opacity: 1;
            transform: translateX(0);
        }


        /* Slide from left when scrolling */
        .hero__text.scroll-anim {
            opacity: 0;
            transform: translateX(-60px);
        }

            .hero__text.scroll-anim.active {
                opacity: 1;
                transform: translateX(0);
            }

    .hero__tabs {
        font-size: 31px;
        font-weight: 500;
        letter-spacing: 2px;
        margin-bottom: 35px;
        width: 172%;
        margin: 0 0 0.7rem 17rem;
    }

    .hero-hr {
        height: 1.8px;
        background: #0000007d;
        border: #0000007d;
        width: 12rem;
        margin: 1.2rem 0 2.5rem -0.2rem;
    }


    .hero__tabs span {
        cursor: pointer;
        margin-right: 20px;
    }

    .hero__tabs .active {
        color: #66666669;
    }

    .hero__tabs .inactive {
        color: #aaa;
    }

    .hero__spec-list {
        display: flex;
        gap: 11px;
        margin-top: -1rem;
        transition: opacity .35s ease, transform .35s ease;
        width: 100%;
    }

    .hero-col {
        flex-direction: column;
    }

    .hero__spec-main strong {
        font-size: 34px;
        display: block;
        color: #aaaaaa;
    }

    /*.hero__car img {
    width: 780px;
    transition: 0.4s ease;
    opacity: 1;
}*/

    .hero__car img {
        width: 130%;
        will-change: transform;
        margin: 11rem 0 0 -12rem;
        transition: 0.4s ease;
        opacity: 1;
        max-width: 200%;
    }
    .flex {
        display: block !important;
    }
    .car-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        /* cursor: pointer; */
        transition: transform 0.5s ease;
        padding: 20px;
        width: 100%;
        margin: 0;
    }
    /* ================= Hero Specs Slide ================= */

    #hero .hero__spec-list {
        position: relative;
        transition: transform .45s cubic-bezier(.4,0,.2,1), opacity .3s ease;
    }

    #hero .slide-out-left {
        transform: translateX(-60px);
        opacity: 0;
    }

    #hero .slide-out-right {
        transform: translateX(60px);
        opacity: 0;
    }

    #hero .slide-in-left {
        transform: translateX(-60px);
        opacity: 0;
    }

    #hero .slide-in-right {
        transform: translateX(60px);
        opacity: 0;
    }

    #hero .slide-active {
        transform: translateX(0);
        opacity: 1;
    }



    /* ================================
           Simple image panels (other sections)
        ================================ */
    .panel-center img {
        /*width: min(1200px, 100%);*/
        width: 100%;
        margin-inline: auto;
    }


    /* ================================
           CONFIGURATOR
        ================================ */
    .configurator {
        position: absolute;
        left: 30px;
        top: 30px;
        width: 180px;
        padding: 16px;
        z-index: 20;
        backdrop-filter: blur(6px);
        background: rgba(243,243,243,0.92);
        box-shadow: 0 12px 30px rgba(0,0,0,.15);
        border-radius: 7px;
    }
    /*@media (max-width: 768px) {
    .configurator {
        
        transform: translateX(-50%);
        width: calc(100% - 32px);
    }
}*/

    /* HEADER */
    .config-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 18px;
        cursor: pointer;
    }

        .config-header button {
            background: none;
            border: none;
            font-size: 20px;
            cursor: pointer;
        }

    /* SECTION */
    .config-section {
        margin-bottom: 18px;
    }




    .config-content {
        overflow: hidden;
        max-height: 0;
        opacity: 0;
        transform: translateY(-8px);
        transition: max-height .45s cubic-bezier(.4,0,.2,1), opacity .25s ease, transform .35s ease;
    }

    /* عند الفتح */
    .config-section.active .config-content {
        opacity: 1;
        transform: translateY(0);
    }


    .config-section.active .toggle {
        transform: rotate(45deg);
    }

    /* COLORS */
    .color-grid {
        display: grid;
        grid-template-columns: repeat(3, 0fr);
        gap: 3px;
    }

    .color-swatch {
        width: 45px;
        height: 45px;
        border: 1px solid #00000000;
        cursor: pointer;
    }

        .color-swatch.active {
            border: 1px solid #000;
        }

    /* LABEL */
    .color-label {
        margin-top: 8px;
        font-weight: bold;
    }

    /* WHEELS */
    .config-content.wheels {
        display: flex;
        gap: 10px;
    }

    .wheel-option {
        width: 55px;
        cursor: pointer;
        opacity: .5;
    }

        .wheel-option.active {
            opacity: 1;
            border: 2px solid #000;
        }

    /* CAR IMAGE */
    .car-preview {
        width: 100%;
        margin-top: 20px;
    }

    /* ANIMATION */
    @keyframes fadeSlide {
        from {
            opacity: 0;
            transform: translateY(-8px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }


    /* IMAGE SLIDE ANIMATION */
    #carColorImg {
        width: 100%;
        transition: transform 0.6s ease, opacity 0.6s ease;
        MARGIN: 0 0 0 -6rem;
    }
    /* ================================
           Rear images
        ================================ */
    .section--rear {
    }

        .section--rear img {
            width: 100%;
            margin-top: 32rem;
        }


    /* ================================
           Topview images
        ================================ */


    .section--topview {
        position: relative;
        height: 100vh;
        overflow: hidden;
    }

    .topview-inner {
        height: 100vh;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    #topViewDesktop {
        width: 100%;
        transform: translateX(-60vw); /* تبدأ السيارة خارج الشاشة من اليسار */
        will-change: transform;
        display: block !important;
    }

    #topViewBase,
    #topViewRoof {
        display: none;
    }

    .section--topview {
        position: relative;
        height: 100vh;
        overflow: hidden;
        background-image: linear-gradient(180deg, #bec6cc, #dbe2e6);
    }

    .topview-inner {
        height: 100vh;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    /* إلغاء أي ارتفاع ثابت وجعل السكشن ياخذ مساحة للتمرير */
    /*.section--topview {
        position: relative;
        height: 250vh;*/ /* اجعل ارتفاعه ضعف الشاشة تقريباً لإعطاء مسافة للحركة */
    /*min-height: unset;*/ /* إلغاء أي min-height ثابت */
    /*overflow: hidden;*/ /* يمنع ظهور أي شيء خارج الحدود */
    /*background: #cdcbce;*/ /* نفس خلفية الموقع */
    /*}*/

    /* حاوية السيارة تصبح Sticky (هذه السحر الذي يمنع التقطيع) */
    /*.topview-inner {
        position: sticky;
        top: 0;
        height: 100vh;*/ /* تملأ الشاشة أثناء التثبيت */
    /*display: flex;
        justify-content: center;
        align-items: center;
        overflow: hidden;
    }*/

    /* تعديل الصورة الأساسية */


    /* ================================
           Interior with three images
        ================================ */
    /* سكشن كامل */
    .interior-section {
        width: 100%;
        background: #cdcbce; /* نفس الخلفية الموجودة بالصورة */
        padding: 0;
        margin: 0;
        position: relative;
        margin-top: 4rem;
        display: grid;
        grid-template-columns: repeat(1, 1fr);
    }

    .interior-photo-wrap {
        position: relative;
        width: 100%;
    }
        /* الصورة كاملة */
        .interior-photo-wrap img {
            width: 100%;
            display: block;
            opacity: 1;
            /*transition: opacity .5s ease, transform .5s ease;*/
            inset: 0;
            object-fit: cover;
        }

    /* الصورة المتحركة */
    .interiorOverlay {
        z-index: 2;
        opacity: 0;
        pointer-events: none;
        position: absolute;
    }

    /* الحركة */
    /*.fade-out {
    opacity: 0;
    transform: translateX(0px);
}

.fade-in {
    opacity: 1;
    transform: translateX(0);
}*/

    /* خيارات — تحت الصورة — يمين */
    .interior-options {
        width: 100%;
        padding: 15px 5%;
        text-align: right;
        background: #cdcbce;
    }

    .opt {
        font-size: 18px;
        margin-left: 20px;
        cursor: pointer;
        color: #999;
        letter-spacing: 1px;
        transition: .3s;
    }

        .opt.active {
            color: #000;
            font-weight: bold;
            border-bottom: 2px solid #000;
            padding-bottom: 3px;
        }



    /* ================================
           Interior Details with three images
        ================================ */
    .details-section {
        background: #cdcbce; /* نفس لون الخلفية بالصورة */
        padding: 60px 0;
    }

    .details-grid {
        max-width: 1200px;
        margin: auto;
        display: flex;
        justify-content: space-between;
        gap: 25px;
    }

    .detail-img {
        width: 32%;
        border-radius: 4px;
        opacity: 0;
        transform: translateY(40px);
        transition: 0.8s ease;
    }
    /* ================================
           Interior Details with three images
        ================================ */
    .section--extra {
        min-height: 95vh;
        overflow: hidden;
    }
    /* ================================
           Learn more section (new)
        ================================ */
    .learn-section {
        background: #000;
        color: #fff;
        padding: 80px 40px;
        text-align: center;
    }

    .learn-title {
        font-size: 38px;
        font-weight: 300;
        margin-bottom: 50px;
        opacity: .85;
        text-align: left;
        margin-left: 5rem;
    }

    .learn-boxes {
        display: flex;
        justify-content: center;
        gap: 30px;
        flex-wrap: wrap;
        margin-bottom: 50px;
        transition: opacity .35s ease, transform .35s ease;
    }

    .hero__spec-list.hidden {
        opacity: 0;
        transform: translateY(20px);
    }

    .hero-specs-reev {
        display: none;
    }

    .learn-box {
        background: #8f8f8f;
        width: 340px;
        padding: 30px;
        text-align: left;
    }

        .learn-box h3 {
            font-size: 22px;
            font-weight: 500;
            margin-bottom: 10px;
            color: black;
        }

        .learn-box .value {
            font-size: 46px;
            font-weight: 600;
            margin-bottom: 18px;
            color: #212121b8;
        }

        .learn-box .sub {
            font-size: 17px;
            opacity: .9;
            color: black;
        }

        .learn-box .dim {
            font-size: 20px;
            opacity: .7;
            margin-top: 4px;
            color: #212121b8;
        }

    .learn-buttons {
        display: flex;
        justify-content: center;
        gap: 40px;
        margin-top: 30px;
        flex-wrap: wrap;
        width: -webkit-fill-available;
    }

    .learn-btn {
        background: #8f8f8f;
        color: #000;
        padding: 16px 40px;
        text-decoration: none;
        font-size: 20px;
        border-radius: 3px;
        transition: 0.2s ease;
        width: -webkit-fill-available;
    }

    .section--extra {
        min-height: auto;
        overflow: hidden;
        margin: 34px;
        height: 62vh;
    }

    .learn-btn:hover {
        background: #b5b5b5;
    }

    /* ================================
           Contact footer (new)
        ================================ */
    .contact-footer {
        background: #fff;
        padding: 40px 50px;
        border-top: 1px solid #000;
    }

    .contact-inner {
        display: flex;
        justify-content: space-between;
        align-items: center;
        max-width: 1300px;
        margin: auto;
    }

    .contact-left {
        display: flex;
        align-items: center;
        gap: 12px;
        font-size: 18px;
        color: #000;
    }

    .contact-sep {
        font-weight: 400;
    }

    .contact-right {
        display: flex;
        align-items: center;
        gap: 18px;
    }

        .contact-right a img {
            width: 46px;
            height: 46px;
            object-fit: contain;
            /* border: 2px solid #000; */
            padding: 5px;
            border-radius: 5px;
            transition: 0.25s;
        }

            .contact-right a img:hover {
                background: #000;
                filter: invert(100%);
                transform: scale(1.05);
            }

    /* ================================
           Optional bottom footer (copyright)
        ================================ */
    .bottom-footer {
        background: #111;
        color: #aaa;
        text-align: center;
        padding: 18px 0;
        font-size: 14px;
    }

    /* ================================
           Animation pre-state
        ================================ */
    .anim {
        opacity: 0;
        transform: translateY(40px);
    }


    /* =========================
   3D CAR SECTION
========================= */
    /* =========================
   PERFORMANCE SECTION
========================= */


    #performance {
        position: relative;
        min-height: 100vh;
        overflow: hidden;
    }

        /* IMAGE + 3D share same space */
        #performance .section__inner {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
        }




    /* Image view */
    .section__inner--image {
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 2;
    }

    /* 3D view */


    .section--3d {
        min-height: 100vh;
        background: #cdcbce; /* نفس خلفية الموقع */
        padding: 0;
    }

    .section__inner--3d {
        position: relative;
        width: 100%;
        height: 100vh;
        overflow: hidden;
        z-index: 100;
    }

    /* Canvas */
    #car3d {
        width: 100%;
        height: 100%;
        display: block;
        cursor: ew-resize;
    }

    /* Title فوق الـ 3D */
    .car3d-title {
        position: absolute;
        top: 40px;
        left: 60px;
        font-size: 42px;
        font-weight: 300;
        z-index: 3;
    }


    /* =========================
   VIEW TOGGLE BUTTONS
========================= */

    /* Buttons */
    .view-toggle {
        position: absolute;
        right: 40px;
        bottom: 40px;
        z-index: 105;
        display: flex;
        gap: 12px;
    }

    .toggle-btn {
        width: 54px;
        height: 54px;
        border-radius: 50%;
        border: 1px solid #000;
        background: #fff;
        cursor: pointer;
    }

        .toggle-btn.hidden {
            display: none;
        }

        .toggle-btn:hover {
            background: #000;
            color: #fff;
        }

        .toggle-btn.active {
            display: none; /* نخفي الزر النشط */
        }


    .section__inner,
    .section__inner--3d {
        transition: opacity 0.4s ease;
    }




        .section__inner--3d:hover #car3d {
            cursor: url('../images/arrows.png') 16 16, ew-resize;
        }


    /* =====================
   VIDEO SECTION
===================== */

    .video-wrap {
        position: relative;
        width: 100%;
        height: 100%;
        overflow: hidden;
        max-height: 100vh;
    }

    .video-bg,
    .video-poster {
        width: 100%;
        height: auto;
        display: block;
    }

    .video-bg {
        width: 100%;
        height: 100%;
        max-width: 100vw; /* لا يتجاوز العرض */
        max-height: 100vh; /* لا يتجاوز الارتفاع */
        object-fit: cover; /* يلتزم بحجم السكشن */
        display: block;
        opacity: 1;
    }

        .video-bg.ready {
            opacity: 1;
        }


    .video-poster.hide {
        opacity: 0;
    }

    /* زر التشغيل */
    .video-control {
        position: absolute;
        right: clamp(16px, 4vw, 32px);
        bottom: clamp(16px, 5vw, 75px);
        width: 56px;
        height: 56px;
        border-radius: 50%;
        border: none;
        background: rgba(0,0,0,0.55);
        color: #fff;
        font-size: 18px;
        cursor: pointer;
        backdrop-filter: blur(8px);
        z-index: 10;
        transition: .25s ease;
    }

        .video-control:hover {
            background: rgba(0,0,0,0.85);
            transform: scale(1.05);
        }

        .video-control.hidden {
            opacity: 0;
            pointer-events: none;
        }


    /* progress */
    .video-progress {
        position: absolute;
        right: clamp(16px, 4vw, 32px);
        bottom: clamp(16px, 5vw, 75px);
        width: 56px;
        height: 56px;
        pointer-events: none;
        z-index: 9;
    }

        .video-progress svg {
            width: 100%;
            height: 100%;
            transform: rotate(-90deg);
        }

    .progress-bg {
        fill: none;
        stroke: rgba(255,255,255,0.2);
        stroke-width: 3;
    }

    .progress-bar {
        fill: none;
        stroke: #fff;
        stroke-width: 3;
        stroke-dasharray: 100;
        stroke-dashoffset: 100;
        transition: stroke-dashoffset .2s linear;
    }


    /* =============================
   EXTERIOR SWIPER
============================= */

    .exterior-slider {
        background: #cdcbce;
    }

    .slider-wrap {
        width: 100%;
        height: 100%;
        position: relative;
    }

    /* Swiper نفسه */
    .exteriorSwiper {
        width: 100%;
        height: 100%;
    }

        /* كل شريحة */
        .exteriorSwiper .swiper-slide {
            width: 100% !important;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
        }

            /* الصورة */
            .exteriorSwiper .swiper-slide img {
                width: 100%;
                height: 100%;
                object-fit: cover;
                display: block;
            }

        /* أزرار التنقل – فخمة وبسيطة */
        .exteriorSwiper .swiper-button-next, .exteriorSwiper .swiper-button-prev {
            color: #ffffff;
            width: 44px;
            height: 44px;
            background: rgb(0 0 0 / 15%);
            border-radius: 50%;
            backdrop-filter: blur(61px);
            transition: .25s ease;
            padding: 0;
        }

            .exteriorSwiper .swiper-button-next:hover,
            .exteriorSwiper .swiper-button-prev:hover {
                /*background: rgba(255,255,255,0.9);*/
                backdrop-filter: blur(17px);
                transform: scale(1.05);
            }

    .swiper-button-next:after, .swiper-button-prev:after {
        font-family: swiper-icons;
        font-size: var(--swiper-navigation-size);
        text-transform: none !important;
        letter-spacing: 0;
        font-variant: initial;
        line-height: 1;
        font-size: 15px !important;
    }



    .learn-boxes.hidden {
        opacity: 0;
        transform: translateY(20px);
    }




    .main-menu.show {
        display: flex !important;
        flex-direction: column;
        position: absolute;
        top: 70px;
        right: 0;
        background: #fff;
        padding: 20px;
        gap: 20px;
        width: 220px;
        box-shadow: 0 4px 20px #0001;
    }

    .center-text p {
        position: relative;
        /* margin: -22rem 0 0 0; */
        padding: 0 11px;
        top: 0;
        left: 25rem;
        max-width: 31rem;
        font-size: 26px;
        line-height: 1.6;
        text-align: left;
        width: 800px;
    }

    .left-text-absolute {
        position: absolute;
        top: 3rem;
        left: 3.5%;
        max-width: 41rem;
        font-size: 26px;
        line-height: 1.6;
    }

    .left-text {
        position: absolute;
        top: 2rem;
        left: 8.5%;
        max-width: 50rem;
        font-size: 2.2rem;
        line-height: 1.6;
    }
    .center {
        text-align: center;
        display: none;
    }

    .interior-text p {
        font-size: 1.5rem;
        line-height: 1.6;
        max-width: 50rem;
        margin: 0 0 0 4rem;
        top: 0rem;
        position: absolute;
    }

    .interior-block {
        margin: 0rem 0 0 0;
    }
}


.flex {
    display: flex
}
.center {
    text-align: center;
}
