/* --- متغيرات الألوان الهوية الجديدة (الخلفية الفاتحة والأزرق الملكي الدقة) --- */
:root {
  --primary-blue: #0b3c5d;
  --accent-blue: #3282b8;
  --off-white: #f8f9fa;
  --off-white-glass: rgba(248, 249, 250, 0.75);
  --glass-border: rgba(11, 60, 93, 0.15);
}

body {
  font-family: 'Cairo', sans-serif;
  background-color: var(--off-white);
  color: #2b2b2b;
  overflow-x: hidden;
}

/* --- النصوص والألوان العامة --- */
.text-blue {
    color: var(--blue-main) !important;
}

.badge-blue {
    background: var(--blue-soft);
    color: var(--blue-main);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    border: 1px solid rgba(46, 102, 185, 0.25);
    display: inline-block;
}

/* --- الشريط العلوي --- */
.top-bar {
    background: #FFFFFF;
    padding: 8px 0;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(248, 243, 243, 0.752);
}

.top-bar a {
    color: var(--primary-gray);
    margin-right: 12px;
    transition: 0.3s;
}

.top-bar a:hover {
    color: var(--blue-main);
}

/* --- القائمة الزجاجية الفاتحة --- */
.glass-nav {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid rgba(46, 102, 185, 0.12);
    padding: 12px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.main-logo {
  max-height: 70px;
  height: auto;
  transition: all 0.3s ease;
}
.nav-custom {
  background-color: #f7fafc !important; /* لون سادة */
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 15px 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-transparent {
  background: rgba(239, 240, 240, 0.2) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--glass-border);
  padding: 15px 0;
  transition: all 0.4s ease;
}
/* 2. عند التمرير: يتحول إلى شفاف زجاجي */
.nav-custom.scrolled {
  background-color: rgba(234, 236, 238, 0.25) !important; /* شفاف */
  backdrop-filter: blur(12px); /* تأثير الضباب الزجاجي */
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  padding: 8px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
.nav-custom.scrolled .main-logo {
  max-height: 55px; /* تصغير طفيف للشعار لسهولة القراءة أثناء التمرير */
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--accent-blue) !important;
}
/* ==========================================
   قائمة هاتف مصغرة وبخط واضح ومقروء
   ========================================== */
@media (max-width: 991.98px) {
    
    /* 1. تصغير الحاوية الخارجية للقائمة المنسدلة */
    .navbar-collapse {
        background: #ffffff !important;
        border-radius: 14px !important;
        padding: 0.5rem 0.75rem !important; /* تقليل المسافات الداخلية لتصغير حجم القائمة */
        margin-top: 0.4rem !important;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12) !important;
        border: 1px solid #e2e8f0 !important;
        max-width: 280px !important; /* تحديد أقصى عرض للقائمة لتظل مصغرة */
        margin-right: auto !important; /* محاذاة أنيقة جهة اليمين */
    }

    /* 2. ضبط روابط القائمة (حجم مدمج + خط واضح جداً) */
    .navbar-nav .nav-link {
        padding: 0.4rem 0.6rem !important; /* تصغير الهوامش الرأسية */
        font-size: 0.9rem !important; /* حجم خط ممتاز وواضح للأعين */
        font-weight: 700 !important; /* تغميق الخط ليكون حاداً وواضحاً */
        color: #0f172a !important; /* لون داكن جداً لزيادة التباين والوضوح */
        border-bottom: 1px solid #f1f5f9;
        text-align: right;
    }

    /* إلغاء الخط السفلي لآخر عنصر */
    .navbar-nav .nav-item:last-child .nav-link {
        border-bottom: none;
    }

    /* 3. تصغير زر "تواصل معنا" داخل القائمة المنسدلة */
    .navbar-nav .btn {
        margin-top: 0.4rem !important;
        padding: 0.4rem 0.8rem !important;
        font-size: 0.85rem !important;
        font-weight: 700 !important;
        width: 100% !important;
    }
}
/* --- البطاقات الزجاجية الفاتحة --- */
.glass-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--glass-shadow);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(46, 102, 185, 0.12);
    border-color: var(--blue-main);
}

.glass-sub-card {
    background: var(--bg-light);
    border: 1px solid rgba(46, 102, 185, 0.15);
    border-radius: 12px;
}
/* 1. تعديل لون زر "استكشف خدماتنا" */
.btn-blue {
  background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
  color: #fff !important;
  border: none;
}

