body {
  margin: 0;
  font-family: 'Cairo', sans-serif;
  background-color: #fff;
}

.outer-wrapper {
  padding: 60px 40px;
  background-color: #fff;
  display: flex;
  justify-content: center;
}

/* ===== بانر الفيديو ===== */
.hero {
  position: relative;
  width: 100%;
  max-width: 1200px;
  min-height: 75vh;
  border-radius: 32px;
  overflow: hidden;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* الفيديو في الخلفية */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* الطبقة السوداء الشفافة فوق الفيديو */
.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.75); /* شفافية يمكن تعديلها */
  z-index: 2;
}

/* ===== الهيدر ===== */
.hero-header {
  position: absolute;       /* يبقى داخل البانر */
  top: 20px;                /* المسافة من أعلى البانر */
  right: 20px;
  left: 20px;
  width: calc(100% - 40px); /* يضمن التوسّع بين اليمين واليسار */
  margin: 0;
  background-color: rgba(40, 40, 40, 0.55);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  z-index: 10000;           /* أعلى من.overlay و .hero-content */
}


.hero-header img {
  height: 42px;
}

.nav-links {
  display: flex;
  gap: 20px;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.3s;
}

.nav-links a:hover {
  opacity: 0.8;
}

/* ===== المحتوى ===== */
.hero-content {
  text-align: center;
  max-width: 700px;
  margin: 80px auto 0;
  z-index: 4;
  position: relative;
}

.hero-content h1 {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.hero-content p {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 35px;
}

.cta-btn {
  background-color: #4F007D;
  color: #fff;
  padding: 14px 36px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s;
}

.cta-btn:hover {
  background-color: #5b3cd0;
}

/* ===== زر الاتصال ===== */
.call-btn {
  position: absolute;
  bottom: 25px;
  left: 25px;
  background-color: #6f4cff;
  border: none;
  color: #fff;
  font-size: 24px;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  cursor: pointer;
  z-index: 4;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.call-btn:hover {
  background-color: #5b3cd0;
}

/* ===== استجابة للشاشات الصغيرة ===== */
@media (max-width: 768px) {
  .outer-wrapper {
    padding: 30px 20px;
  }

  .hero {
    min-height: 80vh;
  }

  .hero-header {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-content {
    margin-top: 100px;
    padding: 0 20px;
  }

  .hero-content h1 {
    font-size: 1.8rem;
  }
}

@media (max-width: 768px) {
  .outer-wrapper {
    padding: 15px 12px;
  }

  .hero {
    min-height: 90vh;
  }

  /* ترتيب الهيدر */
  .hero-header {
    flex-direction: row;
    justify-content: space-between;
    padding: 8px 16px;
    border-radius: 12px;
  }

  .hero-header img {
    height: 32px;
  }

  .nav-links {
    display: none; /* نخفي الروابط على الموبايل */
  }

  /* المحتوى */
  .hero-content {
    margin-top: 40px;
    padding: 0 16px;
  }

  .hero-content h1 {
    font-size: 1.6rem;
    margin-bottom: 10px;
  }

  .hero-content p {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 25px;
  }

  .cta-btn {
    padding: 12px 28px;
    font-size: 0.95rem;
  }

  /* زر الاتصال */
  .call-btn {
    width: 50px;
    height: 50px;
    font-size: 20px;
    bottom: 18px;
    left: 18px;
  }
}

/* زر المينيو */
.menu-toggle {
  background: none;
  border: none;
  font-size: 26px;
  color: white;
  cursor: pointer;
  display: none;
}

/* القائمة المنسدلة */
.mobile-nav {
  display: none;
  position: absolute;
  top: 65px;
  right: 10px;
  background: rgba(0, 0, 0, 0.85);
  border-radius: 12px;
  padding: 12px 0;
  width: 220px;
  text-align: right;
  z-index: 999;
  backdrop-filter: blur(10px);
}

.mobile-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-nav li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav li:last-child {
  border-bottom: none;
}

.mobile-nav a {
  color: white;
  text-decoration: none;
  display: block;
  padding: 12px 18px;
  font-size: 15px;
}

.mobile-nav a:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* إظهار الزر فقط على الموبايل */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
  }
}


body, h1, h2, h3, h4, h5, h6, p {
    font-family: "Cairo", sans-serif !important;
}


/* المبدأ: نخفي القائمة المكتوبة للديسكتوب في الموبايل ونخفي قائمة الموبايل في الديسكتوب */

/* القائمة المخصصة للديسكتوب تكون مخفية افتراضياً */
.desktop-nav {
  display: none;
}

/* عندما تكون الشاشة أكبر من 992px (ديسكتوب) */
@media (min-width: 992px) {
  .mobile-nav,
  .menu-toggle {
    display: none; /* نخفي قائمة الموبايل وزرها */
  }

  .desktop-nav {
    display: block; /* نظهر قائمة الديسكتوب */
  }

  .desktop-nav ul {
    display: flex;
    gap: 20px;
    list-style: none;
    align-items: center;
    justify-content: center;
  }

  .desktop-nav a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
  }

  .desktop-nav a:hover {
    color: #f5c542; /* لون جميل عند المرور */
  }
}

/* إخفاء قائمة الديسكتوب في الموبايل */
.desktop-nav {
  display: none;
}

/* تنسيق أيقونة اللغة */
.lang-switcher {
  position: relative;
  cursor: pointer;
  color: white;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.lang-switcher span {
  font-size: 16px;
}

.lang-dropdown {
  display: none;
  position: absolute;
  top: 30px;
  right: 0;
  background: rgba(0, 0, 0, 0.85);
  border-radius: 8px;
  list-style: none;
  padding: 8px 0;
  z-index: 999;
  min-width: 120px;
}

.lang-dropdown li {
  text-align: right;
}

.lang-dropdown li a {
  display: block;
  padding: 6px 12px;
  color: white;
  text-decoration: none;
  transition: background 0.3s;
}

.lang-dropdown li a:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* عند تمرير الماوس */
.lang-switcher:hover .lang-dropdown {
  display: block;
}

/* ديسكتوب */
@media (min-width: 992px) {
  .mobile-nav, .menu-toggle, #langSwitcherMobile {
    display: none;
  }

  .desktop-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
  }

  .desktop-nav ul {
    display: flex;
    gap: 20px;
    list-style: none;
  }

  .desktop-nav a {
    color: white;
    text-decoration: none;
    font-weight: 600;
  }

  .desktop-nav a:hover {
    color: #f5c542;
  }
}

/* موبايل */
@media (max-width: 991px) {
  #langSwitcherMobile {
    display: inline-block;
    margin-left: 10px;
  }

  #langSwitcherMobile .lang-dropdown {
    right: 0;
    top: 30px;
  }
}


/* إعداد عام */
.hero-header {
  position: absolute;
  top: 20px;
  right: 20px;
  left: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}

/* زر القائمة وأيقونة اللغة في نفس الخط */
.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* اللغة العامة */
.lang-switcher {
  position: relative;
  cursor: pointer;
  color: white;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.lang-switcher span {
  font-size: 16px;
}

.lang-dropdown {
  display: none;
  position: absolute;
  top: 30px;
  right: 0;
  background: rgba(0, 0, 0, 0.85);
  border-radius: 8px;
  list-style: none;
  padding: 8px 0;
  z-index: 999;
  min-width: 120px;
}

.lang-dropdown li a {
  display: block;
  padding: 6px 12px;
  color: white;
  text-decoration: none;
}

.lang-dropdown li a:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* عند تمرير الماوس في الديسكتوب */
.lang-switcher:hover .lang-dropdown {
  display: block;
}

/* الموبايل */
@media (max-width: 991px) {
  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-block;
    background: none;
    border: none;
    color: white;
    font-size: 26px;
    cursor: pointer;
  }

  #langSwitcherMobile {
    display: inline-block;
  }

  #langSwitcherMobile .lang-dropdown {
    right: 0;
    top: 30px;
  }

  .lang-switcher span {
    display: none; /* نخفي كلمة Language في الموبايل */
  }
}

/* الديسكتوب */
@media (min-width: 992px) {
  .mobile-nav,
  .menu-toggle,
  #langSwitcherMobile {
    display: none;
  }

  .desktop-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
  }

  .desktop-nav ul {
    display: flex;
    gap: 20px;
    list-style: none;
  }

  .desktop-nav a {
    color: white;
    text-decoration: none;
    font-weight: 600;
  }

  .desktop-nav a:hover {
    color: #f5c542;
  }

  #langSwitcherDesktop {
    display: flex;
    align-items: center;
  }
}


/* ترتيب زر اللغة وزر المينيو في الموبايل */
@media (max-width: 991px) {
  .header-right {
    display: flex;
    flex-direction: row-reverse; /* يجعل 🌐 يمين و ☰ يسار */
    gap: 10px;
  }
}

/* إظهار كلمة Language في الموبايل */
@media (max-width: 991px) {
  #langSwitcherMobile span {
    display: inline !important;
    color: white !important;
    font-size: 14px;
  }
}


/* ترتيب كلمة Language يسار الأيقونة في الموبايل */
@media (max-width: 991px) {
  #langSwitcherMobile {
    display: inline-flex !important;
    align-items: center;
    gap: 6px; /* مسافة صغيرة بين الأيقونة والنص */
    flex-direction: row-reverse; /* يجعل الأيقونة يمين والنص يسار */
  }

  #langSwitcherMobile span {
    display: inline-block !important;
    color: #fff !important;
    font-size: 14px;
  }
}


/* تكبير اللوغو بشكل مناسب */
.logo2030 {
  height: 65px !important; /* حجم جديد أكبر */
  width: auto;
}


@media (min-width: 992px) {

  /* جعل قائمة الديسكتوب أقرب للوسط */
  .desktop-nav {
    justify-content: center !important;
    gap: 40px; /* مسافة جميلة بين العناصر */
    margin-right: 80px; /* هنا نزيح القائمة نحو المركز */
  }

}


/* ===== سكشن الخدمات ===== */
/* ===== سكشن الخدمات ===== */
.services-hero {
  position: relative;
  min-height: 55vh;
  border-radius: 22px;
  overflow: hidden;
  padding: 0;              /* نلغي البادينغ حتى لا يدفع المحتوى للأعلى */
  margin: 40px 20px;
  z-index: 1;

  display: flex;
  justify-content: center;  /* توسيط أفقي */
  align-items: center;      /* توسيط عمودي داخل السيكشن */
}


/* ===== خلفية الفيديو ===== */
.services-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;           /* الفيديو أسفل */
}

/* ===== طبقة السواد الشفاف ===== */
.dark-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.80) !important; /* ← نفس درجة السواد في الأعلى */
  z-index: 2 !important;
  pointer-events: none;
}


/* ===== المحتوى فوق كله ===== */
.services-content {
  position: relative;
  z-index: 3 !important;           /* المحتوى أعلى الجميع */
  text-align: center;
  max-width: 600px;
  margin: auto;
  color: #fff;
}

.services-content h1 {
  font-size: 2rem;
  margin-bottom: 12px;
}

.services-content p {
  font-size: 0.95rem;
  margin-bottom: 25px;
  line-height: 1.6;
}

.services-hero .cta-btn {
  background-color: #4F007D;
  color: #fff;
  padding: 10px 26px;
  border-radius: 50px;
  font-size: 0.95rem;
  text-decoration: none;
  font-weight: 600;
}

.services-hero .cta-btn:hover {
  background-color: #5b3cd0;
}

/* ===== موبايل ===== */
@media (max-width: 768px) {
  .services-hero {
    min-height: 40vh;
    padding: 35px 18px;
    margin: 30px 12px;
  }

  .services-content h1 {
    font-size: 1.6rem;
  }
}


.video-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45); /* ← نفس الدرجة بالضبط */
  z-index: 2;
}


/* صف الخدمات */
.services-row {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  width: 100%;
  padding: 40px 0; /* يعطي تنفس بدون رفع المحتوى */
}


/* كل بطاقة خدمة */
.services-content {
  background: rgba(255, 255, 255, 0.08); /* شفافية خفيفة */
  padding: 30px 25px;
  border-radius: 18px;
  backdrop-filter: blur(6px);
  width: 45%;
  text-align: center;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* عنوان */
.services-content h1 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

/* نص */
.services-content p {
  font-size: 1rem;
  line-height: 1.7;
}

/* زر */
.services-content .cta-btn {
  display: inline-block;
  margin-top: 18px;
}

/* موبايل – صف واحد */
@media (max-width: 768px) {
  .services-row {
    flex-direction: column;
    gap: 18px;
  }

  .services-content {
    width: 100%;
  }
}


.services-content {
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
  padding: 30px 25px;

  /* حل مشكلة البوردر المقطوع */
  box-shadow: 0 0 0 1px rgba(255,255,255,0.15) inset;
}



@media (max-width: 768px) {
  .services-content {
    margin: 12px auto; /* ← يجعل الكارد في المنتصف من اليمين واليسار */
    width: 80%;        /* ← يعطيه مساحة مناسبة في الوسط */
  }
}


.services-title {
  text-align: center;
  font-size: 34px;
  font-weight: 700;
  margin-bottom: 25px;
  color: #222;
}

 /*  خلفية القسم الاحصائيات*/
.stats-section {
  background: #4F007D;
  padding: 60px 0;
  direction: rtl;
  font-family: "Cairo", sans-serif;
}

/* مركز المحتوى */
.stats-container {
  width: 90%;
  max-width: 1400px;
  margin: auto;
  text-align: center;
}

/* عنوان القسم */
.stats-title {
  font-size: 36px;
  font-weight: 700;
  color: #3b235a; /* البنفسجي الداكن */
  line-height: 1.5;
  margin-bottom: 50px;
}

/* الشبكة */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

/* كل مربع */
.stat-box h3 {
  font-size: 36px;
  font-weight: 700;
  color: #3b235a; /* نفس البنفسجي */
  margin-bottom: 10px;
}

.stat-box p {
  font-size: 18px;
  color: #4a4a4a;
  margin: 0;
}

/* موبايل */
@media (max-width: 992px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .stats-title {
    font-size: 28px;
  }
}

@media (max-width: 600px) {
  .stats-grid {
    grid-template-columns: repeat(1, 1fr);
  }

  .stat-box h3 {
    font-size: 32px;
  }
}

/* تنسيق عام لداخل سكشن الفيديو */
.contact-wrapper {
  width: 100%;
  position: relative;
  z-index: 3;
}

/* عنوان النموذج والليبل */
.contact-form label {
  color: #fff;
  font-size: 16px;
  margin-bottom: 6px;
  display: block;
}

/* الحقول */
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.5); /* بورد أبيض خفيف */
  border-radius: 6px;
  background: transparent !important; /* شفاف */
  color: #fff;
  font-size: 16px;
  outline: none;
  margin-bottom: 18px;
}

