/* ==========================================================================
   1. استدعاء المكتبات الخارجية وإعدادات عامة للأقسام
   ========================================================================== */
@import url('https://cdn.jsdelivr.net/gh/lipis/flag-icons@7.2.3/css/flag-icons.min.css');

.dimensions-about-section,
.dimensions-services-section,
.featured-projects-section,
.dimensions-tools-section,
.contact-cta-section {
  position: relative;
  padding: var(--section-space) 0;
}

/* ==========================================================================
   2. الشريط العلوي وشريط التنقل الرئيسي (Header & Navbar)
   ========================================================================== */
.header-wrapper {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 2000;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.95), rgba(10, 10, 10, 0.6));
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all var(--transition-base);
}

.header-wrapper.nav-scrolled {
  background: rgba(10, 10, 10, 0.9);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid rgba(122, 67, 25, 0.2); /* خط نحاسي خفيف يبرز عند النزول */
}

.smart-topbar {
  min-height: 40px;
  padding-inline: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  background: rgba(0, 0, 0, 0.2);
}

.topbar-shell {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 100%;
}

.topbar-divider {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.1);
}

.topbar-link {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.topbar-link:hover,
.topbar-soc:hover {
  color: var(--color-primary);
}

.topbar-soc {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.smart-navbar {
  min-height: 88px;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 88px;
}

.logo_brand img {
  max-height: 54px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.logo_brand:hover img {
  transform: scale(1.02);
}

.desktop-nav-list {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.desktop-nav-list li a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 18px;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

/* تأثير الخط الهندسي الصارم تحت الروابط عند التمرير */
.desktop-nav-list li a::after {
  content: "";
  position: absolute;
  right: 18px;
  left: 18px;
  bottom: 8px;
  height: 2px;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.desktop-nav-list li a:hover,
.desktop-nav-list li a.active1 {
  color: #fff;
}

.desktop-nav-list li a:hover::after,
.desktop-nav-list li a.active1::after {
  transform: scaleX(1);
}

/* ==========================================================================
   3. اللغات والأعلام (تجريد كامل من طبيعة الأزرار - حجم كبير وعائم ونقي)
   ========================================================================== */
.lang-dropdown-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

/* إجبار كلاسات جينات الأعلام .fi على الانصياع للحجم الكبير الجديد ومسافات الأمان */
.fi.lang-flag-icon {
  font-size: 26px !important;        /* كسر الحجم الافتراضي المرتبط بالخط */
  width: 40px !important;            /* عرض فاخر وبارز للعلم */
  height: 28px !important;           /* ارتفاع متناسق بنسبة الأبعاد المعمارية */
  background-size: cover !important; /* ملء كامل المساحة المخصصة بشكل نظيف */
  display: inline-block !important;
  border-radius: 4px !important;     /* انحناء طفيف لزوايا العلم تضفي لمسة عصرية */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5) !important; /* ظلال ترفع العلم بصرياً عن الخلفية */
  margin: 10px 16px !important;      /* مسافة أمان هندسية محيطة تمنع الالتصاق نهائياً */
  transition: transform 0.3s ease !important;
}

/* تأثير حركي مرن ومميز للعلم عند التمرير كبديل عن إضاءة الأزرار */
.lang-dropdown-wrapper .lang-btn:hover .fi.lang-flag-icon {
  transform: scale(1.08);
}

/* تجريد أزرار البوتستراب تماماً من أي حدود أو ظلال أو حشو داخلي يخفي العلم */
.lang-dropdown-wrapper .lang-btn,
.mobile-lang-switch .lang-btn {
  border: 0 !important;
  border-color: transparent !important;
  background: none !important;
  background-color: transparent !important;
  padding: 0 !important;             /* إلغاء تماسك الزر حول العلم ليكون حراً */
  margin: 0 !important;
  min-height: auto !important;       /* إلغاء الارتفاع الأدنى الموروث من جينات الأزرار */
  width: auto !important;
  height: auto !important;
  box-shadow: none !important;
  outline: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* التأكيد التام على اختفاء معالم الزر الخلفية عند الضغط أو النشاط والتمرير */
.lang-dropdown-wrapper .lang-btn:hover,
.lang-dropdown-wrapper .lang-btn:focus,
.lang-dropdown-wrapper .lang-btn:active,
.mobile-lang-switch .lang-btn:hover,
.mobile-lang-switch .lang-btn:focus,
.mobile-lang-switch .lang-btn:active {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
}

/* إخفاء سهم القائمة المنسدلة الافتراضي لمظهر بسيط ونظيف (Minimalist) */
.lang-dropdown-wrapper .lang-btn::after,
.mobile-lang-switch .lang-btn::after {
  display: none !important;
}

/* صندوق القائمة المنسدلة الزجاجي الفاخر عند الفتح */
.lang-custom-menu {
  background: rgba(12, 12, 12, 0.9) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 12px !important;
  padding: 8px !important;
  margin-top: 12px !important;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

.lang-custom-menu .dropdown-menu-custom {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px !important;
  color: rgba(255, 255, 255, 0.7) !important;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.item-flag {
  width: 24px !important;
  height: auto;
  border-radius: 2px;
}

.lang-label {
  font-size: 0.9rem;
  font-weight: 500;
}

.lang-custom-menu .dropdown-menu-custom:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  color: #fff !important;
}

.lang-custom-menu .active-lang {
  background: linear-gradient(90deg, rgba(122,67,25,0.15), transparent) !important;
  color: var(--color-primary) !important;
  border-inline-start: 3px solid var(--color-primary);
  border-radius: 0 6px 6px 0;
}

/* ==========================================================================
   4. واجهة العرض الأولى بالفيديو (Hero Section)
   ========================================================================== */
.hero-video-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: clip;
}

.hero-video-element {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.5) 38%, rgba(0,0,0,0.84) 100%),
    radial-gradient(circle at 20% 20%, rgba(122,67,25,0.16), transparent 28%),
    radial-gradient(circle at 78% 35%, rgba(122,67,25,0.12), transparent 32%);
}

.hero-noise,
.hero-lines,
.hero-glow {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero-lines {
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 120px 120px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.7), transparent 92%);
}

.hero-noise {
  opacity: 0.045;
  background-image:
    radial-gradient(circle at 20% 20%, #fff 0.5px, transparent 0.6px),
    radial-gradient(circle at 70% 40%, #fff 0.5px, transparent 0.6px),
    radial-gradient(circle at 40% 80%, #fff 0.5px, transparent 0.6px);
  background-size: 180px 180px;
}

.hero-glow-1 {
  background: radial-gradient(circle at 18% 28%, rgba(122,67,25,0.18), transparent 28%);
  filter: blur(58px);
  animation: pulseGlow 6s ease-in-out infinite;
}

.hero-glow-2 {
  background: radial-gradient(circle at 82% 60%, rgba(122,67,25,0.12), transparent 30%);
  filter: blur(70px);
  animation: pulseGlow 8s ease-in-out infinite reverse;
}

.hero-content-wrap {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-content-box {
  max-width: 860px;
}

.hero-eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--color-accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: var(--fs-h2);
  line-height: var(--lh-heading);
  color: var(--color-text);
  margin-bottom: 22px;
}

.hero-text {
  max-width: 720px;
  color: var(--color-text-muted);
  font-size: 1.08rem;
  line-height: 1.95;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-btn {
  min-height: 56px;
  padding: 0 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  font-weight: 700;
  transition: var(--transition-fast);
}

.hero-btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: var(--glow-soft);
}

.hero-btn-primary:hover {
  transform: translateY(-2px);
  background: var(--color-primary-hover);
  box-shadow: var(--glow-medium);
}

.hero-btn-secondary {
  border: 1px solid var(--color-border-strong);
  color: var(--color-text);
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(10px);
}

.hero-btn-secondary:hover {
  transform: translateY(-2px);
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 38px;
}

.hero-stat-card {
  position: relative;
  padding: 20px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(14px);
  box-shadow: var(--glow-soft);
  transition: var(--transition-fast);
}

.hero-stat-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--glow-medium);
}

.hero-stat-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--color-text);
  font-size: 1rem;
}

.hero-stat-card span {
  color: var(--color-text-soft);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* ==========================================================================
   5. قسم عن الشركة (About Section)
   ========================================================================== */
.dimensions-about-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 34px;
  align-items: center;
}

.about-image {
  min-height: 620px;
  border-radius: var(--radius-xl);
  background-size: cover;
  background-position: center;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.about-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.55) 100%);
}