.btn-blue:hover {
    background-color: #1D4ED8 !important; /* درجة أغمق عند التأشير بالماوس */
}


/* 2. تعديل لون زر "تواصل معنا" */
.btn-glass {
    background-color: rgba(255, 255, 255, 0.2) !important; /* خلفية شفافة أفتح ليبرز الزر */
    color: #FFFFFF !important;                            /* النص أبيض ناصع */
    border: 1px solid rgba(255, 255, 255, 0.5) !important; /* إطار أبيض واضح */
    backdrop-filter: blur(8px) !important;                 /* تأثير الزجاج */
}

.btn-glass:hover {
    background-color: rgba(255, 255, 255, 0.35) !important;
    border-color: #FFFFFF !important;
}


/* 3. تعديل لون الضباب والشريط (إضافي للتحكم في الضباب) */
.hero-fog-right {
    opacity: 0.6 !important; /* التحكم في  درجة شفافية الضباب */
}
/* --- الأزرار الزرقاء  --- */
.btn-glass-blue, .btn-blue-action {
    background: linear-gradient(135deg, var(--blue-main), var(--blue-dark));
    color: #FFFFFF !important;
    border: none;
    border-radius: 12px;
    padding: 10px 26px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(46, 102, 185, 0.3);
}

.btn-glass-blue:hover, .btn-blue-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 102, 185, 0.45);
    color: #FFFFFF;
}

.btn-glass-secondary {
    background: #FFFFFF;
    color: var(--primary-dark);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 10px 24px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-glass-secondary:hover {
    background: var(--blue-soft);
    color: var(--blue-main);
}

/* --- Hero Section --- */
/* ===================================================
   Hero Section Modern Styling
   =================================================== */
   /* --- 2. قسم الهيرو (Hero Section) --- */
        .hero-section {
            position: relative;
            min-height: 100vh;
            background-color: var(--bg-dark);
            /* الصورة متمركزة في اليمين */
            background-image: url('images/header-img.png');
            background-size: cover;
            background-position: center right;
            background-repeat: no-repeat;
            padding-top: 130px;
            padding-bottom: 60px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            overflow: hidden;
        }

        /* التدرج الداكن من اليسار إلى اليمين (لإظهار الصورة واضحة باليمين) */
        .hero-overlay {
            position: absolute;
            inset: 0;
            background: linear-gradient(to right, 
                rgba(10, 17, 30, 0.98) 0%, 
                rgba(10, 17, 30, 0.90) 40%, 
                rgba(10, 17, 30, 0.5) 65%, 
                rgba(10, 17, 30, 0.05) 100%);
            z-index: 1;
        }

        /* طبقة ضباب حقيقية (Blur) ممتدة من اليسار فقط */
        .hero-fog-left {
            position: absolute;
            top: 0;
            left: 0;
            width: 55%;
            height: 100%;
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            mask-image: linear-gradient(to right, rgba(0,0,0,1) 0%, rgba(0,0,0,0.8) 60%, rgba(0,0,0,0) 100%);
            -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,1) 0%, rgba(0,0,0,0.8) 60%, rgba(0,0,0,0) 100%);
            z-index: 2;
            pointer-events: none;
        }

        .hero-content {
            position: relative;
            z-index: 3;
        }

        /* محاذاة النص فوق الضباب في الجهة اليسرى */
        .hero-title {
            
            font-size: 3.2rem;
            font-weight: 900;
            color: #FFFFFF !important;
            line-height: 1.25;
            margin-bottom: 20px;
        }
        .hero-title .text-blue {
            color: var(--blue-light);
        }

        .hero-subtitle {
            font-size: 1.15rem;
            color: #F1F5F9 !important;
            line-height: 1.8;
            margin-bottom: 35px;
            max-width: 580px;
        }

        .hero-btns {
            display: flex;
            gap: 15px;
            flex-wrap: wrap;
            margin-bottom: 40px;
        }

        /* --- 3. شريط الإحصائيات (Floating Stats Bar) --- */
        .stats-bar-wrapper {
            position: relative;
            z-index: 3;
            margin-top: 20px;
        }

        .stats-bar {
            background: rgba(17, 28, 46, 0.82);
            border: 1px solid rgba(46, 102, 185, 0.35);
            backdrop-filter: blur(5px);
            -webkit-backdrop-filter: blur(5px);
            border-radius: 12px;
            padding: 24px 30px;
            box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
            transition: var(--transition-smooth);
        }
        .stats-bar:hover {
            border-color: rgba(46, 102, 185, 0.7);
            box-shadow: 0 25px 60px rgba(46, 102, 185, 0.15);
        }

        .stat-item {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 16px;
            position: relative;
        }
        .stat-item:not(:last-child)::after {
            content: '';
            position: absolute;
            left: 0;
            top: 15%;
            height: 70%;
            width: 1px;
            background: rgba(255, 255, 255, 0.1);
        }

        .stat-icon {
            font-size: 24px;
            color: var(--blue-light);
            width: 50px;
            height: 50px;
            border-radius: 10px;
            color: #FFFFFF !important;
            border: 1px solid rgba(233, 236, 239, 0.3);
            display: flex;
            align-items: center;
            justify-content: center;
            transition: var(--transition-smooth);
        }
        .stat-item:hover .stat-icon {
            transform: scale(1.1);
            background: var(--blue-primary);
            color: #FFFFFF;
        }

        .stat-number {
            font-size: 2rem;
            font-weight: 800;
            color: #FFFFFF !important;
            line-height: 1;
            margin-bottom: 4px;
        }
        .stat-label {
            font-size: 13px;
            color: #E2E8F0 !important;
            font-weight: 600;
            margin: 0;
        }

        /* الشاشات الصغيرة */
        @media (max-width: 991px) {
            .hero-fog-left { width: 100%; }
            .hero-overlay {
                background: linear-gradient(to bottom, rgba(10, 17, 30, 0.95) 0%, rgba(10, 17, 30, 0.85) 100%);
            }
            .hero-title { font-size: 2.3rem; }
            .stat-item:not(:last-child)::after { display: none; }
            .stat-item { margin-bottom: 15px; }
        }
