/* ============================================================
   DESIGN TOKENS — Chromatic Echo System v4.2 (Clean & GPU-Optimized)
   Dark: "Navy Ink"  |  Light: "Polar Blueprint"
   Extracted directly from logo: #004F9F (Blue) + #F18700 (Orange)
============================================================ */
:root {
  /* ── Brand Identity (Immutable) ── */
  --accent: #F18700;
  --accent-light: #FFA033;
  --accent-glow: rgba(241, 135, 0, 0.35);

  /* ── Dark Mode: "Navy Ink" (Default) ── */
  --bg: #050A11;
  --bg2: #0A1320;
  --card-bg: #0A1320;

  /* ── Color Blocking (Dual-Tone) ── */
  --cb-soft-blue: #07152B;
  --cb-soft-orange: #1C0F05;

  /* ── Typography & UI ── */
  --ff: 'Cairo', sans-serif;
  --text: #FAFAFA;
  --text-secondary: rgba(200, 218, 255, 0.65);
  --muted: #6C829E;
  --border: rgba(40, 110, 190, 0.15);
  --border-strong: rgba(241, 135, 0, 0.28);

  /* ── Proportional Layout & Spacing ── */
  --section-py: clamp(80px, 10vh, 140px);
  --section-px: 5vw;
  --max-width: min(90vw, 1760px);

  /* ── Shadows ── */
  --shadow-sm: 0 2px 8px rgba(2, 13, 31, 0.5);

  /* ── Motion ── */
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-std: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: var(--ease-out);
  --t-fast: 180ms;
  --dur-std: 260ms;
  --dur-slow: 500ms;
}

/* ── Light Mode: "Polar Blueprint" ── */
[data-theme="light"] {
  --bg: #F8F9FA;
  --bg2: #FFFFFF;
  --card-bg: #FFFFFF;

  /* ── Color Blocking (Dual-Tone) ── */
  --cb-soft-blue: #F0F6FC;
  --cb-soft-orange: #FFF8F0;

  --text: #09121C;
  --text-secondary: rgba(8, 32, 70, 0.68);
  --muted: #5A7BA0;
  --border: #D4E1F2;
  --border-strong: rgba(200, 110, 0, 0.35);

  --accent: #E07800;
  --accent-light: #F18700;
  --accent-glow: rgba(200, 110, 0, 0.20);

  --shadow-sm: 0 2px 8px rgba(0, 79, 159, 0.06);
}

/* ============================================================
   BASE RESET & PROPORTIONAL VIEWPORT SCALING
============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* الحفاظ على القياس المرجعي 16px على اللابتوب والهاتف، مع التمدد المتناسق للشاشات الكبيرة */
  font-size: clamp(16px, 0.25vw + 12.4px, 20px);
}

section {
  width: 100%;
  scroll-margin-top: 85px;
}

body {
  font-family: var(--ff);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-variant-ligatures: contextual;
  letter-spacing: normal;
  overflow-x: hidden;
  transition: background-color 0.25s ease, color 0.25s ease;
}

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

ul {
  list-style: none;
}

img,
video,
svg {
  max-width: 100%;
}

/* ============================================================
   LENIS SMOOTH SCROLLING BOILERPLATE
============================================================ */
html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-smooth iframe {
  pointer-events: none;
}

/* Utilities */
.text-center {
  text-align: center !important;
}

.cb-soft-blue {
  background-color: var(--cb-soft-blue) !important;
  transition: background-color var(--dur-std) ease;
}

.cb-soft-orange {
  background-color: var(--cb-soft-orange) !important;
  transition: background-color var(--dur-std) ease;
}

/* ── إلغاء شريط المتصفح الافتراضي كلياً وإلغاء حيزه (Zero Layout Shift) ── */
html::-webkit-scrollbar,
body::-webkit-scrollbar,
*::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* ============================================================
   VIRTUAL FLOATING OVERLAY SCROLLBAR (Apple / Linear Architecture)
   يطفو حراً فوق تصميم الصفحة دون اقتطاع أي بكسل من عرض الموقع
============================================================ */
.ag-scroll-track {
  position: fixed;
  top: 0;
  right: 3px;
  width: 7px;
  height: 100vh;
  height: 100dvh;
  z-index: 999999;
  pointer-events: auto;
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s ease;
}

.ag-scroll-thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 40px;
  background-color: var(--accent);
  border-radius: 999px;
  box-shadow: 0 0 10px rgba(241, 135, 0, 0.55), 0 2px 6px rgba(0, 0, 0, 0.3);
  cursor: grab;
  will-change: transform;
  opacity: 0.9;
  transition: opacity 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.ag-scroll-thumb:hover,
.ag-scroll-track.is-dragging .ag-scroll-thumb {
  opacity: 1;
  background-color: var(--accent-light);
  box-shadow: 0 0 14px rgba(241, 135, 0, 0.85);
}

.ag-scroll-thumb:active {
  cursor: grabbing;
}

[data-theme="light"] .ag-scroll-thumb {
  background-color: var(--accent);
  box-shadow: 0 0 8px rgba(200, 110, 0, 0.4);
}

@media (pointer: coarse) {
  .ag-scroll-track {
    display: none !important;
  }
}

/* ── إخفاء شريط التمرير وتفريغ الحيز بالكامل في الهيرو لمنع أي شريط جانبي ── */
html.in-hero,
html.in-hero body {
  background-color: #050D1A !important;
  scrollbar-width: none !important;
}

html.in-hero::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

html.in-hero .ag-scroll-track {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translate3d(12px, 0, 0) !important;
}

/* ============================================================
   NAVBAR (The Architectural Ink-Curtain — GPU Accelerated)
============================================================ */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  height: clamp(92px, 6.2vw, 110px);
  padding: 0 clamp(20px, 3.8vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  --scroll-fill: 0;
  background: transparent;
  transition: padding 0.5s cubic-bezier(0.32, 0.72, 0, 1), height 0.5s cubic-bezier(0.32, 0.72, 0, 1);
  will-change: height;
}

#navbar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #020D1F;
  transform-origin: top center;
  transform: scaleY(var(--scroll-fill, 0));
  will-change: transform;
  z-index: -1;
  pointer-events: none;
}

[data-theme="light"] #navbar::before {
  background: #FFFFFF;
}

#navbar::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: rgba(241, 135, 0, 0.75);
  opacity: var(--scroll-fill, 0);
  will-change: opacity;
  z-index: 2;
  pointer-events: none;
  box-shadow: none;
}

[data-theme="light"] #navbar::after {
  background: rgba(224, 120, 0, 0.78);
}

#navbar.scrolled {
  height: clamp(84px, 5.5vw, 96px);
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.35);
}

[data-theme="light"] #navbar.scrolled {
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.05);
}

/* --- Unscrolled Navbar overrides for Dark Hero --- */
#navbar:not(.scrolled) .nav-links a,
#navbar:not(.scrolled) .theme-btn,
#navbar:not(.scrolled) .lang-btn {
  color: #ffffff !important;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

#navbar:not(.scrolled) .lang-btn {
  border-color: rgba(255, 255, 255, 0.3);
}

#navbar:not(.scrolled) .nav-logo-img {
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 1px rgba(255, 255, 255, 0.25));
}

#navbar:not(.scrolled) .nav-divider {
  background: rgba(255, 255, 255, 0.25);
}

#navbar.scrolled .theme-btn {
  color: var(--text);
  text-shadow: none;
}

#navbar.scrolled .nav-logo-img {
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}

[data-theme="light"] #navbar:not(.scrolled) .nav-logo-img,
[data-theme="light"] #navbar.scrolled .nav-logo-img {
  filter: none;
}

/* --- Layout: Pinned Anchors & Mathematical Center --- */
.nav-right {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  z-index: 2;
}

.nav-left {
  flex: 0 0 auto;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  z-index: 2;
}

.nav-divider {
  width: 1px;
  height: 22px;
  background: rgba(255, 255, 255, 0.18);
  margin: 0 4px;
}

[data-theme="light"] .nav-divider {
  background: rgba(0, 0, 0, 0.15);
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo-img {
  height: clamp(66px, 5.2vw, 82px);
  width: auto;
  max-width: clamp(260px, 24vw, 340px);
  object-fit: contain;
}

.nav-links {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(0.7rem, 1.5vw, 2.2rem);
  list-style: none;
  margin: 0;
  padding: 0;
  z-index: 1;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  padding: 8px 12px;
  white-space: nowrap;
  transition: color var(--t-fast) var(--ease), opacity var(--t-fast) var(--ease);
}

.nav-links:has(a:hover) a:not(:hover) {
  opacity: 0.5;
}

.nav-links a:hover,
.nav-links a.active {
  opacity: 1;
  color: #fff;
}

.nav-links a.active {
  position: relative;
  font-weight: 700;
  color: var(--accent) !important;
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background-color: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(241, 135, 0, 0.8);
}

#navbar.scrolled .nav-links a:hover,
#navbar.scrolled .nav-links a.active {
  color: var(--accent) !important;
}

[data-theme="light"] .nav-links a:hover,
[data-theme="light"] .nav-links a.active {
  color: var(--text);
}

[data-theme="light"] #navbar.scrolled .nav-links a:hover,
[data-theme="light"] #navbar.scrolled .nav-links a.active {
  color: var(--accent) !important;
}

/* ============================================================
   NAV CTA & LANGUAGE CONTROLS
============================================================ */
.nav-cta-dynamic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: clamp(170px, 13vw, 195px);
  padding: 0.62rem 2.2rem;
  border-radius: 50px;
  font-family: var(--ff);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  background: var(--accent);
  color: #ffffff !important;
  border: 2px solid var(--accent);
  box-shadow: 0 2px 6px rgba(241, 135, 0, 0.25);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  transition: transform var(--t-fast) var(--ease), background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

#navbar:not(.scrolled) .nav-cta-dynamic {
  background: transparent;
  color: #ffffff !important;
  border: 2px solid rgba(255, 255, 255, 0.25);
  box-shadow: none;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

#navbar:not(.scrolled) .nav-cta-dynamic:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.08) !important;
}

#navbar.scrolled .nav-cta-dynamic {
  background: var(--accent);
  color: #ffffff !important;
  border: 2px solid var(--accent);
  box-shadow: 0 2px 6px rgba(241, 135, 0, 0.25);
}

#navbar.scrolled .nav-cta-dynamic:hover {
  background: #d97700 !important;
  border-color: #d97700 !important;
  color: #ffffff !important;
  box-shadow: 0 0 20px var(--accent-glow);
}

.nav-cta-dynamic:active {
  transform: scale(0.98);
}

.nav-cta-dynamic .cta-text {
  position: relative;
  z-index: 2;
  color: #ffffff !important;
}

/* ── Language Switcher Button ── */
.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  color: #ffffff;
  font-family: var(--ff);
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: color var(--t-fast) ease, border-color var(--t-fast) ease, background-color var(--t-fast) ease;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.lang-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(241, 135, 0, 0.08);
}

[data-theme="light"] .lang-btn {
  border-color: rgba(0, 0, 0, 0.16);
  color: #09121C;
}

[data-theme="light"] .lang-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(241, 135, 0, 0.08);
}

.theme-btn {
  position: relative;
  width: 2.4rem;
  height: 2.4rem;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  outline: none;
  border-radius: 50%;
  transition: color var(--t-fast) ease, background-color var(--t-fast) ease;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.theme-btn:hover {
  color: var(--accent);
  background-color: rgba(241, 135, 0, 0.08);
}

.theme-btn svg {
  position: absolute;
  width: 1.35rem;
  height: 1.35rem;
  pointer-events: none;
  transform-origin: 50% 50%;
  will-change: transform, opacity;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

#theme-icon-sun {
  transform: rotate(0deg) scale(1);
  opacity: 1;
}

#theme-icon-moon {
  transform: rotate(-90deg) scale(0.4);
  opacity: 0;
}

[data-theme="light"] #theme-icon-sun {
  transform: rotate(90deg) scale(0.4);
  opacity: 0;
}

[data-theme="light"] #theme-icon-moon {
  transform: rotate(0deg) scale(1);
  opacity: 1;
}

/* زر القائمة الموحد للهاتف والتابلت */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  width: 38px;
  height: 38px;
  border: none;
  background: transparent;
  border-radius: 8px;
  z-index: 2000;
  position: relative;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.2s ease;
}

.hamburger:hover,
.hamburger:active {
  background: rgba(255, 255, 255, 0.08);
}

[data-theme="light"] #navbar.scrolled .hamburger:hover,
[data-theme="light"] #navbar.scrolled .hamburger:active {
  background: rgba(0, 0, 0, 0.05);
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, background-color 0.25s ease;
}

#navbar.scrolled .hamburger span {
  background: var(--text);
}

.hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   HERO SECTION
============================================================ */
#hero {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 620px;
  overflow: hidden;
  background-color: #050D1A;

  /* Lock Hero to Dark Mode Variables (Ignores Light Mode) */
  --accent: #F18700;
  --accent-light: #F18700;
  --text: #FAFAFA;
  --muted: #6C829E;
}

.hero-visual {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.hero-cinematic-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  background: rgba(5, 13, 26, 0.35);
}

.hero-content {
  position: absolute;
  right: var(--section-px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  text-align: right;
  width: 100%;
  max-width: min(85vw, 52rem);
}

.hero-video-desktop,
.hero-video-mobile {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 1;
}

.hero-video-desktop {
  display: block;
}

.hero-video-mobile {
  display: none;
}

@media (max-width: 1024px) {
  .hero-video-desktop {
    display: none !important;
  }

  .hero-video-mobile {
    display: block !important;
  }
}

/* --- العنوان الرئيسي الفخم والواضح (سطران متناسقان دائماً) --- */
.hero-headline {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.8), 0 1px 4px rgba(0, 0, 0, 0.6);
}

.hero-headline .hl-top {
  color: rgba(250, 250, 250, 0.85);
  font-size: clamp(1.4rem, 2.5vw, 2.2rem);
  font-weight: 400;
  display: block;
  line-height: 1;
  margin: 0 0 -8px 0;
  white-space: nowrap;
}

.accent-word {
  color: var(--accent);
  position: relative;
  font-weight: 800;
}

.hero-headline .accent-word {
  /* 🎛️ تحكم مباشر بكلمة "المألوف" (الكمبيوتر والتابلت):
     --word-shift-right : تحريك الكلمة لليمين
     --word-stretch-x   : طول/تمدد الكلمة أفقياً (المقاس الأصلي المعتمد: 1.15)
     --word-stretch-y   : ارتفاع الكلمة عمودياً (المقاس الأصلي المعتمد: 1) */
  --word-shift-right: clamp(5px, 0.55vw, 8px);
  --word-stretch-x: 1.15;
  --word-stretch-y: 1;

  color: var(--accent-light);
  font-size: clamp(4rem, 8vw, 8rem);
  font-weight: 900;
  display: block;
  line-height: 1.05;
  margin: 0;
  transform: translateX(var(--word-shift-right)) scale(var(--word-stretch-x), var(--word-stretch-y));
  transform-origin: right center;
}

.hero-sub {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  font-weight: 500;
  color: rgba(250, 250, 250, 0.95);
  max-width: 27.5rem;
  margin: 0 0 3rem 0;
  line-height: 1.8;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.9), 0 1px 3px rgba(0, 0, 0, 0.6);
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 0;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: clamp(170px, 13vw, 195px);
  padding: 0.62rem 2.2rem;
  background: var(--accent);
  color: #ffffff;
  font-family: var(--ff);
  font-size: 0.95rem;
  font-weight: 700;
  border: 2px solid var(--accent);
  border-radius: 50px;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(241, 135, 0, 0.25);
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
  background: #d97700;
  border-color: #d97700;
  box-shadow: 0 0 24px var(--accent-glow);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: clamp(170px, 13vw, 195px);
  padding: 0.62rem 2.2rem;
  background: transparent;
  color: #ffffff;
  font-family: var(--ff);
  font-size: 0.95rem;
  font-weight: 700;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 50px;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  transition: transform var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.08);
}

.btn-ghost:active {
  transform: scale(0.98);
}

@media (max-width: 1024px) {
  .btn-primary:active,
  .btn-ghost:active,
  .nav-cta-dynamic:active {
    transform: scale(0.98) !important;
  }
}

/* --- مؤشر التمرير --- */
.hero-scroll-hint {
  position: absolute;
  bottom: 80px;
  left: 0;
  right: 0;
  margin: 0 auto;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.hero-scroll-hint span {
  font-size: 0.68rem;
  color: var(--muted);
  text-transform: uppercase;
}

.scroll-mouse {
  width: 24px;
  height: 38px;
  border: 2px solid rgba(226, 232, 240, 0.18);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.scroll-dot {
  width: 4px;
  height: 8px;
  background: var(--accent);
  border-radius: 2px;
  animation: scrollBob 1.9s infinite;
}

@keyframes scrollBob {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  70% {
    transform: translateY(10px);
    opacity: 0;
  }
  71% {
    transform: translateY(0);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* --- Responsive Hero (Tablet & Mobile) --- */
@media (max-width: 1024px) {
  #hero {
    height: 78vh;
    min-height: 600px;
  }

  .hero-visual {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
  }
}

@media (max-width: 768px) {
  #hero {
    height: 79vh;
    min-height: 535px;
    padding: 18.5vh 6vw 7vh 6vw;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
  }

  .hero-content {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    text-align: right;
    z-index: 3;
    background: none;
    padding: 0;
  }

  .hero-headline {
    line-height: 1.25;
    margin-bottom: 1.2rem;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.7);
    width: 100%;
  }

  .hero-headline .hl-top {
    display: block;
    position: relative;
    z-index: 2;
    margin: 0 0 -6px 0;
    line-height: 1.2;
    white-space: nowrap;
  }

  .hero-headline .accent-word {
    /* 🎛️ تحكم مباشر بكلمة "المألوف" (الهاتف):
       --word-shift-right : تحريك الكلمة لليمين
       --word-stretch-x   : طول/تمدد الكلمة أفقياً (المقاس الأصلي المعتمد: 1.38)
       --word-stretch-y   : ارتفاع الكلمة عمودياً (المقاس الأصلي المعتمد: 1.2) */
    --word-shift-right: clamp(3px, 1vw, 4px);
    --word-stretch-x: 1.38;
    --word-stretch-y: 1.2;

    display: block;
    position: relative;
    z-index: 1;
    margin: 0;
    line-height: 1.08;
    transform: translateX(var(--word-shift-right)) scale(var(--word-stretch-x), var(--word-stretch-y));
    transform-origin: right center;
  }

  .hero-sub {
    margin: 0 0 1.5rem 0;
    max-width: 340px;
    width: 100%;
    font-size: clamp(11px, 2.8vw, 14px);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
  }

  .hero-scroll-hint {
    display: none !important;
  }

  .hero-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    align-items: flex-start;
    margin: 0;
  }

  .hero-actions .btn-icon {
    display: none;
  }

  .btn-ghost,
  .btn-primary {
    display: inline-flex;
    width: 100%;
    max-width: 320px;
    justify-content: center;
    align-items: center;
    padding: 8px 24px;
    text-align: center;
    font-size: 1rem;
    border-radius: 50px;
  }

  .btn-ghost {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.4);
  }
}

/* ============================================================
   MOBILE RESPONSIVENESS FIXES (Fixed Non-Shifting Header)
============================================================ */
@media (max-width: 1024px) {
  .nav-links,
  .nav-cta-dynamic {
    display: none !important;
  }

  .nav-divider {
    display: block !important;
    height: 26px;
    margin: 0 12px;
  }

  .theme-btn {
    width: 46px;
    height: 46px;
  }

  .theme-btn svg {
    width: 26px;
    height: 26px;
  }

  .hamburger {
    display: flex !important;
    width: 46px;
    height: 46px;
    padding: 8px;
    gap: 6.5px;
  }

  .hamburger span {
    width: 26px;
    height: 2.5px;
    margin: 0;
  }

  .hamburger[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

  .hamburger[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  /* تثبيت كامل للهيدر في الهواتف لمنع أي ارتفاع أو اهتزاز مع بقاء تأثير الستارة */
  #navbar,
  #navbar.scrolled {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 78px !important;
    padding: 0 20px !important;
    border-radius: 0 !important;
    margin: 0 !important;
    transition: none !important;
    transform: translateZ(0);
  }

  #navbar.scrolled {
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.12);
  }

  .nav-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
  }

  .nav-left {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
  }

  .nav-logo-img {
    height: clamp(48px, 5.5vw, 58px);
    width: auto;
    max-width: clamp(190px, 56vw, 240px);
    object-fit: contain;
  }
}

/* ============================================================
   MOBILE MENU OVERLAY (Unified Luxury Overlay)
============================================================ */
.mobile-menu-fs {
  position: fixed;
  top: 90px;
  right: 3vw;
  left: 3vw;
  width: auto;
  height: auto;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  background: rgba(5, 13, 26, 0.96);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  z-index: 1500;
  display: flex;
  flex-direction: column;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform-origin: top center;
  transform: translate3d(0, -10px, 0) scale(0.98);
  transition: opacity 0.3s ease, visibility 0.3s, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu-fs.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate3d(0, 0, 0) scale(1);
}

[data-theme="light"] .mobile-menu-fs {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 30px rgba(0, 79, 159, 0.08);
}

.mob-links {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  text-align: center;
}

.mob-links a {
  font-size: 1.15rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  transition: color 0.2s ease, background-color 0.2s ease;
  display: block;
}

[data-theme="light"] .mob-links a {
  color: rgba(10, 21, 37, 0.9);
  background: rgba(0, 0, 0, 0.04);
}

.mob-links a:hover,
.mob-links a:active,
.mob-links a.active {
  color: var(--accent);
  background: rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .mob-links a:hover,
[data-theme="light"] .mob-links a:active,
[data-theme="light"] .mob-links a.active {
  background: rgba(0, 0, 0, 0.08);
}

.mob-cta {
  margin-top: 24px;
  border: 1px solid var(--accent);
  color: #fff !important;
  background: var(--accent);
  font-size: 1.1rem !important;
  font-weight: 500;
  padding: 12px;
  border-radius: 50px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(241, 135, 0, 0.25);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  display: block;
}

.mob-cta:active,
.mob-cta:hover {
  background: rgba(241, 135, 0, 0.85);
  color: #fff !important;
  border-color: rgba(241, 135, 0, 0.85);
  box-shadow: 0 4px 12px rgba(241, 135, 0, 0.35);
  transform: scale(0.98);
}

[data-theme="light"] .mob-cta {
  color: #fff !important;
  border-color: var(--accent);
  background: var(--accent);
}

[data-theme="light"] .mob-cta:active,
[data-theme="light"] .mob-cta:hover {
  background: rgba(241, 135, 0, 0.85);
  color: #fff !important;
  border-color: rgba(241, 135, 0, 0.85);
}

/* ============================================================
   MAIN CONTENT WRAPPER
============================================================ */
.page-content-wrapper {
  position: relative;
  z-index: 10;
  background-color: var(--bg);
  transition: background-color var(--dur-std) ease;
}

/* ============================================================
   SUCCESS PARTNERS MARQUEE
============================================================ */
.partners-section {
  padding: 40px 0 30px 0;
  background-color: var(--bg);
  border-top: none;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  z-index: 20;
}

.partners-viewport {
  width: 100%;
  overflow: hidden;
  position: relative;
  direction: ltr;
  mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.partners-viewport::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50vw;
  height: 100%;
  background: radial-gradient(ellipse at center, rgba(241, 135, 0, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.partners-track {
  display: flex;
  width: max-content;
  gap: clamp(10px, 2vw, 32px);
  animation: marquee-scroll 24s linear infinite;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  position: relative;
  z-index: 1;
}

@media (hover: hover) {
  .partners-viewport:hover .partners-track {
    animation-play-state: paused;
  }
}

.partner-card {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  padding: 15px clamp(12px, 2.5vw, 32px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  -webkit-tap-highlight-color: transparent;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.partner-card:hover,
.partner-card.is-active {
  transform: translateY(-4px);
}

.partner-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, 0.7) 50%, rgba(255, 255, 255, 0) 60%, transparent 100%);
  transform: skewX(-25deg);
  z-index: 2;
  pointer-events: none;
}

.partner-card:hover::after,
.partner-card.is-active::after {
  animation: spot-uv-shine 0.85s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes spot-uv-shine {
  0% {
    left: -150%;
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    left: 150%;
    opacity: 0;
  }
}

.partner-img {
  height: clamp(56px, 6vw, 90px);
  width: auto;
  max-width: 320px;
  object-fit: contain;
  display: block;
  filter: brightness(0) invert(1) opacity(0.65);
  transition: filter 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  z-index: 1;
}

[data-theme="light"] .partner-img {
  filter: grayscale(100%) contrast(1.2) opacity(0.8);
}

.partner-card:hover .partner-img,
.partner-card.is-active .partner-img {
  filter: grayscale(0) brightness(1) opacity(1) drop-shadow(0px 8px 12px rgba(0, 0, 0, 0.4));
  transform: scale(1.08);
}

[data-theme="light"] .partner-card:hover .partner-img,
[data-theme="light"] .partner-card.is-active .partner-img {
  filter: grayscale(0) brightness(1) opacity(1) drop-shadow(0px 8px 12px rgba(0, 0, 0, 0.12));
}

@keyframes marquee-scroll {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(var(--marquee-shift, -50%), 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .partners-track {
    animation: none;
  }

  body,
  .theme-btn svg {
    transition: none !important;
  }
}

/* ============================================================
   IMPACT NUMBERS SECTION (The Editorial Monolith)
============================================================ */
.impact-section {
  padding: var(--section-py) var(--section-px);
  position: relative;
  background-color: var(--bg2);
  color: var(--text);
  overflow: hidden;
  z-index: 5;
}

:root:not([data-theme="light"]) .impact-section::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255, 138, 0, 0.04) 0%, rgba(255, 138, 0, 0) 65%);
  pointer-events: none;
  z-index: 0;
}

.impact-container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.impact-strip {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  position: relative;
  width: 100%;
  max-width: min(88vw, 1560px);
  margin: 0 auto;
}

.impact-strip-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 10px clamp(24px, 3vw, 56px);
  position: relative;
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

.impact-strip-stat:first-of-type {
  padding-right: 0;
  padding-left: clamp(24px, 3vw, 56px);
}

.impact-strip-stat:last-of-type {
  padding-left: 0;
  padding-right: clamp(24px, 3vw, 56px);
}

.impact-strip-stat.visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.impact-strip-stat:nth-of-type(1) {
  transition-delay: 0.1s;
}

.impact-strip-stat:nth-of-type(2) {
  transition-delay: 0.25s;
}

.impact-strip-stat:nth-of-type(3) {
  transition-delay: 0.4s;
}

.impact-strip-divider {
  width: 1px;
  align-self: stretch;
  background: linear-gradient(180deg, transparent 0%, var(--border) 20%, var(--border) 80%, transparent 100%);
  opacity: 0.9;
  flex-shrink: 0;
}

.impact-num-wrap {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  margin-bottom: 14px;
}

.impact-num {
  font-family: var(--ff);
  font-size: clamp(4.8rem, 6.8vw, 7.5rem);
  font-weight: 900;
  color: var(--text);
  line-height: 0.92;
  font-variant-numeric: tabular-nums;
}

.impact-plus {
  font-family: var(--ff);
  font-size: clamp(3rem, 4.2vw, 4.5rem);
  font-weight: 900;
  color: var(--accent);
  margin-left: 12px;
  line-height: 1;
  display: inline-block;
  text-shadow: 0 0 15px rgba(241, 135, 0, 0.35);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), text-shadow 0.35s ease;
}

.impact-strip-stat:hover .impact-plus {
  transform: scale(1.15) translateY(-2px);
  text-shadow: 0 0 25px rgba(241, 135, 0, 0.6);
}

.impact-stat-title {
  font-family: var(--ff);
  font-size: clamp(1.22rem, 1.55vw, 1.48rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  margin: 0 0 14px 0;
}

.impact-stat-story {
  font-family: var(--ff);
  font-size: 0.98rem;
  line-height: 1.82;
  color: var(--text-secondary);
  margin: 0;
  font-weight: 400;
}

[data-theme="light"] .impact-strip-divider {
  background: linear-gradient(180deg, transparent 0%, rgba(0, 79, 159, 0.2) 20%, rgba(0, 79, 159, 0.2) 80%, transparent 100%);
}

@media (max-width: 991px) {
  .impact-section {
    padding: 80px 5vw;
  }

  .impact-strip {
    flex-direction: column;
    max-width: 540px;
    gap: 32px;
  }

  .impact-strip-stat,
  .impact-strip-stat:first-of-type,
  .impact-strip-stat:last-of-type {
    padding: 0;
  }

  .impact-strip-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--border) 20%, var(--border) 80%, transparent 100%);
    margin: 4px 0;
  }

  [data-theme="light"] .impact-strip-divider {
    background: linear-gradient(90deg, transparent 0%, rgba(0, 79, 159, 0.2) 20%, rgba(0, 79, 159, 0.2) 80%, transparent 100%);
  }

  .impact-num {
    font-size: clamp(3.8rem, 12vw, 5rem);
  }
}