.about-image-overlay {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 2;
  padding: 14px 18px;
  border-radius: 18px;
  background: rgba(255,255,255,0.06);
  color: var(--color-text);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
}

.about-copy-box {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.about-copy {
  color: var(--color-text-muted);
  line-height: 1.95;
}

.about-feature-list {
  display: grid;
  gap: 16px;
  margin-top: 10px;
}

.about-feature-card {
  position: relative;
  padding: 24px;
  border-radius: 26px;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  transition: var(--transition-fast);
}

.about-feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--glow-soft);
}

.about-feature-card h3 {
  color: var(--color-text);
  margin-bottom: 10px;
}

.about-feature-card p {
  color: var(--color-text-muted);
}

/* ==========================================================================
   6. قسم الخدمات الفاخر (Services Section - توزيع ذكي لـ 5 عناصر بأرقام مائية)
   ========================================================================== */
.dimensions-services-section .section-head {
  text-align: center;
  margin-bottom: 60px;
}

.dimensions-services-section .section-eyebrow {
  display: inline-block;
  color: var(--color-primary);
  font-size: 0.9rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 16px;
  position: relative;
}

.dimensions-services-section .section-eyebrow::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--color-primary);
  margin: 10px auto 0;
  border-radius: 2px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  counter-reset: service-counter;
}