.hero-modern {
    background-color: #f8fafc;
    min-height: 85vh;
    display: flex;
    align-items: center;
}

.hero-bg-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(#cbd5e1 1px, transparent 1px);
    background-size: 32px 32px;
    opacity: 0.3;
    pointer-events: none;
}

.hero-glow-1 {
    position: absolute;
    top: -100px;
    right: -100px;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(13, 110, 253, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.hero-glow-2 {
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

/* الشارة والنصوص */
.hero-badge {
    background-color: rgba(13, 110, 253, 0.08);
    color: #0d6efd;
    border: 1px solid rgba(13, 110, 253, 0.15);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background-color: #0d6efd;
    border-radius: 50%;
    display: inline-block;
    animation: pulseGlow 1.8s infinite;
}

.text-gradient {
    background: linear-gradient(135deg, #0d6efd 0%, #0369a1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* أزرار الهيرو */
.btn-primary-hero {
    background: linear-gradient(135deg, #0d6efd 0%, #0a4da3 100%);
    border: none;
    transition: all 0.3s ease;
}

.btn-primary-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(13, 110, 253, 0.35) !important;
}

.btn-outline-blue {
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: #fff !important;
  background: rgba(255, 255, 255, 0.1);
}

.btn-outline-blue:hover {
  background: rgba(255, 255, 255, 0.25);
}
.btn-lang {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: 1px solid var(--glass-border);
  font-weight: 600;
}
.btn-lang:hover {
  background: var(--accent-blue);
  color: #fff;
}
/* الكروت التفاعلية البديلة للصورة */
.hero-glass-card {
    border: 1px solid rgba(226, 232, 240, 0.8);
    backdrop-filter: blur(12px);
    border-radius: 24px !important;
    transition: transform 0.4s ease;
}
.hero-section {
  position: relative;
  min-height: 100vh;
}
.hero-video {
  top: 0;
  left: 0;
  z-index: 1;
}

.hero-fog-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(11, 60, 93, 0.75) 0%, rgba(11, 60, 93, 0.85) 100%);
  z-index: 2;
}

.hero-glass-card:hover {
    transform: translateY(-5px);
}
.stats-glass-bar {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
}

.blueprint-preview {
    height: 200px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.blueprint-grid-pattern {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
}


.stat-icon {
    width: 36px;
    height: 36px;
}

/* الكروت العائمة */
.floating-hero-badge {
    position: absolute;
    border: 1px solid rgba(226, 232, 240, 0.9);
    z-index: 3;
}

.float-badge-1 {
    top: -20px;
    left: -20px;
    animation: floatAnim1 5s ease-in-out infinite;
}

.float-badge-2 {
    bottom: -20px;
    right: -20px;
    animation: floatAnim2 6s ease-in-out infinite;
}

.pulse-indicator {
    width: 10px;
    height: 10px;
    background-color: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    animation: pulseRing 1.6s infinite;
}

@keyframes pulseRing {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

@keyframes floatAnim1 {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes floatAnim2 {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

@media (max-width: 991px) {
    .floating-hero-badge {
        position: relative;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        margin-top: 15px;
    }
}
/* ==========================================
   تنسيقات قائمة الموبايل فقط (بدون التأثير على الكمبيوتر)
   ========================================== */
@media (max-width: 991.98px) {
    
    /* 1. تصغير زر الهامبرجر وشعار الشركة في التلفون */
    .navbar-toggler {
        padding: 4px 8px !important;
        font-size: 0.9rem !important;
    }

    .navbar-brand img {
        max-height: 35px !important; /* تصغير اللوجو في الهاتف */
        width: auto;
    }

    /* 2. تحسين شكل القائمة المنسدلة عند فتحها في التلفون */
    .navbar-collapse {
        background: #ffffff !important;
        border-radius: 16px !important;
        padding: 1rem 1.25rem !important;
        margin-top: 0.5rem !important;
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12) !important;
        border: 1px solid #e2e8f0 !important;
    }

    /* 3. ترتيب ونحافة الروابط داخل القائمة في التلفون */
    .navbar-nav .nav-link {
        padding: 0.6rem 0.8rem !important;
        font-size: 0.92rem !important;
        border-bottom: 1px solid #f1f5f9;
        text-align: right;
    }

    /* إلغاء الخط السفلي لآخر عنصر */
    .navbar-nav .nav-item:last-child .nav-link {
        border-bottom: none;
    }

    /* 4. تكييف زر "تواصل معنا" ليناسب القائمة المصغرة */
    .navbar-nav .btn {
        margin-top: 0.5rem !important;
        padding: 0.5rem 1rem !important;
        font-size: 0.88rem !important;
        width: 100% !important;
    }
}
/* تنسيق القائمة المنسدلة في الهواتف */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    margin-top: 10px;
  }
  
  .navbar-nav .nav-link {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
  }
  
  .navbar-nav .nav-item:last-child .nav-link {
    border-bottom: none;
  }
}
.main-heading {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--primary-dark);
    line-height: 1.3;
}

/* --- الأيقونات --- */
.feature-icon, .serv-icon, .contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--blue-main), var(--blue-dark));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #FFFFFF;
    margin: 0 auto 15px;
    box-shadow: 0 6px 15px rgba(46, 102, 185, 0.22);
}
/* ضبط حجم الشعار والتأكد من ترتيب الهيدر */
.custom-logo {
  height: 150px;
  width: auto;
  object-fit: contain;
}

