/* style.css */

/* تعريف الخطوط المحلية المخصصة (Hacen Tunisia) لتطابق الهوية التجارية الرسمية */
@font-face {
    font-family: 'Hacen Tunisia';
    src: url('font/alfont_com_Hacen-Tunisia-Lt.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Hacen Tunisia';
    src: url('font/alfont_com_Hacen-Tunisia.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Hacen Tunisia';
    src: url('font/alfont_com_Hacen-Tunisia.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Hacen Tunisia';
    src: url('font/alfont_com_Hacen-Tunisia.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Hacen Tunisia';
    src: url('font/alfont_com_Hacen-Tunisia.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Hacen Tunisia';
    src: url('font/alfont_com_Hacen-Tunisia.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --primary-color: #E60000;
    --primary-hover: #CC0000;
    --dark-bg: #0A0A0A;
    --dark-card: #121212;
    --dark-border: #222222;
    --light-bg: #FFFFFF;
    --light-card: #F8F9FA;
    --light-border: #E2E8F0;
    --text-dark: #1A202C;
    --text-light: #E2E8F0;
    --text-muted: #718096;
    --font-cairo: 'Hacen Tunisia', 'Cairo', sans-serif; /* تفعيل الخط المحلي الجديد وتعيين كايرو كخط احتياطي */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 1. التنسيقات العامة والتهيئة */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-family: var(--font-cairo);
    background-color: var(--light-bg);
    color: var(--text-dark);
}

body {
    direction: rtl;
    text-align: right;
    overflow-x: hidden;
    background-color: var(--light-bg);
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 2. الترويسة الرئيسية (نافذة التنقل / الهيدر) */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: #000000; /* خلفية سوداء داكنة بالكامل بناءً على طلب المستخدم */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: var(--transition);
}

.header-container {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 900;
    font-size: 1.4rem;
    color: #FFFFFF;
    letter-spacing: 0.5px;
}

.logo-img {
    height: 38px;
    width: auto;
}

.btn-contact {
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 8px 24px;
    border-radius: 30px;
    color: #FFFFFF;
    font-size: 0.95rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.06);
}

.btn-contact:hover {
    background: #FFFFFF;
    color: var(--dark-bg);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.15);
}

/* 3. القسم الرئيسي (قسم الهيرو) - مع تدرج أحمر حسب التصميم */
.hero-section {
    position: relative;
    min-height: 100vh;
    background: url('public/HOMELANDGEPAGE-CITEY.png') no-repeat center center / cover;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 140px 24px 60px 24px;
    text-align: center;
    overflow: hidden;
}

/* تدرج أحمر فوق صورة الهيرو - يطابق تصميم فيجما بالضبط */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(0deg, rgba(230, 0, 0, 0.5) 0%, rgba(230, 0, 0, 0.22) 25%, rgba(230, 0, 0, 0) 60%),
        linear-gradient(180deg, rgba(10, 10, 10, 0.8) 0%, rgba(10, 10, 10, 0.3) 50%, rgba(10, 10, 10, 0.9) 90%);
    z-index: 2;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    margin-bottom: 20px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 8px 20px;
    border-radius: 50px;
    color: #E2E8F0;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 28px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    max-width: 100%;
}

.badge-dot {
    width: 9px;
    height: 9px;
    background-color: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-color);
}

.hero-title {
    font-size: 3.4rem;
    font-weight: 900;
    line-height: 1.25;
    color: #FFFFFF;
    margin-bottom: 24px;
}

.hero-title .title-line-1,
.hero-title .title-line-2 {
    display: inline-block;
    white-space: nowrap; /* لمنع أي انقسام للكلمات أو نزول كلمة "لك" أو "بشكل أسرع" بشكل منفصل */
}

.hero-title .highlight {
    color: var(--primary-color);
    font-size: 1.03em;
    display: inline-block;
}

.hero-desc {
    font-size: 1.2rem;
    color: #FFFFFF;
    margin-bottom: 36px;
    line-height: 1.7;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

.btn-whatsapp-hero {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background-color: var(--primary-color);
    color: #FFFFFF;
    padding: 15px 36px;
    border-radius: 35px;
    font-weight: 800;
    font-size: 1.15rem;
    box-shadow: 0 6px 20px rgba(230, 0, 0, 0.45);
}

.btn-whatsapp-hero:hover {
    background-color: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(230, 0, 0, 0.55);
}

.btn-icon {
    width: 22px;
    height: 22px;
    filter: brightness(0) invert(1);
}

.hero-car-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 800px;
    margin-top: 10px;
    display: grid;
    place-items: center;
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1), filter 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    filter: drop-shadow(0 0 0px rgba(230, 0, 0, 0));
}

/* إزالة أي توهج أو حركة أو شادو عند مرور الماوس فوق حاوية السيارة */

.hero-car {
    grid-area: 1 / 1;
    width: 100%;
    aspect-ratio: 16 / 9; /* تثبيت نسبة العرض إلى الارتفاع لمنع أي تغيير في الأبعاد */
    object-fit: contain; /* احتواء السيارة بالكامل لمنع التمدد أو تغير الحجم */
    display: block;
    filter: contrast(1.18) brightness(1.02);
    transform: translateY(15px);
    opacity: 0; /* مخفية افتراضياً */
    pointer-events: none;
    transition: opacity 0.8s ease-in-out; /* تأثير تلاشي ناعم للغاية للتبديل */
}

/* السيارة النشطة */
.hero-car.active {
    opacity: 1;
    pointer-events: auto;
}

/* تطبيق حركة الظهور الأولي عند تحميل الصفحة للسيارة النشطة فقط */
.hero-car-container .hero-car.active {
    animation: fadeInUp 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

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

/* 4. قسم الإحصائيات والأرقام */
.metrics-section {
    background-color: var(--light-bg);
    padding: 0;
    position: relative;
    z-index: 10;
    margin-top: 60px; /* تم إسناد هامش علوي إيجابي بدلاً من السالب لإعطاء مسافة تنفس مريحة وأنيقة بين الهيرو والإحصائيات */
}

.metrics-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 0 24px;
}

.metric-card {
    border-radius: 20px;
    padding: 35px 30px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
    transition: var(--transition);
}

.metric-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.metric-card.bg-red {
    background-color: var(--primary-color);
    color: #FFFFFF;
}

.metric-card.bg-dark {
    background-color: #1A1F2C;
    color: #FFFFFF;
}

.metric-card.bg-white {
    background-color: #FFFFFF;
    color: #D90505; /* تغيير لون النص من الأسود إلى الأحمر */
    border: 1px solid var(--light-border);
}

.metric-icon-box {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.16);
    flex-shrink: 0;
}

