 html,
      body {
        max-width: 100%;
        overflow-x: hidden;
        margin: 0;
        padding: 0;
      }
      html {
        scroll-behavior: smooth;
      }
      section {
        overflow: hidden;
      }
      body {
        font-family: "Cairo", sans-serif;
        background-color: var(--white);
        color: var(--text-main);
        overflow-x: hidden;
        line-height: 1.7;
      }
      footer.footer {
    margin-top: auto; /* يدفع الفوتر للأسفل */
}
main {
  padding-top: var(--nav-h); /* يعطي مسافة مساوية لارتفاع الناف */
}body {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* يجعل الجسم يأخذ طول الشاشة بالكامل */
}

footer.footer {
    margin-top: auto; /* هذا السطر موجود عندك بالفعل، والآن سيعمل */
}
      .scroll-wrapper {
        position: fixed;
        top: var(--nav-h); /* سيبدأ من بعد الـ 80px الخاصة بالناف */
        left: 0;
        width: 100%;
        height: 4px; /* قلل الارتفاع قليلاً ليكون أشيك */
        z-index: 9999;
        opacity: 0;
        transform: translateY(-4px);
        transition:
          opacity 0.3s ease,
          transform 0.3s ease;
      }

      .scroll-wrapper.show {
        opacity: 1;
        transform: translateY(0);
      }

      .scroll-track {
        width: 100%;
        height: 100%;
        background: rgba(59, 130, 246, 0.15);
        overflow: hidden;
        border-radius: 0;
      }

      #scrollBar {
        height: 100%;
        width: 0%;
        background: var(--primary1); /* استخدم المتغير الموحد */
        transition: width 0.15s ease-out;
      }
      #topLoader {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 4px;
        z-index: 10001; /* الأعلى على الإطلاق */
      }

      .loader-track {
        width: 100%;
        height: 100%;
        background: rgba(59, 130, 246, 0.15);
        overflow: hidden;
        border-radius: 0;
      }

      .loader-bar {
        height: 100%;
        width: 0%;
        background: linear-gradient(90deg, #93c5fd, #2563eb);
        border-radius: 0;
        transition: width 0.4s ease;
      }

      :root {
        --accent: #2563eb;
        --primary1: #3b82f6;
        --nav-h: 80px;
      }
     :root {
        --main-color: #0056b3; /* الأزرق العميق */
        --accent-color: #ff6b00; /* البرتقالي الحيوي */
        --dark-color: #0d1b2a;
        --light-bg: #f8fbff;
        --white: #ffffff;
        --text-main: #333333;
        --text-muted: #666666;
        --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
      }


       /* ------------------------------------------------------
           2. شريط التنقل (Navbar)
        ------------------------------------------------------ */

      .navbar {
        position: fixed !important; /* تثبيت مطلق في أعلى الشاشة */
        top: 0;
        right: 0;
        left: 0;
        width: 100%;
        background: var(--white) !important; /* ضمان اللون الأبيض */
        padding: 15px 0;
        transition: var(--transition);
        box-shadow: var(--shadow);
        z-index: 10000;
        height: var(--nav-h);
        display: flex;
        align-items: center;
      }

      .navbar.scrolled {
        padding: 8px 0;
      }

      .navbar-brand img {
        height: 55px;
        transition: var(--transition);
      }

      .nav-link {
        color: var(--dark-color) !important;
        font-weight: 700;
        font-size: 1rem;
        margin: 0 10px;
        position: relative;
        transition: var(--transition);
      }

      .nav-link::after {
        content: "";
        position: absolute;
        bottom: 0;
        right: 50%;
        width: 0;
        height: 2px;
        background: var(--accent-color);
        transition: var(--transition);
      }

      .nav-link:hover::after,
      .nav-link.active::after {
        width: 100%;
        right: 0;
      }

      .nav-link:hover {
        color: var(--accent-color) !important;
      }
      /* تنسيق السايد بار في الموبايل */
      @media (max-width: 991px) {
        .offcanvas {
          width: 280px !important; /* عرض القائمة */
          background-color: var(--white);

          /* التعديل لضمان الطول الكامل ومنع الفراغات */
          height: 100vh !important;
          top: 0 !important;
          bottom: 0 !important;
          visibility: visible;
        }

        .offcanvas-body {
          padding: 0 !important; /* لضمان وصول العناصر للحواف */
          overflow-y: auto; /* للسماح بالسكول الداخلي لو المنيو طويلة */
        }

        .offcanvas-body .nav-link {
          padding: 12px 20px !important;
          border-bottom: 1px solid #f0f0f0;
          margin: 0 !important;
        }

        .offcanvas-body .nav-link:hover {
          background: var(--light-bg);
          padding-right: 30px !important; /* حركة انزلاق بسيطة عند اللمس */
        }

        .navbar-toggler:focus {
          box-shadow: none; /* إزالة الإطار المزعج عند الضغط */
        }
      }

      /* حل مشكلة الشفافية أو الألوان عند فتح السايد بار */
      .offcanvas-backdrop.show {
        opacity: 0.5;
        background-color: var(--dark-color);
      }
      .btn-order {
        background: var(--accent-color);
        color: white !important;
        border-radius: 50px;
        padding: 10px 25px;
        font-weight: 700;
        border: 2px solid var(--accent-color);
        transition: var(--transition);
      }

      .btn-order:hover {
        background: transparent;
        border: 2px solid var(--main-color);
        color: rgb(0, 0, 0) !important;
      }
      .btn-order1 {
        background: var(--main-color);

        color: white !important;
        border-radius: 50px;
        padding: 10px 25px;
        font-weight: 700;

        transition: var(--transition);
      }

      .btn-order1:hover {
        background: transparent;
        border: 2px solid var(--accent-color);
        color: rgb(0, 0, 0) !important;
      }
      .btn-order2 {
        background: var(--accent-color);
        color: white !important;
        border-radius: 50px;
        padding: 10px 25px;
        font-weight: 700;
        border: 2px solid var(--accent-color);
        transition: var(--transition);
      }

      .btn-order2:hover {
        background: transparent;
        border: 2px solid var(--main-color);
        color: rgb(255, 255, 255) !important;
      }
       /* ------------------------------------------------------
           11. التذييل (Footer)
        ------------------------------------------------------ */
      .footer {
        background: #0f172a;
        color: #ccc;
        padding: 80px 0 20px;
      }

      .footer h4 {
        color: white;
        margin-bottom: 30px;
        position: relative;
        padding-bottom: 10px;
      }

      .footer h4::after {
        content: "";
        position: absolute;
        bottom: 0;
        right: 0;
        width: 40px;
        height: 2px;
        background: var(--accent-color);
      }

      .footer-links {
        list-style: none;
        padding: 0;
      }
      .footer-links li {
        margin-bottom: 15px;
      }
      .footer-links a {
        color: #ccc;
        text-decoration: none;
        transition: var(--transition);
      }

      .footer-links a:hover {
        color: var(--accent-color);
        padding-right: 10px;
      }

      .social-links {
        display: flex;
        gap: 15px;
        margin-top: 20px;
      }
      .social-links a {
        width: 40px;
        height: 40px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        transition: var(--transition);
      }

      .social-links a:hover {
        background: var(--accent-color);
        transform: translateY(-5px);
      }

      .copyright {
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        margin-top: 50px;
        padding-top: 20px;
        text-align: center;
      }

      /* ------------------------------------------------------
           12. إضافات تفاعلية
        ------------------------------------------------------ */
      :root {
        --main-color: #0056b3; /* اللون الأزرق */
        --whatsapp-color: #25d366;
        --transition: all 0.3s ease;
      }

      .fab-container {
        position: fixed;
        bottom: 30px; /* المسافة من الأسفل */
        left: 30px; /* التموضع على اليسار */
        z-index: 1000;
        display: flex;
        flex-direction: column-reverse; /* ترتيب من تحت لفوق */
        align-items: center;
        gap: 15px;
      }

      /* الزر الرئيسي (الزائد) */
      .fab-main {
        width: 50px;
        height: 50px;
        background: var(--main-color);
        border-radius: 12px; /* زوايا منحنية قليلاً */
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 28px;
        cursor: pointer;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
        transition: var(--transition);
        z-index: 1001;
      }

      /* تحويل الزائد لـ X عند التفعيل */
      .fab-container.active .fab-main {
        background: #f44336; /* لون أحمر */
        transform: rotate(45deg); /* تدوير 45 درجة */
      }

      /* حاوية الأزرار الفرعية */
      .fab-options {
        display: flex;
        flex-direction: column-reverse; /* ترتيب من تحت لفوق */
        gap: 12px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(20px); /* البداية من تحت قليلاً */
        transition: var(--transition);
      }

      /* ظهور الأزرار عند التفعيل */
      .fab-container.active .fab-options {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
      }

      /* تصميم الأزرار الفرعية المربعة */
      .fab-btn {
        width: 60px;
        height: 75px; /* طول ليتسع للأيقونة والنص */
        background: white;
        border-radius: 12px; /* زوايا منحنية */
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        transition: var(--transition);
      }

      /* أيقونات الأزرار */
      .fab-btn i {
        font-size: 24px;
        margin-bottom: 5px;
      }

      /* تصميم النص تحت الأيقونة */
      .fab-btn .label {
        font-size: 11px;
        font-weight: bold;
        color: #333;
      }

      /* ألوان الأيقونات */
      .call i {
        color: var(--main-color);
      }
      .whatsapp i {
        color: var(--whatsapp-color);
      }
      .jobs i {
        color: #546e7a;
      }

      .fab-btn:hover {
        transform: scale(1.05);
      }
      .scroll-top {
        position: fixed;
        bottom: 30px;
        right: 30px;
        background: var(--main-color);
        color: white;
        width: 50px;
        height: 50px;
        border-radius: 10px;

        /* التعديل الجوهري هنا */
        display: none; /* يجب أن يبدأ مخفياً */

        /* هذه الخواص سيعمل الـ jQuery على تفعيلها تلقائياً عند الظهور */
        align-items: center;
        justify-content: center;

        cursor: pointer;
        z-index: 999;
        transition: 0.3s; /* إضافة نعومة عند التحويم */
      }

      .scroll-top i {
        font-size: 20px; /* اتأكد إن حجم الأيقونة مناسب للمربع */
        line-height: 0; /* عشان ميعملش إزاحة عمودية غريبة */
      }
       /* الكود الكامل لنتيجة مبهرة */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f0f0f0; 
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #2071a6; 
    border-radius: 10px;
    border: 2px solid #f0f0f0; /* بيعمل Frame للسكرول بيخليه شيك جداً */
}