/* ضبط حجم الشعار خصيصاً لشاشات الموبايل والأجهزة الصغيرة */
@media (max-width: 800px) {
  .custom-logo {
    height: 200px !important; /* تكبير الارتفاع ليكون واضحاً في الموبايل */
    object-fit: contain;
  }
}

.navbar {
  background-color: #ffffff !important;
  direction: rtl; /* ضمان ترتيب اليمين واليسار باللغة العربية */
}

.navbar .nav-link {
  color: #1a1a1a !important;
  transition: color 0.2s ease;
}

.navbar .nav-link:hover, 
.navbar .nav-link.active {
  color: #0d6efd !important;
}

/* ===================================================
   Why Choose Us Section Modern Styling
   =================================================== */
.features-modern {
    background-color: #f8fafc;
}

.features-glow-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 400px;
    background: radial-gradient(circle, rgba(13, 110, 253, 0.08) 0%, transparent 70%);
    pointer-events: none;
}
/* نقل تأثير الدخان الأزرق الضبابي ليكون مكثفاً جهة اليسار بدلاً من اليمين */
.hero-overlay {
  background: linear-gradient(
    to right, 
    rgba(8, 18, 38, 0.92) 0%, 
    rgba(10, 22, 48, 0.75) 35%, 
    rgba(10, 22, 48, 0.25) 60%, 
    transparent 100%
  ) !important;

  backdrop-filter: blur(6px) !important;
  -webkit-backdrop-filter: blur(6px) !important;
  
  /* عكس القناع المASK ليكون التعتيم على اليسار والشفافية على اليمين */
  -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.8) 40%, rgba(0, 0, 0, 0) 80%);
  mask-image: linear-gradient(to right, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.8) 40%, rgba(0, 0, 0, 0) 80%);
  
  z-index: 2;
}