.metric-card.bg-white .metric-icon-box {
    background: #FAFAFA; /* تغيير خلفية الدائرة إلى الدرجة المطلوبة */
    border: 1px solid rgba(0, 0, 0, 0.04); /* إطار ناعم للغاية لتحديد أطراف الدائرة */
}

.metric-icon {
    width: 32px;
    height: 32px;
}

.metric-card.bg-red .metric-icon,
.metric-card.bg-dark .metric-icon {
    filter: brightness(0) invert(1);
}

.metric-card.bg-white .metric-icon {
    filter: invert(13%) sepia(95%) saturate(7406%) hue-rotate(358deg) brightness(95%) contrast(112%);
    width: 44px; /* تكبير الأيقونة بشرط ألا تخرج من دائرتها */
    height: 44px;
}

.metric-info {
    text-align: right;
}

.metric-info h3 {
    font-size: 2.6rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 6px;
}

.metric-info p {
    font-size: 1rem;
    font-weight: 700;
    opacity: 0.95;
}

/* 5. قسم مقارنة المشكلة والحل */
.problem-section {
    background-color: var(--light-bg);
    padding: 120px 24px;
    overflow: hidden; /* لمنع أي شريط تمرير أفقي بسبب الخلفيات المائلة العريضة */
}

.problem-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 80px;
    align-items: center;
}

.problem-mockup {
    display: flex;
    justify-content: center;
    position: relative;
}

.phone-frame {
    position: relative;
    width: 100%;
    max-width: 310px;
    height: auto;
    filter: drop-shadow(0 25px 50px rgba(0,0,0,0.15));
    margin: 0 auto;
}

.frame-img {
    display: block;
    width: 100%;
    position: relative;
    z-index: 3;
    pointer-events: none;
}

.screen-img {
    position: absolute;
    top: 3.5%;
    left: 7.0%;
    width: 86.0%;
    height: 93.0%;
    border-radius: 36px;
    object-fit: fill;
    z-index: 2;
    transition: border-radius 0.3s;
}

/* خلفية حمراء مائلة بتأثير عصري خلف هيكل الهاتف – مطابقة لتصميم فيجما */
.phone-red-bg {
    position: absolute;
    top: 20%;
    left: -15%;
    width: 130%;
    height: 50%;
    background-color: var(--primary-color);
    border-radius: 32px;
    z-index: 1;
    transform: rotate(10deg);
    transform-origin: center;
}

.problem-text-content {
    display: flex;
    flex-direction: column;
}

.problem-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 35px;
    line-height: 1.35;
    color: var(--text-dark);
}