/* placeholder باللون الأبيض */
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

/* السيلكت (القائمة المنسدلة) */
.contact-form select option {
  background: #000; /* تظهر داخل المنيو */
  color: #fff;
}

/* زر الإرسال */
.contact-form button {
  width: 100%;
  padding: 14px;
  border-radius: 6px;
  font-size: 18px;
  cursor: pointer;
}

/* تحسين للموبايل */
@media(max-width: 600px) {
  .contact-wrapper {
    padding: 15px;
  }

  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    font-size: 15px;
  }
}

/* حاوية الروابط */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* شكل كل عنصر تواصل */
.contact-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  border: 1px solid rgba(255,255,255,0.5); /* بورد خفيف */
  border-radius: 8px;
  background: transparent;
  color: #fff;
  text-decoration: none;
}

/* الأيقونة */
.contact-item-icon {
  width: 45px;
  height: 45px;
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

/* النص */
.contact-item h4 {
  color: #fff;
  margin-bottom: 5px;
  font-size: 18px;
}

.contact-item p {
  margin: 0;
  color: rgba(255,255,255,0.85);
}

/* موبايل */
@media(max-width: 600px) {
  .contact-item {
    flex-direction: row;
  }
}

.main-footer {
  background: linear-gradient(180deg, #5d0f81 0%, #3a0b4f 100%);
  padding: 35px 0;
  text-align: center;
  position: relative;
  color: #fff;
  font-family: "Cairo", sans-serif;
}

.footer-content {
  max-width: 420px;
  margin: 0 auto;
  position: relative;
}

/* اللوغو */
.footer-main-logo {
  height: 55px;
  margin-bottom: 15px;
}

/* النص تحت اللوغو */
.footer-description {
  font-size: 14px;
  line-height: 1.7;
  opacity: 0.95;
  margin: 0 15px 25px 15px;
}

/* المنيوهات */
.footer-menu {
  margin-bottom: 25px;
}

.footer-menu h4 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}

.footer-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-menu ul li {
  margin: 6px 0;
}

.footer-menu ul li a {
  color: #fff;
  opacity: 0.85;
  font-size: 15px;
  text-decoration: none;
  transition: 0.2s;
}

.footer-menu ul li a:hover {
  opacity: 1;
}

/* الشعارات */
.footer-logos {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.footer-logo {
  height: 45px;
  opacity: 0.9;
}

/* النص السفلي */
.footer-text {
  font-size: 14px;
  margin-bottom: 25px;
  opacity: 0.9;
}

/* زر الاتصال */
.footer-call {
  position: absolute;
  right: 10px;
  bottom: 10px;
  background: white;
  color: #5d0f81;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 22px;
  box-shadow: 0 0 10px rgba(255,255,255,0.4);
}



/* 🔥 على الديسكتوب يصبح الفوتر 3 أعمدة */
@media (min-width: 900px) {
  .footer-content {
    max-width: 1200px;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr; /* 3 أعمدة */
    gap: 40px;
    text-align: right;
  }

  .footer-text {
    grid-column: 1 / 4; /* يظهر أسفل الأعمدة */
    text-align: center;
    margin-top: 20px;
  }

  .footer-logos {
    grid-column: 1 / 4; /* تظهر بين الأعمدة والنص */
    margin-top: 10px;
  }

  .footer-brand {
    text-align: right;
  }

  .footer-menu {
    text-align: right;
  }

  .footer-description {
    margin-left: 0;
    margin-right: 0;
  }

  /* زر الاتصال يبقى ثابت */
  .footer-call {
    right: 25px;
    bottom: 25px;
  }
}


@media (min-width: 992px) {

  /* نجبر القائمة على أن تتحرك للوسط */
  .hero-header .desktop-nav {
    margin-right: 120px !important; /* حرّكها نحو الوسط */
  }

}


@media (min-width: 992px) {
  .hero-header {
    justify-content: space-around !important;
  }
}


@media (min-width: 992px) {
  #langSwitcherDesktop .lang-dropdown {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
  }

  /* يظهر فقط عند المرور */
  #langSwitcherDesktop:hover .lang-dropdown {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
}


@media (min-width: 992px) {

  /* اجبار القائمة على الإغلاق افتراضيًا */
  #langSwitcherDesktop .lang-dropdown {
    display: none !important;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
  }

  /* تظهر عند المرور على المربع كله */
  #langSwitcherDesktop:hover .lang-dropdown,
  #langSwitcherDesktop .lang-dropdown:hover {
    display: block !important;
    opacity: 1;
    visibility: visible;
  }
}


/* ==========================================================
     القوائم — موبايل
========================================================== */

#mobileNav {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  width: 75%;
  height: 100vh;
  background: #1a1a1a;
  padding: 40px 20px;
  z-index: 999999;
  transform: translateX(100%);
  transition: 0.35s ease-in-out;
}

#mobileNav.show-nav {
  display: block;
  transform: translateX(0);
}

/* زر المينيو */
#menuToggle {
  cursor: pointer;
  font-size: 28px;
  color: #fff;
}

/* ==========================================================
     أزرار التواصل العائمة
========================================================== */

/* =================== أزرار التواصل العائمة =================== */
.floating-contact {
  position: fixed;
  bottom: 120px;
  left: 25px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 999999;
}

.contact-btn {
  width: 55px;
  height: 55px;
  background: #5458a2;
  color: #fff;
  border-radius: 50%;
  font-size: 22px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(0,0,0,0.25);
  transition: 0.25s;
}

.contact-btn:hover {
  transform: scale(1.12);
  background: #3d40a0;
}

/* =================== زر الواتساب =================== */
.whatsapp-chat {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 999999;
}

/* زر الواتساب */
.chat-button {
  width: 65px;
  height: 65px;
  background: #25d366;
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 30px;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0,0,0,0.25);
  transition: 0.25s;
}

.chat-button:hover {
  transform: scale(1.12);
}

/* صندوق البوب-اب */
.chat-popup {
  position: fixed !important;
  bottom: 100px !important;
  right: 25px !important;
  left: auto !important;

  width: 290px;
  background: white;
  border-radius: 15px;
  padding: 0;
  box-shadow: 0 4px 18px rgba(0,0,0,0.35);
  display: none;
  z-index: 999999 !important;
}

.chat-popup.open {
  display: block;
}

/* رأس البوب-اب */
.chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #25d366;
  border-radius: 15px 15px 0 0;
  color: white;
}

.chat-header img {
  width: 45px;
  height: 45px;
  border-radius: 50%;
}

.close-btn {
  margin-right: auto;
  cursor: pointer;
  font-size: 22px;
}

/* نص البوب-اب */
.chat-body {
  padding: 15px;
}

.chat-send-btn {
  margin-top: 8px;
  display: block;
  background: #25d366;
  color: white;
  text-align: center;
  padding: 10px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 16px;
}









.cta-btn {
  display: block;
  width: 85%;                /* نفس عرض الزر في الصورة */
  margin: 20px auto 0;
  background-color: #5458a2; /* نفس التدرج البنفسجي الأقرب للصورة */
  color: #fff;
  text-align: center;
  padding: 14px 0;           /* ارتفاع ممتاز مثل الصورة */
  font-size: 17px;
  font-weight: 600;
  border-radius: 14px;       /* نفس انحناء الحواف */
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: 0.2s ease;
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.18);
}





/* ==========================================================
   إصلاح ظهور قوائم الهيدر — نسخة نظيفة ومضمونة
========================================================== */

/* 1 — موبايل (إخفاء قائمة الديسكتوب) */
@media (max-width: 991px) {
  .desktop-nav {
    display: none !important;
  }

  .menu-toggle {
    display: inline-block !important;
  }

  .mobile-nav {
    display: none;
  }
}

/* 2 — ديسكتوب (إظهار قائمة الديسكتوب وإخفاء الموبايل) */
@media (min-width: 992px) {
  .desktop-nav {
    display: flex !important;
    align-items: center;
    gap: 25px;
  }

  .mobile-nav,
  .menu-toggle,
  #langSwitcherMobile {
    display: none !important;
  }
}

/* 3 — منع أي display:none سابق أن يؤثر */
.desktop-nav {
  display: flex !important;
}





/* ===== تصحيح ظهور قائمة الديسكتوب ===== */
@media (min-width: 992px) {
  .desktop-nav {
    display: flex !important;
    align-items: center;
    gap: 25px;
  }

  /* إخفاء قائمة الموبايل */
  .mobile-nav,
  .menu-toggle,
  #langSwitcherMobile {
    display: none !important;
  }
}





/* ========================================
   نخبة المنافذ - Ports Elite
   نمط شامل احترافي - نسخة محدثة
   ======================================== */

/* ========== إعادة تعيين عامة ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.footer-sections {
  display: grid;
  grid-template-columns: 1fr 1fr; /* عمودين */
  gap: 20px;
}

/* للأجهزة الكبيرة ممكن ترجعه واحد */
@media (min-width: 768px) {
  .footer-sections {
    grid-template-columns: 1fr 1fr 1fr 1fr; /* مثلاً أربع أعمدة */
  }
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* ========== متغيرات الألوان والخطوط ========== */
:root {
    --purple-dark: #3d4172;        /* أزرق/بنفسجي غامق */
    --purple-medium: #5458a2;      /* أزرق/بنفسجي متوسط (اللون الأساسي) */
    --purple-light: #6d72b5;       /* أزرق/بنفسجي فاتح */
    --purple-accent: #8e93c8;      /* أزرق/بنفسجي خفيف */
    --purple-very-light: #b5b9e0;  /* أزرق/بنفسجي خفيف جداً */
    --slate-dark: #1E293B;         /* رصاصي غامق جداً */
    --slate-medium: #334155;       /* رصاصي غامق */
    --slate-light: #475569;        /* رصاصي متوسط */
    --white: #FFFFFF;              /* أبيض */
    --white-off: #F8FAFC;          /* أبيض مائل للرصاصي */
    --text-dark: #0F172A;          /* نص غامق */
    --text-light: #64748B;         /* نص فاتح */
    --border-color: #E2E8F0;       /* لون الحدود */
    --shadow-sm: 0 2px 8px rgba(84, 88, 162, 0.1);
    --shadow: 0 10px 30px rgba(84, 88, 162, 0.15);
    --shadow-lg: 0 20px 50px rgba(84, 88, 162, 0.2);
    --shadow-purple: 0 10px 40px rgba(84, 88, 162, 0.3);
    
    --font-primary: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-secondary: 'Cairo', 'Droid Arabic Kufi', sans-serif;
    
    /* حركات */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== إعادة تعيين عام ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    line-height: 1.7;
    direction: rtl;
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.8) 0%, var(--white) 100%);
    background-attachment: fixed;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 10% 20%, rgba(181, 185, 224, 0.02) 0%, transparent 40%),
                radial-gradient(circle at 90% 80%, rgba(109, 114, 181, 0.03) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
}

body > * {
    position: relative;
    z-index: 1;
}

body[dir="ltr"] {
    direction: ltr;
}

body[dir="ltr"] .header-container,
body[dir="ltr"] .container,
body[dir="ltr"] .footer-content {
    direction: ltr;
}

body[dir="ltr"] .nav-menu a::after {
    right: auto;
    left: 0;
}

body[dir="ltr"] .contact-item:hover {
    transform: translateX(8px);
}

body[dir="ltr"] .floating-actions {
    left: auto;
    right: 30px;
}

@media (max-width: 768px) {
    body[dir="ltr"] .floating-actions {
        right: 20px;
        left: auto;
    }
}

@media (max-width: 480px) {
    body[dir="ltr"] .floating-actions {
        right: 15px;
        left: auto;
    }
}

/* ========== الروابط والأزرار ========== */
a {
    color: var(--purple-medium);
    text-decoration: none;
    transition: all var(--transition-base);
    position: relative;
}

a:hover {
    color: var(--purple-dark);
}

button {
    font-family: var(--font-primary);
    cursor: pointer;
    border: none;
    transition: all var(--transition-base);
}



