﻿
/* ================================
           Global Reset & Base
  ================================ */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #cdcbce;
    color: #111;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}





/* ========== POLESTAR STYLE SUB SECTION ========== */

.polestar-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;
}

.polestar-sub.loaded .sub-right img {
    transform: translateX(0);
    opacity: 1;
}

/* موبايل بسيط */
@media (max-width: 900px) {
    .header-row {
        padding: 10px 4%;
    }

    .polestar-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/S05/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 40px;
    width: 100%;
}

.hero__text {
    width: 40%;
    padding-left: 80px;
    margin-top: -1 55px;
}


    .hero__text h1 {
        font-size: 48px;
        font-weight: 600;
        margin-bottom: 15px;
    }
/* Slide from right */
.hero__text {
    opacity: 0;
    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: 15rem;
    margin: 2rem 0 2rem -1.5rem;
}


.hero__tabs span {
    cursor: pointer;
    margin-right: 20px;
}

.hero__tabs .active {
    color: #000;
}

.hero__tabs .inactive {
    color: #aaa;
}

.hero__spec-list {
    display: flex;
    flex-direction: column;
    gap: 11px;
    margin-top: -1rem;
}

.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: 115%;
    will-change: transform;
    margin: 0 0 0 -4rem;
    transition: 0.4s ease;
    opacity: 1;
    max-width: 200%;
}
/* ================================
           Simple image panels (other sections)
        ================================ */
.panel-center img {
    /*width: min(1200px, 100%);*/
    width: 100%;
    margin-inline: auto;
}

.section--colors {
    background-image: url(../../Deepal/Images/S05/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);
    }


/* IMAGE SLIDE ANIMATION */
#carColorImg {
    width: 60%;
    transition: transform 0.6s ease, opacity 0.6s ease;
}

/* ================================
           Rear images
        ================================ */
.section--rear {
}

    .section--rear img {
        width: 70%;
        margin-top: 10rem;
    }


/* ================================
           Topview images
        ================================ */


.section--topview {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.topview-inner {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

#topViewCar {
    width: 1100px;
    transform: translateX(-60vw); /* تبدأ السيارة خارج الشاشة من اليسار */
    will-change: transform;
}



/* ================================
           Panoramic grid images
        ================================ */


.section--Panoramic img {
    width: 100%;
    margin-top: -20rem;
}




/* ================================
           Interior with three images
        ================================ */
/* سكشن كامل */
.interior-section {
    width: 100%;
    background: #cdcbce; /* نفس الخلفية الموجودة بالصورة */
    padding: 0;
    margin: 0;
    position: relative;
    margin-top: 4rem;
}

/* الصورة كاملة */
.interior-photo-wrap img {
    width: 100%;
    display: block;
    transition: opacity .5s ease, transform .5s ease;
}

/* الحركة */
.fade-out {
    opacity: 0;
    transform: translateX(40px);
}

.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;
}

.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;
}

.learn-btn {
    background: #8f8f8f;
    color: #000;
    padding: 16px 40px;
    text-decoration: none;
    font-size: 20px;
    border-radius: 3px;
    transition: 0.2s ease;
    width: 36.3%;
}

.section--extra {
    min-height: 95vh;
    overflow: hidden;
    margin: 34px;
}

.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);
}

/* ================================
           Responsive tweaks
        ================================ */
@media (max-width: 900px) {
    .top-nav {
        padding-inline: 20px;
    }

    .top-nav__menu {
        display: none; /* optional: hide menu on small screens */
    }

    .hero__content {
        grid-template-columns: 1fr;
        padding-inline: 16px;
        text-align: center;
    }

    .hero__text {
        order: 2;
    }

    .hero__car {
        order: 1;
    }

    .section__inner {
        padding-inline: 4px;
    }

    .interior-grid {
        grid-template-columns: 1fr;
    }

    .contact-inner {
        flex-direction: column;
        gap: 25px;
    }
}






/* ============================================
   RESPONSIVE — TABLET (1024px وما دون)
   ============================================ */