.service-card {
  position: relative;
  min-height: 280px;
  padding: 40px 30px;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  z-index: 1;
}

.service-card::before {
  counter-increment: service-counter;
  content: "0" counter(service-counter);
  position: absolute;
  top: -10px;
  right: 20px;
  font-size: 7rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.02);
  line-height: 1;
  z-index: -1;
  transition: all 0.6s ease;
  font-family: var(--font-heading), sans-serif;
}

.service-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0%;
  height: 3px;
  background: var(--color-primary);
  transition: width 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.service-card:hover {
  transform: translateY(-8px);
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(122,67,25,0.05));
  border-color: rgba(122, 67, 25, 0.3);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4), inset 0 0 0 1px rgba(122,67,25,0.1);
}

.service-card:hover::before {
  color: rgba(122, 67, 25, 0.08);
  transform: scale(1.05) translateY(10px);
}

.service-card:hover::after {
  width: 100%;
}

.service-card-title {
  font-size: 1.3rem;
  color: var(--color-text);
  margin-bottom: 12px;
  font-weight: 700;
  transition: color 0.3s ease;
}

.service-card:hover .service-card-title {
  color: var(--color-primary);
}

.service-card-text {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0;
}

/* ==========================================================================
   7. معرض الأعمال المميزة والأدوات (Featured Projects & Tools)
   ========================================================================== */
.projects-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.9fr 0.9fr;
  gap: 20px;
}

.project-card {
  position: relative;
  min-height: 460px;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow-md);
}

.project-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform var(--transition-slow);
}

.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.75) 100%);
}

.project-card:hover .project-image {
  transform: scale(1.08);
}

.project-overlay {
  position: absolute;
  right: 22px;
  left: 22px;
  bottom: 22px;
  z-index: 2;
}

.project-category {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--color-accent);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.project-title {
  color: var(--color-text);
}

.dimensions-tools-section .tools-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.dimensions-tools-section .tools-strip span {
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  color: var(--color-text-muted);
  transition: var(--transition-fast);
}

.dimensions-tools-section .tools-strip span:hover {
  color: var(--color-primary);
  box-shadow: var(--glow-soft);
}

/* ==========================================================================
   8. قسم التواصل والدعوة لاتخاذ إجراء (Contact CTA - شبكة رسم هندسي وزوايا حادة)
   ========================================================================== */
.contact-cta-section {
  padding: 80px 0;
  position: relative;
}

.cta-box {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  padding: 50px 60px;
  border-radius: 0; /* زوايا حادة تعكس بنية الهياكل الخرسانية */
  background: linear-gradient(135deg, rgba(20, 20, 20, 0.85), rgba(10, 10, 10, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-inline-start: 4px solid var(--color-primary); /* عمود كتلي بارز */
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

/* تأثير شبكة المخططات الهندسية في الخلفية Blueprint Grid */
.cta-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 24px 24px;
  z-index: 0;
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
}

.cta-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-primary);
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 15px;
  font-weight: 700;
}

.cta-eyebrow::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: var(--color-primary);
}

.cta-title {
  font-size: 2.2rem;
  color: #fff;
  margin: 0;
  line-height: 1.4;
  font-weight: 700;
}

.cta-actions {
  position: relative;
  z-index: 1;
}

/* زر القص المعماري الهندسي الحاد بتعبئة صلبة */
.cta-actions .hero-btn-primary {
  position: relative;
  background: transparent;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 18px 45px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0;
  transition: all 0.4s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  /* قص هندسي للزاوية السفلية */
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%);
}

.cta-actions .hero-btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: var(--color-primary);
  z-index: -1;
  transition: width 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.cta-actions .hero-btn-primary::after {
  content: "↗"; 
  font-family: system-ui, sans-serif;
  margin-inline-start: 10px;
  margin-inline-end: -20px;
  opacity: 0;
  font-size: 1.3rem;
  font-weight: 400;
  transition: all 0.4s ease;
  transform: translate(0, 10px);
}