/* محاذاة المحتوى للجهة اليسرى فوق منطقة الدخان */
.hero-content-wrapper {
  text-align: left !important;
}

/* بطاقات الميزات */
.feature-card {
    border: 1px solid rgba(226, 232, 240, 0.9);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(13, 110, 253, 0.4);
    box-shadow: 0 20px 40px rgba(13, 110, 253, 0.12) !important;
}

/* الأرقام الهندسية الشفافة في الخلفية */
.card-step-num {
    position: absolute;
    top: 10px;
    left: 15px;
    font-size: 3.5rem;
    font-weight: 900;
    color: rgba(13, 110, 253, 0.05);
    line-height: 1;
    user-select: none;
    transition: all 0.4s ease;
}

.feature-card:hover .card-step-num {
    color: rgba(13, 110, 253, 0.15);
    transform: scale(1.1);
}

/* الأيقونات */
.feature-icon-box {
    width: 60px;
    height: 60px;
    background: rgba(13, 110, 253, 0.08);
    border: 1px solid rgba(13, 110, 253, 0.15);
    transition: all 0.35s ease;
}

.feature-card:hover .feature-icon-box {
    background: #0d6efd;
    transform: rotateY(180deg);
}

.feature-card:hover .feature-icon-box i {
    color: #ffffff !important;
    transform: rotateY(-180deg);
}

.feature-title {
    transition: color 0.3s ease;
}

.feature-card:hover .feature-title {
    color: #0d6efd !important;
}

.lead-p {
    line-height: 1.6;
}

/* خط حافة بطاقة مضيء عند التمرير */
.card-border-glow {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #0d6efd 0%, #0a4da3 100%);
    transition: width 0.4s ease;
}

.feature-card:hover .card-border-glow {
    width: 100%;
}
/* ===================================================
   إلغاء الحواف والظلال والخلفيات عن الصورة تماماً
   =================================================== */