/* ============================================================
   UNIFIED SECTION HEADER SYSTEM
============================================================ */
.section-header-unified {
  display: flex;
  flex-direction: column;
  margin-top: 10px;
  margin-bottom: clamp(44px, 5vw, 68px);
}

.section-header-unified.text-center {
  align-items: center;
  text-align: center;
}

.section-header-unified.text-right {
  align-items: flex-start;
  text-align: right;
}

.shu-kicker {
  display: block;
  font-size: clamp(0.85rem, 1vw, 1.05rem);
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 20px;
  text-transform: uppercase;
}

.shu-title {
  position: relative;
  width: fit-content;
  font-size: clamp(2.5rem, 4.8vw, 4.4rem);
  font-weight: 900;
  color: var(--text);
  margin: 0 0 56px 0;
  line-height: 1.15;
}

/* ── The Artistic Soft Divider (Ink Drop & Faded Wings) ── */
.shu-title::after {
  content: '';
  position: absolute;
  bottom: -36px;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(220px, 34vw, 380px);
  height: 8px;
  background:
    linear-gradient(to right, transparent, var(--muted)) left center / calc(50% - 14px) 1.5px no-repeat,
    radial-gradient(circle, var(--accent) 45%, transparent 55%) center / 8px 8px no-repeat,
    linear-gradient(to left, transparent, var(--muted)) right center / calc(50% - 14px) 1.5px no-repeat;
}

.shu-desc {
  font-size: clamp(1rem, 1.15vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 38rem;
  margin: 0;
  text-wrap: balance;
  line-height: 1.8;
}

.section-header-unified.text-center .shu-desc {
  margin-left: auto;
  margin-right: auto;
}

/* ── Services Section Header Description: Exact Single Line on Desktop ── */
#services .shu-desc {
  max-width: 62rem;
}

@media (min-width: 900px) {
  #services .shu-desc {
    white-space: nowrap;
  }
}

/* ── FAQ Section Header Description: Exactly 2 Balanced Lines ── */
.faq-header-column .shu-desc {
  max-width: 34rem;
  transform: translateX(55px);
}

@media (max-width: 600px) {
  .faq-desc-br {
    display: none;
  }
}

/* ============================================================
   PORTFOLIO SECTION (Cinematic Showcase)
============================================================ */
.portfolio-cinematic-section {
  padding: 0;
  background-color: var(--bg);
  border-top: 1px solid var(--border);
}

.pc-layout {
  display: flex;
  width: 100%;
  height: calc(100vh - 85px);
  min-height: calc(100vh - 85px);
}

.pc-sidebar {
  width: 32%;
  padding: clamp(40px, 5vw, 72px) var(--section-px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: transparent;
  border-left: none;
  position: relative;
  z-index: 10;
}

.pc-title {
  position: relative;
  width: fit-content;
  font-size: clamp(3.2rem, 4.8vw, 5.8rem);
  font-weight: 900;
  color: var(--text);
  margin: 0 0 45px 0;
  line-height: 1.1;
}

.pc-title::after {
  content: '';
  position: absolute;
  bottom: -24px;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(220px, 24vw, 350px);
  height: 8px;
  background:
    linear-gradient(to right, transparent, var(--muted)) left center / calc(50% - 14px) 1.5px no-repeat,
    radial-gradient(circle, var(--accent) 45%, transparent 55%) center / 8px 8px no-repeat,
    linear-gradient(to left, transparent, var(--muted)) right center / calc(50% - 14px) 1.5px no-repeat;
}

.pc-desc {
  font-size: clamp(1rem, 1.1vw, 1.15rem);
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 26px;
  max-width: 92%;
  margin-right: -30px; 
}

.pc-viewport {
  width: 68%;
  position: relative;
  overflow: hidden;
  background-color: transparent;
}

.pc-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  clip-path: inset(0 0 0 100%);
  transition: none;
  z-index: 0;
  pointer-events: none;
}

.pc-slide.prev {
  opacity: 1;
  clip-path: inset(0 0 0 0);
  z-index: 1;
  transition: none;
  pointer-events: none;
}

.pc-slide.active {
  opacity: 1;
  clip-path: inset(0 0 0 0);
  z-index: 2;
  transition: clip-path 1.2s cubic-bezier(0.77, 0, 0.175, 1), opacity 1.2s;
  pointer-events: auto;
}

.pc-canvas {
  width: 92%;
  height: 92%;
  border-radius: clamp(18px, 1.6vw, 28px);
  overflow: hidden;
  box-shadow: none;
  position: relative;
  background-color: var(--bg);
  transform: translateZ(0);
}

.pc-canvas::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(to top, rgba(2, 8, 16, 0.95) 0%, rgba(2, 8, 16, 0.4) 50%, transparent 100%);
  pointer-events: none;
  z-index: 2;
}

.pc-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1);
}

.pc-slide.active .pc-img,
.pc-slide.prev .pc-img {
  animation: kenBurns 10s ease-out forwards;
}

@keyframes kenBurns {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.08);
  }
}

.pc-content {
  position: absolute;
  bottom: clamp(28px, 3vw, 48px);
  right: clamp(28px, 3vw, 48px);
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  pointer-events: none;
}

.pc-slide-title {
  font-size: clamp(1.8rem, 2.8vw, 2.6rem);
  font-weight: 900;
  color: #ffffff;
  margin: 0 0 5px 0;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 2px 10px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(30px);
  clip-path: inset(100% 0 -20% 0);
  transition: none;
}

.pc-slide.active .pc-slide-title {
  opacity: 1;
  transform: translateY(0);
  clip-path: inset(-20% -20% -20% -20%);
  transition: opacity 0.6s ease 0.8s, transform 0.8s cubic-bezier(0.25, 1, 0.5, 1) 0.8s, clip-path 0.8s cubic-bezier(0.25, 1, 0.5, 1) 0.8s;
}

@media (max-width: 1024px) {
  .pc-layout {
    flex-direction: column;
    height: auto;
    min-height: auto;
  }

  .pc-sidebar {
    width: 100%;
    padding: 60px 5vw;
    border-left: none;
    border-bottom: 1px solid var(--border);
  }

  .pc-viewport {
    width: 100%;
    height: 68vh;
    min-height: 420px;
  }

  .pc-title {
    font-size: 3rem;
  }
}

/* ============================================================
   PORTFOLIO NAVIGATION CONTROLS & HORIZON ACTION
============================================================ */
.pc-nav-controls {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-top: 0;
  margin-bottom: 30px;
  position: relative;
}

@media (max-width: 1200px) {
  .pc-nav-controls {
    justify-content: space-between;
    padding-left: 10px;
    padding-right: 10px;
  }
}

.pc-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.pc-dot {
  width: 10px;
  height: 6px;
  border-radius: 6px;
  background: var(--border);
  border: none;
  cursor: pointer;
  transition: width 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), background-color 0.25s ease, transform 0.25s ease;
  padding: 0;
  flex-shrink: 0;
}

[data-theme="light"] .pc-dot {
  background: rgba(0, 0, 0, 0.16);
}

.pc-dot:hover {
  background: var(--text-secondary);
  transform: scaleY(1.3);
}

.pc-dot.active {
  width: 28px;
  background: var(--accent);
  transform: none;
}

.pc-arrow {
  display: flex;
  align-items: center;  
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #0E1B2E;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #FFFFFF;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
  flex-shrink: 0;
}

[data-theme="light"] .pc-arrow {
  background: #FFFFFF;
  border-color: rgba(0, 0, 0, 0.09);
  color: #0F172A;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.07), 0 1px 3px rgba(0, 0, 0, 0.04);
}

.pc-arrow:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #FFFFFF;
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(241, 135, 0, 0.38);
}

[data-theme="light"] .pc-arrow:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #FFFFFF;
  box-shadow: 0 6px 20px rgba(241, 135, 0, 0.35);
}

.pc-horizon-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
  cursor: pointer;
  width: fit-content;
  max-width: 100%;
  margin: 48px 0 0 0;
  padding: 0;
}

.pc-horizon-btn .horizon-text-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding-bottom: 8px;
  color: var(--text);
}

.pc-horizon-btn .horizon-text {
  font-family: var(--ff);
  font-size: clamp(1.05rem, 1.22vw, 1.25rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.4;
  transition: color 0.3s ease;
}

[data-theme="light"] .pc-horizon-btn .horizon-text {
  color: #0b162c;
}

.pc-horizon-btn .horizon-arrow {
  width: 22px;
  height: 22px;
  color: var(--accent);
  transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1), color 0.3s ease;
  flex-shrink: 0;
}

.pc-horizon-btn .horizon-line-track {
  width: 100%;
  height: 2px;
  background: rgba(241, 135, 0, 0.22);
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}

[data-theme="light"] .pc-horizon-btn .horizon-line-track {
  background: rgba(0, 0, 0, 0.12);
}

.pc-horizon-btn .horizon-line-fill {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s cubic-bezier(0.19, 1, 0.22, 1);
  box-shadow: 0 0 8px var(--accent-glow);
}

.pc-horizon-btn:hover .horizon-line-fill {
  transform: scaleX(1);
}

.pc-horizon-btn:hover .horizon-text {
  color: var(--accent);
}

.pc-horizon-btn:hover .horizon-arrow {
  transform: translate(-5px, -5px);
  color: var(--accent);
}