.header-actions .theme-toggle-btn,
.header-actions .lang-toggle-btn {
  display: none !important;
}


/* ========== الأزرار الرئيسية ========== */
.btn {
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    display: inline-block;
    text-align: center;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}


.btn-primary {
    background: linear-gradient(135deg, #5458a2 0%, #6d72b5 100%);
    color: var(--white) !important;
    box-shadow: 0 6px 20px rgba(84, 88, 162, 0.3);
    border: 2px solid transparent;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #3d4178 0%, #4a4e8f 100%);
    color: var(--white) !important;
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(84, 88, 162, 0.6);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--slate-medium) 0%, var(--slate-light) 100%);
    color: var(--white) !important;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, var(--slate-dark) 0%, var(--slate-medium) 100%);
    color: var(--white) !important;
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: var(--white) !important;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.btn-outline:hover {
    background: var(--white);
    color: #3d4178 !important;
    border-color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.4);
}

/* ========== شريط التنقل (Header) - NEW DESIGN ========== */
.header {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.92) 100%);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    box-shadow: 0 4px 24px rgba(84, 88, 162, 0.06), 0 1px 0 rgba(255, 255, 255, 0.8) inset;
    border-bottom: 1px solid rgba(84, 88, 162, 0.08);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header.scrolled {
    box-shadow: 0 8px 32px rgba(84, 88, 162, 0.1), 0 2px 8px rgba(0, 0, 0, 0.05);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.95) 100%);
    border-bottom: 1px solid rgba(84, 88, 162, 0.12);
}

.header-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 50px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    height: 85px;
    gap: 50px;
}

@media (max-width: 1400px) {
    .header-container {
        padding: 0 40px;
        gap: 40px;
    }
}

@media (max-width: 1200px) {
    .header-container {
        padding: 0 30px;
        gap: 30px;
        height: 80px;
    }
}

.header-actions {
    display: flex;
    gap: 16px;
    align-items: center;
    position: relative;
}

.header-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, rgba(84, 88, 162, 0.06) 0%, rgba(109, 114, 181, 0.08) 100%);
    color: var(--purple-dark);
    border-radius: 11px;
    font-size: 17px;
    font-weight: 600;
    border: 1px solid rgba(84, 88, 162, 0.12);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(6px) saturate(140%);
    -webkit-backdrop-filter: blur(6px) saturate(140%);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    overflow: hidden;
}

@media (max-width: 1024px) {
    .header-btn {
        width: 42px;
        height: 42px;
        font-size: 16px;
    }
}

.header-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--purple-medium) 0%, var(--purple-light) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.header-btn:hover::before {
    opacity: 1;
}

.header-btn i,
.header-btn .lang-text {
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

body.dark-theme .header-btn {
    background: linear-gradient(135deg, rgba(109, 114, 181, 0.15) 0%, rgba(142, 147, 200, 0.2) 100%);
    color: var(--purple-accent);
    border-color: rgba(84, 88, 162, 0.2);
}

body.dark-theme .header-btn:hover::before {
    background: linear-gradient(135deg, var(--purple-light) 0%, var(--purple-accent) 100%);
}

body.dark-theme .header-btn:hover i {
    color: var(--white);
}

body.dark-theme .hamburger {
    background: linear-gradient(135deg, rgba(109, 114, 181, 0.12) 0%, rgba(142, 147, 200, 0.15) 100%);
    border-radius: 8px;
    padding: 8px;
}

body.dark-theme .hamburger span {
    background: linear-gradient(90deg, var(--purple-light) 0%, var(--purple-accent) 100%);
}

body.dark-theme .hamburger:hover {
    background: linear-gradient(135deg, rgba(109, 114, 181, 0.2) 0%, rgba(142, 147, 200, 0.25) 100%);
}

.header-btn i {
    font-size: 18px;
}

.lang-toggle-btn .lang-text {
    font-size: 17px;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.btn-cta {
    padding: 13px 30px !important;
    font-size: 15.5px !important;
    font-weight: 700;
    border-radius: 11px;
    white-space: nowrap;
    color: var(--white) !important;
    background: linear-gradient(135deg, #5458a2 0%, #6d72b5 100%) !important;
    box-shadow: 0 6px 18px rgba(84, 88, 162, 0.35), 0 3px 8px rgba(84, 88, 162, 0.15) !important;
    border: none !important;
    position: relative;
    letter-spacing: 0.3px;
    transition: all 0.3s ease !important;
}

@media (max-width: 1200px) {
    .btn-cta {
        padding: 11px 24px !important;
        font-size: 14.5px !important;
    }
}

@media (max-width: 1024px) {
    .btn-cta {
        display: none !important;
    }
}

.btn-cta:hover {
    color: var(--white) !important;
    background: linear-gradient(135deg, #3d4178 0%, #5458a2 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(84, 88, 162, 0.45), 0 4px 12px rgba(84, 88, 162, 0.25) !important;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    transition: transform var(--transition-base);
}

.logo:hover {
    transform: scale(1.02);
}

.logo {
    position: relative;
    z-index: 10;
}

.logo img {
    height: 100px;
    width: auto;
    object-fit: contain;
    transition: all var(--transition-base);
    filter: drop-shadow(0 2px 8px rgba(84, 88, 162, 0.12));
}

@media (max-width: 1200px) {
    .logo img {
        height: 70px;
    }
}

@media (max-width: 1024px) {
    .logo img {
        height: 70px;
    }
}

.logo:hover img {
    transform: scale(1.08) translateY(-2px);
    filter: drop-shadow(0 8px 20px rgba(84, 88, 162, 0.25));
}

.main-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}


.nav-menu {
    display: flex;
    list-style: none;
    gap: 4px;
    align-items: center;
    margin: 0;
    padding: 6px;
    background: linear-gradient(135deg, rgba(84, 88, 162, 0.05) 0%, rgba(109, 114, 181, 0.03) 100%);
    border-radius: 14px;
    border: 1px solid rgba(84, 88, 162, 0.1);
    box-shadow: 0 2px 8px rgba(84, 88, 162, 0.04) inset;
}

@media (max-width: 1200px) {
    .nav-menu {
        gap: 3px;
        padding: 5px;
    }
}

@media (max-width: 1024px) {
    .nav-menu {
        display: none;
    }
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    color: var(--slate-dark);
    font-weight: 600;
    font-size: 16px;
    position: relative;
    padding: 11px 26px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 11px;
    background: transparent;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    letter-spacing: 0.2px;
}

@media (max-width: 1200px) {
    .nav-menu a {
        padding: 10px 20px;
        font-size: 15px;
    }
}

.nav-menu a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(84, 88, 162, 0.08) 0%, rgba(109, 114, 181, 0.12) 100%);
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.nav-menu a:hover::before {
    opacity: 1;
}

.nav-menu a:hover {
    color: var(--purple-dark);
    transform: translateY(-2px);
}

.nav-menu a.active {
    color: var(--white);
    font-weight: 700;
    background: linear-gradient(135deg, #5458a2 0%, #6d72b5 100%);
    box-shadow: 0 4px 12px rgba(84, 88, 162, 0.3), 0 2px 6px rgba(84, 88, 162, 0.15);
    transform: translateY(-1px);
}

.nav-menu a.active::before {
    display: none;
}






.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    padding: 5px;
    transition: transform var(--transition-base);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

@media (max-width: 1024px) {
    .hamburger {
        display: flex;
    }
}

.hamburger:hover {
    transform: scale(1.1);
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: linear-gradient(90deg, var(--purple-dark) 0%, var(--purple-medium) 100%);
    border-radius: 3px;
    transition: all var(--transition-base);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}


















/* ========== القائمة في الموبايل ========== */
@media (max-width: 1024px) {
  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 85px;
    right: 20px;
    background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(248,250,252,0.97));
    border: 1px solid rgba(84,88,162,0.1);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(84,88,162,0.15);
    padding: 2px 0; /* 🔹 قللنا البادينغ العام */
    width: 230px;
    text-align: right;
    z-index: 1000;
    animation: fadeSlide 0.35s ease;
  }

  .nav-menu.show {
    display: flex !important;
  }

  .nav-menu li {
    margin: 0;
  }

  .nav-menu a {
    padding: 0px 10px; /* 🔹 مسافة عمودية صغيرة جدًا */
    display: block;
    font-size: 15px; /* 🔹 خط واضح لكنه ليس كبيرًا */
    line-height: 0.1; /* 🔹 تقليل المسافة بين السطور */
    color: var(--purple-dark);
    transition: background 0.3s ease, color 0.3s ease;
  }

  .nav-menu a:hover {
    background: rgba(84,88,162,0.08);
    color: #5458a2;
  }

  @keyframes fadeSlide {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}









/* إخفاء قائمة الديسكتوب في الموبايل */
@media (max-width: 1024px) {
  .desktop-nav {
    display: none !important;
  }
}

/* ====== تصميم قائمة الديسكتوب (بنفس روح التصميم الحالي) ====== */
.desktop-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.98) 100%);
  border-top: 1px solid rgba(84, 88, 162, 0.1);
  border-bottom: 1px solid rgba(84, 88, 162, 0.1);
  box-shadow: 0 4px 12px rgba(84, 88, 162, 0.05);
  padding: 10px 0;
  z-index: 10;
}

.desktop-nav ul {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.desktop-nav li a {
  text-decoration: none;
  color: var(--purple-dark, #333);
  font-weight: 600;
  font-size: 15px;
  transition: color 0.3s ease;
}

.desktop-nav li a:hover,
.desktop-nav li a.active {
  color: #5458a2;
}

/* ========== قائمة الديسكتوب — مقسومة إلى سطرين أنيقين ========== */
@media (min-width: 1025px) {
  .header {
    overflow: visible;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 1000;
  }

  .main-nav {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .nav-menu {
    display: flex;
    flex-wrap: wrap; /* ✅ يسمح بانتقال العناصر لسطرين */
    align-items: center;
    justify-content: center;
    gap: 10px 24px; /* 🔹 مسافة عرضية وعمودية بين العناصر */
    list-style: none;
    margin: 0;
    padding: 8px 0;
    max-width: 100%;
    background: transparent;
  }

  .nav-menu li {
    position: relative;
  }

  .nav-menu li a {
    display: block;
    padding: 6px 14px;
    font-size: 15px;
    font-weight: 600;
    color: #2e2e5d;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.25s ease;
    white-space: nowrap;
  }

  .nav-menu li a:hover {
    color: #5458a2;
    background: rgba(84, 88, 162, 0.08);
  }

  .nav-menu li a.active {
    background: linear-gradient(135deg, #5458a2 0%, #6d72b5 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(84,88,162,0.3);
  }

  /* ✅ القوائم الفرعية */
  .nav-menu li ul {
    position: absolute;
    top: 100%;
    right: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.97), rgba(248,250,252,0.97));
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(84,88,162,0.12);
    min-width: 200px;
    padding: 4px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.25s ease;
    z-index: 999;
  }

  .nav-menu li:hover > ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-menu li ul li a {
    padding: 6px 12px;
    font-size: 14px;
    color: #2e2e5d;
    display: block;
    transition: all 0.25s ease;
  }

  .nav-menu li ul li a:hover {
    background: rgba(84,88,162,0.08);
    color: #5458a2;
  }
}


/* إصلاح موضع زر اللغة وكلمة Language */
.header {
  position: relative;
  z-index: 20; /* يجعل الهيدر فوق قائمة الديسكتوب */
}

.language-switcher {
  position: relative;
  z-index: 25; /* يجعل اللغة فوق المينيو دائمًا */
}





/* ========== القسم الرئيسي (Hero Section) - FULLY RESPONSIVE ========== */
.hero {
    background: 
        linear-gradient(135deg, rgba(15, 23, 42, 0.75) 0%, rgba(30, 41, 59, 0.65) 25%, rgba(45, 27, 105, 0.55) 50%, rgba(51, 65, 85, 0.65) 75%, rgba(71, 85, 105, 0.75) 100%),
        url('../images/hero-new-bg.png');
    background-size: 100% 100%;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    color: var(--white);
    padding: 120px 20px 80px;
    position: relative;
    overflow: hidden;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Animated gradient overlay */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, transparent 40%, rgba(84, 88, 162, 0.05) 50%, transparent 60%),
        linear-gradient(-45deg, transparent 40%, rgba(109, 114, 181, 0.04) 50%, transparent 60%);
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Floating light particles */
.hero::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(142, 147, 200, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(109, 114, 181, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(84, 88, 162, 0.05) 0%, transparent 40%);
    animation: particleFloat 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes particleFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    50% {
        transform: translateY(-30px) scale(1.1);
        opacity: 0.7;
    }
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    width: 100%;
}

.hero-visual {
    display: none;
}

/* Decorative floating cards in hero visual */
.hero-visual::before {
    content: '';
    position: absolute;
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 30px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    animation: floatCard 8s ease-in-out infinite;
    transform-origin: center;
}

@media (max-width: 1400px) {
    .hero-visual::before {
        width: 300px;
        height: 300px;
    }
}

@media (max-width: 1200px) {
    .hero-visual::before {
        width: 250px;
        height: 250px;
    }
}

@keyframes floatCard {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(2deg);
    }
}

.hero-visual::after {
    content: '';
    position: absolute;
    width: 280px;
    height: 280px;
    background: linear-gradient(135deg, rgba(84, 88, 162, 0.15) 0%, rgba(109, 114, 181, 0.1) 100%);
    border-radius: 25px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.25);
    top: 50%;
    left: 50%;
    transform: translate(-30%, -30%) rotate(-5deg);
    animation: floatCard 6s ease-in-out infinite reverse;
}