.problem-list {
    list-style: none;
    margin-bottom: 35px;
}

.problem-list li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-dark);
}

.x-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: #D90505; /* تغيير الخلفية بناءً على طلب المستخدم */
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 2px;
}

.x-mark img {
    width: 14px;
    height: 14px;
    filter: brightness(0) invert(1); /* جعل لون الأيقونة أبيض */
    display: block;
}

.problem-footer-text {
    font-size: 1.25rem;
    color: #4A5568;
    line-height: 1.8;
    font-weight: 600;
    white-space: nowrap; /* عرض الجملة بالكامل في سطر واحد بدون التفاف */
}

/* 6. قسم "ليش تختارنا؟" */
.features-section {
    background-color: var(--light-bg);
    padding: 24px 0;
}

.section-title-wrapper {
    text-align: center;
    margin-bottom: 70px;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 900;
    position: relative;
    display: inline-block;
}

.section-title.text-red {
    color: var(--primary-color);
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.feature-card {
    background-color: var(--light-card);
    border: 1px solid var(--light-border);
    border-radius: 20px;
    padding: 40px 28px;
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(230, 0, 0, 0.35);
    box-shadow: 0 15px 35px rgba(230, 0, 0, 0.05);
}

.feature-icon {
    width: 55px;
    height: 55px;
    margin: 0 auto 24px auto;
    filter: invert(13%) sepia(95%) saturate(7406%) hue-rotate(358deg) brightness(95%) contrast(112%);
}

.feature-card h3 {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 14px;
    color: var(--text-dark);
}

.feature-card p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.65;
    font-weight: 600;
}

/* 7. قسم "كيف نشتغل؟" */
.steps-section {
    background-color: var(--light-bg);
    padding: 24px 0; /* تم تخفيف المسافة الرأسية بنسبة 80% لتصبح 24px لتكون ملمومة وأكثر أناقة واختصاراً */
    border-top: 1px solid var(--light-border);
}

.steps-main-container {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: row; /* aligned side-by-side on the same horizontal level on desktop */
    align-items: center;
    justify-content: space-between;
    gap: 48px; /* premium gap */
    padding: 0 24px; /* premium breathing room on both sides to prevent touching screen edges */
    box-sizing: border-box;
}

.steps-title-content {
    flex: 0 0 220px; /* Fixed width on desktop to prevent awkward wrapping while giving maximum room to cards */
    text-align: right; /* Align text to the right under RTL */
    padding: 0;
    box-sizing: border-box;
}

.steps-main-title {
    font-size: 2.8rem;
    font-weight: 900;
    line-height: 1.2;
    color: var(--primary-color);
    margin: 0;
}

/* تنسيق العنوان الفرعي باللون الرمادي تحت العنوان الرئيسي مباشرة وفي سطر منفصل */
.steps-subtitle {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-muted); /* لون رمادي فاخر متناسق بدلاً من الأحمر */
    margin-top: 12px;
    line-height: 1.5;
}

.steps-grid {
    flex: 1; /* occupy the remaining horizontal space next to the title content */
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 step cards arranged horizontally on desktop */
    gap: 40px; /* spread cards out to take their full comfort across the screen */
    box-sizing: border-box;
}

.step-card {
    position: relative;
    background: transparent;  /* إزالة لون الخلفية المربع ليكون شفافاً وعصرياً */
    border: none;             /* إزالة الإطار المربع */
    border-radius: 0;
    padding: 20px 10px;
    text-align: center;
    transition: var(--transition);
    width: 100%;
}

.step-card:hover {
    transform: translateY(-5px); /* حركة رفع بسيطة للخطوة بالكامل */
}

.step-text {
    /* لتغيير أو زيادة حجم الخط مستقبلاً، قم بتعديل القيمة أدناه (مثال: 1.35rem) */
    font-size: 1.35rem; /* تم تصغير حجم خط الكروت الأربعة قليلاً ليتناسق بصرياً بشكل رائع */
    font-weight: 800;
    color: #000000 !important; /* اللون الأسود الصريح والجريء بدون أي درجات رمادية */
    margin: 0;
    line-height: 1.5;
    white-space: nowrap; /* إفراد الجملة في سطر واحد تماماً منعاً لالتفاف النص وتسهيل القراءة أفقياً */
}

/* السماح بالتفاف نص الكرت الأخير (الاستفسارات) على سطرين ليعطي توازناً ومساحة أفقية كافية لليسار ومنع الالتصاق */
.steps-grid .step-card:last-child .step-text {
    white-space: normal;
}