/* ============================================================
   SERVICES SECTION (Editorial Grid & Stacking Panels)
============================================================ */
.editorial-services-section {
  padding: var(--section-py) var(--section-px);
  background-color: var(--bg2);
  position: relative;
}

.es-container {
  width: 100%;
  max-width: min(90vw, 1620px);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.stacking-services-container {
  position: relative;
  padding-top: 5vh;
  padding-bottom: 18vh;
}

.stack-card {
  position: sticky;
  height: 75vh;
  min-height: 480px;
  max-height: 860px;
  width: 100%;
  border-radius: clamp(24px, 2.2vw, 38px);
  overflow: hidden;
  margin-bottom: 5vh;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.14);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  will-change: transform;
  contain: layout paint;
}

.stack-card:nth-child(1) {
  top: 12vh;
  z-index: 10;
}

.stack-card:nth-child(2) {
  top: 15vh;
  z-index: 11;
}

.stack-card:nth-child(3) {
  top: 18vh;
  z-index: 12;
}

.stack-card:nth-child(4) {
  top: 21vh;
  z-index: 13;
}

.stack-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.stack-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to left, rgba(5, 13, 26, 0.95) 0%, rgba(5, 13, 26, 0.6) 45%, transparent 80%);
  z-index: 2;
}

.stack-content {
  position: relative;
  z-index: 3;
  padding: clamp(36px, 4.5vw, 72px) 5vw clamp(36px, 4.5vw, 72px) clamp(36px, 4.5vw, 72px);
  color: #ffffff;
  max-width: 44rem;
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.stack-title {
  font-size: clamp(2.2rem, 3.4vw, 3.6rem);
  font-weight: 800;
  margin: 0 0 20px 0;
  color: #ffffff;
  line-height: 1.2;
}

.stack-desc {
  font-size: clamp(1.02rem, 1.2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
  margin: 0 0 30px 0;
  max-width: 36rem;
}

.stack-btn {
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: var(--accent);
  padding: 10px 0;
  font-size: clamp(1.05rem, 1.15vw, 1.25rem);
  font-weight: 700;
  text-decoration: none;
  transition: color 0.25s ease;
  width: max-content;
}

.stack-btn svg {
  margin-right: 10px;
  transition: transform 0.3s ease;
}

.stack-btn:hover {
  color: #ffffff;
}

.stack-btn:hover svg {
  transform: translateX(-8px);
}

@media (max-width: 992px) {
  .stack-card {
    height: 70vh;
    min-height: 460px;
    border-radius: 24px;
  }

  .stack-content {
    padding: 40px 30px;
    max-width: 85%;
  }

  .stack-title {
    font-size: 2.3rem;
    margin-bottom: 16px;
  }

  .stack-desc {
    font-size: 1.05rem;
    margin-bottom: 24px;
  }

  .stack-btn {
    font-size: 1.1rem;
    padding: 6px 0;
  }
}

@media (max-width: 768px) {
  .stacking-services-container {
    padding-top: 2vh;
    padding-bottom: 10vh;
  }

  .stack-card:nth-child(1),
  .stack-card:nth-child(2),
  .stack-card:nth-child(3),
  .stack-card:nth-child(4) {
    top: 75px;
  }

  .stack-card {
    height: 65vh;
    min-height: 420px;
    border-radius: 20px;
    margin-bottom: 3vh;
  }

  .stack-overlay {
    background: linear-gradient(to top, rgba(5, 13, 26, 0.95) 0%, rgba(5, 13, 26, 0.75) 25%, rgba(5, 13, 26, 0.25) 45%, transparent 65%);
  }

  .stack-content {
    padding: 24px 20px;
    max-width: 100%;
  }

  .stack-title {
    font-size: 1.75rem;
    margin-bottom: 12px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  }

  .stack-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 18px;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
  }

  .stack-btn {
    font-size: 1rem;
    padding: 4px 0;
  }
}

/* ============================================================
   CINEMATIC OPTICAL REVEAL (GPU Accelerated — Zero Scroll Lag)
============================================================ */
.optical-reveal {
  opacity: 0;
  transform: translate3d(0, 18px, 0) scale(1.02);
  backface-visibility: hidden;
  will-change: opacity, transform;
}

.section-revealed .optical-reveal {
  opacity: 1 !important;
  transform: translate3d(0, 0, 0) scale(1) !important;
  transition: opacity 0.75s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.85s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: auto;
}

/* ============================================================
   WHY US SECTION — "ADVERTISING SPOTLIGHT"
============================================================ */
.spotlight-section {
  background-color: var(--bg);
  padding: var(--section-py) 0;
  position: relative;
  overflow: hidden;
}

.spotlight-container {
  width: 100%;
  max-width: min(90vw, 1620px);
  margin: 0 auto;
  padding: 0 var(--section-px);
}

.spotlight-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  gap: 20px;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
}

@media (hover: hover) {
  .spotlight-list:has(.spotlight-item:hover) .spotlight-item:not(:hover) {
    opacity: 0.15;
    filter: blur(4px);
    transform: scale(0.95);
  }
}

.spotlight-item {
  width: 100%;
  max-width: 100%;
  text-align: center;
  position: relative;
  cursor: pointer;
  padding: 20px 0;
  margin: 0 auto;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), filter 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
  -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) {
  .spotlight-item:hover {
    z-index: 10;
    transform: scale(1.05);
  }
}

.spotlight-title {
  position: relative;
  font-size: clamp(2.8rem, 7vw, 6.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin: 0;
  text-transform: uppercase;
  white-space: nowrap;

  /* رسم الحد الخارجي خلف تعبئة لون القسم لمنع ظهور تقاطعات الحروف الداخلية نهائياً على كل الشاشات */
  color: var(--cb-soft-blue);
  paint-order: stroke fill;
  -webkit-text-stroke: 3.5px rgba(255, 255, 255, 0.45);
  transition: color var(--dur-std) ease, -webkit-text-stroke-color var(--dur-std) ease, text-shadow 0.4s ease;
}

[data-theme="light"] .spotlight-title {
  -webkit-text-stroke: 3.5px rgba(0, 0, 0, 0.4);
}

.spotlight-title::before {
  content: attr(data-num);
  display: block;
  font-family: var(--ff);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-secondary);
  margin-bottom: 10px;
  opacity: 0.5;
  transform: translateY(0);
  -webkit-text-stroke: 0px transparent;
  transition: opacity 0.35s ease, color 0.35s ease;
}

.spotlight-item:hover .spotlight-title::before,
.spotlight-item:active .spotlight-title::before {
  opacity: 1;
  color: var(--accent);
}

.spotlight-item:hover .spotlight-title,
.spotlight-item:active .spotlight-title {
  color: var(--text);
  -webkit-text-stroke: 0px transparent;
}

:root:not([data-theme="light"]) .spotlight-item:hover .spotlight-title,
:root:not([data-theme="light"]) .spotlight-item:active .spotlight-title {
  text-shadow: 0 0 40px rgba(255, 255, 255, 0.1);
}

.spotlight-desc-wrapper {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.spotlight-desc {
  overflow: hidden;
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  color: var(--text-secondary);
  line-height: 1.85;
  max-width: 44rem;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.6s ease, transform 0.6s ease, padding-top 0.6s ease;
}

.spotlight-item:hover .spotlight-desc-wrapper,
.spotlight-item:active .spotlight-desc-wrapper {
  grid-template-rows: 1fr;
}

.spotlight-item:hover .spotlight-desc,
.spotlight-item:active .spotlight-desc {
  opacity: 1;
  transform: translateY(0);
  padding-top: clamp(32px, 3.5vw, 48px);
}

@media (max-width: 768px) {
  .spotlight-title {
    font-size: clamp(2.2rem, 8.5vw, 4rem);
    -webkit-text-stroke: 3px rgba(255, 255, 255, 0.5);
  }

  [data-theme="light"] .spotlight-title {
    -webkit-text-stroke: 3px rgba(0, 0, 0, 0.45);
  }

  .spotlight-list {
    gap: 28px;
  }

  .spotlight-item {
    padding: 12px 0;
  }
}

/* ============================================================
   PROCESS SECTION — "EDITORIAL TYPOGRAPHY" (GPU Accelerated)
============================================================ */
.process-section {
  padding: var(--section-py) var(--section-px);
  background-color: var(--bg2);
  color: var(--text);
  position: relative;
  overflow: hidden;
  z-index: 5;
}

:root:not([data-theme="light"]) .process-section::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  height: 90%;
  background: radial-gradient(circle, rgba(241, 135, 0, 0.035) 0%, rgba(241, 135, 0, 0) 70%);
  pointer-events: none;
  z-index: 1;
}

.process-container {
  width: 100%;
  max-width: min(90vw, 1680px);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.process-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(36px, 5vw, 80px);
  margin-top: clamp(50px, 6vw, 80px);
  transform: translateX(clamp(-55px, -2.5vw, -15px));
}

@media (max-width: 1150px) {
  .process-timeline {
    transform: none;
  }
}

.timeline-track {
  position: absolute;
  top: 40px;
  right: 40px;
  width: calc(66.666% + 53.33px);
  height: 2px;
  background: var(--border);
  z-index: 0;
  display: block;
}

.timeline-track-fill {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 100%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
  transform-origin: right center;
  transform: scaleX(0);
  will-change: transform;
  z-index: 1;
}

[data-theme="light"] .timeline-track {
  background: rgba(0, 79, 159, 0.15);
}

.timeline-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  z-index: 2;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
}

@media (hover: hover) {
  .process-timeline:hover .timeline-step:not(:hover) {
    opacity: 0.35;
    filter: grayscale(40%);
  }

  .timeline-step:hover {
    transform: translateY(-8px);
  }

  .timeline-step:hover .timeline-node {
    border-color: var(--accent);
    box-shadow: 0 15px 40px var(--accent-glow);
  }

  .timeline-step:hover .timeline-num {
    color: var(--accent);
    transform: scale(1.05);
  }
}

.timeline-node {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--bg2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 40px;
  position: relative;
  z-index: 3;
  transition: border-color 0.4s ease, box-shadow 0.4s ease, background-color var(--dur-std) ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .timeline-node {
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 10px 30px rgba(0, 79, 159, 0.05);
}

.timeline-num {
  font-family: var(--ff);
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 1;
  color: var(--text-secondary);
  transition: color 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-content {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: right;
  width: 100%;
  max-width: 22rem;
  gap: 16px;
}

.timeline-title {
  font-size: clamp(1.35rem, 1.8vw, 1.65rem);
  font-weight: 800;
  color: var(--text);
  margin: 0;
  position: relative;
}

.timeline-desc {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-secondary);
  font-weight: 500;
  margin: 0;
}

.timeline-step.active {
  transform: translateY(-8px);
}

.timeline-step.active .timeline-node {
  border-color: var(--accent);
  box-shadow: 0 15px 40px var(--accent-glow);
}

.timeline-step.active .timeline-num {
  color: var(--accent);
  transform: scale(1.05);
}

@media (max-width: 900px) {
  .process-timeline {
    grid-template-columns: 1fr;
    gap: 60px;
    margin-top: 40px;
    padding-right: 50px;
    transform: none;
  }

  .timeline-track {
    display: block;
    top: 30px;
    right: -21px;
    width: 2px;
    height: calc(100% - 60px);
  }

  .timeline-track-fill {
    width: 100%;
    height: 100%;
    transform-origin: top center;
    transform: scaleY(0);
  }

  .timeline-step {
    flex-direction: row;
    align-items: flex-start;
    text-align: right;
  }

  .timeline-node {
    position: absolute;
    right: -50px;
    top: 0;
    width: 60px;
    height: 60px;
    margin-bottom: 0;
  }

  .timeline-num {
    font-size: 1.8rem;
  }

  .timeline-content {
    padding-right: 40px;
    padding-left: 0;
    align-items: flex-start;
    margin-top: 10px;
    max-width: 100%;
  }

  .timeline-desc {
    max-width: 100%;
    margin: 0;
  }
}

/* ============================================================
   ABOUT SECTION — "CINEMATIC FOCUS TYPOGRAPHY" & INK TIMELINE
============================================================ */
.focus-about-section {
  background-color: var(--bg2);
  padding: var(--section-py) 0;
  position: relative;
  overflow: hidden;
}

.focus-container {
  width: 100%;
  max-width: min(90vw, 1600px);
  margin: 0 auto;
  padding: 0 var(--section-px);
  position: relative;
}

.focus-intro {
  max-width: min(85vw, 52rem);
  margin: 0 auto 60px auto;
  padding-bottom: 60px;
  text-align: center;
  font-size: clamp(1.05rem, 1.2vw, 1.2rem);
  line-height: 1.85;
  color: var(--text-secondary);
}

.focus-intro p {
  margin-bottom: 20px;
}

.focus-intro p:last-child {
  margin-bottom: 0;
}

.focus-list-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 60px;
}