@media (max-width: 1400px) {
    .hero-visual::after {
        width: 240px;
        height: 240px;
    }
}

@media (max-width: 1200px) {
    .hero-visual::after {
        width: 200px;
        height: 200px;
    }
}



.hero p {
    font-size: clamp(15px, 2.5vw, 20px);
    margin-bottom: 40px;
    line-height: 1.75;
    opacity: 0.94;
    animation: fadeInUp 1s ease-out 0.2s both;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 3px 20px rgba(0, 0, 0, 0.5), 0 1px 8px rgba(0, 0, 0, 0.3);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.92);
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-buttons .btn {
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 700;
    min-width: 180px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 600px) {
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
}

.hero-buttons .btn-primary {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 100%);
    color: #2D1B69 !important;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.hero-buttons .btn-primary:hover {
    background: linear-gradient(135deg, #ffffff 0%, #f5f7ff 100%);
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 16px 48px rgba(255, 255, 255, 0.3), 0 8px 24px rgba(255, 255, 255, 0.2);
    color: #1a0f3d !important;
}

.hero-buttons .btn-outline {
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--white) !important;
}

.hero-buttons .btn-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-5px);
    box-shadow: 0 16px 48px rgba(84, 88, 162, 0.3);
}



/* ========== الحاوية الرئيسية ========== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== الأقسام ========== */
section {
    padding: 100px 20px;
    position: relative;
}

section h2 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 70px;
    text-align: center;
    background: linear-gradient(135deg, var(--purple-dark) 0%, var(--purple-medium) 50%, var(--purple-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
    width: 100%;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 10px rgba(84, 88, 162, 0.1);
}

section h2::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 6px;
    background: linear-gradient(90deg, transparent 0%, var(--purple-medium) 50%, transparent 100%);
    border-radius: 3px;
    opacity: 0.3;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 5px;
    background: linear-gradient(90deg, var(--purple-dark) 0%, var(--purple-medium) 50%, var(--purple-light) 100%);
    border-radius: 3px;
    box-shadow: 0 2px 8px rgba(84, 88, 162, 0.3);
}

/* ========== قسم الخدمات ========== */
/* ========================================================
   قسم الخدمات — خلفية بنفسجية + كروت بيضاء + عنوان أبيض
   ======================================================== */

/* خلفية القسم */
/* خلفية القسم البنفسجية تظهر دائمًا */
/* سكشن الخدمات بخلفية بيضاء بشكل ثابت */
.services {
    background: #ffffff !important;
    position: relative;
    overflow: hidden;
}

/* إلغاء أي background-image داخل وسم الـ section */
.services[style*="background-image"] {
    background-image: none !important;
    background-color: #4F007D !important;
}

.services h2 {
  color: #ffffff !important;
}

section.services h2 {
  color: #ffffff !important;
}

section.services h2 {
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: #fff !important;
    color: #fff !important;
    text-shadow: none !important;
}


/* إزالة أي طبقات أو ضباب سابق */
.services::before,
.services::after {
    content: none !important;
}

/* العنوان الرئيسي */
.services h1,
.services h2,
.services .section-title {
    color: #ffffff !important;
}

/* شبكة توزيع الكروت */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin-top: 60px;
}

/* الكرت */
.service-card {
    background: #ffffff !important; /* خلفية بيضاء صافيه */
    border-radius: 24px;
    padding: 48px 40px;
    text-align: center;

    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset;

    transition: all 0.4s ease;
    border: none;

    position: relative;
    overflow: hidden;

    /* إلغاء أي تأثيرات زجاجية */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

/* إزالة أي تأثيرات إضافية */
.service-card::after,
.service-card::before {
    content: none !important;
}

/* الأيقونة */
.service-icon {
    font-size: 64px;
    margin-bottom: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    margin-left: auto;
    margin-right: auto;
    background: rgba(106, 27, 163, 0.12); /* بنفسجي خفيف */
    border-radius: 30px;
    transition: all 0.4s ease;
}

/* لون الأيقونة */
.service-icon i {
    color: #6A1BA3 !important; /* بنفسجي متوافق */
}

/* العنوان داخل الكرت */
.service-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333 !important;
    line-height: 1.4;
}

/* الوصف داخل الكرت */
.service-card p {
    font-size: 16px;
    color: #555 !important;
    margin-bottom: 32px;
    line-height: 1.75;
    font-weight: 400;
}

/* زر داخل الكرت */ 
.service-card .btn { 
    width: 100%; 
    
}


/* تأثير hover للكرت */
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

/* تأثير hover للأيقونة */
.service-card:hover .service-icon {
    transform: translateY(-6px);
}


/* فقط تغيير لون زر الخدمة — لا مساس بالقياسات */
.service-card .btn,
.service-card .btn.btn-primary {
  background-image: none !important; /* يلغي أي gradient دون لمس المقاسات */
  background-color: #4F007D !important; /* اللون الخلفي المطلوب */
  color: #ffffff !important; /* لون النص */
  border-color: transparent !important; /* إن كان هناك إطار ملون */
  box-shadow: none !important; /* إذا كان هناك ظل يؤثر على المظهر (اختياري) */
}

/* هوفر بسيط فقط يغيّر اللون — لا لمس للقياسات */
.service-card .btn:hover,
.service-card .btn.btn-primary:hover {
  background-color: #3d0062 !important;
  color: #ffffff !important;
}


/* ========== قسم من نحن ========== */
/* ========== قسم من نحن (About Section) ========== */

.about {
    background: linear-gradient(180deg, var(--white) 0%, rgba(248, 250, 252, 0.5) 100%);
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 10% 20%, rgba(181, 185, 224, 0.03) 0%, transparent 40%),
                radial-gradient(circle at 90% 80%, rgba(109, 114, 181, 0.04) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
}

.about > * {
    position: relative;
    z-index: 1;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-top: 50px;
}

/* ===== العنوان الفرعي "شريكك الموثوق في النجاح" ===== */
.about-text h3 {
    font-size: 38px;
    font-weight: 800;
    margin-bottom: 28px;
    color: #5458a2; /* نفس لون العنوان الرئيسي بدون تدرج أو لمعة */
    line-height: 1.3;
    letter-spacing: -0.5px;
}

/* ===== الفقرات ===== */
.about-text p {
    font-size: 18px;
    margin-bottom: 22px;
    line-height: 1.85;
    color: var(--slate-light);
    font-weight: 400;
}

/* ===== الصورة ===== */
.about-image {
    width: 100%;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(84, 88, 162, 0.15), 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(84, 88, 162, 0.1);
    position: relative;
    transition: all var(--transition-base);
    background: linear-gradient(135deg, rgba(181, 185, 224, 0.02) 0%, rgba(109, 114, 181, 0.03) 100%);
    padding: 4px;
}

.about-image:hover {
    transform: scale(1.03) rotate(0.5deg);
    box-shadow: 0 20px 60px rgba(84, 88, 162, 0.25), 0 8px 24px rgba(0, 0, 0, 0.15);
    border-color: rgba(84, 88, 162, 0.2);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform var(--transition-slow);
}

.about-image:hover img {
    transform: scale(1.1);
}

/* ===== الزر ===== */
.about-text .btn {
    margin-top: 20px;
}

/* ===== استجابة الموبايل ===== */
@media (max-width: 991px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .about-text {
        text-align: center;
    }

    .about-text .btn {
        display: inline-block;
        margin: 20px auto 0;
    }

    .about-image {
        order: -1; /* الصورة فوق النص */
        margin-bottom: 30px;
    }

    .about-text h3 {
        font-size: 32px;
    }

    .about-text p {
        font-size: 17px;
    }
}

/* ===== تحسينات إضافية للشاشات الصغيرة جدًا ===== */
@media (max-width: 576px) {
    .about-text h3 {
        font-size: 28px;
    }

    .about-text p {
        font-size: 16px;
    }

    .about-content {
        gap: 30px;
    }

    .about-text .btn {
        width: auto;
        padding: 14px 28px;
        font-size: 16px;
    }
}

/* ========== قسم الإحصائيات ========== */
/* ===== خلفية القسم ===== */
.stats {
    background: #ffffff; /* ← خلفية بيضاء */
    color: #000;
    position: relative;
    overflow: hidden;
    padding: 120px 20px;
}

/* إزالة تأثير الشبكة البيضاء لأنها لن تظهر على الأبيض */
.stats::before {
    display: none;
}

/* ===== عنوان السيكشن ===== */
.stats h2 {
    color: #000 !important; /* ← أسود */
    -webkit-text-fill-color: #000 !important;
    background: none;
}

.stats h2::after {
    background: rgba(0, 0, 0, 0.2); /* خط تحته يصبح رمادي بدلاً من الأبيض */
}

/* ===== كروت الإحصائيات ===== */
.stat-item {
    padding: 48px 36px;
    background: #4F007D; /* ← بنفسجي */
    border-radius: 24px;
    color: #fff;
    border: 1.5px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    transition: 0.3s;
}

.stat-item:hover {
    transform: translateY(-12px);
    background: #6300A6; /* بنفسجي أفتح قليلاً عند الهوفر */
    box-shadow: 0 16px 48px rgba(0,0,0,0.25);
}

/* رقم الإحصائية */
.stat-item h4 {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 16px;
    background: none;
    color: #fff; /* ← أبيض */
    -webkit-text-fill-color: #fff;
}

/* عنوان صغير داخل كل كرت */
.stat-item p {
    font-size: 17px;
    opacity: 0.95;
    font-weight: 500;
    line-height: 1.5;
    color: #fff;
}


/* ===== خلفية السيكشون — أبيض صريح + إزالة أي صورة ===== */
.contact {
    background: #ffffff !important;
    position: relative;
    overflow: hidden;
}

.contact::before,
.contact::after,
.contact[style*="background-image"]::after {
    display: none !important;
}

.contact {
    background-image: none !important;
}



/* ===== محتوى السيكشن ===== */
.contact > * {
    position: relative;
    z-index: 1;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}


/* ===== الكروت — بنفسجي كما طلبت ===== */
.contact-item {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    padding: 32px 28px;
    background: #4F007D !important;
    border-radius: 20px;
    border: none !important;
    box-shadow: none !important;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.contact-item::before {
    display: none !important;
}

.contact-item:hover {
    transform: translateX(-10px) translateY(-2px);
}


/* ===== الايقونات — بيضاء ===== */
.contact-item-icon {
    font-size: 32px;
    background: none !important;
    -webkit-text-fill-color: #ffffff !important;
    color: #ffffff !important;
    flex-shrink: 0;
}


/* ===== نصوص داخل الكارت (بدون تغيير) ===== */
.contact-item h4 {
    font-size: 19px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--slate-dark);
}

.contact-item p {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.6;
}

.contact-item a {
    color: var(--purple-medium);
    transition: all var(--transition-base);
}

.contact-item a:hover {
    color: var(--purple-dark);
    text-decoration: underline;
}


/* ===== أرقام الهاتف ===== */
.contact-item a[dir="ltr"] {
    direction: ltr;
    display: inline-block;
    unicode-bidi: bidi-override;
}


/* ===== نموذج الفورم (بدون تغيير) ===== */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 28px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.95) 100%);
    padding: 52px 48px;
    border-radius: 28px;
    box-shadow: 0 12px 40px rgba(84, 88, 162, 0.12), 0 6px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(84, 88, 162, 0.15);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--purple-dark) 0%, var(--purple-medium) 50%, var(--purple-light) 100%);
    border-radius: 24px 24px 0 0;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--slate-dark);
    font-size: 15px;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 18px 24px;
    border: 2px solid rgba(84, 88, 162, 0.15);
    border-radius: 16px;
    font-family: var(--font-primary);
    font-size: 16px;
    background: linear-gradient(145deg, rgba(248, 250, 252, 0.9) 0%, var(--white) 100%);
    box-shadow: 0 2px 8px rgba(84, 88, 162, 0.05) inset;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #6d72b5;
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(109, 114, 181, 0.15), 0 6px 16px rgba(84, 88, 162, 0.1);
    transform: translateY(-2px);
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
}

.contact-form .btn {
    width: 100%;
    padding: 16px;
    margin-top: 10px;
}


/* ===== أزرار التواصل العائمة ===== */
.floating-contact {
  position: fixed;
  bottom: 20px;
  left: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 9999;
}

.contact-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  color: #fff;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

.contact-btn.whatsapp {
  background-color: #25D366;
}

.contact-btn.phone {
  background-color: #6a5acd;
}

.contact-btn.email {
  background-color: #0078d7;
}


/* ===== الديسكتوب ===== */
@media (min-width: 1024px) {
  .contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 60px;
  }

  .contact-info,
  .contact-form {
    width: 100%;
  }
}

/* ===== الكروت بنفسجي + النص أبيض ===== */
.contact-item {
    background: #4F007D !important;
    border: none !important;
    box-shadow: none !important;
}

.contact-item h4,
.contact-item p,
.contact-item a {
    color: #ffffff !important;
}

.contact-item a:hover {
    color: #e5e5e5 !important;
}

/* أيقونات بيضاء */
.contact-item-icon {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    background: none !important;
}


