/* -------------------------------------------------------------
       تنسيقات الخلفية التقنية للمزر بورد (Circuit / Motherboard Theme)
       ------------------------------------------------------------- */
    .hero-section {
      position: relative;
      background-color: #0b0f19; /* لون داكن احترافي لتأثير النيون */
      overflow: hidden;
      z-index: 1;
    }

    /* 1. طبقة نمط مسارات اللوحة الأم SVG Pattern */
    .hero-circuit-pattern {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      z-index: 1;
      opacity: 0.18; /* شفافية ناعمة لعدم تشتيت العين */
      pointer-events: none;
      background-size: 180px 180px;
      background-repeat: repeat;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cg fill='none' stroke='%2000f0ff' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M0 30 h40 l30 30 v60 h30 l20 20 h60' /%3E%3Cpath d='M180 20 h-30 l-20 20 v40 h-40 l-20 20 h-70' /%3E%3Cpath d='M90 0 v35 l-25 25 v50 l25 25 v45' /%3E%3Cpath d='M30 180 v-40 l20-20 h50 l30-30 v-40' /%3E%3Ccircle cx='40' cy='30' r='3.5' fill='%2300f0ff' stroke='none' /%3E%3Ccircle cx='70' cy='60' r='3.5' fill='%2300f0ff' stroke='none' /%3E%3Ccircle cx='130' cy='140' r='3.5' fill='%2300f0ff' stroke='none' /%3E%3Ccircle cx='150' cy='20' r='3.5' fill='%2300f0ff' stroke='none' /%3E%3Ccircle cx='65' cy='60' r='3.5' fill='%2300f0ff' stroke='none' /%3E%3Ccircle cx='90' cy='35' r='3.5' fill='%2300f0ff' stroke='none' /%3E%3C/g%3E%3C/svg%3E");
    }

    /* 2. طبقة التأثير التفاعلي المتوهج (Interactive Canvas) */
    #circuitCanvas {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      z-index: 2;
      pointer-events: none;
    }

    /* 3. تدرج شعاعي مركز للتوهج النيوني خلف النصوص */
    .hero-glow-overlay {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 800px;
      height: 800px;
      background: radial-gradient(circle, rgba(0, 240, 255, 0.08) 0%, rgba(11, 15, 25, 0) 70%);
      z-index: 2;
      pointer-events: none;
    }

    /* تأكيد أن المحتوى يظهر أعلى طبقات الخلفية */
    .hero-section .container {
      position: relative;
      z-index: 3;
    }




/* VARIABLES & THEME */
:root {
  --primary-navy: #000039;
  --primary-navy-dark: #00002B;
  --accent-blue: #2B6CB0;
  --light-blue-bg: #F0F4F8;
  --white: #FFFFFF;
  --text-dark: #1F2937;
  --text-muted: #6B7280;
  --text-light: #E2E8F0;
  --border-color: #E2E8F0;
  --card-shadow: 0 10px 25px -5px rgba(16, 42, 67, 0.08), 0 8px 10px -6px rgba(16, 42, 67, 0.04);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* GLOBAL RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Rubik', sans-serif;
  color: var(--text-dark);
  background-color: var(--white);
  line-height: 1.8;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* CONTAINER */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-padding {
  padding: 90px 0;
}

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

/* HEADER & NAVBAR BASE STYLES */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: #00002B;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transition: var(--transition);
}

.nav-container {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 80px;
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 45px;
  width: auto;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 25px;
}

.nav-link {
  color: var(--text-light);
  font-weight: 500;
  font-size: 1rem;
  transition: var(--transition);
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--white);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #38BDF8;
  transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.lang-btn {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
  padding: 6px 16px;
  border-radius: 20px;
  font-weight: 500;
  font-size: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.lang-btn:hover {
  background-color: var(--white);
  color: var(--primary-navy);
}

.mobile-toggle {
  display: none;
}

/* ===================================
   RTL SPECIFIC (Arabic Alignment)
   =================================== */
[dir="rtl"] body {
  direction: rtl;
  text-align: right;
}

[dir="rtl"] .nav-menu {
  margin-left: auto;
}

[dir="rtl"] .lang-btn {
  margin-right: auto;
}

/* ===================================
   LTR SPECIFIC (English Alignment)
   =================================== */
[dir="ltr"] body {
  direction: ltr;
  text-align: left;
}

[dir="ltr"] .nav-menu {
  margin-right: auto;
}

[dir="ltr"] .lang-btn {
  margin-left: auto;
}


/* HERO SECTION */
.hero-section {
  background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-navy-dark) 100%);
  color: var(--white);
  padding-top: 170px;
  padding-bottom: 100px;
  position: relative;
}