@media (hover: hover) and (min-width: 768px) {
  .focus-list-wrapper:hover .focus-item {
    opacity: 0.2;
    filter: blur(3px);
    transform: scale(0.99);
  }

  .focus-list-wrapper .focus-item:hover {
    opacity: 1;
    filter: blur(0);
    transform: scale(1) translateX(-8px);
  }

  .focus-list-wrapper .focus-item:hover .focus-title {
    color: var(--accent);
  }

  .focus-list-wrapper .focus-item:hover .focus-desc {
    color: var(--text);
  }
}

.focus-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(36px, 4vw, 60px) 0;
  transition: opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1), filter 0.5s cubic-bezier(0.25, 1, 0.5, 1), transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  gap: clamp(28px, 4vw, 56px);
  cursor: default;
}

.focus-title-wrap {
  flex: 0 0 35%;
  display: flex;
  align-items: center;
}

.focus-title {
  font-size: clamp(3rem, 5.2vw, 5.2rem);
  font-weight: 900;
  color: var(--text);
  margin: 0;
  line-height: 1.1;
  transition: color 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.focus-desc-wrap {
  flex: 1;
}

.focus-desc {
  font-size: clamp(1.15rem, 1.7vw, 1.6rem);
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 46rem;
  margin: 0;
  transition: color 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

@media (max-width: 768px) {
  .focus-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 36px 0;
  }

  .focus-title-wrap {
    flex: auto;
  }

  .focus-title {
    font-size: clamp(2.2rem, 6vw, 2.8rem);
  }

  .focus-desc {
    font-size: 1.15rem;
  }
}

/* --- Spot UV Watermark (Cinematic Macro View) --- */
.spot-uv-watermark {
  position: absolute;
  top: 50px;
  left: -210px;
  width: clamp(480px, 45vw, 760px);
  height: clamp(480px, 45vw, 760px);
  pointer-events: none;
  z-index: 0;
  background-image: url('adengulf-est.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  filter: grayscale(100%);
  opacity: 0.09;
  transition: opacity 0.5s ease;
}

.focus-about-section:hover .spot-uv-watermark {
  opacity: 0.12;
}

/* --- Ink Flow Timeline (Scroll-Driven GPU Accelerated) --- */
.ink-timeline {
  margin: 60px auto 80px auto;
  width: 100%;
  max-width: min(85vw, 62rem);
  position: relative;
  z-index: 2;
  height: 120px;
}

.ink-line-bg {
  position: absolute;
  top: 50px;
  right: 0;
  left: 0;
  height: 2px;
  background-color: var(--border);
  z-index: 1;
}

.ink-line-fill {
  position: absolute;
  top: 50px;
  right: 0;
  width: 100%;
  height: 2px;
  background-color: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
  transform-origin: right center;
  transform: scaleX(0);
  will-change: transform;
  z-index: 2;
}

.ink-nodes {
  display: flex;
  justify-content: space-between;
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 3;
}

.ink-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  width: clamp(110px, 12vw, 160px);
}

.ink-year {
  font-size: clamp(1.6rem, 2vw, 2.1rem);
  font-weight: 900;
  color: var(--text);
  font-family: var(--ff);
  margin-bottom: 12px;
  transition: color 0.35s ease;
  line-height: 1;
}

.ink-drop {
  width: 16px;
  height: 16px;
  background-color: var(--bg2);
  border: 2px solid var(--border);
  border-radius: 50%;
  margin-bottom: 15px;
  transition: background-color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
  box-shadow: 0 0 0 6px var(--bg2);
  position: relative;
}

.ink-node.active .ink-drop {
  background-color: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 15px var(--accent-glow), 0 0 0 6px var(--bg2);
}

.ink-node.active .ink-year {
  color: var(--accent);
}

.ink-label {
  font-size: clamp(0.95rem, 1.1vw, 1.15rem);
  color: var(--text-secondary);
  font-weight: 600;
  text-align: center;
  transition: color 0.35s ease;
}

.ink-node.active .ink-label {
  color: var(--text);
}

@media (max-width: 768px) {
  .ink-timeline {
    height: 400px;
    width: 100%;
    max-width: 320px;
    margin: 40px auto;
  }

  .ink-line-bg {
    top: 0;
    bottom: 0;
    right: 50px;
    left: auto;
    width: 2px;
    height: 100%;
  }

  .ink-line-fill {
    top: 0;
    right: 50px;
    width: 2px;
    height: 100%;
    transform-origin: top center;
    transform: scaleY(0);
  }

  .ink-nodes {
    flex-direction: column;
    height: 100%;
    right: 0;
  }

  .ink-node {
    flex-direction: row-reverse;
    width: 100%;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
  }

  .ink-year {
    margin: 0;
    width: 70px;
    text-align: right;
  }

  .ink-drop {
    margin: 0;
    position: absolute;
    right: 43px;
  }

  .ink-label {
    margin: 0;
    text-align: left;
    margin-right: 90px;
  }

  .spot-uv-watermark {
    width: 440px;
    height: 440px;
    background-position: center;
    background-size: contain;
    top: 60px;
    left: -132px;
    opacity: 0.07;
  }
}

/* ============================================================
   FAQ SECTION (SPLIT CARDS LAYOUT)
============================================================ */
.faq-section {
  padding: var(--section-py) 0;
  background-color: var(--bg);
  position: relative;
  overflow: hidden;
}

.faq-split-container {
  width: 100%;
  max-width: min(90vw, 1680px);
  margin: 0 auto;
  padding: 0 var(--section-px);
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: clamp(36px, 5.5vw, 90px);
  align-items: start;
}

.faq-header-column {
  position: sticky;
  top: 140px;
}

.faq-accordion-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-card {
  background-color: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, background-color var(--dur-std) ease;
}

[data-theme="light"] .faq-card {
  background-color: #FFFFFF;
}

@media (hover: hover) {
  .faq-card:hover {
    border-color: rgba(241, 135, 0, 0.3);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
  }
}

.faq-card-question {
  width: 100%;
  text-align: right;
  padding: clamp(20px, 1.8vw, 28px);
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  font-family: inherit;
}

.faq-q-text {
  font-size: clamp(1.08rem, 1.35vw, 1.28rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.5;
  transition: color 0.25s ease;
}

.faq-chevron {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.45s var(--ease-spring), color 0.25s ease, background-color 0.25s ease;
}

.faq-chevron svg {
  width: 20px;
  height: 20px;
}

[data-theme="light"] .faq-chevron {
  background: rgba(0, 0, 0, 0.04);
}

.faq-card-question[aria-expanded="true"] .faq-q-text {
  color: var(--accent);
}

.faq-card-question[aria-expanded="true"] .faq-chevron {
  color: var(--accent);
  background: rgba(241, 135, 0, 0.1);
  transform: rotate(-180deg);
}

.faq-card-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ease-std);
}

.faq-card-question[aria-expanded="true"] + .faq-card-answer {
  grid-template-rows: 1fr;
}

.faq-answer-inner {
  overflow: hidden;
  font-size: clamp(0.95rem, 1.15vw, 1.12rem);
  line-height: 1.8;
  color: var(--text-secondary);
  padding: 0 clamp(20px, 1.8vw, 28px);
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.35s ease, transform 0.35s ease, padding-bottom 0.35s ease;
}

.faq-card-question[aria-expanded="true"] + .faq-card-answer .faq-answer-inner {
  padding-bottom: clamp(20px, 1.8vw, 28px);
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .faq-split-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .faq-header-column {
    position: relative;
    top: 0;
    text-align: center;
  }

  .faq-header-column .section-header-unified.text-right {
    align-items: center;
    text-align: center;
  }

  .faq-header-column p {
    margin-left: auto;
    margin-right: auto;
  }
}

/* ============================================================
   PRE-FOOTER CTA & FOOTER WRAPPER
============================================================ */
.cta-footer-wrapper {
  position: relative;
  width: 100%;
  background-color: var(--bg2);
  border-top: 1px solid var(--border);
  overflow: hidden;
  transition: background-color var(--dur-std) ease;
}

.cta-cinematic-section {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  padding: clamp(100px, 14vh, 180px) var(--section-px);
  background-color: transparent;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 5;
}

.cta-spotlight {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 100%;
  height: 100%;
  background: radial-gradient(ellipse 90% 75% at bottom center, var(--accent-glow) 0%, rgba(241, 135, 0, 0.12) 42%, transparent 80%);
  pointer-events: none;
  z-index: 0;
  opacity: 1;
}

[data-theme="light"] .cta-spotlight {
  background: radial-gradient(ellipse 95% 80% at bottom center, rgba(224, 120, 0, 0.22) 0%, rgba(241, 135, 0, 0.08) 45%, transparent 82%);
}

.cta-cinematic-container {
  width: 100%;
  max-width: min(90vw, 1760px);
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta-tension-text {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  cursor: default;
}

.cta-muted-title {
  font-size: clamp(2.4rem, 5.6vw, 6.4rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text);
  opacity: 0.68;
  margin: 0;
  letter-spacing: -0.01em;
}

.cta-bold-accent {
  font-size: clamp(3.1rem, 7.5vw, 8.8rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--accent);
  margin: 10px 0 0 0;
  position: relative;
  z-index: 2;
  letter-spacing: -0.02em;
}

.cta-horizon-btn {
  margin-top: clamp(48px, 8vh, 80px);
  display: inline-flex;
  flex-direction: column;
  text-decoration: none;
  cursor: pointer;
  padding: 0 10px;
}

.horizon-text-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  padding-bottom: 12px;
  color: var(--text);
}

.horizon-text {
  font-size: clamp(1.25rem, 1.8vw, 1.75rem);
  font-weight: 700;
  transition: color var(--dur-std) var(--ease-out);
}

.horizon-arrow {
  transition: transform var(--dur-slow) var(--ease-spring), color var(--dur-std) var(--ease-out);
  width: clamp(24px, 1.8vw, 32px);
  height: clamp(24px, 1.8vw, 32px);
}

.horizon-line-track {
  width: 100%;
  height: 2px;
  background: var(--border-strong);
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}

.horizon-line-fill {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.6s var(--ease-out);
}

.cta-horizon-btn:hover .horizon-line-fill {
  transform: scaleX(1);
  transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.cta-horizon-btn:hover .horizon-text {
  color: var(--accent);
}

.cta-horizon-btn:hover .horizon-arrow {
  transform: translate(-8px, -8px);
  color: var(--accent);
}

@media (max-width: 768px) {
  .horizon-line-track {
    height: 1px;
  }
}

/* ============================================================
   FOOTER (Premium Floating Card — Proportional Viewport Fit)
============================================================ */
.premium-footer {
  position: relative;
  z-index: 100;
  padding: 10px var(--section-px) 0 var(--section-px);
  background-color: transparent;
}

.pfc-container {
  --text: #FFFFFF;
  --text-secondary: rgba(200, 218, 255, 0.65);
  --muted: #6C829E;
  --border: rgba(255, 255, 255, 0.08);

  background: #08142C;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: none;
  border-radius: clamp(28px, 2.6vw, 48px) clamp(28px, 2.6vw, 48px) 0 0;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: clamp(48px, 4.5vw, 80px) clamp(28px, 4.8vw, 84px) clamp(10px, 1.2vw, 16px);
  box-shadow: 0 -15px 50px rgba(5, 16, 36, 0.15);
  transform-origin: bottom center;
  color: var(--text);
  position: relative;
  overflow: hidden;
}

.pfc-monolith-grid {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: clamp(32px, 4vw, 64px);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding-top: clamp(28px, 3vw, 44px);
  padding-bottom: clamp(14px, 1.5vw, 20px);
  margin-bottom: 0;
}

.pfc-monolith-col {
  flex: 1;
}

.pfc-monolith-col:first-child {
  flex: 1.8;
  min-width: 260px;
}

.pfc-monolith-col:nth-child(2) {
  flex: 1;
  min-width: 150px;
  padding-top: clamp(16px, 1.3vw, 22px);
}

.pfc-monolith-col:last-child {
  flex: 1.4;
  min-width: 240px;
  padding-top: clamp(16px, 1.3vw, 22px);
}

.pfc-brand-link {
  display: inline-block;
  text-decoration: none;
}

.monolith-logo {
  height: clamp(88px, 6.5vw, 112px);
  width: auto;
  max-width: clamp(340px, 30vw, 440px);
  object-fit: contain;
  margin-bottom: 26px;
  display: block;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.28));
}

.monolith-desc {
  font-size: clamp(0.96rem, 1vw, 1.12rem);
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.85;
  max-width: 46ch;
  margin-bottom: 30px;
}

.monolith-heading {
  font-size: clamp(1.22rem, 1.35vw, 1.5rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 24px;
}

.monolith-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.monolith-list:has(a:hover) a:not(:hover) {
  opacity: 0.4;
}

.monolith-list a {
  font-size: clamp(0.95rem, 0.98vw, 1.1rem);
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--t-fast) ease, opacity var(--t-fast) ease;
  display: inline-block;
  position: relative;
}

