      /* حل مشكلة الفراغ الجانبي وشريط التمرير الأفقي على الجوال */
      html,
      body {
        overflow-x: hidden !important;
        width: 100% !important;
        position: relative !important;
      }

      /* حل تعارض هوامش صفوف البوتستراب داخل حاويات المنتور */
      .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
      }
      body {
        font-family: "Cairo", sans-serif;
        background-color: #f8f9fa;
        color: #333;
        scroll-behavior: smooth;
        overflow-x: hidden;
      }
      :root {
        --main-color: #0b3c8f; /* أزرق ثقة */
        --accent-color: #f59e0b; /* برتقالي ذهبي للمقاولات */
        --dark-color: #1e293b;
        --card-bg: #ffffff;
        --light-bg: #f8f9fa;
        --snapchat-color: #fffc00;
        --tiktok-color: #010101;
        --instagram-color: #e1306c;
      }
      .bg-main {
        background-color: var(--main-color);
      }
      .text-main {
        color: var(--main-color);
      }
      .text-accent {
        color: var(--accent-color);
      }

      /* البنر الرئيسي المتحرك (Carousel Hero) */
      .hero-carousel .carousel-item {
        height: 80vh;
        min-height: 550px;
        background-size: cover;
        background-position: center;
        position: relative;
      }
      .hero-carousel .carousel-item::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(rgba(11, 60, 143, 0.85), rgba(30, 41, 59, 0.8));
      }
      .hero-carousel .carousel-caption {
        z-index: 2;
        bottom: 25%;
      }

      /* كروت الخدمات والمعرض والأسئلة */
      .service-card,
      .portfolio-card,
      .review-card,
      .video-card,
      .feature-card {
        border: none;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
        transition: all 0.3s ease;
        background: #fff;
      }
      .service-card:hover,
      .feature-card:hover {
        transform: translateY(-8px);
        border-bottom: 4px solid var(--accent-color);
      }
      .portfolio-card,
      .video-card {
        overflow: hidden;
      }
      .portfolio-card img {
        transition: transform 0.5s ease;
      }
      .portfolio-card:hover img {
        transform: scale(1.1);
      }

      .service-icon,
      .feature-icon {
        font-size: 2.8rem;
        color: var(--main-color);
        margin-bottom: 18px;
      }
      .feature-icon {
        color: var(--accent-color);
      }

      /* قنوات التواصل الاجتماعي */
      .social-link-btn {
        width: 45px;
        height: 45px;
        border-radius: 50%;
        display: inline-flex;
        justify-content: center;
        align-items: center;
        color: white;
        font-size: 20px;
        text-decoration: none;
        transition: transform 0.3s ease;
        margin: 0 5px;
      }
      .social-link-btn:hover {
        transform: scale(1.1);
        color: white;
      }
      .bg-snap {
        background-color: #fffc00;
        color: #000 !important;
      }
      .bg-tiktok {
        background-color: #000000;
      }
      .bg-insta {
        background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
      }

      /* الأسئلة الشائعة Accordion Custom */
      .accordion-button:not(.collapsed) {
        background-color: #f0f5ff;
        color: var(--main-color);
        box-shadow: none;
      }
      .accordion-button:focus {
        box-shadow: none;
        border-color: rgba(11, 60, 143, 0.2);
      }

      /* الفوتر المطور */
      .main-footer {
        background-color: var(--dark-color);
        color: #cbd5e1;
        border-top: 5px solid var(--accent-color);
      }
      .footer-links a {
        color: #cbd5e1;
        text-decoration: none;
        transition: color 0.2s ease;
        display: inline-block;
        margin-bottom: 10px;
      }
      .footer-links a:hover {
        color: var(--accent-color);
        padding-right: 5px;
      }

   /* التنسيق العام لجميع الأزرار العائمة */