.step-icon-box {
    width: 90px; /* تم تكبير الدائرة حبة إضافية لتصبح 90px لتظهر بشكل أوضح وتبرز بصرياً */
    height: 90px;
    border-radius: 50%;
    background-color: #FFFFFF; /* تم تحويل الدائرة الحمراء الشفافة لبيضاء بالكامل */
    border: 1px solid rgba(0, 0, 0, 0.02); /* إضافة إطار ميكرو ناعم جداً لتنعيم الأطراف ودمجها مع الخلفية البيضاء */
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(0, 0, 0, 0.02); /* ظل ثلاثي الأبعاد ناعم جداً ومنعم الأطراف ليبرز الدائرة البيضاء بالفخامة */
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px auto;
    transition: var(--transition);
}

/* حركة تفاعلية بريميوم لدائرة الأيقونة عند تمرير الماوس فوق الخطوة */
.step-card:hover .step-icon-box {
    background-color: var(--primary-color); /* الدائرة تتحول للأحمر الكامل */
    box-shadow: 0 12px 28px rgba(230, 0, 0, 0.35); /* توهج أحمر محيطي */
    transform: scale(1.08); /* تكبير خفيف للدائرة */
}

.step-icon {
    width: 38px; /* تم تكبير الأيقونة من 28px إلى 38px كطلب المستخدم */
    height: 38px;
    filter: invert(13%) sepia(95%) saturate(7406%) hue-rotate(358deg) brightness(95%) contrast(112%); /* لون الأيقونة الأحمر الافتراضي */
    transition: var(--transition);
}

/* الأيقونة داخل الدائرة تتحول للون الأبيض لتباين ممتاز عند التمرير */
.step-card:hover .step-icon {
    filter: brightness(0) invert(1);
}

/* 8. الأقسام الداكنة المشتركة (الخدمات وغيرها) */
.services-section, 
.other-services-section,
.reviews-section,
.sold-cars-section,
.results-section {
    background-color: var(--dark-bg);
    color: #FFFFFF;
    padding: 120px 24px;
}

.dark-section-title-wrapper {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 70px auto;
}

.dark-section-title {
    font-size: 2.6rem;
    font-weight: 900;
    color: #FFFFFF;
    margin-bottom: 16px;
    position: relative;
    display: inline-block;
}

.dark-section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.dark-section-subtitle {
    font-size: 1.65rem;
    font-weight: 800;
    color: #F8F9FA;
    margin-top: 30px;
    margin-bottom: 12px;
}

.dark-section-desc {
    font-size: 1.1rem;
    color: #A0AEC0;
    font-weight: 500;
}

/* ===================================================
   9. التمرير اللانهائي التلقائي (مشترك لكل الأقسام)
   =================================================== */

/* 10. كروت الخدمات الأساسية */
.service-slide-card {
    position: relative;
    width: 320px;
    height: 410px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: var(--transition);
    max-width: 100%;
    flex-shrink: 0;
}

.service-slide-card:hover {
    transform: translateY(-8px);
    border-color: rgba(230, 0, 0, 0.4);
    box-shadow: 0 15px 35px rgba(230, 0, 0, 0.15);
}

.service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-slide-card:hover .service-img {
    transform: scale(1.05);
}

.service-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(360deg, rgba(10,10,10,0.98) 0%, rgba(10,10,10,0.5) 45%, rgba(10,10,10,0) 100%);
    padding: 30px 24px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 2;
}