.about-img-wrapper,
.about-img,
.about-img-wrapper img,
.main-about-img {
    background: none !important;
    background-color: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    padding: 0 !important;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* في حال وجود إطار مزخرف خلف الصورة (Pseudo-elements) */
.about-img-wrapper::before,
.about-img-wrapper::after {
    display: none !important;
    content: none !important;
}
/* ===================================================
   Services Section Modern Styling
   =================================================== */
.services-modern {
    background-color: #f8fafc !important;
}

.services-grid-bg {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(#cbd5e1 1px, transparent 1px);
    background-size: 28px 28px;
    opacity: 0.35;
    pointer-events: none;
}

/* خط العنوان السفلي */
.title-line {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #0d6efd 0%, #0a4da3 100%);
    border-radius: 10px;
}

/* تصميم الكارت الحديث */
.service-card {
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(13, 110, 253, 0.3);
    box-shadow: 0 20px 35px rgba(13, 110, 253, 0.08) !important;
}

/* الأيقونات */
.icon-wrapper {
    width: 64px;
    height: 64px;
    background: rgba(13, 110, 253, 0.08);
    border: 1px solid rgba(13, 110, 253, 0.15);
    transition: all 0.3s ease;
}

.service-card:hover .icon-wrapper {
    background: #0d6efd;
    color: #ffffff !important;
    transform: scale(1.08) rotate(-4deg);
}

.service-card:hover .icon-wrapper i {
    color: #ffffff !important;
}

/* نصوص وعناوين الكارت */
.service-title {
    font-size: 1.22rem;
    transition: color 0.3s ease;
}

.service-card:hover .service-title {
    color: #0d6efd !important;
}

.service-text {
    line-height: 1.6;
    font-size: 0.925rem;
}

.service-link i {
    transition: transform 0.3s ease;
}

.service-card:hover .service-link i {
    transform: translateX(-5px);
}

/* تأثير الإضاءة الخفية المتبعة للماوس (Spotlight Effect) */
.spotlight {
    position: absolute;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(13, 110, 253, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
}

.service-card:hover .spotlight {
    opacity: 1;
}
/* ===================================================
   Clients & Partners Section Styles
   =================================================== */

/* خلفية القسم */
.partners-section {
  background-color: #f8fafc !important;
}

/* بطاقة الشعار */
.partner-logo-card {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 90px;
  transition: all 0.3s ease;
  border-color: #e2e8f0 !important;
}

/* التفاعل عند وضع الماوس على الشعار */
.partner-logo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08) !important;
  border-color: #0d6efd !important;
}

/* تنسيق صور الشعارات */
.partner-logo {
  max-height: 55px;
  max-width: 100%;
  object-fit: contain;
  filter: grayscale(30%); /* درجات رمادية ناعمة موحدة */
  opacity: 0.85;
  transition: all 0.3s ease;
}

.partner-logo-card:hover .partner-logo {
  filter: grayscale(0%); /* إظهار اللون الأصلي عند التمرير */
  opacity: 1;
}

/* بطاقة طلب الشراكة الدعائية بالأسفل */
.partnership-cta {
  background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
  border-right: 5px solid #0d6efd !important; /* إطار جانبي مميز بلون الهوية */
}

.partnership-cta .btn-primary {
  background-color: #0d6efd;
  border-color: #0d6efd;
  font-weight: 600;
  transition: all 0.3s ease;
}

.partnership-cta .btn-primary:hover {
  background-color: #0b3c5d;
  border-color: #0b3c5d;
  transform: translateY(-2px);
}

/* ===================================================
   Proposal Request Section Styles
   =================================================== */

.rfp-section {
  background-color: #ffffff !important;
}

.rfp-section .card {
  background-color: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
}

/* تنسيق حقول المدخلات والأيقونات */
.rfp-section .input-group-text {
  border-color: #cbd5e1;
  color: #0b3c5d;
}

.rfp-section .form-control,
.rfp-section .form-select {
  border-color: #cbd5e1;
  padding: 10px 12px;
  font-size: 0.95rem;
}

.rfp-section .form-control:focus,
.rfp-section .form-select:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
}

/* زر إرسال الطلب */
.rfp-section .btn-primary {
  background-color: #0d6efd;
  border-color: #0d6efd;
  font-weight: 700;
  transition: all 0.3s ease;
}

.rfp-section .btn-primary:hover {
  background-color: #0b3c5d;
  border-color: #0b3c5d;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(11, 60, 93, 0.25) !important;
}

/* تنسيق عرض اللوحة الجانبية لتستغل مساحة ممتازة */
.project-offcanvas {
  width: 500px !important;
  max-width: 90vw !important;
}

/* تأثيرات التمرير لكروت المشاريع */
.project-card {
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12) !important;
}

.project-img-wrapper img {
  height: 240px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-img-wrapper img {
  transform: scale(1.06);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 60, 93, 0.7); /* كحلي شفاف */
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

/* سلايدر الصور داخل اللوحة الجانبية */
#drawerCarouselInner img {
  height: 260px;
  object-fit: cover;
}

/* أحجام الخصوصية للخطوط الصغيرة */
.fs-7 { font-size: 0.875rem; }
.fs-8 { font-size: 0.75rem; }

/* --- تحسين قسم عارض الـ PDF الاحترافي --- */
/* --- 3D Interactive Book Cover --- */
.book-container {
    perspective: 1000px;
    cursor: pointer;
    padding: 20px;
}

.book-cover {
    width: 240px;
    height: 330px;
    position: relative;
    border-radius: 12px 20px 20px 12px;
    background: #FFFFFF;
    box-shadow: -15px 15px 30px rgba(0, 0, 0, 0.15),
                inset 4px 0 10px rgba(255, 255, 255, 0.5);
    transform: rotateY(-18deg) rotateX(8deg);
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    transform-style: preserve-3d;
    overflow: hidden;
}
/* إخفاء طبقة التظليل الرمادية تماماً */
.modal-backdrop {
    display: none !important;
    opacity: 0 !important;
}

/* إعادة التفاعل للماوس فوق القارئ والشاشة */
body.modal-open {
    overflow: auto !important;
    padding-right: 0 !important;
}