.btn-float {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 26px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-float:hover {
  color: white;
  transform: scale(1.15);
}

/* حاوية الجهة اليسرى (واتساب + اتصال) */
.floating-buttons-left {
  position: fixed;
  bottom: 5px;
  left: 5px; /* تثبيت في اليسار */
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* حاوية الجهة اليمنى (سناب + تيك توك + انستغرام) */
.floating-buttons-right {
  position: fixed;
  bottom: 5px;
  right: 5px; /* تثبيت في اليمين */
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

/* ألوان الأزرار الافتراضية والجديدة */
.btn-whatsapp {
  background-color: #25d366;
}

.btn-call {
  background-color: #0d6efd;
}

.btn-snapchat {
  background-color: #fffc00;
  color: #000 !important; /* أيقونة سوداء على خلفية صفراء */
}

.btn-tiktok {
  background-color: #010101;
}

.btn-instagram {
  background-color: #e1306c;
}

      /* تحسين استجابة الفيديو المصمن */
      .video-container {
        position: relative;
        height: 500px;
        overflow: hidden;
        border-radius: 8px;
      }
      .video-container iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
      }

      /* Loader احترافي */
      #site-loader {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: #0f172a;
        z-index: 99999;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        color: #fff;
      }
      .loader-spinner {
        width: 50px;
        height: 50px;
        border: 5px solid #f3f3f3;
        border-top: 5px solid var(--accent-color);
        border-radius: 50%;
        animation: spin 1s linear infinite;
      }

      @keyframes spin {
        0% {
          transform: rotate(0deg);
        }
        100% {
          transform: rotate(360deg);
        }
      }

/* شريط العروض المتحرك */
.promo-ticker {
  background: #0f172a;
  color: #fff;
  white-space: nowrap;
  padding: 8px 0;
  overflow: hidden;
  border-bottom: 2px solid var(--accent-color);
  font-size: 0.9rem;
  direction: rtl; /* العودة للوضع العربي الطبيعي لقراءة النصوص */
}

.ticker-wrap {
  display: inline-flex; /* الحفاظ على تدفق العناصر بجانب بعضها */
  width: max-content;
  animation: ticker 25s linear infinite;
  will-change: transform; /* تفعيل كارت الشاشة فوراً لمنع أي تعليق في الجوال */
}

.ticker-item {
  display: inline-block;
  padding: 0 2rem;
}

@keyframes ticker {
  0% {
    transform: translate3d(0, 0, 0); /* يبدأ فوراً أمام عين المستخدم */
  }
  100% {
    transform: translate3d(50%, 0, 0); /* يتحرك لليمين بانسيابية متوافقة مع القراءة العربية */
  }
}

      /* العدادات المتحركة */
      .stat-card {
        background: var(--card-bg);
        border-radius: 12px;
        padding: 30px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
        border: 1px solid rgba(0, 0, 0, 0.05);
        transition: transform 0.3s;
      }
      .stat-number {
        font-size: 3rem;
        font-weight: 900;
        color: var(--main-color);
      }

      /* السلايدر التفاعلي قبل وبعد */
      .ba-slider {
        position: relative;
        width: 100%;
        max-width: 700px;
        height: 550px;
        margin: 0 auto;
        overflow: hidden;
        border-radius: 16px;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
      }
      .ba-img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-size: cover;
        background-position: center;
        pointer-events: none;
      }
      .ba-before {
        width: 50%;
        border-left: 3px solid #fff;
        z-index: 2;
      }
      .ba-handle {
        position: absolute;
        z-index: 3;
        top: 0;
        bottom: 0;
        left: 50%;
        width: 4px;
        background: #fff;
        cursor: ew-resize;
        transform: translateX(-50%);
      }
      .ba-button {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 50px;
        height: 50px;
        background: var(--accent-color);
        color: white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
      }
      .ba-badge {
        position: absolute;
        bottom: 20px;
        padding: 5px 15px;
        background: rgba(0, 0, 0, 0.7);
        color: white;
        font-weight: bold;
        border-radius: 5px;
        z-index: 4;
      }

      /* فلاتر معرض الأعمال المطور */
      .filter-btn {
        padding: 10px 25px;
        border-radius: 30px;
        font-weight: 600;
        transition: all 0.3s ease;
        border: 2px solid #e2e8f0;
        background: var(--card-bg);
        color: #64748b;
      }
      .filter-btn.active,
      .filter-btn:hover {
        background: var(--main-color);
        color: #fff;
        border-color: var(--main-color);
      }
      .portfolio-item {
        transition: all 0.4s ease;
      }
      .portfolio-item.hide {
        display: none;
      }
      .gallery-box {
        position: relative;
        overflow: hidden;
        border-radius: 12px;
        cursor: pointer;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
      }
      .gallery-box img {
        transition: transform 0.5s ease;
      }
      .gallery-box:hover img {
        transform: scale(1.1);
      }
      .gallery-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(11, 60, 143, 0.85);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        opacity: 0;
        transition: opacity 0.3s ease;
        color: white;
      }
      .gallery-box:hover .gallery-overlay {
        opacity: 1;
      }

      /* الـ Lightbox */
      .lightbox-modal {
        display: none;
        position: fixed;
        z-index: 9999;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(15, 23, 42, 0.95);
        justify-content: center;
        align-items: center;
      }
      .lightbox-content {
        max-width: 85%;
        max-height: 85%;
        border-radius: 8px;
      }
      .lightbox-close {
        position: absolute;
        top: 25px;
        right: 35px;
        color: #fff;
        font-size: 40px;
        cursor: pointer;
      }

      /* كروت أحدث المشاريع الميدانية */
      .project-card {
        border: none;
        border-radius: 16px;
        overflow: hidden;
        background: var(--card-bg);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.04);
      }
      .project-badge {
        position: absolute;
        top: 15px;
        left: 15px;
        background: var(--accent-color);
        color: #fff;
        padding: 5px 15px;
        border-radius: 30px;
        font-size: 0.85rem;
        font-weight: 700;
        z-index: 5;
      }

      /* قسم الضمان */
      .warranty-card {
        background: linear-gradient(135deg, #0b3c8f, #052359);
        color: #fff;
        border-radius: 20px;
        padding: 40px;
        position: relative;
        overflow: hidden;
      }

      /* --- تنسيقات قسم كيف نعمل المطور 2026 --- */
      .text-main-dark {
        color: #0b3c8f;
      }
      .max-w-600 {
        max-width: 600px;
      }
      .process-wrapper {
        z-index: 1;
      }
      .process-line {
        position: absolute;
        top: 95px;
        left: 4%;
        right: 4%;
        height: 4px;
        background: linear-gradient(90deg, var(--main-color) 0%, var(--accent-color) 50%, var(--main-color) 100%);
        z-index: -1;
        opacity: 0.25;
        border-radius: 10px;
      }
      .process-step-card {
        background: var(--card-bg);
        border: 1px solid rgba(0, 0, 0, 0.04);
        padding: 40px 25px 30px 25px;
        border-radius: 20px;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.02);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
      }
      .process-step-card:hover {
        transform: translateY(-12px);
        box-shadow: 0 25px 50px rgba(11, 60, 143, 0.1);
        border-color: rgba(11, 60, 143, 0.2);
      }
      .step-badge-wrap {
        position: relative;
        width: 100px;
        height: 100px;
        margin: 0 auto 25px auto;
      }
      .step-number-glow {
        position: absolute;
        top: -15px;
        right: -15px;
        background: var(--accent-color);
        color: #fff;
        font-weight: 900;
        font-size: 0.9rem;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 10px rgba(245, 158, 11, 0.4);
        z-index: 3;
      }
      .step-icon-circle {
        width: 100%;
        height: 100%;
        background: var(--light-bg);
        border: 3px solid var(--main-color);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--main-color);
        font-size: 2rem;
        transition: all 0.4s ease;
        z-index: 2;
        position: relative;
      }
      .process-step-card:hover .step-icon-circle {
        background: var(--main-color);
        color: #fff;
        transform: rotateY(360deg);
        box-shadow: 0 10px 25px rgba(11, 60, 143, 0.3);
      }
      .card-step-title {
        color: #333;
        font-size: 1.35rem;
        transition: color 0.3s;
      }
      .process-step-card:hover .card-step-title {
        color: var(--main-color);
      }
      /* تنسيقات خاصة بوضع الجوال لتناسق قسم الهيرو */
      @media (max-width: 767.98px) {
        /* ضبط حجم ومساحة البنر الرئيسي */
        .hero-carousel .carousel-item {
          height: auto !important;
          min-height: 450px !important;
          padding-top: 60px !important;
          padding-bottom: 60px !important;
        }

        /* توسيط نصوص الكابشن وضبط مكانها */
        .hero-carousel .carousel-caption {
          bottom: auto !important;
          top: 50% !important;
          transform: translateY(-50%) !important;
          padding-left: 15px !important;
          padding-right: 15px !important;
          width: 100% !important;
          left: 0 !important;
          right: 0 !important;
        }

        /* تصغير حجم العناوين الرئيسية وتوسيطها */
        .hero-carousel .carousel-caption h1,
        .hero-carousel .carousel-caption h2 {
          font-size: 1.85rem !important; /* حجم مناسب جداً لشاشة الجوال */
          line-height: 1.4 !important;
          text-align: center !important;
          margin-bottom: 15px !important;
        }

        /* تصغير حجم النصوص الفرعية */
        .hero-carousel .carousel-caption p.lead {
          font-size: 1.1rem !important;
          text-align: center !important;
          line-height: 1.5 !important;
          margin-bottom: 25px !important;
        }

        /* ترتيب الأزرار بشكل عمودي متناسق ومريح للضغط */
        .hero-carousel .carousel-caption .d-flex {
          flex-direction: column !important;
          align-items: center !important;
          gap: 10px !important;
        }

        .hero-carousel .carousel-caption .btn {
          width: 100% !important; /* تأخذ العرض الكامل لجعلها متناسقة */
          max-width: 280px !important;
          font-size: 0.95rem !important;
          padding: 10px 15px !important;
        }
      }