/* =========================================================
    1. BASE STYLES AND VARIABLES (LIGHT MODE)
    ========================================================
*/
:root {
    /* 1. ألوان الهوية الأساسية */
    --primary-color: #D62027;      /* الأحمر الكندي (العنوان الرئيسي، أزرار CTA) */
    --primary-hover: #B71C22;      /* درجة أغمق عند التمرير */
    --accent-color: #c4c4c4;      /* لون ثانوي/تأكيد (رمادي فاتح) */
    --accent-hover: #AFAFAF;      /* درجة أغمق للون الثانوي */
    
    /* 2. الألوان المحايدة */
    --bg-color: #FFFFFF;           /* خلفية الجسم الرئيسية (أبيض ناصع) */
    --nav-bg: #FFFFFF;             /* خلفية شريط التنقل */
    --light-bg-rgba: rgba(255, 255, 255, 0.5); /* لشفافية البطاقات */
    --light-bg: #F5F5F5;           /* لخلفية البطاقات والأقسام الخفيفة */
    --dark-bg: #2C3E50;            /* لخلفية تذييل الصفحة (Footer) */
    
    --text-color: #2C2C2C;         /* لون النص الأساسي */
    --muted: #666666;              /* للنصوص الثانوية والفقرات الخافتة */
    
    /* 3. متغيرات إضافية */
    --nav-height: 70px;
    --radius: 5px;
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* --------------------------------------------------------
    2. DARK MODE VARIABLES AND STYLES (Overrides)
    --------------------------------------------------------
*/
body.dark-mode {
    /* قلب الألوان المحايدة */
    --bg-color: #121212; 
    --nav-bg: #1e1e1e;
    --light-bg-rgba: rgba(33, 33, 33, 0.7);
    --light-bg: #212121; 
    --dark-bg: #4A4A4A; 

    --text-color: #e0e0e0; 
    --muted: #b0b0b0; 

    /* ألوان الهوية (لتحسين التباين) */
    --primary-color: #EC2124; 
    --primary-hover: #FF4D4D; 
    --accent-color: #c4c4c4; 
    --accent-hover: #AFAFAF; 
    
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* --------------------------------------------------------
    3. BASE STYLES
    --------------------------------------------------------
*/
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: var(--transition);
    scroll-behavior: smooth;
    overflow-x: hidden;
}

h1, h2, h3, h4, .logo span {
    color: var(--text-color);
    font-weight: 700;
}

/* Dark Mode Overrides for sections and elements */
body.dark-mode header, body.dark-mode footer {
    box-shadow: var(--shadow-light);
    border-top: 1px solid #333;
}
body.dark-mode .service-card, 
body.dark-mode .choose-gallery .info-card,
body.dark-mode .lang-menu {
    background-color: var(--light-bg);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
body.dark-mode nav ul li a:hover {
    background-color: #2a2a2a;
}
body.dark-mode .service-icon {
    background-color: var(--nav-bg);
}


/* --------------------------------------------------------
    4. HEADER & NAVIGATION
    --------------------------------------------------------
*/
header {
    background-color: var(--nav-bg);
    box-shadow: var(--shadow-light);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--nav-height);
    display: flex;
    align-items: center;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
    color: var(--primary-color);
    font-size: 1.5em;
    font-weight: 700;
}
.logo img {
    width: 150px;
    height: 50px;
    margin-inline-end: 10px;
}

nav ul {
    display: flex;
    list-style: none;
}
nav ul li a {
    color: var(--text-color);
    padding: 20px 15px;
    display: block;
    font-weight: 500;
    transition: var(--transition);
    text-decoration: none;
}
nav ul li a:hover {
    color: var(--primary-color);
    background-color: var(--light-bg);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.emergency-btn {
    background-color: var(--primary-color);
    color: white !important;
    padding: 10px 20px;
    border-radius: var(--radius);
    font-weight: 600;
    transition: var(--transition);
    white-space: nowrap;
    text-decoration: none;
}
.emergency-btn:hover {
    background-color: #e68900;
}

/* 4.1. Dark Mode / Language Toggle Buttons */
.action-btn { /* ينطبق على زر الوضع الداكن وزر اللغة */
    background: var(--light-bg);
    border: 1px solid var(--muted);
    padding: 8px 12px;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 500;
    color: var(--text-color);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 5px;
    line-height: 1;
    text-decoration: none; 
}
.action-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* 4.2. Mobile Toggle Button (Hamburger) */
.menu-toggle {
    display: none; 
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
    z-index: 1100;
    color: var(--text-color); 
}
.menu-toggle i {
    font-size: 1.8em;
}

/* --------------------------------------------------------
    5. LANGUAGE DROPDOWN (Desktop & Tablet) - ✅ مُصَحَّح
    --------------------------------------------------------
*/
.lang-dropdown {
    position: relative;
    display: inline-block;
}

.lang-menu {
    /* 🛑 القاعدة الحاسمة المُضافة: إخفاء القائمة افتراضياً ليعمل JavaScript بشكل صحيح */
    display: none; 
    
    position: absolute;
    top: 100%;
    right: 0; 
    background-color: var(--nav-bg);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: var(--radius);
    padding: 5px 0;
    z-index: 1010;
    list-style: none;
    margin-top: 5px;
    border: 1px solid var(--light-bg);
    
    /* قواعد الانتقال */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
}

/* 🛑 تصحيح: هذا الكلاس يجب أن يطبق على .lang-menu نفسه (بدون مسافة) */
.lang-menu.is-open {
    display: block; /* لضمان الظهور الفوري */
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-menu li a {
    padding: 8px 15px;
    width: 100%;
    color: var(--text-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
    text-decoration: none;
}
.lang-menu li a:hover {
    background-color: var(--light-bg);
    color: var(--primary-color);
}
.lang-menu li a.active-lang {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
}
.lang-menu li a.active-lang:hover {
    background-color: var(--primary-hover);
}
.lang-menu .check-icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
}
.lang-menu li a:not(.active-lang) .check-icon {
    opacity: 0;
}


/* --------------------------------------------------------
    6. GENERAL LAYOUT & COMPONENTS
    --------------------------------------------------------
*/
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
section {
    padding: 80px 0;
}
.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
}
.section-header small {
    color: var(--accent-color);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 10px;
}
.section-header h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
}
.section-header p {
    color: var(--muted);
}

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}
.btn-primary {
    background-color: var(--primary-color);
    color: white !important;
}
.btn-primary:hover {
    background-color: var(--primary-hover);
}
.btn-secondary {
    background-color: var(--muted);
    color: white !important;
}
.btn-secondary:hover {
    background-color: #444;
}
.btn-primary svg, .btn-secondary svg {
    fill: white;
    width: 20px;
    height: 20px;
}