.cta-actions .hero-btn-primary:hover {
  border-color: transparent;
  transform: translateY(-4px);
  box-shadow: 0 15px 25px rgba(122, 67, 25, 0.25);
}

.cta-actions .hero-btn-primary:hover::before {
  width: 100%;
}

.cta-actions .hero-btn-primary:hover::after {
  margin-inline-end: 0;
  opacity: 1;
  transform: translate(0, 0);
}


/* ==========================================================================
   10. قائمة الموبايل المتجاوبة (Mobile Menu Overlay & Hamburger)
   ========================================================================== */
.mobile-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px; /* ترقية هندسية بدلاً من الدائرة التقليدية */
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
  border-color: var(--color-primary);
  background: rgba(122, 67, 25, 0.1);
}

.mobile-menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  margin: 5px auto;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  background: rgba(10, 10, 10, 0.98);
  /* إكساء خلفية القائمة بشبكة المخططات الهندسية */
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 30px 30px;
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  z-index: 2500;
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.mobile-menu-overlay.open {
  transform: translateX(0);
}

.mobile-menu-content {
  padding: 40px 30px;
  height: 100%;
  overflow-y: auto;
  position: relative;
  z-index: 1;
}

.mobile-menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
}

.mobile-brand img {
  max-height: 40px;
}

.mobile-close-btn {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  transition: color 0.3s ease;
}

.mobile-close-btn:hover {
  color: var(--color-primary);
}

.mobile-lang-switch {
  margin-bottom: 30px;
}

.mobile-nav-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-nav-links li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-nav-links li a {
  display: block;
  padding: 18px 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.2rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.mobile-nav-links li a:hover,
.mobile-nav-links li a.active1 {
  color: var(--color-primary);
  padding-inline-start: 10px; /* إزاحة انسيابية دقيقة عند اللمس */
}

.mobile-contact-box {
  margin-top: 40px;
  display: grid;
  gap: 12px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-contact-box a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

.mobile-contact-box a:hover {
  color: #fff;
}

.mobile-social {
  margin-top: 25px;
  display: flex;
  gap: 20px;
}

.mobile-social a {
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.3rem;
  transition: all 0.3s ease;
}

.mobile-social a:hover {
  color: var(--color-primary);
  transform: translateY(-3px);
}

/* ==========================================================================
   11. قواعد الاستجابة للشاشات المختلفة (Media Queries Responsive)
   ========================================================================== */

@media (min-width: 1024px) {
  /* تفعيل البنتو جريد السيمتري لـ 5 عناصر في الشاشات الكبيرة لقسم الخدمات */
  .services-grid {
    grid-template-columns: repeat(6, 1fr);
  }
  .service-card:nth-child(1),
  .service-card:nth-child(2),
  .service-card:nth-child(3) {
    grid-column: span 2;
  }
  .service-card:nth-child(4) {
    grid-column: 2 / span 2;
  }
  .service-card:nth-child(5) {
    grid-column: 4 / span 2;
  }
}

@media (max-width: 1200px) {
  .dimensions-about-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .hero-title,
  .section-title {
    max-width: 100%;
  }
  .dimensions-about-grid .reveal-left,
  .dimensions-about-grid .reveal-right {
    transform: none;
  }
}

@media (max-width: 1023px) and (min-width: 641px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .service-card:nth-child(5) {
    grid-column: 1 / -1; 
  }
}

@media (max-width: 991px) {
  .smart-topbar,
  .desktop-nav-list {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  .smart-navbar,
  .navbar-inner {
    min-height: 75px;
  }
  .logo_brand img {
    max-height: 42px;
  }
  .hero-video-section {
    padding-top: 140px;
    padding-bottom: 90px;
    min-height: auto;
  }
  .hero-stats {
    grid-template-columns: 1fr;
  }
  .about-image {
    min-height: 420px;
  }
  
}

@media (max-width: 992px) {
  .cta-box {
    padding: 40px;
  }
  .cta-title {
    font-size: 1.8rem;
  }
}

@media (max-width: 768px) {
  .cta-box {
    flex-direction: column;
    align-items: flex-start;
    padding: 40px 30px;
  }
  .cta-actions {
    width: 100%;
    margin-top: 10px;
  }
  .cta-actions .hero-btn-primary {
    width: 100%;
    justify-content: space-between;
  }
 
}

@media (max-width: 640px) {
  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .hero-btn {
    width: 100%;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .service-card {
    min-height: 240px;
  }
  .project-card {
    min-height: 340px;
  }
}