@media (max-width: 1024px) {

    /* ======= الهيدر ======= */
    .top-row .container,
    .bottom-row .container {
        padding: 0 20px;
    }

    .main-menu {
        gap: 22px;
    }

    .sub-menu a {
        font-size: 17px;
    }

    .stay-btn {
        padding: 10px 18px;
        font-size: 14px;
    }

    /* ======= Submenu الديناميكي ======= */
    .dynamic-submenu {
        padding: 50px 40px;
        gap: 40px;
        top: 145px;
    }

        .dynamic-submenu .left-links a {
            font-size: 28px;
        }

        .dynamic-submenu .right-img img {
            width: 420px;
        }

    /* ======= Hero Section ======= */
    .hero__content {
        grid-template-columns: 1fr 1fr;
        padding-inline: 30px;
    }

    .hero__text {
        width: 100%;
        padding-left: 0;
    }

    .hero__car img {
        width: 100%;
        margin: 0;
    }

    /* Interior */
    .interior-options {
        text-align: center;
    }

    /* details */
    .details-grid {
        flex-wrap: wrap;
    }

    .detail-img {
        width: 48%;
    }

    /* Learn Section */
    .learn-inner {
        padding: 0 30px;
    }
}


/* ============================================
   RESPONSIVE — MOBILE LARGE (768px وما دون)
   ============================================ */

@media (max-width: 768px) {

    .section {
        min-height: 40vh;
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
        background: #cdcbce;
        overflow: hidden;
        padding-bottom: 73px;
    }


    .section--rear img {
        width: 100%;
        margin-top: 0rem;
    }

    .interior-section {
        width: 100%;
        background: #cdcbce;
        padding: 0;
        margin: 0;
        position: relative;
        margin-top: 0;
    }
    .section--extra {
        margin: 0;
        height: 1px;
        min-height: 13rem;
    }
    .details-section {
        padding: 60px 0 0;
    }

    .contact-inner {
        display: flex;
        justify-content: space-between;
        align-items: center;
        max-width: 1300px;
        margin: auto -2rem 0 -2rem;
    }
    /* ======= الهيدر ======= */
    .top-row {
        padding: 12px 0;
    }

        .top-row .container {
            flex-direction: row;
            justify-content: space-between;
            padding-inline: 20px;
        }

    .main-menu {
        display: none; /* نخفي المنيو */
    }

    /* زر القائمة */
    .mobile-menu-icon {
        display: block;
        font-size: 28px;
        cursor: pointer;
    }

    .bottom-row {
        padding: 8px 0;
    }

    .sub-menu-row {
        flex-wrap: wrap;
        gap: 15px;
    }

    .sub-menu {
        gap: 20px;
    }

    .stay-btn {
        padding: 8px 16px;
    }

    /* ======= Submenu الديناميكي ======= */
    .dynamic-submenu {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
    }

        .dynamic-submenu .right-img img {
            width: 75%;
            margin-top: 25px;
        }

        .dynamic-submenu .left-links a {
            font-size: 24px;
        }

    /* ======= HERO ======= */
    .hero__content {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 20px;
    }

    .hero__text {
        padding: 0;
    }

    .hero__car img {
        width: 110%;
        margin: 3rem auto;
    }

    .hero-hr {
        display: none;
    }

    /* COLORS */
    .colors-container {
        left: 20px;
        top: auto;
        bottom: 20px;
        transform: none;
    }

    #carColorImg {
        width: 90%;
    }

    /* DETAILS */
    .detail-img {
        width: 100%;
    }

    /* LEARN SECTION */
    .learn-box {
        width: 95%;
        margin: auto;
    }

    .learn-title {
        text-align: center;
        margin-left: 0;
    }
}


/* ============================================
   RESPONSIVE — MOBILE SMALL (480px وما دون)
   ============================================ */

@media (max-width: 480px) {

    .ModelName {
        margin: 0rem 0 0 0;
        font-size: 32px;
        width: 100%;
    }   

    .dynamic-submenu .left-links a {
        font-size: 20px;
    }

    .dynamic-submenu {
        top: 130px;
    }

    .hero__text h1 {
        font-size: 32px;
    }

    .hero__tabs {
        font-size: 20px;
    }

    #carColorImg {
        width: 100%;
    }

    .learn-box {
        width: 100%;
    }

    .learn-btn {
        width: 100%;
    }
}
.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;
}