.service-card-overlay h4 {
    font-size: 1.35rem;
    font-weight: 800;
    color: #FFFFFF;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* 11. قسم خدمات أخرى */
.other-services-section {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.auto-scroll-container {
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none; /* إخفاء شريط التمرير للفايرفوكس */
    -ms-overflow-style: none; /* إخفاء شريط التمرير لـ IE/Edge */
    -webkit-overflow-scrolling: touch;
    position: relative;
}

.auto-scroll-container[data-direction="ltr"] {
    direction: ltr;
}

.auto-scroll-container[data-direction="rtl"] {
    direction: rtl;
}

.auto-scroll-container::-webkit-scrollbar {
    display: none; /* إخفاء شريط التمرير للكروم والسفاري */
}

.auto-scroll-track {
    display: flex;
    gap: 24px;
    width: max-content;
}

.other-service-card {
    background-color: var(--dark-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
    width: 360px;
    max-width: 100%;
    flex-shrink: 0;
}

.other-service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(230, 0, 0, 0.35);
    box-shadow: 0 15px 30px rgba(230, 0, 0, 0.08);
}

.other-s-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: var(--transition);
}

.other-service-card:hover .other-s-img {
    transform: scale(1.03);
}

.other-s-info {
    padding: 28px 24px;
}

.other-s-info h3 {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: #FFFFFF;
}

.other-s-info p {
    font-size: 0.95rem;
    color: #A0AEC0;
    line-height: 1.65;
    font-weight: 600;
}

/* 12. قسم آراء العملاء (صور فقط - يطابق التصميم) */
.reviews-section {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.review-img-card {
    width: 320px;
    border-radius: 16px;
    overflow: hidden;
    flex-shrink: 0;
    max-width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: var(--transition);
}

.review-img-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.review-img {
    width: 100%;
    height: auto;
    display: block;
}

/* 13. قسم سيارات تم بيعها (معرض صور بسيط - يطابق التصميم) */
.sold-cars-section {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sold-car-card {
    width: 320px;
    border-radius: 16px;
    overflow: hidden;
    flex-shrink: 0;
    max-width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: var(--transition);
}

.sold-car-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.sold-car-img {
    width: 100%;
    height: auto;
    display: block;
}

/* 14. قسم نتائج الحملات */
.results-section {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.result-card {
    width: 480px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    transition: var(--transition);
    max-width: 100%;
    flex-shrink: 0;
}

.result-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255,255,255,0.15);
}

.result-img {
    width: 100%;
    height: auto;
    display: block;
}

/* 15. قسم دعوة الإجراء السفلي */
.bottom-cta-section {
    /* يجعل تموضع العناصر الداخلية المطلقة (مثل طبقة التغطية) متناسباً مع هذا القسم كمرجع أساسي لها */
    position: relative;
    
    /* تعيين صورة الخلفية الخاصة بالقسم مع منع تكرارها، وتوسيطها تماماً، وجعلها تغطي المساحة بالكامل لضمان التجاوب */
    background: url('public/Ready-to-sell-your-car-without-wasting-time.png') no-repeat center center / cover;
    
    /* تحديد هوامش داخلية فخمة ومريحة للعين (140 بكسل من الأعلى والأسفل، و24 بكسل من اليمين واليسار لحماية المحتوى عند تصغير الشاشات) */
    padding: 140px 24px;
    
    /* محاذاة كافة النصوص والمحتويات بداخل القسم تلقائياً إلى المنتصف */
    text-align: center;
    
    /* تحديد لون النص الافتراضي داخل القسم باللون الأبيض لضمان وضوح تام وقرائية عالية */
    color: #FFFFFF;
    
    /* إخفاء أي محتوى زائد أو تأثيرات حركية قد تخرج عن الحدود الجغرافية للقسم لضمان عدم ظهور أشرطة تمرير أفقية */
    overflow: hidden;
}

.bottom-cta-overlay {
    /* جعل تموضع طبقة التغطية مطلقاً بحيث تطفو فوق الصورة الأساسية للقسم */
    position: absolute;
    
    /* تثبيت بداية طبقة التغطية عند الحافة العلوية اليسرى تماماً (الصفر المطلق) */
    top: 0;
    left: 0;
    
    /* تمديد طبقة التغطية لتأخذ كامل عرض وارتفاع القسم الأب (100%) دون ترك أي مسافات فارغة */
    width: 100%;
    height: 100%;
    
    /* تقليل تعتيم طبقة التغطية إلى 20% بدلاً من 87% لتوضيح صورة السيارات في الخلفية وجعلها أكثر حيوية */
    background: linear-gradient(180deg, rgba(10,10,10,0.15) 0%, rgba(10,10,10,0.20) 100%);
    
    /* تحديد الترتيب على المحور Z ليكون 1 لضمان بقائها فوق الصورة مباشرة وتحت حاوية النصوص والأزرار */
    z-index: 1;
}

.bottom-cta-content {
    /* جعل تموضع حاوية المحتوى نسبياً لتمكين تفعيل ترتيب المحور Z بشكل سليم */
    position: relative;
    
    /* تحديد ترتيب المحور Z ليكون 2 لكي يطفو المحتوى بالكامل فوق طبقة التغطية الداكنة التي تحمل القيمة 1 */
    z-index: 2;
    
    /* وضع حد أقصى لعرض الحاوية (900 بكسل) لمنع تمدد النصوص بشكل مفرط ومزعج للعين على الشاشات الكبيرة جداً */
    max-width: 900px;
    
    /* توسيط حاوية المحتوى أفقياً تماماً داخل القسم الأب عن طريق حساب الهوامش التلقائية */
    margin: 0 auto;
}

.bottom-cta-content h2 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 35px;
    line-height: 1.3;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.btn-whatsapp-bottom {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background-color: var(--primary-color);
    color: #FFFFFF;
    padding: 16px 40px;
    border-radius: 35px;
    font-weight: 800;
    font-size: 1.2rem;
    box-shadow: 0 6px 20px rgba(230, 0, 0, 0.45);
}

.btn-whatsapp-bottom:hover {
    background-color: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(230, 0, 0, 0.55);
}

/* 16. التذييل (الفوتر النهائي) */
.main-footer {
    background-color: #000000;
    color: #718096;
    padding: 50px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.25rem;
    color: #FFFFFF;
}

.footer-logo img {
    height: 30px;
}

.footer-socials {
    display: flex;
    gap: 20px;
}

.footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #121212; /* الخلفية باللون الأسود افتراضياً خارجياً */
    border: 1px solid #222; /* إطار داكن متناسق */
    transition: var(--transition);
}

.footer-socials a:hover {
    transform: translateY(-3px) scale(1.05); /* تأثير الرفع الجذاب */
    box-shadow: 0 0 15px rgba(230, 0, 0, 0.4); /* توهج أحمر محيطي خفيف */
    background-color: var(--primary-color); /* تتحول الخلفية للأحمر عند التمرير */
    border-color: var(--primary-color);
}

.footer-socials img {
    width: 20px;
    height: 20px;
    filter: brightness(0) saturate(100%) invert(12%) sepia(100%) saturate(7400%) hue-rotate(0deg) brightness(90%) contrast(120%); /* الأيقونة باللون الأحمر من الداخل افتراضياً */
    transition: var(--transition);
}

.footer-socials a:hover img {
    filter: brightness(0) invert(1); /* تتحول الأيقونة للأبيض الناصع عند التمرير لتباين رائع */
}

.footer-copy {
    font-size: 0.95rem;
    font-weight: 600;
}

/* 17. زر الواتساب العائم (دائرة بسيطة فقط - بدون فقاعة نصية) */
.floating-whatsapp {
    position: fixed;
    bottom: calc(25px + env(safe-area-inset-bottom));
    right: 25px;
    width: 64px;
    height: 64px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
    z-index: 999;
    /* يبدأ مخفياً ويظهر عند التمرير للأسفل */
    opacity: 0;
    visibility: hidden;
    transform: translateY(24px) scale(0.85);
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.4s,
                box-shadow 0.25s ease;
}

/* الحالة الظاهرة بعد التمرير */
.floating-whatsapp.wa-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    animation: wa-pulse 3s ease-in-out infinite;
}