/* تأكيد أسبقية القارئ لاستقبال النقرات */
#book-section, #pdfMagazineIframe, iframe {
    pointer-events: auto !important;
    position: relative;
    z-index: 1050 !important;
}
/* تأثير البريق والحواف للكتاب */
.book-cover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 12px;
    height: 100%;
    background: linear-gradient(90deg, rgba(0,0,0,0.2), transparent);
    z-index: 3;
}

.book-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px 20px 20px 12px;
}

.book-badge {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(46, 102, 185, 0.9);
    color: #FFFFFF;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 20px;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: 0.3s ease;
}


/* حركة الغلاف عند تحريك الماوس عليه (Hover 3D) */
.book-container:hover .book-cover {
    transform: rotateY(0deg) rotateX(0deg) scale(1.05);
    box-shadow: 0 20px 40px rgba(46, 102, 185, 0.25);
}

.book-container:hover .book-badge {
    background: var(--blue-dark);
}

/* --- Glassmorphic Modal Styles --- */
.glass-modal {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(15, 23, 42, 0.5);
}

.glass-modal-content {
    background: rgba(0, 0, 0, 0.25) !important;
    backdrop-filter: blur(20px);
    border-radius: 24px !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.glass-modal-header {
    background: rgba(0, 0, 0, 0.25);
}

.btn-close-custom {
    background: rgba(0, 0, 0, 0.25);;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
    font-size: 1.1rem;
    transition: 0.3s;
}

.btn-close-custom:hover {
    background: rgba(0, 0, 0, 0.25);;
    color: var(--blue-main);
}

.modal-pdf-wrapper {
    height: 80vh;
    width: 100%;
}

@media (max-width: 991px) {
    .book-cover {
        width: 200px;
        height: 280px;
        transform: rotateY(0deg) rotateX(0deg);
    }
    .modal-pdf-wrapper {
        height: 75vh;
    }
}

.glass-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.pdf-footer-action {
    background: rgba(0, 0, 0, 0.25) !important;
    border-color: rgba(46, 102, 185, 0.12) !important;
}


/* --- حقول الإدخال --- */
.glass-input {
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--primary-dark);
    border-radius: 10px;
    padding: 12px;
}

.glass-input:focus {
    background: #FFFFFF;
    border-color: var(--blue-main);
    box-shadow: 0 0 10px rgba(46, 102, 185, 0.2);
    outline: none;
}
/* --- ضبط كروت التواصل والأيقونات لتكون من اليمين للجميع --- */
.contact-info-list .d-flex {
    flex-direction: row; /* التأكد من أن الترتيب يقتبس الاتجاه العربي RTL */
    text-align: right;
}

.contact-icon {
    width: 55px;
    height: 55px;
    min-width: 55px; /* لمنع تقلص الأيقونة */
    background: linear-gradient(135deg, var(--blue-main), var(--blue-dark));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #FFFFFF;
    margin: 0 0 0 15px !important; /* الهامش على اليسار لتترك مسافة بين الأيقونة والنص */
    box-shadow: 0 6px 15px rgba(46, 102, 185, 0.22);
}

/* ضبط تنسيق ورقم الهاتف ليكون موجه بشكل صح من الشمال لليمين داخل الفقرة لتفادي انقلاب الرمز + */
.phone-number {
    display: inline-block;
    text-align: right;
    unicode-bidi: embed;
}
/* توسيط عناوين الكروت */
.glass-card h3 {
    text-align: center !important;
}

/* تنسيق قائمة أرقام الهاتف لتنزل تحت بعضها */
.phone-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.phone-number {
    display: block; /* تجعل كل رقم يأخذ سطر مستقلاً */
    color: var(--primary-gray);
    font-size: 0.95rem;
    text-align: right;
    unicode-bidi: embed;
}