/* ------------------- NEON BUTTON STYLES ------------------- */
.btn-neon {
    position: relative;
    display: inline-block;
    padding: 15px 30px;
    color: var(--accent-color);
    letter-spacing: 2px;
    text-decoration: none;
    font-size: 1.1rem;
    overflow: hidden;
    transition: 0.2s;
    background-color: transparent;
    border: 2px solid var(--accent-color);
    cursor: pointer;
    outline: none;
    font-weight: 700;
    box-shadow: 0 0 5px var(--accent-color);
}
.btn-neon span {
    position: relative;
    z-index: 10;
    transition: text-shadow 0.2s;
}
.btn-neon:hover {
    color: #000;
    background: var(--accent-color);
    box-shadow: 0 0 5px var(--accent-color), 0 0 20px var(--accent-color), 0 0 30px var(--accent-color);
}
.btn-neon:hover span {
    color: #000;
    text-shadow: none;
}
/* -------------------------------------------------------- */


/* Hero Section */
.hero-section {
    padding-top: 50px;
    padding-bottom: 80px;
    background-color: var(--light-bg);
    background-image: url('../../image/slider4.jpeg');
    background-size: cover; 
    background-position: center center; 
    background-repeat: no-repeat; 
    position: relative; 
    z-index: 1; 
}
.hero-container {
    display: flex;
    align-items: center;
    gap: 50px;
    position: relative;
    z-index: 3; 
}
.hero-content {
    flex: 2;
}
.hero-content h1 {
    font-size: 3.5em;
    line-height: 1.2;
    margin: 20px 0;
}
.hero-content p {
    margin-bottom: 30px;
    font-size: 1.1em;
}
.hero-image {
    flex: 1;
    text-align: center;
}
.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
.hero-stats {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}
.stat-card {
    background-color: var(--light-bg-rgba);
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
    min-width: 120px;
    flex: 1;
}
.stat-card span {
    color: var(--primary-color);
}
.stat-card h3 {
    color: var(--primary-color);
    font-size: 1.8em;
    margin-bottom: 5px;
}
.stat-card p {
    color: var(--muted);
    margin: 0;
    font-size: 0.9em;
}
/* Services Section */
.services {
    background-color: var(--bg-color);
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.service-card {
    background-color: var(--light-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}
.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    padding: 10px;
}
.card-body {
    padding: 25px;
    position: relative;
}
.service-icon {
    position: absolute;
    top: -35px;
    right: 25px; 
    left: auto;
    background-color: var(--nav-bg);
    border-radius: 50%;
    padding: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.service-icon svg {
    width: 30px;
    height: 30px;
    fill: var(--primary-color);
}
.card-body h3 {
    margin-top: 0;
    font-size: 1.5em;
    min-height: 50px;
}
.card-body p {
    color: var(--muted);
    margin: 15px 0 20px;
}
.card-body a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.card-body a svg {
    fill: var(--primary-color);
    width: 16px;
    height: 16px;
    transition: transform 0.3s;
}
.card-body a:hover svg {
    transform: translateX(5px);
}
.view-all {
    text-align: center;
    margin-top: 50px;
}

/* Choose Us Section */
.choose-us {
    background-color: var(--light-bg);
}
.choose-us-container {
    display: flex;
    gap: 50px;
    align-items: center;
}
.choose-text {
    flex: 1;
}
.choose-text h2 {
    font-size: 2.2em;
}
.choose-list {
    list-style: none;
    margin: 30px 0;
    padding: 0;
}
.choose-list li {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 25px;
}
.choose-list li span {
    min-width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: ffffff;
}
.choose-list li span i  {
    color: #ffffff;
}
.choose-list li h4 {
    margin: 0;
    font-size: 1.2em;
    color: var(--text-color);
}
.choose-list li p {
    color: var(--muted);
    margin-top: 5px;
}
.choose-gallery {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s;
    padding: 10px;
    border-radius: 15px;
}
.gallery-item:hover img {
    transform: scale(1.05);
}
.gallery-item.tall {
    grid-row: span 2;
}
.gallery-item.wide {
    grid-column: span 2;
}
.info-card {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--primary-color);
    color: white;
    padding: 15px;
    text-align: center;
    font-weight: 600;
}

/* CTA Section */
.cta-section {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 80px 0;
}
.cta-section h2 {
    color: white;
    font-size: 2.5em;
    margin-bottom: 15px;
}
.cta-section p {
    color: #e0e0e0;
    max-width: 800px;
    margin: 0 auto 40px;
}
.cta-section .icon i {
    color: var(--primary-color);
    width: 3rem;
    height: 3rem;
    background-color: #ffffff;
    border-radius: 9999rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}
.cta-buttons .btn-primary, .cta-buttons .btn-secondary {
    background-color: var(--accent-color);
    border: 2px solid var(--accent-color);
}
.cta-buttons .btn-primary:hover, .cta-buttons .btn-secondary:hover {
    background-color: #e68900;
}
.cta-buttons .btn-secondary {
    background-color: transparent;
    border: 2px solid white;
}
.cta-buttons .btn-secondary:hover {
    background-color: white;
    color: var(--primary-color) !important;
}
.feature-row {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    font-size: 1.1em;
    font-weight: 500;
}
.feature-row .feature {
    display: flex;
    align-items: center;
    gap: 10px;
}
.feature-row svg {
    fill: white;
    width: 20px;
    height: 20px;
}

/* Footer */
footer {
    background-color: var(--nav-bg);
    padding: 40px 0 20px;
    border-top: 1px solid var(--light-bg);
}
.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--light-bg);
}
.footer-col h4 {
    color: var(--primary-color);
    font-size: 1.2em;
    margin-bottom: 20px;
}
.footer-col p {
    color: var(--muted);
    margin-bottom: 20px;
    font-size: 0.9em;
}
.footer-col ul {
    list-style: none;
    padding: 0;
}
.footer-col ul li {
    margin-bottom: 10px;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95em;
}
.footer-col ul li svg {
    fill: var(--muted);
    width: 18px;
    height: 18px;
}
.footer-col ul li a {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.3s;
}
.footer-col ul li a:hover {
    color: var(--primary-color);
}
.footer-bottom {
    text-align: center;
    padding-top: 20px;
    color: var(--muted);
    font-size: 0.85em;
}
.footer-bottom a {
    color: var(--primary-color);
    text-decoration: none;
    margin: 0 5px;
}
.social-links a {
    display: inline-block;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: var(--light-bg);
    margin-inline-end: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}