.monolith-list a:hover {
  color: var(--accent);
}

.contact-hub-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.contact-hub-list:has(.contact-hub-item:hover) .contact-hub-item:not(:hover) {
  opacity: 0.4;
}

.contact-hub-item {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  width: fit-content;
  max-width: 100%;
  transition: opacity var(--t-fast) ease;
}

.ch-icon {
  flex-shrink: 0;
  width: clamp(20px, 1.5vw, 26px);
  height: clamp(20px, 1.5vw, 26px);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ch-icon svg {
  width: 100%;
  height: 100%;
}

.ch-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: right;
  gap: 4px;
  font-size: clamp(0.95rem, 0.98vw, 1.1rem);
  color: var(--text-secondary);
  line-height: 1.65;
}

.ch-text span {
  display: block;
}

.ch-link {
  color: inherit;
  text-decoration: none;
  transition: color var(--t-fast) ease;
  display: inline-block;
  position: relative;
}

.ch-link:hover {
  color: var(--accent);
}

.ch-phones {
  align-items: flex-start;
  gap: 4px;
}

.pfc-monolith-bottom {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: clamp(16px, 1.5vw, 20px);
  padding-bottom: 0;
  font-size: clamp(0.92rem, 0.95vw, 1.08rem);
  color: var(--text-secondary);
}

.monolith-copyright {
  font-weight: 400;
  text-align: right;
  transform: translateY(-10px);
}

.monolith-developer {
  position: relative;
  display: inline-block;
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  box-shadow: none;
  user-select: none;
  margin-left: clamp(25px, 3.5vw, 55px);
  transform: translateY(-7px); /* تحريك شعار walnut للاعلى والاسفل*/
}

.developer-label {
  position: absolute;
  bottom: 72%;
  left: 45.1%;
  font-size: clamp(0.95rem, 1.1vw, 1.25rem);
  font-weight: 800;
  color: #FFFFFF;
  opacity: 0.5;
  letter-spacing: 1px;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
  transition: opacity 0.25s ease;
  transform: translateY(8px);  /*تحريك كلمة تطوير للأعلى والأسفل*/
}

.developer-logo-img {
  display: block;
  width: auto;
  height: clamp(44px, 4.2vw, 68px);
  max-width: clamp(160px, 15vw, 200px);
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.5;
  transition: opacity 0.25s ease, filter 0.25s ease;
}

.monolith-developer:hover .developer-label,
.monolith-developer:hover .developer-logo-img {
  opacity: 1;
}

.monolith-developer:hover .developer-logo-img {
  filter: brightness(0) invert(1) drop-shadow(0 0 1px rgba(255, 255, 255, 0.4));
}

.monolith-social-icons {
  display: flex;
  gap: 16px;
  margin-top: 24px;
  justify-content: flex-start;
}

.monolith-social-icons a {
  color: var(--text-secondary);
  width: clamp(42px, 3vw, 52px);
  height: clamp(42px, 3vw, 52px);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, opacity 0.25s ease;
}

.monolith-social-icons a svg {
  width: 50%;
  height: 50%;
  transition: transform 0.3s ease;
}

.monolith-social-icons:has(a:hover) a:not(:hover) {
  opacity: 0.4;
}

.monolith-social-icons a:hover {
  color: var(--accent);
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent);
  transform: translateY(-4px);
}

.monolith-social-icons a:hover svg {
  transform: scale(1.1);
}

/* Floating WhatsApp Button (GPU-Translated Offset) */
.floating-whatsapp {
  position: fixed;
  bottom: 40px;
  left: clamp(20px, 2.5vw, 44px);
  width: clamp(56px, 4vw, 68px);
  height: clamp(56px, 4vw, 68px);
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  z-index: 999;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
  transform: translate3d(0, var(--fab-y, 0px), 0);
  will-change: transform;
  transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.floating-whatsapp:hover {
  background: #fff;
  color: var(--accent);
  transform: translate3d(0, var(--fab-y, 0px), 0);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.floating-whatsapp svg {
  width: 50%;
  height: 50%;
}

/* ============================================================
   MOBILE & TABLET FOOTER OVERRIDES (Architectural Monolith)
============================================================ */
@media (max-width: 1024px) {
  .premium-footer {
    padding: 20px 4vw 0 4vw;
  }

  .pfc-monolith-grid {
    flex-direction: column;
    align-items: center;
    gap: 48px;
  }

  .pfc-monolith-col {
    flex: 1 1 100% !important;
    max-width: 100% !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 40px !important;
    text-align: center;
  }

  .pfc-monolith-col:last-child {
    border-bottom: none;
    padding-bottom: 0 !important;
  }

  .pfc-monolith-col:nth-child(2),
  .pfc-monolith-col:last-child {
    padding-top: 0;
  }

  .monolith-logo {
    height: clamp(76px, 8.5vw, 96px);
    max-width: clamp(280px, 85vw, 380px);
    margin: 0 auto 22px auto;
  }

  .monolith-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .contact-hub-list {
    align-items: center;
  }

  .contact-hub-item {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

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

  .ch-phones {
    align-items: center;
  }

  .monolith-social-icons {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .premium-footer {
    padding: 40px 4vw 0 4vw;
  }

  .pfc-container {
    border-radius: 32px 32px 0 0;
    padding: 60px 5vw calc(40px + env(safe-area-inset-bottom));
  }

  .pfc-monolith-grid {
    gap: 40px;
  }

  .monolith-list {
    align-items: center;
  }

  .monolith-list a,
  .ch-text,
  .monolith-copyright {
    font-size: 0.95rem;
  }

  .pfc-monolith-bottom {
    flex-direction: column-reverse;
    gap: 16px;
    text-align: center;
  }

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

  .monolith-developer {
    margin-left: 0;
  }

  .floating-whatsapp {
    width: 60px;
    height: 60px;
    left: 18px;
    bottom: 22px;
    box-shadow: 0 6px 20px rgba(241, 135, 0, 0.35), 0 3px 8px rgba(0, 0, 0, 0.2) !important;
  }

  .floating-whatsapp svg {
    width: 30px;
    height: 30px;
  }
}

/* ============================================================
   CINEMATIC INTRO SEQUENCE (Sequential & Universal on all screens)
============================================================ */
body.cinematic-intro:not(.intro-done) {
  overflow: hidden !important;
}

body.cinematic-intro .hero-headline {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
}

body.cinematic-intro.intro-done .hero-visual,
body.cinematic-intro.intro-done #navbar,
body.cinematic-intro.intro-done .hero-actions,
body.cinematic-intro.intro-done .floating-whatsapp,
body.cinematic-intro.intro-done .hero-scroll-hint {
  pointer-events: auto !important;
}

body.cinematic-intro.intro-done .hero-visual,
body.cinematic-intro.intro-done .intro-w1,
body.cinematic-intro.intro-done .intro-w2,
body.cinematic-intro.intro-done .intro-w3,
body.cinematic-intro.intro-done .hero-sub {
  will-change: auto;
}

.intro-w1,
.intro-w2 {
  display: inline-block;
}

body.cinematic-intro .hero-visual,
body.cinematic-intro #navbar,
body.cinematic-intro .hero-actions,
body.cinematic-intro .floating-whatsapp,
body.cinematic-intro .hero-scroll-hint {
  opacity: 0;
  pointer-events: none;
}

body.cinematic-intro .hero-visual {
  will-change: opacity;
  backface-visibility: hidden;
}

body.cinematic-intro .intro-w1,
body.cinematic-intro .intro-w2,
body.cinematic-intro .intro-w3,
body.cinematic-intro .hero-sub {
  opacity: 0;
  will-change: transform, opacity;
  backface-visibility: hidden;
}

/* 1. إعلاننا */
body.cinematic-intro .intro-w1 {
  animation: cinFadeUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-delay: 0.2s;
}

/* 2. يتخطّى */
body.cinematic-intro .intro-w2 {
  animation: cinFadeUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-delay: 1.2s;
}

/* 3. المألوف */
body.cinematic-intro .intro-w3 {
  animation: cinImpactAccent 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  animation-delay: 2.2s;
  transform-origin: right center;
}

/* 4. الخلفية */
body.cinematic-intro .hero-visual {
  animation: cinRevealEnv 2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-delay: 3.6s;
}

/* 5. النص الوصفي */
body.cinematic-intro .hero-sub {
  animation: cinFadeUpSub 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-delay: 4.2s;
}

/* 6. الهيدر والأزرار */
body.cinematic-intro #navbar,
body.cinematic-intro .hero-actions,
body.cinematic-intro .floating-whatsapp,
body.cinematic-intro .hero-scroll-hint {
  animation: cinRevealEnv 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-delay: 4.2s;
}

@keyframes cinFadeUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  50% {
    opacity: 1;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    text-shadow: 0 0 0 rgba(255, 255, 255, 0);
  }
}

@keyframes cinImpactAccent {
  0% {
    opacity: 0;
    transform: translateX(var(--word-shift-right)) scale(var(--word-stretch-x), var(--word-stretch-y)) scale(1.35) translateY(20px);
    filter: blur(8px);
  }
  45% {
    opacity: 1;
    filter: blur(0px);
    text-shadow: 0 0 35px var(--accent-glow);
  }
  100% {
    opacity: 1;
    transform: translateX(var(--word-shift-right)) scale(var(--word-stretch-x), var(--word-stretch-y)) translateY(0);
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.8), 0 1px 4px rgba(0, 0, 0, 0.6);
  }
}

@keyframes cinFadeUpSub {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cinRevealEnv {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
    pointer-events: auto;
  }
}

/* ============================================================
   ART GALLERY / EDITORIAL PORTFOLIO
============================================================ */
.art-gallery-page {
  background-color: var(--bg);
}

.gallery-hero {
  padding: clamp(130px, 16vh, 180px) var(--section-px) 40px;
  text-align: center;
  max-width: min(90vw, 62rem);
  margin: 0 auto;
}

.gallery-hero .shu-title {
  margin-bottom: 16px;
}

.gallery-hero .shu-title::after {
  bottom: -16px;
  transform: translateX(-50%);
}

.gallery-desc {
  font-size: clamp(1.08rem, 1.25vw, 1.3rem);
  line-height: 1.8;
  color: var(--text-secondary);
  margin-top: -20px;
}

.gallery-section {
  padding: 0 var(--section-px) 100px;
}

.gallery-container {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(24px, 2.8vw, 44px);
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
}

.gallery-item {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  background-color: var(--card-bg);
  cursor: pointer;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.5s ease;
}

.gallery-item.large {
  grid-column: span 12;
  aspect-ratio: 21 / 9;
}

.gallery-item.medium.portrait {
  grid-column: span 5;
  aspect-ratio: 4 / 5;
}

.gallery-item.medium.landscape {
  grid-column: span 7;
  aspect-ratio: 16 / 10;
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: block;
}

@media (hover: hover) {
  .gallery-container:has(.gallery-item:hover) .gallery-item:not(:hover) {
    opacity: 0.3;
  }

  .gallery-item:hover .gallery-img {
    transform: scale(1.03);
  }

  .gallery-item:hover .gallery-overlay {
    opacity: 1;
  }

  .gallery-item:hover .gallery-zoom-icon {
    transform: scale(1);
  }
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.gallery-zoom-icon {
  width: 64px;
  height: 64px;
  color: white;
  opacity: 0.8;
  transform: scale(0.8);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@media (max-width: 900px) {
  .gallery-hero {
    padding: 120px 20px 60px;
  }

  .gallery-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .gallery-item.large,
  .gallery-item.medium.portrait,
  .gallery-item.medium.landscape {
    aspect-ratio: 4 / 3;
  }
}

/* ============================================================
   IMMERSIVE LIGHTBOX
============================================================ */
.immersive-lightbox {
  position: fixed;
  inset: 0;
  background-color: #020D1F;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s;
}

.immersive-lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 30px;
  background: transparent;
  border: none;
  color: #fff;
  width: 50px;
  height: 50px;
  cursor: pointer;
  z-index: 10;
  opacity: 0.7;
  transition: opacity 0.3s, transform 0.3s;
}

.lightbox-close:hover {
  opacity: 1;
  transform: scale(1.1);
}

.lightbox-content {
  width: 90vw;
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.lightbox-img.loaded {
  opacity: 1;
  transform: scale(1);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  width: 60px;
  height: 100px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s, transform 0.3s;
}

.lightbox-nav:hover {
  color: #fff;
}

.lightbox-prev {
  right: 20px;
}

.lightbox-prev:hover {
  transform: translateY(-50%) translateX(-5px);
}

.lightbox-next {
  left: 20px;
}

.lightbox-next:hover {
  transform: translateY(-50%) translateX(5px);
}

@media (max-width: 768px) {
  .lightbox-close {
    top: 15px;
    right: 15px;
  }

  .lightbox-nav {
    width: 40px;
    height: 60px;
  }

  .lightbox-prev {
    right: 5px;
  }

  .lightbox-next {
    left: 5px;
  }
}

/* ============================================================
   ART GALLERY FILTER MENU & REVEAL
============================================================ */
.gallery-filter-menu {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 80px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 6px;
  border-radius: 12px;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  max-width: 100%;
}

[data-theme="light"] .gallery-filter-menu {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.gallery-filter-menu::-webkit-scrollbar {
  display: none;
}

.filter-slider {
  position: absolute;
  top: 6px;
  left: 0;
  height: calc(100% - 12px);
  background: var(--accent);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(241, 135, 0, 0.3);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), width 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 0;
  pointer-events: none;
}

[data-theme="light"] .filter-slider {
  box-shadow: 0 4px 12px rgba(241, 135, 0, 0.25);
}

.filter-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  padding: 10px 24px;
  border-radius: 8px;
  white-space: nowrap;
  position: relative;
  transition: color 0.15s ease-out, background-color 0.15s ease-out;
  z-index: 1;
}

.filter-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .filter-btn:hover {
  background: rgba(0, 0, 0, 0.05);
}

.filter-btn.active {
  color: #FFFFFF;
  font-weight: 700;
  background: transparent !important;
  border: 1px solid transparent !important;
  box-shadow: none !important;
  transform: none;
}

[data-theme="light"] .filter-btn.active {
  color: #FFFFFF;
  background: transparent !important;
  border: 1px solid transparent !important;
  box-shadow: none !important;
}

/* ============================================================
   BILLBOARDS & ASSETS CATALOG
============================================================ */
.catalog-section {
  padding: 0 var(--section-px) 100px;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(clamp(280px, 24vw, 380px), 1fr));
  gap: clamp(24px, 2.2vw, 36px);
  margin-top: 50px;
}

.cinema-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: flex-end;
  cursor: default;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .cinema-card {
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.cinema-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .cinema-card:hover {
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);
}

.cinema-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 0;
}

.cinema-card:hover .cinema-img {
  transform: scale(1.08);
}

.cinema-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(4, 11, 22, 0.95) 0%, rgba(4, 11, 22, 0.4) 40%, transparent 100%);
  z-index: 1;
}