.hero-content {
  max-width: 850px;
  margin: 0 auto;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  background-color: rgba(56, 189, 248, 0.15);
  color: #38BDF8;
  padding: 8px 20px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 24px;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.hero-title {
  font-size: 2.0rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: #94A3B8;
  margin-bottom: 40px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.btn {
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: #38BDF8;
  color: var(--primary-navy);
}

.btn-primary:hover {
  background-color: #7DD3FC;
  transform: translateY(-2px);
}

.btn-whatsapp {
  background-color: #25D366;
  color: var(--white);
}

.btn-whatsapp:hover {
  background-color: #20BA5A;
  transform: translateY(-2px);
}

/* SECTION HEADINGS */
.section-title-wrap {
  margin-bottom: 50px;
  text-align: center;
}

.section-subtitle {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
}

/* ABOUT SECTION */
.about-section {
  background-color: var(--white);
  color: var(--text-dark);
}

.about-section .section-subtitle {
  color: var(--accent-blue);
}

.about-content {
  background-color: var(--light-blue-bg);
  border-radius: 16px;
  padding: 40px;
  border: 1px solid var(--border-color);
  box-shadow: var(--card-shadow);
  line-height: 2;
  font-size: 1.1rem;
  color: #334155;
}

/* TECH PARTNERS SECTION */
.partners-box {
  margin-top: 50px;
  text-align: center;
}

.partners-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 25px;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
}

.partner-card {
  background-color: var(--white);
  padding: 16px 12px;
  border-radius: 12px;
  border: 1px solid #E2E8F0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  transition: var(--transition);
  height: 120px;
}

.partner-card:hover {
  border-color: var(--accent-blue);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.08);
}

.partner-logo-box {
  width: 100%;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.partner-logo-box img {
  max-width: 90px;
  max-height: 45px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(20%);
  transition: var(--transition);
}

.partner-card:hover .partner-logo-box img {
  filter: grayscale(0%);
  transform: scale(1.05);
}

.partner-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-navy);
}

/* SERVICES SECTION */
.services-section {
  background-color: var(--primary-navy);
  color: var(--white);
}

.services-section .section-subtitle {
  color: #38BDF8;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.service-card {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 32px 24px;
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.service-card:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: #38BDF8;
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.service-icon-box {
  width: 75px;
  height: 75px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(56, 189, 248, 0.05));
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #38BDF8;
  margin-bottom: 20px;
  transition: var(--transition);
}

.service-card:hover .service-icon-box {
  background-color: #38BDF8;
  color: var(--primary-navy);
  transform: scale(1.1);
}

.service-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--white);
}

.service-desc-preview {
  color: #94A3B8;
  font-size: 0.95rem;
  margin-bottom: 20px;
  line-height: 1.6;
}

.service-btn-more {
  color: #38BDF8;
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}

[dir="rtl"] .service-btn-more i {
  transform: rotate(180deg);
}

/* MODAL POPUP */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(11, 29, 46, 0.85);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background-color: var(--white);
  color: var(--text-dark);
  width: 100%;
  max-width: 600px;
  border-radius: 16px;
  padding: 35px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  position: relative;
  transform: scale(0.9);
  transition: var(--transition);
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 20px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

[dir="rtl"] .modal-close {
  left: 20px;
}

[dir="ltr"] .modal-close {
  right: 20px;
}

.modal-close:hover {
  color: var(--primary-navy);
}

.modal-icon-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--light-blue-bg);
}

.modal-icon {
  width: 55px;
  height: 55px;
  background-color: var(--light-blue-bg);
  color: var(--accent-blue);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.modal-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-navy);
}