.social-links a:hover {
    background-color: var(--primary-color);
}
.social-links svg {
    fill: var(--primary-color);
    width: 18px;
    height: 18px;
    transition: fill 0.3s;
}
.social-links a:hover svg {
    fill: white;
}

/* Floating Bar & Scroll to Top */
.floating-bar {
    position: fixed;
    right: 20px;
    bottom: 80px; 
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.float-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s, opacity 0.3s, visibility 0.3s;
    border: none;
    cursor: pointer;
}

.float-btn.phone {
    background-color: var(--primary-color);
}
.float-btn.whatsapp{
    background-color: #008000;
}
#scroll-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px; 
    opacity: 0;
    visibility: hidden;
}
#scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* --------------------------------------------------------
    7. RTL Support (Right-to-Left for Arabic)
    --------------------------------------------------------
*/
html[dir="rtl"] body {
    text-align: right;
}
html[dir="rtl"] main {
    text-align: right;
}
html[dir="rtl"] nav ul {
    direction: rtl;
}
html[dir="rtl"] .lang-menu {
    right: auto;
    left: 0; /* ✅ مُصَحَّح */
}
html[dir="rtl"] .lang-menu li a {
    text-align: right;
    flex-direction: row-reverse;
}
html[dir="rtl"] .hero-container {
    flex-direction: row-reverse;
    text-align: right;
}
html[dir="rtl"] .choose-us-container {
    flex-direction: row-reverse;
}
html[dir="rtl"] .choose-list li {
    flex-direction: row-reverse;
}
html[dir="rtl"] .choose-list li span {
    margin-right: 0;
    margin-left: 20px;
}
html[dir="rtl"] .service-icon {
    right: auto; 
    left: 25px;
}
html[dir="rtl"] .card-body a {
    flex-direction: row-reverse;
    justify-content: flex-end;
}
html[dir="rtl"] .card-body a svg {
    transform: scaleX(-1);
    margin-left: 5px;
    margin-right: 0;
}
html[dir="rtl"] .card-body a:hover svg {
    transform: translateX(-5px) scaleX(-1);
}
html[dir="rtl"] .floating-bar {
    right: auto;
    left: 20px;
}
html[dir="rtl"] #scroll-to-top {
    right: auto;
    left: 20px;
}