[data-theme="light"] .cinema-overlay {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.2) 50%, transparent 100%);
}

.cinema-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 2;
}

.cinema-content {
  position: relative;
  z-index: 2;
  padding: clamp(22px, 2.2vw, 34px);
  width: 100%;
  color: #fff;
}

.cinema-type {
  display: inline-block;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.cinema-title {
  font-size: clamp(1.5rem, 1.8vw, 1.9rem);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 20px 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  color: #FFFFFF;
}

.cinema-actions {
  display: flex;
  gap: 12px;
}

.cinema-btn-outline {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.cinema-btn-outline svg {
  transition: transform 0.25s ease;
}

.cinema-btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.15);
}

.cinema-btn-outline:hover svg {
  transform: scale(1.1);
}

.cinema-btn-solid {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--accent);
  color: #ffffff !important;
  font-family: var(--ff);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s ease, background-color 0.25s ease;
  border: 2px solid var(--accent);
  box-shadow: 0 4px 15px rgba(241, 135, 0, 0.15);
}

.cinema-btn-solid:hover {
  box-shadow: 0 0 24px var(--accent-glow);
  background: var(--accent);
  transform: translateY(-2px);
}

.cinema-btn-solid:active {
  transform: scale(0.98);
}

@media (max-width: 768px) {
  .catalog-grid {
    grid-template-columns: 1fr;
  }
}

.gallery-item.hidden {
  display: none !important;
}

.reveal-item {
  opacity: 0;
  transform: translate3d(0, 32px, 0);
  backface-visibility: hidden;
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-item.visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* ============================================================
   CONTACT & PROJECT INQUIRY SECTION (Progressive Disclosure 60/40 Architecture)
============================================================ */
.art-gallery-page #navbar {
  --scroll-fill: 1;
}

.contact-hero {
  position: relative;
  max-width: min(94vw, 1760px);
  padding: clamp(134px, 15.5vh, 178px) var(--section-px) clamp(26px, 3.8vh, 42px);
  overflow: visible;
}

.contact-hero .gallery-hero-content {
  position: relative;
  z-index: 2;
}

.contact-hero .section-header-unified {
  margin-bottom: 0;
}

.contact-hero .contact-hero-title {
  white-space: nowrap;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0;
}

.contact-hero .contact-hero-title::after {
  bottom: -26px;
}

.contact-hero .gallery-desc {
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
  margin-top: 46px;
}

@media (max-width: 620px) {
  .contact-hero .contact-hero-title {
    white-space: normal;
    text-wrap: balance;
    line-height: 1.25;
  }
}

/* ── Contact Section Base Layout ── */
.contact-section {
  padding: clamp(72px, 8vw, 110px) var(--section-px) clamp(84px, 10vh, 130px);
  position: relative;
  overflow: hidden;
  background-color: var(--bg);
  scroll-margin-top: 90px;
}