/* ===== فورم بخلفية بيضاء + كتابة سوداء ===== */
.contact-form {
    background: #ffffff !important;
    border: 1px solid #ddd !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06) !important;
    border-radius: 12px;
}

/* إزالة أي تأثير سابق */
.contact-form::before {
    background: none !important;
}

/* عناوين الحقول */
.contact-form label {
    color: #000000 !important;
    font-weight: 600;
}

/* الحقول داخل الفورم */
.contact-form input,
.contact-form textarea,
.contact-form select {
    background: #ffffff !important;
    border: 1px solid #000000 !important;
    color: #000000 !important;
    border-radius: 8px;
    padding: 10px 12px;
}

/* Placeholder */
.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #555 !important;
}

/* عند التركيز */
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    background: #ffffff !important;
    border-color: #000 !important;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.15) !important;
    outline: none !important;
}

/* زر الإرسال */
.contact-form .btn {
    background: #4F007D !important;
    color: #ffffff !important;
    font-weight: 700;
    border-radius: 8px;
}

/* عنوان الفورم */
.contact h2 {
    color: #000000 !important;
    background: #ffffff !important;
    text-shadow: none !important;
}

/* إصلاح اختفاء العنوان h2 */
.contact h2 {
    position: relative;
    z-index: 2;
    color: #000000 !important;
    background: none !important;
    text-shadow: none !important;
    margin-bottom: 25px;
}


.contact h2 {
    background-color: rgba(255,255,255,0.8) !important;
    padding: 10px 18px;
    display: inline-block;
    border-radius: 8px;
}




section.contact h2 {
    color: #000000 !important;
    position: relative;
    z-index: 5;
    margin-bottom: 35px;
}

section.contact h2 {
    color: #000 !important;
    position: relative;
    z-index: 5;
    background: rgba(255,255,255,0.75) !important;
    padding: 10px 18px;
    border-radius: 10px;
    display: inline-block;
    margin-bottom: 35px;
}


section.contact h2 {
    color: #000 !important;
    position: relative;
    z-index: 5;
    background: rgba(255, 255, 255, 0.75) !important;
    padding: 10px 18px;
    border-radius: 10px;
    display: inline-block;
    margin-bottom: 35px;
}


/* استثناء عنوان قسم التواصل من تأثير التدرج */
section.contact h2 {
    -webkit-text-fill-color: #000 !important;
    color: #000 !important;
    background: none !important;
    text-shadow: none !important;
}


/* ============ WhatsApp Floating Chat ============ */
.whatsapp-chat {
  position: fixed;
  bottom: 20px;
  right: 20px; /* على يمين الشاشة */
  z-index: 9999;
  font-family: "Cairo", sans-serif;
}

/* الزر الدائري */
.chat-button {
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.chat-button:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4);
}

/* الصندوق المنبثق */
.chat-popup {
  display: none;
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 290px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  animation: fadeIn 0.3s ease;
}

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

/* رأس الدردشة */
.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #25d366;
  color: #fff;
  padding: 10px;
  position: relative;
}

.chat-header img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  padding: 4px;
}

.chat-title {
  flex: 1;
  margin-left: 10px;
}

.chat-header h4 {
  margin: 0;
  font-size: 15px;
}

.chat-header p {
  margin: 0;
  font-size: 12px;
  opacity: 0.9;
}

/* زر الإغلاق */
.close-btn {
  font-size: 22px;
  font-weight: bold;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 8px;
  transition: 0.2s ease;
}

.close-btn:hover {
  color: #e1e1e1;
  transform: scale(1.2);
}

/* محتوى الدردشة */
.chat-body {
  padding: 15px;
  font-size: 14px;
  color: #333;
}

.chat-send-btn {
  display: inline-block;
  background-color: #25d366;
  color: #fff;
  text-decoration: none;
  padding: 10px 15px;
  border-radius: 8px;
  margin-top: 10px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
  transition: background 0.3s ease;
}

.chat-send-btn:hover {
  background-color: #1ebe5a;
}






/* ========== صفحة الخدمات ========== */


.footer-sections {
  display: grid;
  grid-template-columns: 1fr 1fr; /* عمودين */
  gap: 20px;
}

/* للأجهزة الكبيرة ممكن ترجعه واحد */
@media (min-width: 768px) {
  .footer-sections {
    grid-template-columns: 1fr 1fr 1fr 1fr; /* مثلاً أربع أعمدة */
  }
}

.footer-sections {
  display: grid;
  grid-template-columns: 1fr 1fr; /* عمودين */
  gap: 20px;
  font-size: 14px; /* 🔹 حجم الخط أصغر داخل القوائم */
}

/* للأجهزة الكبيرة ممكن ترجعه واحد */
@media (min-width: 768px) {
  .footer-sections {
    grid-template-columns: 1fr 1fr 1fr 1fr; /* مثلاً أربع أعمدة */
  }
}

/* لو حبيت تصغّر العناوين كمان (الخدمات) */
.footer-sections h4 {
  font-size: 15px;
}

/* ولو حبيت الروابط نفسها تكون أدق */
.footer-sections ul li a {
  font-size: 13px;
}







/* ========== تذييل الصفحة (Footer) ========== */
/* ===== الفوتر ===== */
.footer {
    background: #fff !important; /* خلفية بيضاء */
    background-image: none !important;
}

/* إلغاء أي خلفية إضافية */
.footer::after {
    display: none !important;
}

/* محتوى الفوتر */
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

/* الفقرات */
.footer-content p {
    color: #4F007D !important; /* بنفسجي */
}

/* العناوين */
.footer-section h4 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 24px;
    color: #4F007D !important; /* بنفسجي صريح */
    background: none !important; 
    -webkit-text-fill-color: #4F007D !important;
}

/* القوائم */
.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
    transition: transform var(--transition-base);
}

.footer-section ul li:hover {
    transform: translateX(-5px);
}

/* الروابط */
.footer-section ul li a {
    color: #4F007D !important; /* بنفسجي */
    transition: all var(--transition-base);
    display: inline-block;
}

.footer-section ul li a:hover {
    color: #4F007D !important;
    text-decoration: underline;
}

/* روابط LTR */
.footer-section ul li a[dir="ltr"] {
    direction: ltr;
    display: inline-block;
    unicode-bidi: bidi-override;
}

/* أسفل الفوتر */
.footer-bottom {
    border-top: 1px solid rgba(79, 0, 125, 0.2); /* بنفسجي شفاف */
    padding-top: 25px;
    text-align: center;
    color: #4F007D !important;
}