/* --------------------------------------------------------
    8. MEDIA QUERIES (Responsiveness) - 🛠️ مُصَحَّح
    --------------------------------------------------------
*/
@media (max-width: 992px) {
    section {
        padding: 60px 0;
    }
    .hero-container {
        flex-direction: column;
        text-align: center;
    }
    html[dir="rtl"] .hero-container {
        flex-direction: column;
    }
    .hero-image {
        margin-top: 30px;
    }
    .hero-content h1 {
        font-size: 2.5em;
    }
    .choose-us-container {
        flex-direction: column;
    }
    html[dir="rtl"] .choose-us-container {
        flex-direction: column;
    }
    .choose-gallery {
        margin-top: 30px;
    }
    .hero-stats {
        justify-content: center;
    }
    /* Hide emergency button on smaller tablets/mobiles */
    .emergency-btn {
        display: none; 
    }
}

@media (max-width: 768px) {
    /* 1. هيكل شريط التنقل */
    .logo {
        flex-grow: 1; 
        text-align: left; 
        order: 1; 
    }
    .nav-actions {
        display: flex;
        align-items: center;
        gap: 8px;
        order: 2; 
        flex-shrink: 0; 
    }
    .menu-toggle {
        display: block; /* ✅ سليم: إظهار زر الخطوط الثلاثة */
        order: 3; 
        flex-shrink: 0; 
    }
    
    /* 2. القائمة الرئيسية (Nav Menu) - تصحيح الكلاس */
    nav ul {
        display: none; /* ✅ سليم: إخفاء القائمة افتراضياً */
        position: fixed;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--nav-height));
        flex-direction: column;
        background-color: var(--nav-bg);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
        z-index: 990;
        overflow-y: auto;
        padding-bottom: 20px;
    }
    /* 🛑 تصحيح: دعم كلا الكلاسين (إذا كان الـ JS يستخدم active أو open) */
    nav ul.open, 
    nav ul.active { 
        display: flex; /* ✅ القائمة ستظهر عند النقر */
    }
    
    nav ul li a {
        padding: 15px 25px;
        border-bottom: 1px solid var(--light-bg);
        width: 100%;
    }
    
    /* 3. قائمة اللغة المنسدلة (Mobile Positioning) */
     .lang-menu {
        top: 50px; 
        right: 0; 
        left: auto;
        width: 100px;
        max-width: 90vw; 
        z-index: 1040;
        max-height: 100px;
        /* لا نكرر قواعد opacity/visibility هنا */
    }
    
    /* ... باقي قواعد الجوال سارية المفعول ... */
    .choose-gallery {
        grid-template-columns: 1fr; 
    }
    .gallery-item.tall, .gallery-item.wide {
        grid-row: span 1;
        grid-column: span 1;
    }
    .hero-stats {
        flex-direction: column;
        gap: 10px;
    }
    .stat-card {
        width: 100%;
    }
    .footer-container {
        grid-template-columns: 1fr;
    }
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    .feature-row {
        flex-direction: column;
        gap: 15px; 
    }
    html[dir="rtl"] .logo {
        order: 3; 
        text-align: right; 
        flex-grow: 1;
    }
    html[dir="rtl"] .menu-toggle {
        order: 3; 
        flex-shrink: 0;    }
    html[dir="rtl"] .nav-actions {
        order: 3; 
        flex-shrink: 0;
    }
    html[dir="rtl"] .logo a {
        margin-inline-end: 0;
    }
    html[dir="rtl"] .nav-actions #mode-toggle { 
        order: 2; 
    }
    html[dir="rtl"] .nav-actions .lang-dropdown { 
        order: 2; 
    }
    html[dir="rtl"] .lang-menu {
        right: auto;
        left: 0; 
    }
    .hero-section .stat-card h3 i {
        color: var(--primary-color) !important; 
    }
    body.dark-mode .hero-section .stat-card h3 i {
        color: var(--primary-color) important;
    }
}