.contact-container {
  width: 100%;
  max-width: 1260px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* ── Free-Form Open Architectural Layout (تصميم معماري حر ومفتوح بالكامل بلا صناديق) ── */
.contact-monolith-console {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  display: grid;
  grid-template-columns: minmax(340px, 1.42fr) minmax(280px, 1fr);
  gap: clamp(40px, 5.5vw, 84px);
  align-items: stretch;
  overflow: visible;
  padding: 0;
}

[data-theme="light"] .contact-monolith-console {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* ── Main Specification Wing (الجناح الرئيسي الحر 60%) ── */
.monolith-main-wing {
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

.monolith-wing-header {
  margin-bottom: 2px;
}

.monolith-wing-header .shu-kicker {
  margin-bottom: 6px;
}

.monolith-wing-title {
  font-size: clamp(1.6rem, 2.1vw, 2.25rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.25;
  margin: 0;
}

/* ── Side Directory Wing (الجناح الجانبي للدليل المؤسسي 40%) ── */
.monolith-side-wing {
  border-right: 1.5px solid var(--border);
  padding: 0;
  padding-right: clamp(32px, 4.5vw, 68px);
  background: transparent !important;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 26px;
}

[data-theme="light"] .monolith-side-wing {
  border-right-color: rgba(0, 79, 159, 0.14);
  background: transparent !important;
}

html[dir="ltr"] .monolith-side-wing {
  border-right: none;
  padding-right: 0;
  border-left: 1.5px solid var(--border);
  padding-left: clamp(32px, 4.5vw, 68px);
}

[data-theme="light"] html[dir="ltr"] .monolith-side-wing,
html[dir="ltr"][data-theme="light"] .monolith-side-wing {
  border-left-color: rgba(0, 79, 159, 0.14);
}

.monolith-side-title {
  font-size: clamp(1.22rem, 1.4vw, 1.48rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.3;
  margin: 0;
}

/* ── Sidebar Stations (Cardless & Calm) ── */
.inst-station-list {
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.inst-station {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: clamp(14px, 1.6vw, 20px) 0;
}

.inst-station:first-child {
  padding-top: 0;
}

.inst-station:last-child {
  padding-bottom: 0;
}

.inst-station .ch-icon {
  width: 20px;
  height: 20px;
  margin-top: 3px;
  color: var(--accent);
  flex-shrink: 0;
}

.inst-station-body {
  flex: 1;
  min-width: 0;
}

.inst-station-title {
  font-size: clamp(0.98rem, 1.06vw, 1.12rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.35;
  margin: 0 0 6px 0;
}

.inst-station-text {
  font-size: clamp(0.88rem, 0.92vw, 0.96rem);
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0 0 8px 0;
}

.inst-station-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(270deg, var(--border) 0%, var(--border) 70%, transparent 100%);
}

[data-theme="light"] .inst-station-divider {
  background: linear-gradient(270deg, rgba(0, 79, 159, 0.14) 0%, rgba(0, 79, 159, 0.08) 70%, transparent 100%);
}

html[dir="ltr"] .inst-station-divider {
  background: linear-gradient(90deg, var(--border) 0%, var(--border) 70%, transparent 100%);
}

[data-theme="light"] html[dir="ltr"] .inst-station-divider,
html[dir="ltr"][data-theme="light"] .inst-station-divider {
  background: linear-gradient(90deg, rgba(0, 79, 159, 0.14) 0%, rgba(0, 79, 159, 0.08) 70%, transparent 100%);
}

.inst-direct-links {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.inst-direct-link {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  text-decoration: none;
  color: var(--text);
  font-size: clamp(0.9rem, 0.95vw, 1rem);
  padding: 2px 0;
  width: fit-content;
  transition: color var(--t-fast) ease;
}

.inst-direct-link .link-role {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.9em;
}

.inst-direct-link .link-num {
  font-weight: 800;
  color: var(--text);
  unicode-bidi: plaintext;
  transition: color var(--t-fast) ease;
}

.inst-direct-link:hover,
.inst-direct-link:hover .link-num {
  color: var(--accent);
}

.contact-map-btn {
  font-size: clamp(0.9rem, 0.96vw, 1.02rem);
  padding: 4px 0 2px;
  max-width: 100%;
}

.contact-map-btn:hover,
.contact-map-btn:focus-visible {
  color: var(--text);
}

/* ── Simple Working Hours Line ── */
.inst-hours-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px dashed var(--border);
  font-size: clamp(0.84rem, 0.88vw, 0.92rem);
  color: var(--text-secondary);
}

[data-theme="light"] .inst-hours-line {
  border-top-color: rgba(0, 79, 159, 0.16);
}

.inst-hours-line svg {
  color: var(--accent);
  flex-shrink: 0;
}

.inst-hours-line strong {
  color: var(--text);
  font-weight: 700;
}

/* ── Progressive Disclosure Form & Interactive Service Chips ── */
.contact-form-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ── Monolithic Production Horizon Rail & Spot-UV Glider ── */
.horizon-header-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
}

.horizon-scope-indicator {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.5px;
  font-variant-numeric: tabular-nums;
}

[data-theme="light"] .horizon-scope-indicator {
  color: #C96E00;
}

/* ============================================================
   BESPOKE EXECUTIVE SPECIFICATION ARCHITECTURE (العمارة التيبوغرافية الحرة للمواصفات)
   تصميم معماري مفتوح وعصري يتنفس بحرية على خلفية الصفحة بلا قيود أو صناديق مغلقة
============================================================ */

/* 1. شريط قطاعات الإنتاج والتصنيع التيبوغرافي الحر */
.spec-sector-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.spec-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.spec-head-label {
  font-size: clamp(0.88rem, 0.94vw, 0.98rem);
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 4px;
}

.spec-sector-rail {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  background: transparent;
  border: none;
  padding: 0;
  border-radius: 0;
}

[data-theme="light"] .spec-sector-rail {
  background: transparent;
  border: none;
}

.spec-sector-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 6px;
  border: 1.5px solid var(--border);
  border-radius: 24px;
  background: transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: clamp(0.84rem, 0.89vw, 0.96rem);
  font-weight: 700;
  cursor: pointer;
  transition: all var(--t-fast) ease;
  text-align: center;
  outline: none;
  user-select: none;
}

.spec-sector-btn:hover {
  color: var(--text);
  border-color: var(--accent);
  background: rgba(241, 135, 0, 0.05);
}

[data-theme="light"] .spec-sector-btn {
  border-color: #D2DCE8;
}

[data-theme="light"] .spec-sector-btn:hover {
  background: rgba(241, 135, 0, 0.06);
  border-color: var(--accent);
  color: var(--accent);
}

.spec-sector-btn.active,
.spec-sector-btn[aria-pressed="true"] {
  background: var(--accent);
  color: #FFFFFF;
  border-color: var(--accent);
  box-shadow: 0 4px 14px rgba(241, 135, 0, 0.28);
  font-weight: 800;
}

[data-theme="light"] .spec-sector-btn.active,
[data-theme="light"] .spec-sector-btn[aria-pressed="true"] {
  background: var(--accent);
  color: #FFFFFF;
  border-color: var(--accent);
  box-shadow: 0 4px 14px rgba(241, 135, 0, 0.25);
}

.spec-sector-section.has-error .spec-sector-btn {
  border-color: rgba(239, 68, 68, 0.6);
}

.spec-sector-section.has-error .spec-error-hint {
  display: block;
}

/* 2. حقول بيانات العميل المعمارية الحرة (Underline Minimalist Architecture) */
.spec-fields-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.spec-field-col {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.spec-field-label {
  font-size: clamp(0.86rem, 0.9vw, 0.96rem);
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 4px;
}

.spec-optional-label {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.spec-text-input {
  width: 100%;
  padding: 10px 0;
  border: none;
  border-bottom: 1.5px solid var(--border);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: clamp(0.96rem, 1.02vw, 1.1rem);
  font-weight: 600;
  outline: none;
  transition: border-color var(--t-fast) ease, box-shadow var(--t-fast) ease;
}

[data-theme="light"] .spec-text-input {
  background: transparent;
  border-bottom-color: #CBD5E1;
}

.spec-text-input:focus {
  border-bottom-color: var(--accent);
  box-shadow: 0 2px 0 0 var(--accent);
  background: transparent;
}

[data-theme="light"] .spec-text-input:focus {
  background: transparent;
}

.spec-text-input::placeholder {
  color: var(--muted);
  opacity: 0.65;
  font-weight: 400;
}

.spec-input-ltr {
  direction: ltr;
  text-align: right;
}

.spec-error-hint {
  font-size: 0.76rem;
  font-weight: 700;
  color: #EF4444;
  display: none;
  margin-top: 4px;
}

.spec-field-col.has-error .spec-text-input {
  border-bottom-color: #EF4444;
  box-shadow: 0 2px 0 0 #EF4444;
}

.spec-field-col.has-error .spec-error-hint {
  display: block;
}

/* 3. مساحة المواصفات والمقاسات التقريبية الحرة */
.spec-notes-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.spec-notes-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.spec-textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: 14px;
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text);
  font-family: inherit;
  font-size: clamp(0.9rem, 0.95vw, 0.98rem);
  line-height: 1.6;
  resize: vertical;
  min-height: 74px;
  outline: none;
  transition: border-color var(--t-fast) ease, box-shadow var(--t-fast) ease;
}

[data-theme="light"] .spec-textarea {
  background: transparent;
  border-color: #CBD5E1;
}

.spec-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(241, 135, 0, 0.14);
  background: transparent;
}

[data-theme="light"] .spec-textarea:focus {
  background: transparent;
}

.spec-textarea::placeholder {
  color: var(--muted);
  opacity: 0.65;
  font-weight: 400;
}

/* 4. Form Dispatch Hub inside Wing / Card */
.monolith-main-wing .form-dispatch-hub,
.spec-form-card .form-dispatch-hub {
  margin-top: 6px;
  padding-top: 22px;
  border-top: 1px dashed var(--border);
  gap: 14px;
}

[data-theme="light"] .monolith-main-wing .form-dispatch-hub,
[data-theme="light"] .spec-form-card .form-dispatch-hub {
  border-top-color: rgba(0, 79, 159, 0.14);
}

.form-field.has-error .production-horizon-rail {
  border-color: rgba(239, 68, 68, 0.75);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.form-row-dual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: clamp(0.9rem, 0.95vw, 1.02rem);
  font-weight: 700;
  color: var(--text);
}

.form-label .required {
  color: var(--accent);
}

.optional {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.88em;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1.5px solid var(--border);
  color: var(--text);
  font-family: inherit;
  font-size: clamp(0.95rem, 1vw, 1.05rem);
  transition: border-color var(--t-fast) ease, box-shadow var(--t-fast) ease, background-color var(--t-fast) ease;
  outline: none;
}

.form-input-ltr {
  text-align: right;
}

html[dir="ltr"] .form-input-ltr {
  text-align: left;
}

[data-theme="light"] .form-input,
[data-theme="light"] .form-textarea {
  background: #FFFFFF;
  border-color: #D4E1F2;
  box-shadow: 0 2px 6px rgba(0, 79, 159, 0.04);
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(241, 135, 0, 0.16);
  background: transparent;
}

[data-theme="light"] .form-input:focus,
[data-theme="light"] .form-textarea:focus {
  background: #FFFFFF;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--muted);
  opacity: 0.78;
}

/* ── Collapsible Optional Details & Smart Contextual Hint ── */
.form-details-collapsible {
  gap: 6px;
}

.details-header-row {
  display: flex;
  align-items: center;
}

.details-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: clamp(0.9rem, 0.94vw, 0.98rem);
  font-weight: 700;
  cursor: pointer;
  transition: color var(--t-fast) ease;
}

.details-toggle-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1.5px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-weight: 800;
  font-size: 1rem;
  line-height: 1;
  transition: border-color var(--t-fast) ease, background-color var(--t-fast) ease;
}

[data-theme="light"] .details-toggle-icon {
  background: #FFFFFF;
  border-color: #D4E1F2;
}

.details-toggle-btn:hover,
.details-toggle-btn[aria-expanded="true"] {
  color: var(--text);
}

.details-toggle-btn:hover .details-toggle-icon,
.details-toggle-btn[aria-expanded="true"] .details-toggle-icon {
  border-color: var(--accent);
  background: rgba(241, 135, 0, 0.1);
}

.service-smart-hint {
  margin: 0;
  font-size: clamp(0.84rem, 0.88vw, 0.92rem);
  color: var(--accent);
  font-weight: 600;
  line-height: 1.55;
}

[data-theme="light"] .service-smart-hint {
  color: #C96E00;
}

.service-smart-hint[hidden],
.details-collapse-panel[hidden] {
  display: none !important;
}

.details-collapse-panel {
  margin-top: 4px;
}

.form-textarea {
  resize: vertical;
  min-height: 96px;
  line-height: 1.7;
}

.form-error-msg {
  display: none;
  font-size: 0.82rem;
  font-weight: 700;
  color: #EF4444;
  margin-top: -2px;
}

.form-field.has-error .form-input {
  border-color: #EF4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.form-field.has-error .form-error-msg {
  display: block;
}

/* ── Single Hero Dispatch Action & Pre-Flight Channel Rail ── */
.form-dispatch-hub {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
  width: 100%;
}

.preflight-channel-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.preflight-label {
  font-size: clamp(0.82rem, 0.86vw, 0.9rem);
  font-weight: 600;
  color: var(--text-secondary);
}

.preflight-toggle-rail {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 3px;
  gap: 3px;
}

[data-theme="light"] .preflight-toggle-rail {
  background: #F1F4F9;
  border-color: #D4E1F2;
}

.preflight-opt {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 24px;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: clamp(0.8rem, 0.84vw, 0.88rem);
  font-weight: 700;
  cursor: pointer;
  transition: color var(--t-fast) ease, background-color var(--t-fast) ease, box-shadow var(--t-fast) ease, transform var(--t-fast) ease;
}

.preflight-opt svg {
  color: currentColor;
  flex-shrink: 0;
}

.preflight-opt:hover {
  color: var(--text);
}

.preflight-opt.active,
.preflight-opt[aria-selected="true"] {
  background: #FFFFFF;
  color: #0A192F;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

[data-theme="dark"] .preflight-opt.active,
[data-theme="dark"] .preflight-opt[aria-selected="true"] {
  background: var(--bg2);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* ── The Single Hero Dispatch Button (Matched with Hero Button DNA) ── */
.contact-section .hero-dispatch-btn {
  width: 100%;
  max-width: 100%;
  min-height: 54px;
  padding: 13px 32px;
  gap: 12px;
  border-radius: 50px;
  background: var(--accent);
  color: #ffffff;
  border: 2px solid var(--accent);
  font-family: var(--ff);
  font-size: clamp(0.96rem, 1.05vw, 1.1rem);
  font-weight: 800;
  letter-spacing: 0.2px;
  box-shadow: 0 4px 16px rgba(241, 135, 0, 0.28);
  position: relative;
  overflow: hidden;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}

.contact-section .hero-dispatch-btn:hover {
  background: #d97700;
  border-color: #d97700;
  box-shadow: 0 0 26px var(--accent-glow);
  transform: translateY(-2px);
}

.contact-section .hero-dispatch-btn:active {
  transform: scale(0.98);
}

.contact-section .hero-dispatch-btn .btn-icon-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-section .hero-dispatch-btn .hero-btn-arrow {
  transition: transform var(--t-fast) ease;
  flex-shrink: 0;
}

.contact-section .hero-dispatch-btn:hover .hero-btn-arrow {
  transform: translateX(-4px);
}

html[dir="ltr"] .contact-section .hero-dispatch-btn:hover .hero-btn-arrow {
  transform: translateX(4px);
}

.form-reassurance-note {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 2px 0 0;
  font-size: clamp(0.8rem, 0.85vw, 0.89rem);
  color: var(--text-secondary);
  font-weight: 600;
  text-align: center;
}

.form-reassurance-note svg {
  color: var(--accent);
  flex-shrink: 0;
}

/* ── Auto-Hide Floating WhatsApp FAB while filling out the form ── */
.floating-whatsapp {
  transition: opacity 0.25s ease, transform 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

body.contact-form-active .floating-whatsapp {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translate3d(0, calc(var(--fab-y, 0px) + 18px), 0) scale(0.88) !important;
}

@media (max-width: 992px) {
  .contact-monolith-console {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .monolith-side-wing,
  html[dir="ltr"] .monolith-side-wing {
    border-right: none;
    border-left: none;
    padding-right: 0;
    padding-left: 0;
    border-top: 1.5px solid var(--border);
    padding-top: 40px;
  }

  [data-theme="light"] .monolith-side-wing,
  [data-theme="light"] html[dir="ltr"] .monolith-side-wing {
    border-top-color: rgba(0, 79, 159, 0.14);
  }

  .contact-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-hub-wing,
  html[dir="ltr"] .contact-hub-wing {
    border-right: none;
    border-left: none;
    padding-right: 0;
    padding-left: 0;
    border-top: 1px solid var(--border);
    padding-top: 32px;
  }

  [data-theme="light"] .contact-hub-wing,
  [data-theme="light"] html[dir="ltr"] .contact-hub-wing {
    border-top-color: rgba(0, 79, 159, 0.14);
  }
}

@media (max-width: 768px) {
  .spec-sector-rail {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .spec-sector-rail {
    grid-template-columns: repeat(2, 1fr);
  }

  .spec-sector-btn:last-child {
    grid-column: span 2;
  }

  .spec-fields-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .inst-station {
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .spec-sector-btn {
    padding: 8px 3px;
    font-size: 0.82rem;
  }

  .preflight-channel-bar {
    flex-direction: column;
    gap: 6px;
  }

  .preflight-toggle-rail {
    width: 100%;
    justify-content: center;
  }

  .preflight-opt {
    flex: 1;
    justify-content: center;
    padding: 6px 10px;
  }
}

/* ============================================================
   ENGLISH / LTR ARCHITECTURAL SUPPORT (html[dir="ltr"])
   يضمن انقلاب الاتجاهات والتدرجات والخطوط الزمنية بدقة 100%
============================================================ */
html[dir="ltr"] .hero-content {
  right: auto;
  left: var(--section-px);
  text-align: left;
}

html[dir="ltr"] .hero-headline .accent-word,
html[dir="ltr"] body.cinematic-intro .intro-w3 {
  --word-shift-right: 0px;
  transform-origin: left center;
}

@media (max-width: 768px) {
  html[dir="ltr"] .hero-content {
    left: auto;
    text-align: left;
  }
}

html[dir="ltr"] .stack-overlay {
  background: linear-gradient(to right, rgba(5, 13, 26, 0.95) 0%, rgba(5, 13, 26, 0.6) 45%, transparent 80%);
}

@media (max-width: 768px) {
  html[dir="ltr"] .stack-overlay {
    background: linear-gradient(to top, rgba(5, 13, 26, 0.95) 0%, rgba(5, 13, 26, 0.75) 25%, rgba(5, 13, 26, 0.25) 45%, transparent 65%);
  }
}

html[dir="ltr"] .stack-content,
html[dir="ltr"] .timeline-content,
html[dir="ltr"] .faq-card-question,
html[dir="ltr"] .ch-text,
html[dir="ltr"] .monolith-copyright,
html[dir="ltr"] .section-header-unified.text-right {
  text-align: left;
}

html[dir="ltr"] .stack-btn svg {
  margin-right: 0;
  margin-left: 10px;
  transform: scaleX(-1);
}

html[dir="ltr"] .stack-btn:hover svg {
  transform: scaleX(-1) translateX(-8px);
}

html[dir="ltr"] .pc-content {
  right: auto;
  left: clamp(28px, 3vw, 48px);
}

html[dir="ltr"] .ink-line-fill,
html[dir="ltr"] .timeline-track-fill,
html[dir="ltr"] .horizon-line-fill,
html[dir="ltr"] .pc-horizon-btn .horizon-line-fill {
  right: auto;
  left: 0;
  transform-origin: left center;
}

html[dir="ltr"] .timeline-track {
  right: auto;
  left: 40px;
}

@media (max-width: 900px) {
  html[dir="ltr"] .process-timeline {
    padding-right: 0;
    padding-left: 50px;
  }

  html[dir="ltr"] .timeline-track {
    right: auto;
    left: -21px;
  }

  html[dir="ltr"] .timeline-track-fill {
    transform-origin: top center;
  }

  html[dir="ltr"] .timeline-node {
    right: auto;
    left: -50px;
  }

  html[dir="ltr"] .timeline-content {
    padding-right: 0;
    padding-left: 40px;
  }
}