/* --- الاستجابة للشاشات الصغيرة --- */
@media (max-width: 991px) {
    .main-heading {
        font-size: 2.1rem;
    }
    .hero-section {
        padding: 120px 0 50px;
    }
    .pdf-wrapper {
        height: 450px;
    }
}
/* ضبط التصميم للشاشات الصغيرة والهواتف */
@media (max-width: 768px) {
    /* تصغير وتوسيط عنوان الصفحة */
    .hero-title {
        font-size: 2.1rem;
        text-align: center;
    }
    .hero-subtitle {
        font-size: 1rem;
        text-align: center;
    }

    /* جعل الأزرار فوق بعضها وبعرض الشاشة لسهولة اللمس */
    .hero-btns {
        justify-content: center;
        flex-direction: column;
    }
    .btn-blue, .btn-glass {
        width: 100%;
    }

    /* ترتيب كروت الإحصائيات بشكل أنيق فوق بعضها */
    .stat-item {
        justify-content: flex-start;
        padding: 12px 15px;
        background: rgba(255, 255, 255, 0.06);
        border-radius: 10px;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    .stat-number {
        font-size: 1.7rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }
}
/* تغيير لون زر تصفح الكتالوج */
.pdf-section .btn-glass-blue, 
.pdf-section button[data-bs-target="#pdfModal"] {
    background-color: #0d6efd !important; /* لون الخلفية الأزرق */
    color: #ffffff !important;           /* لون النص والأيقونة أبيض */
    border: none !important;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.25) !important;
}

/* لون الزر عند تمرير الماوس عليه */
.pdf-section .btn-glass-blue:hover, 
.pdf-section button[data-bs-target="#pdfModal"]:hover {
    background-color: #0b5ed7 !important;
    color: #ffffff !important;
}
/* ضبط الطبقات لضمان ظهور النافذة المنبثقة فوق الشريط العلوي */
.navbar.fixed-top {
    z-index: 1030 !important;
}

.modal-backdrop {
    z-index: 10500 !important;
}

.modal {
    z-index: 10600 !important;
}
/* تثبيت شريط الإحصائيات ومنع اختفائه */
section {
    overflow: visible !important;
}

.stats-glass-bar {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    background: rgba(15, 23, 42, 0.75) !important; /* خلفية زجاجية ثابتة */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}
/* تنسيق شريط الإحصائيات المطابق للعينات */
.stats-custom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(20, 24, 33, 0.85); /* لون داكن مع شفافية زجاجية */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px 24px;
  max-width: 900px; /* للتحكم في طول الشريط */
  width: 95%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.stats-item {
  flex: 1;
  text-align: center;
  position: relative;
  padding: 0 10px;
}

/* الفواصل العمودية الرقيقة بين العناصر */
.stats-item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 15%;
  left: 0; /* خط الفاصل على اليسار باللغة العربية */
  height: 70%;
  width: 1px;
  background: rgba(255, 255, 255, 0.12);
}

.stat-num {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 4px;
}

.stat-title {
  font-size: 0.85rem;
  color: #a0aec0;
  font-weight: 500;
}

/* التجاوب مع شاشات الموبايل */
@media (max-width: 768px) {
  .stats-custom-bar {
    flex-wrap: wrap;
    gap: 15px 0;
  }
  .stats-item {
    flex: 0 0 50%;
  }
  .stats-item::after {
    display: none;
  }
}
/* تنسيق الشريط ثابتاً ومطابقاً للعينات */
.stats-glass-bar {
  display: flex !important;
  align-items: center;
  justify-content: space-around;
  background: rgba(18, 22, 31, 0.145) !important; /* خلفية داكنة زجاجية */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 14px 20px;
  max-width: 950px; /* التحكم بطول الشريط */
  width: 95%;
  position: relative !important;
  z-index: 999 !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  animation: none !important;
}

.stat-item {
  flex: 1;
  text-align: center;
  position: relative;
  padding: 0 8px;
}

/* الفواصل العمودية الرقيقة جداً */
.stat-item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 10%;
  left: 0;
  height: 80%;
  width: 1px;
  background: rgba(255, 255, 255, 0.12);
}

.stat-num {
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 2px;
}

.stat-text {
  font-size: 0.82rem;
  color: #a0aec0;
  font-weight: 500;
}

/* الاستجابة للهواتف الذكية */
@media (max-width: 768px) {
  .stats-glass-bar {
    flex-wrap: wrap;
    padding: 12px;
  }
  .stat-item {
    flex: 0 0 50%;
    margin-bottom: 8px;
  }
  .stat-item::after {
    display: none;
  }
}
/* تأثير الزجاج الضبابي الفاخر (Glassmorphism) */
.stats-glass-bar {
  background: rgba(15, 23, 42, 0.45) !important; /* درجة الشفافية واللون الداكن */
  backdrop-filter: blur(16px) saturate(180%) !important; /* ضبابية وتنسيق الخلفية الزجاجية */
  -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important; /* إطار أبيض زجاجي خفيف */
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37) !important; /* ظل عميق لإبراز الشريط */
}