@keyframes wa-pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45); }
    50%       { transform: scale(1.1); box-shadow: 0 8px 32px rgba(37, 211, 102, 0.65); }
}

.floating-whatsapp.wa-visible:hover {
    animation: none;
    transform: scale(1.15);
    box-shadow: 0 8px 28px rgba(37, 211, 102, 0.6);
}

.floating-whatsapp img {
    width: 34px;
    height: 34px;
    filter: brightness(0) invert(1);
}

/* Tooltip يظهر فوق الزر عند hover */
.floating-whatsapp::before {
    content: 'تواصل معنا';
    position: absolute;
    bottom: 72px;
    right: 0;
    background: rgba(0, 0, 0, 0.78);
    color: #fff;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-family: var(--font-cairo);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.floating-whatsapp:hover::before {
    opacity: 1;
}

/* =========================================
   18. إخفاء جميع أشرطة التمرير عالمياً
   ========================================= */
* {
    scrollbar-width: none !important; /* فايرفوكس */
    -ms-overflow-style: none !important; /* إنترنت إكسبلورر */
}
*::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* =========================================
   19. التجاوب ودعم الهواتف (Responsive Mobile)
   ========================================= */
@media (max-width: 1024px) {
    .metrics-container {
        grid-template-columns: 1fr;
        margin-top: 40px; /* تعديل الهامش إلى قيمة إيجابية متناسقة للموبايل لمنع الالتصاق بالهيرو */
        gap: 16px;
    }

    .problem-container {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }

    .problem-footer-text {
        border-right: none;
        border-top: none; /* إزالة الخط الأحمر تماماً من الأعلى على الجوال */
        padding-right: 0;
        padding-top: 0;
        white-space: nowrap; /* إرجاع النص ليكون في سطر واحد على الجوال أيضاً */
        font-size: clamp(0.6rem, 2.7vw, 1.1rem); /* تصغير مرن وديناميكي ليناسب عرض الشاشة بالكامل بدون التفاف */
    }

    .features-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .steps-main-container {
        flex-direction: column; /* العودة للترتيب الرأسي للتابلت والموبايل */
        align-items: center;
        gap: 40px;
        padding: 0 24px;
    }

    .steps-title-content {
        flex: none;
        text-align: center; /* توسيط النص على الشاشات الأصغر */
        padding: 0 24px;
    }

    .steps-grid {
        flex: none;
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
        padding: 0 24px;
    }

    .step-text {
        white-space: normal; /* السماح بالتفاف النص على الموبايل والتابلت لمنع الخروج عن الشاشة */
    }

    .other-services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .screen-img {
        border-radius: 30px;
    }

    .header-container {
        padding: 12px 16px;
    }

    .logo-img {
        height: 32px;
    }

    .logo span {
        font-size: 1.15rem;
    }

    .btn-contact {
        padding: 6px 18px;
        font-size: 0.85rem;
    }

    /* تصحيح موضع صورة الهيرو على الموبايل */
    .hero-section {
        padding-top: 120px;
        min-height: auto;
        padding-bottom: 40px;
    }

    .hero-title {
        font-size: 2rem;
        margin-bottom: 16px;
    }

    .hero-desc {
        font-size: 0.95rem;
        margin-bottom: 28px;
    }

    .btn-whatsapp-hero {
        padding: 12px 28px;
        font-size: 1rem;
    }

    /* تصحيح موضع السيارة على الموبايل - توسيط صحيح */
    .hero-car-container {
        max-width: 100%;
        margin-top: 20px;
    }

/* إزالة أي حركة أو توهج عند لمس أو مرور الماوس فوق السيارة على الجوال */

    .hero-car {
        transform: translateY(0);
        width: 100%;
        object-fit: contain;
    }

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

    .metric-card {
        padding: 24px 20px;
    }

    .metric-info h3 {
        font-size: 2rem;
    }

    .problem-title {
        font-size: 1.8rem;
    }

    .problem-list li {
        font-size: 1.05rem;
    }

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

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

    .dark-section-subtitle {
        font-size: 1.35rem;
    }

    /* تصغير عناصر الكاروسيل على الموبايل */
    .service-slide-card {
        width: 240px;
        height: 340px;
        max-width: 100%;
        flex-shrink: 0;
    }

    .review-img-card {
        width: 260px;
        max-width: 100%;
        flex-shrink: 0;
    }

    .sold-car-card {
        width: 260px;
        max-width: 100%;
        flex-shrink: 0;
    }

    .result-card {
        width: 325px;
        max-width: 100%;
        flex-shrink: 0;
    }

    .other-service-card {
        width: 280px;
        max-width: 100%;
        flex-shrink: 0;
    }

    .bottom-cta-content h2 {
        font-size: 2rem;
    }

    .btn-whatsapp-bottom {
        padding: 12px 30px;
        font-size: 1rem;
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
        gap: 24px;
        text-align: center;
    }

    .footer-logo {
        order: 1;
        justify-content: center;
    }

    .footer-socials {
        order: 2;
        justify-content: center;
    }

    .footer-copy {
        order: 3;
        font-size: 0.85rem;
        color: #A0AEC0;
    }

    .floating-whatsapp {
        bottom: calc(20px + env(safe-area-inset-bottom));
        right: 20px;
        width: 50px;
        height: 50px;
    }
    
    .floating-whatsapp img {
        width: 26px;
        height: 26px;
    }

    /* أقسام مختلفة - تصغير الحشو */
    .services-section, 
    .other-services-section,
    .reviews-section,
    .sold-cars-section,
    .results-section {
        padding: 80px 16px;
    }
}