/* السوشيال */
.social-links {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #4F007D !important; /* بنفسجي صريح */
    border-radius: 50%;
    color: #fff;
    font-size: 20px;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.social-links a:hover {
    background: #37005A !important; /* بنفسجي أغمق */
    transform: translateY(-5px) rotate(10deg) scale(1.1);
    box-shadow: var(--shadow-purple);
}



/* ===== تنسيق قسم معلومات الاتصال داخل الفوتر ===== */
.footer-section ul li {
    display: flex;
    flex-direction: column; /* يجعل الأيقونة فوق النص */
    align-items: center;    /* توسيط أفقي */
    text-align: center;
    margin-bottom: 20px;
    font-weight: 600;       /* خط عريض */
    color: #E2E8F0;
    gap: 8px;               /* مسافة بين الأيقونة والنص */
    line-height: 1.6;
}

/* أيقونات الفوتر — سواء كانت <img> أو <i> */
.footer-section ul li i,
.footer-section ul li img {
    font-size: 24px;
    color: var(--purple-accent);
    background: rgba(255, 255, 255, 0.1);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    object-fit: contain; /* للصور */
}

/* تأثير عند تمرير الماوس */
.footer-section ul li i:hover,
.footer-section ul li img:hover {
    background: var(--purple-accent);
    color: #fff;
    transform: scale(1.1);
    filter: brightness(1.1);
}

/* الروابط */
.footer-section ul li a {
    color: #CBD5E1;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    direction: ltr;
}

.footer-section ul li a:hover {
    color: var(--purple-accent);
}

/* الموقع النصي بدون أيقونة */
.footer-section ul li:last-child {
    font-weight: 600;
}

/* ===== تجاوب الجوال ===== */
@media (max-width: 768px) {
    .footer-section ul li {
        font-size: 22px !important;
        gap: 6px;
        margin-bottom: 18px;
    }

    .footer-section ul li i,
    .footer-section ul li img {
        font-size: 22px !important;
        width: 44px;
        height: 44px;
    }
}


/* ===== الفوتر ===== */
.footer {
    background: #fff !important; /* خلفية بيضاء */
    background-image: none !important;
}

/* إلغاء أي خلفية إضافية */
.footer::after {
    display: none !important;
}

/* تطبيق اللون البنفسجي على كل النصوص داخل الفوتر */
.footer,
.footer * {
    color: #4F007D !important;
}

/* تكبير عناوين الفوتر */
.footer-section h4 {
    font-size: 30px !important; /* ← كبرناه */
    font-weight: 800 !important;
    margin-bottom: 24px;
    color: #4F007D !important;
    background: none !important;
}

/* الروابط */
.footer-section ul li a {
    color: #4F007D !important;
    font-size: 18px;
}

/* الفقرات */
.footer-content p {
    color: #4F007D !important;
    font-size: 18px;
}

/* أسفل الفوتر */
.footer-bottom {
    color: #4F007D !important;
    border-top: 1px solid rgba(79, 0, 125, 0.25);
}

/* أيقونات السوشيال */
.social-links a {
    background: #4F007D !important;
    color: #fff !important;
}

.social-links a:hover {
    background: #37005A !important; 
}




/* ========== استجابة الجوال ========== */
@media (max-width: 768px) {
    html {
        -webkit-text-size-adjust: 100%;
    }
    
    body {
        background-attachment: scroll;
    }
    
    .hero {
        background-attachment: scroll;
        background-size: 100% 100%;
        background-position: center center;
        min-height: 100vh;
        padding: 80px 15px 50px;
    }
    
    .hero-content {
        padding: 15px;
        max-width: 100%;
    }
    
    body.dark-theme .hero {
        background-attachment: scroll;
        background-size: 100% 100%;
        background-position: center center;
    }
    
    .header-container {
        padding: 12px 20px;
        height: 75px;
        gap: 12px;
        grid-template-columns: auto 1fr auto;
    }
    
    .logo img {
        height: 55px;
    }
    
    .nav-menu {
        position: fixed;
        top: 75px;
        right: -100%;
        width: 280px;
        height: calc(100vh - 75px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        flex-direction: column;
        padding: 30px 20px;
        gap: 8px;
        border-radius: 0;
        border: none;
        border-left: 1px solid rgba(84, 88, 162, 0.15);
        box-shadow: -8px 0 32px rgba(0, 0, 0, 0.1);
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        right: 0;
        display: flex;
    }
    
    .nav-menu a {
        width: 100%;
        padding: 16px 20px;
        font-size: 16px;
        justify-content: center;
    }
    
    .header-btn {
        width: 42px;
        height: 42px;
        font-size: 15px;
    }
    
    .main-nav {
        order: 3;
    }
    
    .header-actions {
        order: 2;
        gap: 8px;
    }
    
    .header-btn {
        width: 40px;
        height: 40px;
        font-size: 15px;
    }
    
    .header-btn i {
        font-size: 16px;
    }
    
    .lang-toggle-btn .lang-text {
        font-size: 15px;
    }
    
    .btn-cta {
        display: none !important;
    }
    
    .hamburger {
        display: flex;
        padding: 8px;
    }
    
    .hamburger span {
        width: 24px;
        height: 3px;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        right: 0;
        left: 0;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 20px;
        gap: 10px;
        box-shadow: 0 8px 30px rgba(84, 88, 162, 0.15);
        display: none;
        border-radius: 0;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        z-index: 999;
    }
    
    .nav-menu.active {
        display: flex;
        animation: slideDown 0.3s ease-out;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-menu a {
        display: block;
        width: 100%;
        padding: 15px;
        text-align: center;
        font-size: 18px;
    }
    
    .nav-menu .btn {
        width: 100%;
        padding: 14px;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .hero {
        padding: 100px 20px 60px;
        min-height: auto;
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-content {
        text-align: center;
        padding-left: 0;
    }
    
    .hero-visual {
        display: none;
    }
    
    .hero h1 {
        font-size: 38px;
        line-height: 1.2;
        margin-bottom: 24px;
        letter-spacing: -1px;
    }
    
    .hero p {
        font-size: 17px;
        line-height: 1.7;
        margin-bottom: 36px;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 14px;
    }
    
    .hero-buttons .btn {
        width: 100%;
        padding: 16px 32px;
        font-size: 20px;
        min-height: 54px;
        font-weight: 700;
        letter-spacing: 0.3px;
    }
    
    section {
        padding: 50px 15px;
    }
    
    .section-title,
    .section h2,
    h2 {
        font-size: 26px !important;
        margin-bottom: 30px !important;
        line-height: 1.3 !important;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 0 5px;
    }
    
    .service-card {
        padding: 28px 20px;
        margin: 0 auto;
        max-width: 100%;
    }
    
    .service-card h3 {
        font-size: 19px;
        margin-bottom: 14px;
        line-height: 1.4;
    }
    
    .service-card p {
        font-size: 14px;
        margin-bottom: 20px;
        line-height: 1.7;
    }
    
    .service-icon {
        width: 80px;
        height: 80px;
        font-size: 42px;
        margin-bottom: 16px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-top: 25px;
        padding: 0 5px;
    }
    
    .about-text h3 {
        font-size: 21px;
        margin-bottom: 14px;
        line-height: 1.4;
    }
    
    .about-text p {
        font-size: 15px;
        margin-bottom: 15px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-top: 30px;
    }
    
    .contact-form {
        padding: 25px 18px;
    }
    
    .form-group {
        gap: 8px;
    }
    
    .form-group label {
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 14px 16px;
        font-size: 14px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 0 10px;
    }
    
    .stat-item {
        padding: 24px 20px;
        text-align: center;
    }
    
    .stat-item h4 {
        font-size: 36px;
        margin-bottom: 8px;
    }
    
    .stat-item p {
        font-size: 14px;
    }
    
    .footer-content {
        font-size: 18px;
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
        padding: 0 10px;
    }
    
    .footer-section h3 {
        font-size: 17px;
        margin-bottom: 14px;
        line-height: 1.4;
    }
    
    .footer-section ul li {
        margin-bottom: 10px;
        font-size: 14px;
    }
    
    .contact-item {
        padding: 22px 18px;
        text-align: center;
    }
    
    .contact-item-icon {
        font-size: 28px;
    }
    
    .contact-item h3 {
        font-size: 17px;
        margin-bottom: 10px;
        line-height: 1.4;
    }
    
    .contact-item p,
    .contact-item a {
        font-size: 14px;
        line-height: 1.6;
        word-break: break-word;
    }
}

/* Extra small screens optimization */
@media (max-width: 480px) {
    .header-container {
        padding: 10px 15px;
        min-height: 70px;
    }
    
    .hero {
        padding: 70px 12px 40px;
    }
    
    .hero h1 {
        font-size: 24px;
        margin-bottom: 18px;
    }
    
    .hero p {
        font-size: 14px;
        margin-bottom: 30px;
    }
    
    .hero-buttons .btn {
        padding: 17px 36px;
        font-size: 24px;
        min-height: 56px;
        font-weight: 700;
        letter-spacing: 0.5px;
    }
    
    section {
        padding: 40px 12px;
    }
    
    .service-card {
        padding: 24px 16px;
    }
    
    .service-icon {
        width: 70px;
        height: 70px;
        font-size: 36px;
    }
    
    .contact-btn {
        width: 38px;
        height: 38px;
        font-size: 15px;
    }
    
    .contact-btn i {
        font-size: 16px;
    }
    
    .logo img {
        height: 55px !important;
    }
    
    .nav-menu {
        top: 65px;
        padding: 15px;
    }
    
    .hero {
        padding: 80px 12px 50px;
    }
    
    .hero h1 {
        font-size: 24px;
        margin-bottom: 15px;
    }
    
    .hero p {
        font-size: 14px;
        margin-bottom: 25px;
    }
    
    .hero-buttons .btn {
        padding: 12px 20px;
        font-size: 18px;
    }
    
    section {
        padding: 40px 12px;
    }
    
    section h2 {
        font-size: 24px;
        margin-bottom: 30px;
    }
    
    .service-card {
        padding: 20px 15px;
    }
    
    .service-card h3 {
        font-size: 18px;
    }
    
    .service-card p {
        font-size: 13px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .stat-item {
        padding: 20px 12px;
    }
    
    .stat-item h4 {
        font-size: 32px;
    }
    
    .stat-label {
        font-size: 14px;
        line-height: 1.5;
    }
    
    .contact-form {
        padding: 20px 15px;
    }
    
    .about-text h3 {
        font-size: 22px;
    }
    
    .about-text p {
        font-size: 14px;
    }
}

/* ========== الرسوم المتحركة ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

.fade-in-down {
    animation: fadeInDown 0.8s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.8s ease-out;
}

.slide-in-left {
    animation: slideInLeft 0.8s ease-out;
}

.scale-in {
    animation: scaleIn 0.6s ease-out;
}

/* ========== تأثيرات إضافية ========== */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

.pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* ========== فئات مساعدة ========== */
.text-center {
    text-align: center;
}

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

.mt-20 {
    margin-top: 20px;
}

.mt-40 {
    margin-top: 40px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-40 {
    margin-bottom: 40px;
}

.hidden {
    display: none;
}

/* ========== تأثيرات التمرير ========== */
.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ========== الوضع الليلي (Dark Mode) ========== */
body.dark-theme {
    background: linear-gradient(180deg, #0a0e1a 0%, #0F172A 50%, #1a1f35 100%);
    background-attachment: fixed;
    color: #F8FAFC;
}

body.dark-theme::before {
    background: radial-gradient(circle at 10% 20%, rgba(84, 88, 162, 0.08) 0%, transparent 40%),
                radial-gradient(circle at 90% 80%, rgba(109, 114, 181, 0.06) 0%, transparent 40%);
}

body.dark-theme .header {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.98) 0%, rgba(30, 41, 59, 0.95) 100%);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 1px 0 rgba(255, 255, 255, 0.05) inset;
    border-image: linear-gradient(90deg, transparent, rgba(142, 147, 200, 0.3), transparent) 1;
}

body.dark-theme .header.scrolled {
    background: rgba(15, 23, 42, 0.98);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid rgba(84, 88, 162, 0.3);
}

body.dark-theme .nav-menu {
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(84, 88, 162, 0.25);
}

body.dark-theme .nav-menu a {
    color: #F8FAFC;
}

body.dark-theme .nav-menu a::before {
    background: linear-gradient(135deg, rgba(109, 114, 181, 0.15) 0%, rgba(142, 147, 200, 0.2) 100%);
}

body.dark-theme .nav-menu a:hover {
    color: #F8FAFC;
}

body.dark-theme .nav-menu a.active {
    background: linear-gradient(135deg, #6d72b5 0%, #8e93c8 100%);
    box-shadow: 0 4px 16px rgba(109, 114, 181, 0.4);
}

/* Dark mode - Hero section */
body.dark-theme .hero {
    background: 
        linear-gradient(135deg, rgba(10, 14, 23, 0.85) 0%, rgba(15, 23, 42, 0.75) 25%, rgba(30, 41, 59, 0.65) 50%, rgba(51, 65, 85, 0.75) 75%, rgba(71, 85, 105, 0.85) 100%),
        url('../images/hero-new-bg.png');
    background-size: 100% 100%;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: scroll;
}

body.dark-theme .hero::before {
    background: 
        linear-gradient(45deg, transparent 40%, rgba(84, 88, 162, 0.06) 50%, transparent 60%),
        linear-gradient(-45deg, transparent 40%, rgba(109, 114, 181, 0.05) 50%, transparent 60%);
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
}

body.dark-theme .hero::after {
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(142, 147, 200, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(109, 114, 181, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(84, 88, 162, 0.06) 0%, transparent 40%);
}

body.dark-theme .hero h1 {
    background: linear-gradient(135deg, #ffffff 0%, #f0f2ff 40%, #e8eaff 70%, #dfe2ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 8px 40px rgba(0, 0, 0, 0.6), 0 4px 20px rgba(84, 88, 162, 0.4);
}

body.dark-theme .hero p {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 3px 20px rgba(0, 0, 0, 0.6);
}

body.dark-theme .services {
    background: linear-gradient(180deg, #1E293B 0%, #0F172A 100%);
}

body.dark-theme .service-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(51, 65, 85, 0.6) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(84, 88, 162, 0.25);
    color: #F8FAFC;
}

body.dark-theme .service-card:hover {
    background: linear-gradient(135deg, rgba(51, 65, 85, 0.9) 0%, rgba(71, 85, 105, 0.8) 100%);
    border-color: var(--purple-accent);
    box-shadow: 0 20px 50px rgba(84, 88, 162, 0.5), 0 0 0 1px rgba(84, 88, 162, 0.3);
}

body.dark-theme .service-card h3 {
    color: #F8FAFC;
}

body.dark-theme .service-card p {
    color: #CBD5E1;
}

body.dark-theme .about {
    background: linear-gradient(180deg, #0F172A 0%, #1E293B 100%);
}

body.dark-theme .about-image {
    border-color: rgba(84, 88, 162, 0.3);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 4px 12px rgba(84, 88, 162, 0.2);
}

body.dark-theme .about-image:hover {
    border-color: rgba(84, 88, 162, 0.5);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 8px 24px rgba(84, 88, 162, 0.3);
}

body.dark-theme .about-text p {
    color: #CBD5E1;
}

body.dark-theme section h2 {
    color: var(--purple-accent);
    -webkit-text-fill-color: var(--purple-accent);
}

body.dark-theme .contact {
    background: linear-gradient(180deg, #1E293B 0%, #0F172A 100%);
}

body.dark-theme .contact-item {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(84, 88, 162, 0.25);
    color: #F8FAFC;
}

body.dark-theme .contact-item:hover {
    background: rgba(51, 65, 85, 0.8);
    border-color: var(--purple-accent);
    box-shadow: 0 12px 40px rgba(84, 88, 162, 0.3);
}

body.dark-theme .contact-item h4 {
    color: #F8FAFC;
}

body.dark-theme .contact-item p {
    color: #CBD5E1;
}

body.dark-theme .contact-item a {
    color: var(--purple-accent);
}

body.dark-theme .contact-item-icon {
    background: linear-gradient(135deg, var(--purple-light) 0%, var(--purple-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.dark-theme .contact-form {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(84, 88, 162, 0.25);
}

body.dark-theme .form-group label {
    color: #F8FAFC;
}

body.dark-theme .form-group input,
body.dark-theme .form-group textarea,
body.dark-theme .form-group select {
    background: rgba(15, 23, 42, 0.8);
    border-color: rgba(84, 88, 162, 0.3);
    color: #F8FAFC;
}

body.dark-theme .form-group input:focus,
body.dark-theme .form-group textarea:focus,
body.dark-theme .form-group select:focus {
    background: rgba(30, 41, 59, 0.9);
    border-color: var(--purple-accent);
    color: #F8FAFC;
    box-shadow: 0 0 0 4px rgba(84, 88, 162, 0.2), 0 4px 12px rgba(84, 88, 162, 0.15);
}

body.dark-theme .form-group input::placeholder,
body.dark-theme .form-group textarea::placeholder {
    color: #94A3B8;
}

/* ========== RTL Placeholder Direction for Arabic ========== */
body[dir="rtl"] input::placeholder,
body[dir="rtl"] textarea::placeholder {
    text-align: right;
    direction: rtl;
}

body[dir="ltr"] input::placeholder,
body[dir="ltr"] textarea::placeholder {
    text-align: left;
    direction: ltr;
}

body.dark-theme .footer {
    background: linear-gradient(180deg, #0F172A 0%, #1E293B 100%);
}

/* Dark mode - Stats section */
body.dark-theme .stats {
    background: linear-gradient(135deg, #1E293B 0%, #0F172A 50%, #1E293B 100%);
}

body.dark-theme .stat-item {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(84, 88, 162, 0.3);
}

body.dark-theme .stat-item:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(84, 88, 162, 0.5);
}

/* Dark mode - Better button visibility */
body.dark-theme .btn-primary {
    background: linear-gradient(135deg, #6d72b5 0%, #8e93c8 100%);
    box-shadow: 0 6px 20px rgba(84, 88, 162, 0.4);
}

body.dark-theme .btn-primary:hover {
    background: linear-gradient(135deg, #5458a2 0%, #6d72b5 100%);
    box-shadow: 0 12px 30px rgba(84, 88, 162, 0.7);
}

body.dark-theme .btn-secondary {
    background: linear-gradient(135deg, #475569 0%, #64748B 100%);
}

body.dark-theme .btn-secondary:hover {
    background: linear-gradient(135deg, #334155 0%, #475569 100%);
}

body.dark-theme .btn-outline {
    border-color: rgba(142, 147, 200, 0.6);
    color: var(--purple-accent) !important;
    background: rgba(84, 88, 162, 0.15);
}

body.dark-theme .btn-outline:hover {
    background: var(--purple-accent);
    color: #0F172A !important;
    border-color: var(--purple-accent);
}

/* ========== الأزرار العائمة (Floating Action Buttons) ========== */
.floating-actions {
    position: fixed;
    bottom: 30px;
    left: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 9999;
    opacity: 1;
    transform: translateX(0);
    transition: all var(--transition-base);
    pointer-events: all;
}

.floating-actions.visible {
    opacity: 1;
    transform: translateX(0);
    pointer-events: all;
}

.floating-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--purple-dark) 0%, var(--purple-medium) 100%);
    color: var(--white) !important;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(84, 88, 162, 0.4), 0 4px 12px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
    position: relative;
    overflow: visible;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    text-decoration: none;
}

.floating-btn i {
    position: relative;
    z-index: 1;
}

.header-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(84, 88, 162, 0.25);
    border-color: rgba(84, 88, 162, 0.2);
}

.header-btn:hover i,
.header-btn:hover .lang-text {
    color: var(--white);
    transform: scale(1.08);
}

.floating-btn:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 12px 35px rgba(84, 88, 162, 0.6), 0 6px 16px rgba(0, 0, 0, 0.3);
    color: var(--white) !important;
}

.floating-btn:active {
    transform: translateY(-2px) scale(1.05);
}

.action-whatsapp {
    background: #25D366 !important;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5), 0 4px 12px rgba(0, 0, 0, 0.2);
}

.action-whatsapp:hover {
    background: #1da851 !important;
    box-shadow: 0 12px 35px rgba(37, 211, 102, 0.7), 0 6px 16px rgba(0, 0, 0, 0.3);
    transform: translateY(-5px) scale(1.1);
}

.action-whatsapp::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.4);
    transform: translate(-50%, -50%);
    animation: pulse 2s ease-out infinite;
    z-index: -1;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

.action-phone {
    background: linear-gradient(135deg, #5458a2 0%, #6d72b5 100%) !important;
    box-shadow: 0 8px 24px rgba(84, 88, 162, 0.5), 0 4px 12px rgba(0, 0, 0, 0.2);
}

.action-phone:hover {
    background: linear-gradient(135deg, #3d4178 0%, #5458a2 100%) !important;
    box-shadow: 0 12px 35px rgba(84, 88, 162, 0.7), 0 6px 16px rgba(0, 0, 0, 0.3);
    transform: translateY(-5px) scale(1.1);
}

body.dark-theme .floating-btn {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 4px 12px rgba(84, 88, 162, 0.3);
}

body.dark-theme .floating-btn:hover {
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5), 0 6px 16px rgba(84, 88, 162, 0.5);
}

body.dark-theme .action-whatsapp {
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4), 0 4px 12px rgba(0, 0, 0, 0.3);
}

body.dark-theme .action-whatsapp:hover {
    box-shadow: 0 12px 35px rgba(37, 211, 102, 0.6), 0 6px 16px rgba(0, 0, 0, 0.4);
}

body.dark-theme .action-phone {
    box-shadow: 0 8px 24px rgba(84, 88, 162, 0.4), 0 4px 12px rgba(0, 0, 0, 0.3);
}

body.dark-theme .action-phone:hover {
    box-shadow: 0 12px 35px rgba(84, 88, 162, 0.6), 0 6px 16px rgba(0, 0, 0, 0.4);
}

/* زر العودة للأعلى */
.scroll-to-top {
    display: flex;
}

.scroll-to-top:hover {
    background: linear-gradient(135deg, #3d4178 0%, #5458a2 100%) !important;
}

body.dark-theme .scroll-to-top {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 4px 12px rgba(84, 88, 162, 0.3) !important;
}

body.dark-theme .scroll-to-top:hover {
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5), 0 6px 16px rgba(84, 88, 162, 0.5) !important;
}

/* استجابة الجوال للأزرار العائمة */
@media (max-width: 768px) {
    .floating-actions {
        bottom: 20px;
        left: 20px;
        gap: 12px;
    }
    
    .floating-btn {
        width: 50px;
        height: 50px;
        font-size: 18px;
    }
    
    .scroll-to-top {
        bottom: 90px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .floating-actions {
        bottom: 15px;
        left: 15px;
        gap: 10px;
    }
    
    .floating-btn {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
    
    .scroll-to-top {
        bottom: 80px;
        right: 15px;
        width: 42px;
        height: 42px;
        font-size: 16px;
    }
}




/* ========== زر اللغة========== */
/* ===== تنسيق شريط الأزرار ===== */
/* ========== زر اللغة========== */
/* ===== تنسيق شريط الأزرار ===== */
/* ===== تصحيح موضع زر اللغة فقط في الديسكتوب ===== */
@media (min-width: 1024px) {
  .header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px; /* مسافة بين الأزرار */
    position: relative;
  }

  .header-actions .language-switcher {
    position: static; /* إلغاء الوضع absolute */
    transform: none;  /* إزالة الارتفاع */
    margin-left: 130px; /* ترك مسافة يسار زر احجز الآن */
    order: initial; /* نحافظ على الترتيب الطبيعي */
  }
}





/* ===== تنسيق شريط الأزرار ===== */
.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  position: relative;
  width: 100%;
}

/* زر اللغة إلى اليسار تمامًا */
.header-actions .language-switcher {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

/* ===== تنسيق زر اللغة ===== */
.lang-btn {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(84, 88, 162, 0.12);
  border-radius: 11px;
  background: linear-gradient(135deg, rgba(84, 88, 162, 0.06) 0%, rgba(109, 114, 181, 0.08) 100%);
  color: var(--purple-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.lang-btn:hover {
  background: linear-gradient(135deg, rgba(84, 88, 162, 0.15) 0%, rgba(109, 114, 181, 0.18) 100%);
}

/* ===== القائمة المنسدلة ===== */
.lang-menu {
  position: absolute;
  top: 55px;
  left: 0;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.15);
  list-style: none;
  margin: 0;
  padding: 6px 0;
  display: none;
  min-width: 140px;
  z-index: 999;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.25s ease;
}

/* حالة الفتح */
.lang-menu.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* عناصر القائمة */
.lang-menu li {
  padding: 10px 15px;
  cursor: pointer;
  transition: background 0.2s;
  text-align: left;
  font-weight: 600;
  color: #333;
}

.lang-menu li:hover {
  background: #f3f3f3;
}

/* الوضع الليلي */
body.dark-theme .lang-menu {
  background: #222;
  color: #fff;
  box-shadow: 0 4px 18px rgba(255,255,255,0.08);
}

body.dark-theme .lang-menu li:hover {
  background: #333;
}



@media (max-width: 480px) {
    .about-text h3 {
        font-size: 27px;
    }
}







.footer-sections {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
}


footer .footer-sections,
.footer-sections {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important;
  gap: 20px !important;
  font-size: 14px !important;
}








.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.footer-content .footer-section,
.footer-content .footer-sections {
  font-size: 14px;
}

.footer-content h4 {
  font-size: 15px;
}










html[lang="en"] body {
  direction: ltr;
  text-align: left;
}





html[lang="en"] .your-section-class {
  flex-direction: row;
}








/* إجبار الهيدر في كل اللغات على البقاء RTL */
header,
.header,
.site-header {
  direction: rtl !important;
  text-align: right;
}

/* نحافظ على ترتيب العناصر مثل العربي */
header *,
.header *,
.site-header * {
  direction: rtl !important;
  text-align: right;
}









/* ---------- 1) تأكد أن html معلم باللانج صحيح ---------- */
/* لا حاجة لهذا في CSS عادة، لكن تأكد أن كل صفحة إنجليزي فيها:
   <html lang="en" dir="ltr"> 
*/

/* ---------- 2) إجبار الصفحة الإنجليزية لتكون LTR ---------- */
html[lang="en"] {
  direction: ltr; /* اتجاه الصفحة */
  unicode-bidi: embed;
}

/* إجبار البودي وكل العناصر لتطبيق LTR (يحمي من قواعد سابقة) */
html[lang="en"] body,
html[lang="en"] body * {
  direction: ltr !important;
  text-align: left !important;
  unicode-bidi: embed !important;
}

/* ---------- 3) استثناء الهيدر: الهيدر يبقى RTL كما في العربية ---------- */
/* عدّل selectors لتطابق اسم الهيدر عندك (.header, header, .site-header) */
html[lang="en"] header,
html[lang="en"] .header,
html[lang="en"] .site-header {
  direction: rtl !important;
  text-align: right !important;
  unicode-bidi: isolate-override !important;
}

/* أيضاً نضمن محتويات الهيدر تتبع RTL */
html[lang="en"] header *,
html[lang="en"] .header *,
html[lang="en"] .site-header * {
  direction: rtl !important;
  text-align: right !important;
}

/* ---------- 4) استثناءات ذكية: قوائم أو عناصر تحتاج محاذاة مختلفة ---------- */
/* مثلاً لو عندك عناصر داخل الهيدر تريدها لليسار، استهدفها صراحة بعدها */
html[lang="en"] .header .left-item {
  direction: ltr !important;
  text-align: left !important;
}







.main-footer {
  background: linear-gradient(180deg, #5d0f81 0%, #3a0b4f 100%);
  padding: 30px 0;
  text-align: center;
  position: relative;
  color: #fff;
  font-family: "Cairo", sans-serif;
}

.footer-content {
  max-width: 450px;
  margin: 0 auto;
  position: relative;
}

/* اللوغو + النص */
.footer-brand {
  margin-bottom: 25px;
}

.footer-main-logo {
  height: 55px;
  margin-bottom: 15px;
}

.footer-description {
  font-size: 14px;
  line-height: 1.7;
  opacity: 0.95;
  margin: 0 15px 20px 15px;
}

/* الشعارات الأخرى */
.footer-logos {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.footer-logo {
  height: 45px;
  opacity: 0.9;
}

/* النص السفلي */
.footer-text {
  font-size: 14px;
  margin-bottom: 25px;
  opacity: 0.9;
}

/* زر الاتصال */
.footer-call {
  position: absolute;
  right: 10px;
  bottom: 10px;
  background: white;
  color: #5d0f81;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 22px;
  box-shadow: 0 0 10px rgba(255,255,255,0.4);
}











/* ===== بانر الفيديو ===== */
.hero {
  position: relative;
  width: 100%;
  max-width: 1200px;
  min-height: 60vh;
  border-radius: 32px;
  overflow: hidden;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* الفيديو في الخلفية */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* الطبقة السوداء الشفافة فوق الفيديو */
.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.75); /* شفافية يمكن تعديلها */
  z-index: 2;
}

/* ===== الهيدر ===== */
.hero-header {
  position: absolute;       /* يبقى داخل البانر */
  top: 20px;                /* المسافة من أعلى البانر */
  right: 20px;
  left: 20px;
  width: calc(100% - 40px); /* يضمن التوسّع بين اليمين واليسار */
  margin: 0;
  background-color: rgba(40, 40, 40, 0.55);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  z-index: 10000;           /* أعلى من.overlay و .hero-content */
}


.hero-header img {
  height: 42px;
}

.nav-links {
  display: flex;
  gap: 20px;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.3s;
}

.nav-links a:hover {
  opacity: 0.8;
}

/* ===== المحتوى ===== */
.hero-content {
  text-align: center;
  max-width: 700px;
  margin: 80px auto 0;
  z-index: 4;
  position: relative;
}

.hero-content h1 {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.hero-content p {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 35px;
}

.cta-btn {
  background-color: #4F007D; /* ← غيّر هذا اللون */
  color: #fff;
  padding: 14px 36px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s;
}

.cta-btn:hover {
  background-color: #5b3cd0; /* ← لون الهوفر */
}


/* ===== زر الاتصال ===== */
.call-btn {
  position: absolute;
  bottom: 25px;
  left: 25px;
  background-color: #6f4cff;
  border: none;
  color: #fff;
  font-size: 24px;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  cursor: pointer;
  z-index: 4;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.call-btn:hover {
  background-color: #5b3cd0;
}

/* ===== استجابة للشاشات الصغيرة ===== */
@media (max-width: 768px) {
  .outer-wrapper {
    padding: 30px 20px;
  }

  .hero {
    min-height: 70vh;
  }

  .hero-header {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-content {
    margin-top: 100px;
    padding: 0 20px;
  }

  .hero-content h1 {
    font-size: 1.8rem;
  }
}

@media (max-width: 768px) {
  .outer-wrapper {
    padding: 15px 12px;
  }

  .hero {
    min-height: 80vh;
  }

  /* ترتيب الهيدر */
  .hero-header {
    flex-direction: row;
    justify-content: space-between;
    padding: 8px 16px;
    border-radius: 12px;
  }

  .hero-header img {
    height: 32px;
  }

  .nav-links {
    display: none; /* نخفي الروابط على الموبايل */
  }

  /* المحتوى */
  .hero-content {
    margin-top: 40px;
    padding: 0 16px;
  }

  .hero-content h1 {
    font-size: 1.6rem;
    margin-bottom: 10px;
  }

  .hero-content p {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 25px;
  }

  .cta-btn {
    padding: 12px 28px;
    font-size: 0.95rem;
  }

  /* زر الاتصال */
  .call-btn {
    width: 50px;
    height: 50px;
    font-size: 20px;
    bottom: 18px;
    left: 18px;
  }
}

/* زر المينيو */
.menu-toggle {
  background: none;
  border: none;
  font-size: 26px;
  color: white;
  cursor: pointer;
  display: none;
}

/* القائمة المنسدلة */
.mobile-nav {
  display: none;
  position: absolute;
  top: 65px;
  right: 10px;
  background: rgba(0, 0, 0, 0.85);
  border-radius: 12px;
  padding: 12px 0;
  width: 220px;
  text-align: right;
  z-index: 999;
  backdrop-filter: blur(10px);
}

.mobile-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-nav li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav li:last-child {
  border-bottom: none;
}

.mobile-nav a {
  color: white;
  text-decoration: none;
  display: block;
  padding: 12px 18px;
  font-size: 15px;
}

.mobile-nav a:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* إظهار الزر فقط على الموبايل */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
  }
}


body, h1, h2, h3, h4, h5, h6, p {
    font-family: "Cairo", sans-serif !important;
}


/* المبدأ: نخفي القائمة المكتوبة للديسكتوب في الموبايل ونخفي قائمة الموبايل في الديسكتوب */

/* القائمة المخصصة للديسكتوب تكون مخفية افتراضياً */
.desktop-nav {
  display: none;
}

/* عندما تكون الشاشة أكبر من 992px (ديسكتوب) */
@media (min-width: 992px) {
  .mobile-nav,
  .menu-toggle {
    display: none; /* نخفي قائمة الموبايل وزرها */
  }

  .desktop-nav {
    display: block; /* نظهر قائمة الديسكتوب */
  }

  .desktop-nav ul {
    display: flex;
    gap: 20px;
    list-style: none;
    align-items: center;
    justify-content: center;
  }

  .desktop-nav a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
  }

  .desktop-nav a:hover {
    color: #f5c542; /* لون جميل عند المرور */
  }
}

/* إخفاء قائمة الديسكتوب في الموبايل */
.desktop-nav {
  display: none;
}

/* تنسيق أيقونة اللغة */
.lang-switcher {
  position: relative;
  cursor: pointer;
  color: white;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.lang-switcher span {
  font-size: 16px;
}

.lang-dropdown {
  display: none;
  position: absolute;
  top: 30px;
  right: 0;
  background: rgba(0, 0, 0, 0.85);
  border-radius: 8px;
  list-style: none;
  padding: 8px 0;
  z-index: 999;
  min-width: 120px;
}

.lang-dropdown li {
  text-align: right;
}

.lang-dropdown li a {
  display: block;
  padding: 6px 12px;
  color: white;
  text-decoration: none;
  transition: background 0.3s;
}

.lang-dropdown li a:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* عند تمرير الماوس */
.lang-switcher:hover .lang-dropdown {
  display: block;
}

/* ديسكتوب */
@media (min-width: 992px) {
  .mobile-nav, .menu-toggle, #langSwitcherMobile {
    display: none;
  }

  .desktop-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
  }

  .desktop-nav ul {
    display: flex;
    gap: 20px;
    list-style: none;
  }

  .desktop-nav a {
    color: white;
    text-decoration: none;
    font-weight: 600;
  }

  .desktop-nav a:hover {
    color: #f5c542;
  }
}

/* موبايل */
@media (max-width: 991px) {
  #langSwitcherMobile {
    display: inline-block;
    margin-left: 10px;
  }

  #langSwitcherMobile .lang-dropdown {
    right: 0;
    top: 30px;
  }
}


/* إعداد عام */
.hero-header {
  position: absolute;
  top: 20px;
  right: 20px;
  left: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}

/* زر القائمة وأيقونة اللغة في نفس الخط */
.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* اللغة العامة */
.lang-switcher {
  position: relative;
  cursor: pointer;
  color: white;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.lang-switcher span {
  font-size: 16px;
}

.lang-dropdown {
  display: none;
  position: absolute;
  top: 30px;
  right: 0;
  background: rgba(0, 0, 0, 0.85);
  border-radius: 8px;
  list-style: none;
  padding: 8px 0;
  z-index: 999;
  min-width: 120px;
}

.lang-dropdown li a {
  display: block;
  padding: 6px 12px;
  color: white;
  text-decoration: none;
}

.lang-dropdown li a:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* عند تمرير الماوس في الديسكتوب */
.lang-switcher:hover .lang-dropdown {
  display: block;
}

/* الموبايل */
@media (max-width: 991px) {
  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-block;
    background: none;
    border: none;
    color: white;
    font-size: 26px;
    cursor: pointer;
  }

  #langSwitcherMobile {
    display: inline-block;
  }

  #langSwitcherMobile .lang-dropdown {
    right: 0;
    top: 30px;
  }

  .lang-switcher span {
    display: none; /* نخفي كلمة Language في الموبايل */
  }
}

/* الديسكتوب */
@media (min-width: 992px) {
  .mobile-nav,
  .menu-toggle,
  #langSwitcherMobile {
    display: none;
  }

  .desktop-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
  }

  .desktop-nav ul {
    display: flex;
    gap: 20px;
    list-style: none;
  }

  .desktop-nav a {
    color: white;
    text-decoration: none;
    font-weight: 600;
  }

  .desktop-nav a:hover {
    color: #f5c542;
  }

  #langSwitcherDesktop {
    display: flex;
    align-items: center;
  }
}


/* ترتيب زر اللغة وزر المينيو في الموبايل */
@media (max-width: 991px) {
  .header-right {
    display: flex;
    flex-direction: row-reverse; /* يجعل 🌐 يمين و ☰ يسار */
    gap: 10px;
  }
}

/* إظهار كلمة Language في الموبايل */
@media (max-width: 991px) {
  #langSwitcherMobile span {
    display: inline !important;
    color: white !important;
    font-size: 14px;
  }
}


/* ترتيب كلمة Language يسار الأيقونة في الموبايل */
@media (max-width: 991px) {
  #langSwitcherMobile {
    display: inline-flex !important;
    align-items: center;
    gap: 6px; /* مسافة صغيرة بين الأيقونة والنص */
    flex-direction: row-reverse; /* يجعل الأيقونة يمين والنص يسار */
  }

  #langSwitcherMobile span {
    display: inline-block !important;
    color: #fff !important;
    font-size: 14px;
  }
}


/* تكبير اللوغو بشكل مناسب */
.logo2030 {
  height: 65px !important; /* حجم جديد أكبر */
  width: auto;
}


@media (min-width: 992px) {

  /* جعل قائمة الديسكتوب أقرب للوسط */
  .desktop-nav {
    justify-content: center !important;
    gap: 40px; /* مسافة جميلة بين العناصر */
    margin-right: 80px; /* هنا نزيح القائمة نحو المركز */
  }

}


/* ===== سكشن الخدمات ===== */
/* ===== سكشن الخدمات ===== */
.services-hero {
  position: relative;
  min-height: 60vh;
  border-radius: 22px;
  overflow: hidden;
  padding: 0;              /* نلغي البادينغ حتى لا يدفع المحتوى للأعلى */
  margin: 40px 20px;
  z-index: 1;

  display: flex;
  justify-content: center;  /* توسيط أفقي */
  align-items: center;      /* توسيط عمودي داخل السيكشن */
}


/* ===== خلفية الفيديو ===== */
.services-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;           /* الفيديو أسفل */
}

/* ===== طبقة السواد الشفاف ===== */
.dark-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.80) !important; /* ← نفس درجة السواد في الأعلى */
  z-index: 2 !important;
  pointer-events: none;
}


/* ===== المحتوى فوق كله ===== */
.services-content {
  position: relative;
  z-index: 3 !important;           /* المحتوى أعلى الجميع */
  text-align: center;
  max-width: 600px;
  margin: auto;
  color: #fff;
}

.services-content h1 {
  font-size: 2rem;
  margin-bottom: 12px;
}

.services-content p {
  font-size: 0.95rem;
  margin-bottom: 25px;
  line-height: 1.6;
}

.services-hero .cta-btn {
  background-color: #6f4cff;
  color: #fff;
  padding: 10px 26px;
  border-radius: 50px;
  font-size: 0.95rem;
  text-decoration: none;
  font-weight: 600;
}

.services-hero .cta-btn:hover {
  background-color: #5b3cd0;
}

/* ===== موبايل ===== */
@media (max-width: 768px) {
  .services-hero {
    min-height: 70vh;
    padding: 35px 18px;
    margin: 30px 12px;
  }

  .services-content h1 {
    font-size: 1.6rem;
  }
}


.video-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45); /* ← نفس الدرجة بالضبط */
  z-index: 2;
}