.modal-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #334155;
  margin-bottom: 25px;
}

.modal-features {
  list-style: none;
  margin-top: 15px;
}

.modal-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.95rem;
  color: #475569;
}

.modal-features li i {
  color: #25D366;
}

/* CLIENTS SECTION */
.clients-section {
  background-color: var(--white);
  color: var(--text-dark);
}

.clients-section .section-subtitle {
  color: var(--accent-blue);
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
}

.client-card {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
  transition: var(--transition);
}

.client-card:hover {
  border-color: var(--accent-blue);
  transform: translateY(-4px);
  box-shadow: var(--card-shadow);
}

.client-logo-box {
  width: 100%;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.client-logo-box img {
  max-width: 120px;
  max-height: 70px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.client-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--primary-navy);
  text-align: center;
}

/* CONTACT SECTION */
.contact-section {
  background-color: var(--primary-navy);
  color: var(--white);
}

.contact-section .section-subtitle {
  color: #38BDF8;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.contact-card {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  transition: var(--transition);
}

.contact-card:hover {
  border-color: #38BDF8;
  background-color: rgba(255, 255, 255, 0.08);
  transform: translateY(-4px);
}

.contact-icon {
  width: 60px;
  height: 60px;
  background-color: rgba(56, 189, 248, 0.15);
  color: #38BDF8;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 20px;
}

.contact-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.contact-card-value {
  color: #94A3B8;
  font-size: 1.05rem;
  display: inline-block;
}

/* FOOTER */
.footer {
  background-color: var(--primary-navy-dark);
  color: #94A3B8;
  padding: 40px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-copy {
  font-size: 0.95rem;
}

/* WHATSAPP FLOATING BUTTON */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  background-color: #25D366;
  color: var(--white);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: var(--transition);
}

[dir="rtl"] .whatsapp-float {
  left: 25px;
}

[dir="ltr"] .whatsapp-float {
  right: 25px;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

/* ===================================
   MOBILE RESPONSIVE (MAX WIDTH: 768px)
   =================================== */
@media (max-width: 768px) {
  
  .mobile-toggle {
    display: block;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
  }

  /* --- ARABIC MOBILE (RTL): Start from RIGHT --- */
  [dir="rtl"] .nav-container {
    flex-direction: row;
    justify-content: flex-start;
  }

  [dir="rtl"] .mobile-toggle {
    order: 1; /* الزرار أقصى اليمين */
  }

  [dir="rtl"] .logo-container {
    order: 2; /* اللوجو بعد الزرار على اليمين */
  }

  [dir="rtl"] .lang-btn {
    order: 3;
    margin-right: auto; /* يدفع زر English لأقصى اليسار */
  }

  [dir="rtl"] .nav-menu {
    position: fixed;
    top: 80px;
    right: -100%; /* القائمة مخفية على اليمين */
    left: auto;
    width: 80%;
    max-width: 300px;
    height: calc(100vh - 80px);
    background-color: var(--primary-navy-dark);
    flex-direction: column;
    align-items: flex-start;
    padding: 40px 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
  }

  [dir="rtl"] .nav-menu.active {
    right: 0; /* تفتح للداخل من اليمين */
  }


  /* --- ENGLISH MOBILE (LTR): Start from LEFT --- */
  [dir="ltr"] .nav-container {
    flex-direction: row;
    justify-content: flex-start;
  }

  [dir="ltr"] .mobile-toggle {
    order: 1; /* Toggle button far left */
  }

  [dir="ltr"] .logo-container {
    order: 2; /* Logo next to toggle button on left */
  }

  [dir="ltr"] .lang-btn {
    order: 3;
    margin-left: auto; /* Pushes Arabic button to far right */
  }

  [dir="ltr"] .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%; /* Menu hidden on the left */
    right: auto;
    width: 80%;
    max-width: 300px;
    height: calc(100vh - 80px);
    background-color: var(--primary-navy-dark);
    flex-direction: column;
    align-items: flex-start;
    padding: 40px 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.3);
  }

  [dir="ltr"] .nav-menu.active {
    left: 0; /* Opens inwards from the left */
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .about-content {
    padding: 24px;
    font-size: 1rem;
  }

  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}