@media (max-width: 540px) {
    .features-container {
        grid-template-columns: 1fr;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .other-services-grid {
        grid-template-columns: 1fr;
    }
}

/* تحسينات إضافية ومخصصة للشاشات الصغيرة جداً (375px و 320px) */
@media (max-width: 375px) {
    .screen-img {
        border-radius: 24px;
    }

    .header-container {
        padding: 10px 12px;
    }

    .logo span {
        font-size: 1rem;
    }

    .btn-contact {
        padding: 5px 14px;
        font-size: 0.8rem;
    }

    .hero-section {
        padding-left: 16px;
        padding-right: 16px;
        padding-top: 100px;
    }

    .hero-badge {
        font-size: 0.8rem;
        padding: 6px 14px;
        margin-bottom: 20px;
    }

    .hero-title {
        font-size: clamp(1.15rem, 7.5vw, 1.65rem);
        line-height: 1.35;
    }

    .hero-desc {
        font-size: 0.85rem;
        margin-bottom: 20px;
    }

    .btn-whatsapp-hero {
        padding: 10px 24px;
        font-size: 0.95rem;
    }

    .metrics-container {
        padding: 0 16px;
    }

    .metric-card {
        padding: 20px 16px;
        gap: 16px;
    }

    .metric-icon-box {
        width: 50px;
        height: 50px;
    }

    .metric-icon {
        width: 24px;
        height: 24px;
    }

    .metric-info h3 {
        font-size: 1.75rem;
    }

    .metric-info p {
        font-size: 0.85rem;
    }

    .problem-section {
        padding-left: 16px;
        padding-right: 16px;
    }

    .phone-red-bg {
        width: 120%;
        left: -10%;
        height: 45%;
        top: 24%;
    }

    .problem-title {
        font-size: 1.5rem;
    }

    .problem-list li {
        font-size: 0.95rem;
        gap: 12px;
    }

    .problem-footer-text {
        font-size: 1rem;
    }

    .features-section {
        padding: 40px 16px 80px 16px;
    }

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

    .dark-section-title {
        font-size: 1.75rem;
    }

    .dark-section-subtitle {
        font-size: 1.2rem;
    }

    .steps-section {
        padding: 24px 0;
    }

    .steps-main-title {
        font-size: 1.8rem;
    }

    .step-card {
        padding: 28px 16px;
    }

    .service-slide-card {
        width: 220px;
        height: 310px;
    }

    .review-img-card {
        width: 240px;
    }

    .sold-car-card {
        width: 240px;
    }

    .result-card {
        width: 280px;
    }

    .other-service-card {
        width: 240px;
    }

    .bottom-cta-section {
        padding: 100px 16px;
    }

    .bottom-cta-content h2 {
        font-size: 1.65rem;
    }

    .btn-whatsapp-bottom {
        padding: 10px 24px;
        font-size: 0.95rem;
    }
}

/* ===================================================
   19. فقاعة محادثة الواتساب المستمرة (ثابتة فوق الزر)
   =================================================== */
.whatsapp-chat-bubble {
    position: fixed;
    bottom: calc(105px + env(safe-area-inset-bottom)); /* وضعها فوق الزر العائم بمسافة مناسبة */
    right: 25px;
    background-color: #FFFFFF;
    border-radius: 16px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.04);
    z-index: 999;
    text-decoration: none;
    color: var(--text-dark);
    max-width: 320px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    direction: ltr; /* لضمان بقاء الأيقونة على اليسار والنص على اليمين بالتوزيع المرن */
    
    /* إعداد حركة التلاشي والانزلاق للظهور الديناميكي مع إخفاء كامل */
    visibility: hidden;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
    transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.45s;
}