/* الأزرار العائمة */
.floating-contact {
  position: fixed;
  bottom: 100px;
  left: 25px;   /* ← رجّعتها لليسار */
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 999999;
}

.contact-btn {
  width: 60px;      /* حجم أكبر */
  height: 60px;
  background: #0a6bff;
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 26px;  /* تكبير الأيقونة */
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.20);
  transition: 0.25s;
}

.contact-btn:hover {
  transform: scale(1.12);
}

.cta-btn {
  display: block;
  width: 85%;                /* نفس عرض الزر في الصورة */
  margin: 20px auto 0;
  background-color: #5458a2; /* نفس التدرج البنفسجي الأقرب للصورة */
  color: #fff;
  text-align: center;
  padding: 14px 0;           /* ارتفاع ممتاز مثل الصورة */
  font-size: 17px;
  font-weight: 600;
  border-radius: 14px;       /* نفس انحناء الحواف */
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: 0.2s ease;
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.18);
}



/* =============================
   ظهور المينيو الصحيح حسب الجهاز
   ============================= */

/* ديسكتوب: إظهار قائمة الديسكتوب وإخفاء الموبايل */
@media (min-width: 1025px) {
  body.home-ar .desktop-nav,
  body.home-en .desktop-nav {
    display: flex !important;
  }

  body.home-ar .main-nav,
  body.home-en .main-nav,
  body.home-ar .nav-menu,
  body.home-en .nav-menu,
  body.home-ar .hamburger,
  body.home-en .hamburger {
    display: none !important;
  }
}