/* --------------------------------------------------------
    9. Animation Styles
    --------------------------------------------------------
*/

.service-card, .gallery-item .tall {
    position: relative; 
    overflow: hidden; 
    z-index: 10; 
}


.service-card::before, .gallery-item::before {
    content: '';
    position: absolute;
    width: 150%; 
    height: 150%;
    top: -50%; 
    left: -50%; 
    
    
    background: linear-gradient(180deg, var(--primary-color)), var(--primary-hover); 
    
    transition: all .3s linear;
    z-index: 1;

    /* تطبيق الحركة */
    animation: animate 6s linear infinite; 
}

.service-card::after, .gallery-item::after {
    content: '';
    position: absolute;
    inset: 5px; 
    background: var(--bg-color); 
    
    border-radius: 15px;
    z-index: 2; 
}

/* محتوى البطاقة */
.service-card > *, .gallery-item > * {
    position: relative;
    z-index: 3;
}

/* الحركة نفسها */
@keyframes animate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}


.choose-gallery {
    height: 650px;
}


/* =========================================================
    10. MAP SECTION STYLES
    ========================================================
*/
.map-section {
    padding: 0; 
    height: 400px; 
    line-height: 0; 
}

.map-wrapper {
    width: 100%;
    height: 100%;
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none; 
    display: block; 
}