/* الحالة النشطة للفقاعة عند التمرير للأسفل */
.whatsapp-chat-bubble.visible {
    visibility: visible;
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* ذيل الفقاعة (مثلث صغير متصل بزر الواتساب) */
.whatsapp-chat-bubble::after {
    content: '';
    position: absolute;
    bottom: -8px; /* يبرز للأسفل */
    right: 22px; /* محاذاة دقيقة مع منتصف زر الواتساب (32px - 10px) */
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 8px solid #FFFFFF; /* لون خلفية الفقاعة البيضاء */
    filter: drop-shadow(0 3px 2px rgba(0, 0, 0, 0.03)); /* شادو خفيف للمثلث ليتماشى مع شادو الفقاعة */
    z-index: 1000;
}

.whatsapp-chat-bubble:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
}

/* تحديث تأثير hover ليناسب الحالة النشطة أيضاً */
.whatsapp-chat-bubble.visible:hover {
    transform: translateY(-3px) scale(1);
}

.bubble-avatar-box {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.bubble-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bubble-text-box {
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.45;
    color: #1A202C;
    font-family: var(--font-cairo);
    text-align: right;
    direction: rtl; /* اتجاه الكتابة العربية */
}

/* ملاءمة الفقاعة على الشاشات الصغيرة جداً والجوال */
@media (max-width: 768px) {
    .whatsapp-chat-bubble {
        right: 20px;
        bottom: calc(85px + env(safe-area-inset-bottom)); /* محاذاة دقيقة فوق زر الجوال الأصغر */
        max-width: calc(100vw - 40px); /* تمدد مرن يمنع أي خروج عن الشاشة */
        padding: 10px 14px;
        gap: 10px;
        transform: translateY(15px) scale(0.95);
    }
    
    .whatsapp-chat-bubble.visible {
        transform: translateY(0) scale(1);
    }
    
    .whatsapp-chat-bubble::after {
        right: 15px; /* محاذاة دقيقة مع منتصف زر الواتساب للجوال (25px - 10px) */
        bottom: -8px;
    }
    
    .bubble-avatar-box {
        width: 36px;
        height: 36px;
    }
    
    .bubble-text-box {
        font-size: 0.82rem;
    }
}