/* موبايل وتابلت: إظهار القائمة السوداء والهمبرغر */
@media (max-width: 1024px) {
  body.home-ar .main-nav,
  body.home-en .main-nav {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
  }

  body.home-ar .hamburger,
  body.home-en .hamburger {
    display: flex !important;
    z-index: 10000;
  }

  body.home-ar .nav-menu,
  body.home-en .nav-menu {
    display: none; /* يصبح display:flex عند فتح المينيو بالـ JS */
    flex-direction: column;
    position: absolute;
    top: 85px;
    right: 20px;
    background: #fff;
    border-radius: 12px;
    width: 230px;
    padding: 10px 0;
    z-index: 9999;
  }

  body.home-ar .nav-menu a,
  body.home-en .nav-menu a {
    color: #000 !important;
    padding: 10px 15px;
  }

  body.home-ar .nav-menu a:hover,
  body.home-en .nav-menu a:hover {
    background: rgba(0, 0, 0, 0.05);
  }

  /* إخفاء قائمة الديسكتوب */
  body.home-ar .desktop-nav,
  body.home-en .desktop-nav {
    display: none !important;
  }
}

/* إزالة الخلفية البيضاء من قائمة الديسكتوب */
@media (min-width: 1025px) {
  body.home-ar .nav-menu,
  body.home-en .nav-menu {
    background: transparent !important;
    position: static !important;
  }
}

@media (min-width: 1025px) {
  body.home-ar .nav-menu a,
  body.home-en .nav-menu a {
    color: #fff !important; /* أو البنفسجي أو أي لون */
  }
}


@media (min-width: 1025px) {
  body.home-ar .nav-menu,
  body.home-en .nav-menu,
  body.home-ar .main-nav,
  body.home-en .main-nav {
    display: none !important;
  }

  body.home-ar .desktop-nav,
  body.home-en .desktop-nav {
    display: flex !important;
  }
}


/* ديسكتوب — خلفية شفافة ونص أبيض */
@media (min-width: 1025px) {
  .desktop-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 10px 0;
    z-index: 20;
  }

  .desktop-nav ul {
    display: flex;
    gap: 30px;
    list-style: none;
  }

  .desktop-nav li a {
    color: #ffffff !important;
    font-weight: 600;
    text-decoration: none;
    transition: 0.25s ease;
  }

  .desktop-nav li a:hover {
    color: #f5c542 !important; /* لون التأثير عند المرور */
  }
}




/* ==============================
   إصلاح الفوتر على الديسكتوب
   4 أعمدة + محاذاة يمين
============================== */

@media (min-width: 992px) {

  .main-footer {
    text-align: right !important;
  }

  .footer-content {
    max-width: 1400px !important;
    margin: 0 auto;
    display: grid !important;
    grid-template-columns: 1.2fr 1fr 1fr 1fr !important; /* 4 أعمدة */
    gap: 45px !important;
    align-items: start;
  }

  .footer-brand,
  .footer-menu {
    text-align: right !important;
  }

  .footer-description {
    margin-left: 0 !important;
    margin-right: 0 !important;
    text-align: right;
  }

  /* القوائم */
  .footer-menu ul {
    padding: 0;
    list-style: none;
  }

  .footer-menu h4 {
    font-size: 18px !important;
    font-weight: 700;
    margin-bottom: 12px;
  }

  .footer-menu ul li a {
    font-size: 15px !important;
    opacity: 0.9;
    display: inline-block;
    padding: 4px 0;
  }

  /* الشعارات + النص السفلي يبقى بالعرض الكامل */
  .footer-logos,
  .footer-text {
    grid-column: 1 / 5 !important; /* يمتد على 4 أعمدة */
    text-align: center !important;
  }

  .footer-logos {
    margin-top: 15px;
    margin-bottom: 10px;
  }
}




@media (min-width: 992px) {

  .footer-content {
    max-width: 1400px !important;
    margin: 0 auto;
    display: grid !important;
    grid-template-columns: 1.2fr 1fr 1fr 1fr !important;
    gap: 45px !important;
    align-items: start;
  }

  .footer-brand,
  .footer-menu,
  .footer-links {
    text-align: right !important;
  }

  .footer-links ul,
  .footer-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .footer-logos,
  .footer-text {
    grid-column: 1 / 5 !important;
    text-align: center !important;
  }
}





/* ====== إصلاح الفوتر 4 أعمدة للديسكتوب ====== */
@media (min-width: 992px) {

  .footer-content {
    display: grid !important;
    grid-template-columns: 1.2fr 1fr 1fr 1fr !important;
    gap: 45px;
    text-align: right;
    align-items: start;
  }

  /* نجبر .footer-sections أن تتصرف كعمودين كل منهما يأخذ 1fr */
  .footer-sections {
    display: contents !important; /* الحل السحري */
  }

  .footer-section h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
  }

  .footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .footer-section ul li a {
    display: inline-block;
    padding: 4px 0;
    font-size: 15px;
    text-decoration: none;
  }

  .footer-bottom {
    text-align: center;
    margin-top: 30px;
  }
}