::-webkit-scrollbar-thumb:hover {
    background: #ff6b00; /* بيقلب برتقالي غني عند اللمس */
}
a.policy-link {
    color: #adb5bd;
    text-decoration: none !important; /* إضافة important للتأكد من إلغاء أي ستايل خارجي */
    font-size: 15px;
    transition: all 0.3s ease;
    display: inline-block; /* بتساعد أحياناً في حل مشاكل التنسيق */
}

a.policy-link:hover {
    color: #ff8c00;
    text-decoration: underline !important; /* يظهر فقط عند التمرير */
    text-underline-offset: 5px;
}

.footer-policies {
    border-color: rgba(255, 255, 255, 0.05) !important; /* خط خفيف جداً للفصل */
}
  .social-icons {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* التنسيق الرئيسي للزرار المربع */
.social-btn {
    position: relative;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px; /* الحواف اللي طلبتها */
    color: white;
    font-size: 1.4rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    /* إخفاء الـ tooltip الافتراضي */
    outline: none;
}

/* الألوان الأساسية */
.facebook  { background: #1877F2; }
.instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.tiktok    { background: #000000; border: 1px solid #333; }
.youtube   { background: #FF0000; }
.linkedin  { background: #0077b5; }
.twitter   { background: #1DA1F2; }

/* تأثير الـ Hover - الحركة واللمعان */
.social-btn:hover {
    transform: translateY(-5px) scale(1.05);
    filter: brightness(1.15); /* تفتيح اللون */
}

/* تأثير الـ Glow (الإضاءة القوية) */
.facebook:hover  { box-shadow: 0 8px 25px rgba(24, 119, 242, 0.6); }
.instagram:hover { box-shadow: 0 8px 25px rgba(214, 36, 159, 0.6); }
.youtube:hover   { box-shadow: 0 8px 25px rgba(255, 0, 0, 0.6); }
.tiktok:hover    { box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2); }
.linkedin:hover  { box-shadow: 0 8px 25px rgba(0, 119, 181, 0.6); }
.twitter :hover  { box-shadow: 0 8px 25px rgba(0, 119, 181, 0.6); }
/* حركة الأيقونة جوا الزرار */
.social-btn i {
    transition: transform 0.3s ease;
}

.social-btn:hover i {
    transform: scale(1.1);
}