/* ============================================================
   مؤسسة متر مكعب | Cubic Meter — WORLD CLASS REDESIGN
   Colors: #111827 (primary) | #00AEEF (teal) | #E8352B (red)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;0,900;1,700&family=Cairo:wght@300;400;600;700;900&family=Inter:wght@300;400;500;600;700;900&display=swap');

/* ══════════════════════════════════════════
   DESIGN TOKENS
══════════════════════════════════════════ */
:root {
  --ink:        #111827;       /* original primary */
  --ink-deep:   #0C1220;
  --ink-mid:    #1a2535;
  --ink-soft:   rgba(17,24,39,0.92);

  --teal:       #00AEEF;       /* original teal */
  --teal-dark:  #0093CC;
  --teal-glow:  rgba(0,174,239,0.18);
  --teal-10:    rgba(0,174,239,0.10);
  --teal-30:    rgba(0,174,239,0.30);

  --red:        #E8352B;       /* original red */
  --red-10:     rgba(232,53,43,0.10);
  --red-30:     rgba(232,53,43,0.30);

  --white:      #FFFFFF;
  --off-white:  #F4F6F9;
  --border:     #E2E8F0;
  --text:       #1E293B;
  --muted:      #64748B;
  --green:      #16A34A;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-ar:      'Cairo', sans-serif;
  --font-en:      'Inter', sans-serif;

  --r:   10px;   /* radius base */
  --rl:  20px;   /* radius large */
  --rxl: 32px;   /* radius xl */

  --ease:     cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.0, 0.0, 0.2, 1);
  --dur:      0.4s;

  --sh:    0 4px 20px rgba(0,0,0,0.08);
  --sh-lg: 0 20px 60px rgba(0,0,0,0.18);
  --sh-teal: 0 8px 32px rgba(0,174,239,0.28);
  --sh-dark: 0 32px 80px rgba(0,0,0,0.5);
}

/* ══════════════════════════════════════════
   RESET
══════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0 }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100% }
body {
  font-family: var(--font-ar);
  font-size: 16px;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  direction: rtl;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body.lang-en { direction: ltr; font-family: var(--font-en) }
img  { max-width: 100%; height: auto; display: block }
a    { text-decoration: none; color: inherit }
ul   { list-style: none }
button { font-family: inherit; cursor: pointer; border: none; background: none }
input, select, textarea { font-family: inherit }

.container { width: 90%; max-width: 1220px; margin: 0 auto }
.section    { padding: 110px 0 }

/* ══════════════════════════════════════════
   REVEAL ANIMATIONS
══════════════════════════════════════════ */
[data-reveal] {
  opacity: 1;
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}
body.js-ready [data-reveal="up"]    { opacity:0; transform:translateY(44px) }
body.js-ready [data-reveal="left"]  { opacity:0; transform:translateX(50px) }
body.js-ready [data-reveal="right"] { opacity:0; transform:translateX(-50px) }
body.js-ready [data-reveal="scale"] { opacity:0; transform:scale(0.9) }
[data-reveal].revealed { opacity:1 !important; transform:none !important }

/* ══════════════════════════════════════════
   TYPOGRAPHY SYSTEM
══════════════════════════════════════════ */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 16px;
}
.tag::before {
  content: '';
  width: 30px; height: 2px;
  background: linear-gradient(90deg, var(--teal), transparent);
  border-radius: 2px;
  flex-shrink: 0;
}
.tag.light { color: var(--teal) }

/* Section heading — editorial style */
.heading {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.5vw, 58px);
  font-weight: 900;
  line-height: 1.12;
  color: var(--text);
  letter-spacing: -0.025em;
  margin-bottom: 24px;
}
body.lang-ar .heading {
  font-family: var(--font-ar);
  font-size: clamp(28px, 4vw, 52px);
  letter-spacing: 0;
}
.heading.light   { color: var(--white) }
.heading .hi     { color: var(--teal) }
.heading .stroke {
  -webkit-text-stroke: 1.5px var(--teal);
  color: transparent;
}

.lead {
  font-size: 16px;
  line-height: 1.95;
  color: var(--muted);
  max-width: 560px;
}
.lead.light { color: rgba(255,255,255,0.58) }

.sh  { margin-bottom: 72px }
.shc { text-align: center }
.shc .tag    { justify-content: center }
.shc .lead   { margin: 0 auto }
.shc .heading { margin: 0 auto 24px }

/* ══════════════════════════════════════════
   BUTTON SYSTEM
══════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.4px;
  padding: 14px 28px;
  border-radius: 7px;
  border: 1.5px solid transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all var(--dur) var(--ease);
  white-space: nowrap;
}
/* Shine sweep on hover */
.btn::after {
  content: '';
  position: absolute;
  top: 0; left: -80%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.6s var(--ease);
  pointer-events: none;
}
.btn:hover::after { left: 130% }

.btn-primary {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
  box-shadow: var(--sh-teal);
}
.btn-primary:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(0,174,239,0.40);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.30);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--teal);
  color: var(--teal);
}

.btn-ghost {
  background: rgba(0,174,239,0.08);
  color: var(--teal);
  border-color: rgba(0,174,239,0.25);
}
.btn-ghost:hover {
  background: rgba(0,174,239,0.15);
  border-color: var(--teal);
  transform: translateY(-2px);
}

.btn-lg  { padding: 18px 44px; font-size: 15px; border-radius: 9px }
.btn-blk { width: 100%; justify-content: center }

/* ══════════════════════════════════════════
   LANG BAR
══════════════════════════════════════════ */
.lang-bar {
  background: var(--ink-deep);
  border-bottom: 1px solid rgba(0,174,239,0.12);
  padding: 8px 0;
  position: relative;
  z-index: 1001;
}
.lang-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.lang-info {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}
.lang-info svg { color: var(--teal); flex-shrink: 0 }
.lang-bar-actions { display: flex; align-items: center; gap: 10px }

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--teal);
  padding: 5px 14px;
  border-radius: 4px;
  border: 1px solid rgba(0,174,239,0.25);
  background: rgba(0,174,239,0.06);
  transition: all var(--dur);
}
.lang-toggle:hover { background: rgba(0,174,239,0.14); border-color: var(--teal) }

.profile-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  padding: 5px 14px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  transition: all var(--dur);
  text-decoration: none;
}
.profile-btn:hover { color: var(--white); border-color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.08) }

/* ══════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 37px; left: 0; right: 0;
  z-index: 1000;
  height: 76px;
  display: flex;
  align-items: center;
  background: rgba(17,24,39,0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(0,174,239,0.10);
  transition: top 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}
.navbar.scrolled {
  top: 0;
  background: rgba(17,24,39,0.98);
  box-shadow: 0 2px 40px rgba(0,0,0,0.6);
  border-bottom-color: rgba(0,174,239,0.2);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  text-decoration: none;
}
.logo-img { height: 46px; width: auto; object-fit: contain }
.logo-fallback {
  display: none;
  flex-direction: column;
  line-height: 1.1;
  gap: 2px;
}
.logo-text-ar { font-size: 20px; font-weight: 900; color: var(--white) }
.logo-text-en { font-size: 9px; font-weight: 700; color: var(--teal); letter-spacing: 4px }

/* Animated logo bracket */
.logo-bracket {
  width: 40px; height: 40px;
  border: 1.5px solid var(--teal);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  color: var(--teal);
  letter-spacing: 1px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  transition: background var(--dur), transform var(--dur);
}
.logo-bracket::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--teal);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform var(--dur) var(--ease);
  z-index: 0;
}
.logo-bracket span { position: relative; z-index: 1; transition: color var(--dur) }
.nav-logo:hover .logo-bracket::before { transform: scaleY(1) }
.nav-logo:hover .logo-bracket span    { color: var(--ink) }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  justify-content: center;
}
.nav-links a {
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 6px;
  transition: all 0.22s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%; right: 50%;
  height: 2px;
  background: var(--teal);
  border-radius: 1px;
  transition: all 0.25s var(--ease);
}
.nav-links a:hover, .nav-links a.active {
  color: var(--white);
  background: rgba(0,174,239,0.08);
}
.nav-links a:hover::after, .nav-links a.active::after {
  left: 14%; right: 14%;
}

.nav-cta { flex-shrink: 0; font-size: 13px; padding: 10px 22px }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 5px;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--dur);
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px) }
.hamburger.open span:nth-child(2) { opacity: 0 }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px) }

/* ══════════════════════════════════════════
   HERO — FULL CINEMATIC
══════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--ink-deep);
}

/* Background image layer */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.80;
  scale: 1.05;
  transition: scale 8s ease;
}
.hero-img.loaded { scale: 1 }

/* Multi-layer overlay for depth */
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(to left, rgba(17,24,39,0.3) 0%, rgba(17,24,39,0.92) 55%, rgba(17,24,39,0.98) 100%),
    linear-gradient(to top,  rgba(17,24,39,0.9) 0%, transparent 50%);
}

/* Geometric mesh pattern */
.hero-mesh {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0,174,239,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,174,239,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 30% 50%, black 0%, transparent 70%);
}

/* Ambient glow blobs */
.hero-glow {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.glow-a {
  position: absolute;
  top: -15%; right: 10%;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(0,174,239,0.08) 0%, transparent 70%);
  border-radius: 50%;
  animation: breathe 12s ease-in-out infinite;
}
.glow-b {
  position: absolute;
  bottom: 5%; left: -5%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(232,53,43,0.05) 0%, transparent 70%);
  border-radius: 50%;
  animation: breathe 15s ease-in-out infinite 5s;
}
@keyframes breathe {
  0%,100% { transform: scale(1) translate(0,0); opacity: 0.6 }
  50%      { transform: scale(1.2) translate(20px,-20px); opacity: 1 }
}

/* Vertical accent line */
.hero-line-left {
  position: absolute;
  top: 0; bottom: 0;
  left: calc(50% - 600px);
  width: 1px;
  background: linear-gradient(to bottom, transparent 0%, rgba(0,174,239,0.25) 30%, rgba(0,174,239,0.25) 70%, transparent 100%);
  z-index: 2;
  display: none;
}

/* Numbered floating badge */
.hero-project-badge {
  position: absolute;
  top: 30%; left: 4%;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.hpb-num {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.25);
  letter-spacing: 3px;
  writing-mode: vertical-rl;
  text-orientation: mixed;
}
.hpb-line {
  width: 1px; height: 60px;
  background: linear-gradient(to bottom, rgba(0,174,239,0.5), transparent);
}

/* Main hero content */
.hero-content {
  position: relative;
  z-index: 3;
  padding: 160px 0 100px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: center;
  width: 100%;
}

/* LEFT: hero text */
.hero-left {}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(0,174,239,0.08);
  border: 1px solid rgba(0,174,239,0.22);
  border-radius: 3px;
  padding: 7px 16px;
  margin-bottom: 32px;
}
.eyebrow-dot {
  width: 7px; height: 7px;
  background: var(--teal);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(0,174,239,0.5);
  animation: ping 2.5s infinite;
}
@keyframes ping {
  0%,100% { box-shadow: 0 0 0 0 rgba(0,174,239,0.5) }
  50%      { box-shadow: 0 0 0 9px rgba(0,174,239,0) }
}
.eyebrow-text {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--teal);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(44px, 6.5vw, 90px);
  font-weight: 900;
  line-height: 1.02;
  color: var(--white);
  letter-spacing: -0.04em;
  margin-bottom: 32px;
}
body.lang-ar .hero-title {
  font-family: var(--font-ar);
  font-size: clamp(38px, 5.5vw, 76px);
  letter-spacing: 0;
  line-height: 1.12;
}
.hero-title .line1 { display: block; opacity: 0.45; font-style: italic; font-size: 0.6em }
body.lang-ar .hero-title .line1 { font-style: normal; font-size: 0.65em }
.hero-title .line2 {
  display: block;
  background: linear-gradient(135deg, var(--white) 0%, rgba(255,255,255,0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-title .line3 {
  display: block;
  color: var(--teal);
  -webkit-text-fill-color: var(--teal);
  position: relative;
  width: fit-content;
}
.hero-title .line3::after {
  content: '';
  position: absolute;
  bottom: -8px; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), transparent);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 1.2s var(--ease) 0.5s;
}
body.lang-en .hero-title .line3::after { transform-origin: left }
.hero-title .line3.ready::after { transform: scaleX(1) }

.hero-subtitle {
  font-size: clamp(14px, 1.6vw, 17px);
  color: rgba(255,255,255,0.55);
  line-height: 2;
  max-width: 500px;
  margin-bottom: 44px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 52px }

/* Stats bar — 10+ / 6 / 98% / 3+ */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: nowrap;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 16px;
  padding: 18px 10px;
  margin-bottom: 36px;
  backdrop-filter: blur(6px);
}
.hero-stats .stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  padding: 0 12px;
}
.hero-stats .stat-num {
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 900;
  color: var(--white);
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.hero-stats .stat-sym {
  font-size: clamp(16px, 2vw, 22px);
  color: var(--teal);
  font-weight: 700;
}
.hero-stats .stat-lbl {
  font-size: clamp(10px, 1.1vw, 12px);
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.5px;
  margin-top: 2px;
  white-space: nowrap;
}
/* الفاصل العمودي بين الإحصائيات */
.hero-stats .stat-div {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.12);
  flex-shrink: 0;
}

/* Divider */
.hero-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(0,174,239,0.3), transparent);
  margin-bottom: 28px;
}

/* Trust strip */
.hero-trust {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: rgba(255,255,255,0.38);
  letter-spacing: 0.3px;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.03);
  transition: border-color 0.25s, color 0.25s;
}
.trust-item:hover {
  border-color: rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.6);
}
.trust-item svg { stroke: var(--teal); flex-shrink: 0 }

/* فاصل بسيط بين العناصر العادية والضمان */
.trust-sep {
  width: 1px;
  height: 18px;
  background: rgba(255,255,255,0.10);
  flex-shrink: 0;
}

/* badge الضمان — مميز */
.trust-item--guarantee {
  position: relative;
  color: var(--teal);
  background: rgba(0,174,239,0.08);
  border-color: rgba(0,174,239,0.30);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 7px 14px 7px 10px;
  gap: 8px;
  overflow: hidden;
}
/* shimmer */
.trust-item--guarantee::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    transparent 20%,
    rgba(0,174,239,0.18) 50%,
    transparent 80%
  );
  transform: translateX(-100%);
  animation: trust-shimmer 3s ease-in-out infinite;
}
@keyframes trust-shimmer {
  0%   { transform: translateX(-100%) }
  40%, 100% { transform: translateX(200%) }
}
.trust-item--guarantee svg {
  stroke: var(--teal);
  filter: drop-shadow(0 0 4px rgba(0,174,239,0.5));
}
.trust-item--guarantee:hover {
  background: rgba(0,174,239,0.14);
  border-color: rgba(0,174,239,0.50);
  color: #fff;
}

/* RIGHT: stats panel */
.hero-right {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.stat-block {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--rl);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  overflow: hidden;
  transition: border-color var(--dur), background var(--dur), transform var(--dur);
}
.stat-block::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,174,239,0.06), transparent 50%);
  opacity: 0;
  transition: opacity var(--dur);
}
.stat-block:hover {
  border-color: rgba(0,174,239,0.25);
  background: rgba(0,174,239,0.04);
  transform: translateY(-3px);
}
body.lang-en .stat-block:hover { transform: translateY(-3px) }
.stat-block:hover::before { opacity: 1 }

.stat-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(0,174,239,0.10);
  border: 1px solid rgba(0,174,239,0.20);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.stat-icon svg { stroke: var(--teal); width: 17px; height: 17px }

.stat-body {}
.stat-num {
  font-size: 28px;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.stat-sym { font-size: 16px; color: var(--teal) }
.stat-lbl {
  font-size: 11px;
  color: rgba(255,255,255,0.42);
  margin-top: 4px;
  letter-spacing: 0.5px;
}

/* Scroll hint */
.hero-scroll {
  position: absolute;
  bottom: 36px; left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.25);
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
}
.scroll-mouse {
  width: 22px; height: 36px;
  border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: 11px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}
.scroll-ball {
  width: 3px; height: 6px;
  background: var(--teal);
  border-radius: 3px;
  animation: scrollBall 2.2s ease-in-out infinite;
}
@keyframes scrollBall {
  0%  { opacity: 1; transform: translateY(0) }
  75% { opacity: 0; transform: translateY(12px) }
  100%{ opacity: 0; transform: translateY(12px) }
}

/* ══════════════════════════════════════════
   TICKER STRIP
══════════════════════════════════════════ */
.ticker-wrap {
  background: var(--ink-mid);
  border-top: 1px solid rgba(0,174,239,0.12);
  border-bottom: 1px solid rgba(0,174,239,0.12);
  padding: 13px 0;
  overflow: hidden;
  position: relative;
}
.ticker-wrap::before,
.ticker-wrap::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 100px;
  z-index: 2;
}
.ticker-wrap::before { left:  0; background: linear-gradient(to right,  var(--ink-mid), transparent) }
.ticker-wrap::after  { right: 0; background: linear-gradient(to left, var(--ink-mid), transparent) }

.ticker-track {
  display: flex;
  gap: 0;
  white-space: nowrap;
  animation: ticker 15s linear infinite;
}
.ticker-track span {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  padding: 0 36px;
  position: relative;
}
.ticker-track span::after {
  content: '◆';
  position: absolute;
  left: 0;
  transform: translateX(-50%);
  font-size: 5px;
  color: var(--teal);
  opacity: 0.6;
}
body.lang-en .ticker-track span::after { right: 0; left: auto }
@keyframes ticker {
  from { transform: translateX(0) }
  to   { transform: translateX(50%) }
}

/* ══════════════════════════════════════════
   ABOUT SECTION
══════════════════════════════════════════ */
.about { background: var(--white) }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
}

/* ── About Gallery Layout ───────────────── */
.about-visual { position: relative; padding-bottom: 48px; padding-inline-start: 48px }

/* Gallery container: main on top, two smaller below */
.about-gallery {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.about-gallery-main {
  position: relative;
  border-radius: var(--rl);
  overflow: hidden;
  transition: transform 0.5s var(--ease);
}
.about-gallery-main:hover { transform: scale(1.012) }

/* Teal gradient overlay that fades in on hover */
.about-gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,174,239,0.10), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 2;
}
.about-gallery-main:hover .about-gallery-overlay { opacity: 1 }

.about-img-main {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: var(--rl);
  box-shadow: var(--sh-dark);
  display: block;
}

/* Inner glow border on main image */
.about-img-main-wrap {
  position: relative;
  border-radius: var(--rl);
  overflow: hidden;
}
.about-img-main-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--rl);
  box-shadow: inset 0 0 0 1px rgba(0,174,239,0.15);
  z-index: 2;
  pointer-events: none;
}

/* Row holding two smaller images side by side */
.about-gallery-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.about-img-sec-wrap,
.about-img-third-wrap {
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--sh-dark);
  border: 2px solid var(--white);
  position: relative;
  transition: transform 0.4s var(--ease), box-shadow 0.4s ease;
}
.about-img-sec-wrap:hover,
.about-img-third-wrap:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 56px rgba(0,0,0,0.3);
}

.about-img-sec {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease);
}
.about-img-sec-wrap:hover .about-img-sec,
.about-img-third-wrap:hover .about-img-sec {
  transform: scale(1.06);
}

/* Label badge on the 3rd image */
.about-img-third-badge {
  position: absolute;
  bottom: 10px;
  inset-inline-start: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0,174,239,0.88);
  backdrop-filter: blur(6px);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 10px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.5px;
  pointer-events: none;
  z-index: 3;
}
.about-img-third-badge svg { stroke: var(--white); flex-shrink: 0 }

/* Placeholders when images don't load */
.about-img-sec-wrap.img-ph,
.about-img-third-wrap.img-ph {
  background: linear-gradient(135deg, #1a2535, #111827);
  height: 160px;
  display: flex; align-items: center; justify-content: center;
}

/* Corner tick marks — gives blueprint feel */
.about-frame {
  position: absolute;
  top: -12px;
  inset-inline-end: -12px;
  width: 48px; height: 48px;
  z-index: 3;
}
.about-frame::before, .about-frame::after {
  content: '';
  position: absolute;
  background: var(--teal);
}
.about-frame::before { top: 0; inset-inline-end: 0; width: 2px; height: 28px }
.about-frame::after  { top: 0; inset-inline-end: 0; height: 2px; width: 28px }

.about-frame-bl {
  position: absolute;
  bottom: 24px;
  inset-inline-start: 24px;
  width: 48px; height: 48px;
}
.about-frame-bl::before, .about-frame-bl::after {
  content: '';
  position: absolute;
  background: var(--teal);
}
.about-frame-bl::before { bottom: 0; inset-inline-start: 0; width: 2px; height: 28px }
.about-frame-bl::after  { bottom: 0; inset-inline-start: 0; height: 2px; width: 28px }

/* Floating card — license badge */
.about-badge-card {
  position: absolute;
  top: 32px;
  inset-inline-start: -16px;
  background: var(--ink);
  border-radius: var(--r);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--sh-dark);
  border: 1px solid rgba(0,174,239,0.2);
  border-inline-start: 3px solid var(--teal);
  animation: float 6s ease-in-out infinite;
  z-index: 4;
}
@keyframes float {
  0%,100% { transform: translateY(0) }
  50%      { transform: translateY(-10px) }
}
.badge-card-icon {
  width: 40px; height: 40px;
  background: var(--teal-10);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.badge-card-icon svg { stroke: var(--teal) }
.badge-card-text strong { display: block; font-size: 13px; font-weight: 700; color: var(--white); margin-bottom: 2px }
.badge-card-text span  { font-size: 11px; color: rgba(255,255,255,0.45) }

/* Experience medallion */
.about-exp-medal {
  position: absolute;
  bottom: 32px;
  inset-inline-end: -16px;
  width: 90px; height: 90px;
  border-radius: 50%;
  background: var(--teal);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: var(--sh-teal);
  border: 4px solid var(--white);
  z-index: 4;
}
.exp-num { font-size: 26px; font-weight: 900; color: var(--white); line-height: 1 }
.exp-txt { font-size: 9px; font-weight: 700; color: rgba(255,255,255,0.8); text-align: center; line-height: 1.3 }

/* About img placeholder */
.about-img-main-wrap.img-ph {
  background: linear-gradient(135deg, #1a2535, #111827);
  height: 300px;
  display: flex; align-items: center; justify-content: center;
}
.about-img-main-wrap.img-ph svg { stroke: rgba(0,174,239,0.25) }

/* About text side */
.body-text {
  color: var(--muted);
  line-height: 1.95;
  font-size: 15.5px;
  margin-bottom: 20px;
}

/* Pillar cards */
.pillars { display: grid; gap: 12px; margin: 32px 0 }
.pillar {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 20px;
  border-radius: var(--r);
  background: var(--off-white);
  border: 1px solid var(--border);
  border-inline-start: 3px solid transparent;
  transition: border-color var(--dur), transform var(--dur), box-shadow var(--dur), background var(--dur);
}
.pillar:hover {
  border-inline-start-color: var(--teal);
  transform: translateX(-4px);
  background: var(--white);
  box-shadow: var(--sh);
}
body.lang-en .pillar:hover { transform: translateX(4px) }
.pillar-ico {
  width: 44px; height: 44px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ico-teal { background: var(--teal-10); border: 1px solid rgba(0,174,239,0.2) }
.ico-teal svg { stroke: var(--teal) }
.ico-red  { background: var(--red-10);  border: 1px solid rgba(232,53,43,0.2) }
.ico-red  svg { stroke: var(--red) }
.pillar strong { display: block; font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 3px }
.pillar p      { font-size: 13px; color: var(--muted); line-height: 1.65 }

/* ══════════════════════════════════════════
   SERVICES SECTION
══════════════════════════════════════════ */
.services { background: var(--ink); position: relative; overflow: hidden }

/* Mesh bg */
.services::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,174,239,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,174,239,0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
}

/* Numbered layout — 3 per row */
.services-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px }

.svc-item {
  padding: 40px 36px;
  border: 1px solid rgba(255,255,255,0.05);
  position: relative;
  overflow: hidden;
  transition: background var(--dur), border-color var(--dur);
  background: rgba(255,255,255,0.015);
}
.svc-item::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px;
  height: 0;
  background: linear-gradient(to bottom, var(--teal), transparent);
  transition: height 0.5s var(--ease);
}
.svc-item:hover { background: rgba(0,174,239,0.04); border-color: rgba(0,174,239,0.15) }
.svc-item:hover::before { height: 100% }

.svc-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
}
.svc-index {
  font-size: 56px;
  font-weight: 900;
  line-height: 1;
  color: rgba(0,174,239,0.07);
  font-family: var(--font-display);
  transition: color var(--dur);
}
.svc-item:hover .svc-index { color: rgba(0,174,239,0.12) }
.svc-ico {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: rgba(0,174,239,0.08);
  border: 1px solid rgba(0,174,239,0.18);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--dur), transform var(--dur);
  flex-shrink: 0;
}
.svc-ico svg { stroke: var(--teal) }
.svc-item:hover .svc-ico { background: rgba(0,174,239,0.18); transform: rotate(-6deg) scale(1.08) }

.svc-item h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.4;
}
.svc-sub {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: rgba(0,174,239,0.6);
  margin-top: 2px;
}
.svc-item ul li {
  padding: 5px 0 5px 18px;
  color: rgba(255,255,255,0.45);
  font-size: 13.5px;
  line-height: 1.65;
  position: relative;
}
.svc-item ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 14px;
  width: 6px; height: 1px;
  background: var(--teal);
  opacity: 0.5;
}
body[dir="rtl"] .svc-item ul li { padding: 5px 18px 5px 0; }
body[dir="rtl"] .svc-item ul li::before { left: auto; right: 0 }

/* Services bottom CTA bar */
.svc-cta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 52px;
  padding: 32px 40px;
  background: rgba(0,174,239,0.05);
  border: 1px solid rgba(0,174,239,0.15);
  border-radius: var(--rl);
}
.svc-cta-bar p {
  color: rgba(255,255,255,0.55);
  font-size: 15px;
  line-height: 1.7;
  max-width: 500px;
}
.svc-cta-bar p strong { color: var(--white); display: block; font-size: 18px; margin-bottom: 6px }

/* ══════════════════════════════════════════
   WORKS / PORTFOLIO
══════════════════════════════════════════ */
.works { background: var(--off-white) }

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 280px;
  gap: 14px;
}
.work-item { border-radius: var(--rl); overflow: hidden; position: relative; cursor: pointer; background: var(--ink-mid) }
.work-item.wide { grid-column: span 2 }
.work-item.tall { grid-row: span 2 }

.work-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease), filter 0.5s ease;
  filter: brightness(0.8) saturate(0.9);
}
.work-item:hover .work-img {
  transform: scale(1.08);
  filter: brightness(0.65) saturate(1.1);
}

/* Placeholder grid pattern */
.work-ph {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #141c2b, #1a2535);
}
.work-ph svg { stroke: rgba(0,174,239,0.15) }
.work-item img.loaded + .work-ph { display: none }

/* Info overlay */
.work-info {
  position: absolute; inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  background: linear-gradient(to top, rgba(17,24,39,0.96) 0%, rgba(17,24,39,0.5) 50%, transparent 100%);
  transform: translateY(10px);
  opacity: 0.9;
  transition: transform var(--dur) var(--ease), opacity var(--dur);
}
.work-item:hover .work-info { transform: translateY(0); opacity: 1 }

.work-cat {
  font-size: 10px;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 7px;
}
.work-info h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.35;
  margin-bottom: 12px;
}

/* Hover button */
.work-view {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
  color: var(--teal);
  background: rgba(0,174,239,0.1);
  border: 1px solid rgba(0,174,239,0.25);
  padding: 7px 16px;
  border-radius: 5px;
  width: fit-content;
  transform: translateY(8px);
  opacity: 0;
  transition: transform var(--dur) var(--ease) 0.05s, opacity var(--dur) 0.05s, background var(--dur), color var(--dur);
}
.work-item:hover .work-view { transform: translateY(0); opacity: 1 }
.work-view:hover { background: var(--teal); color: var(--white) }

/* Inset border on hover */
.work-item::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: var(--rl);
  box-shadow: inset 0 0 0 0 var(--teal);
  transition: box-shadow 0.4s var(--ease);
  pointer-events: none;
  z-index: 10;
}
.work-item:hover::after { box-shadow: inset 0 0 0 1.5px rgba(0,174,239,0.4) }

/* work-item كـ <a> — إلغاء أي طابع رابط */
a.work-item {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* أيقونة external link في الزاوية العليا */
.work-link-icon {
  position: absolute;
  top: 14px;
  inset-inline-end: 14px;
  z-index: 11;
  width: 30px; height: 30px;
  border-radius: 7px;
  background: rgba(17,24,39,0.65);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.28s ease, transform 0.28s var(--ease), background 0.25s;
  backdrop-filter: blur(6px);
}
.work-link-icon svg { stroke: rgba(255,255,255,0.7) }
.work-item:hover .work-link-icon {
  opacity: 1;
  transform: scale(1);
}
.work-item:hover .work-link-icon:hover {
  background: var(--teal);
}

/* ══════════════════════════════════════════
   CREDENTIALS
══════════════════════════════════════════ */
.credentials { background: var(--white) }
.creds-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch; /* يجعل جميع الكروت بنفس الارتفاع */
}

/* يجعل محتوى الكارت يمتد ليملأ الارتفاع الكامل */
.cred-card {
  display: flex;
  flex-direction: column;
}

.cred-body {
  flex: 1; /* يوزع المساحة الزائدة على body */
}

.cred-card {
  border-radius: var(--rl);
  overflow: hidden;
  border: 1.5px solid var(--border);
  box-shadow: var(--sh);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur), border-color var(--dur);
}
.cred-card:hover { transform: translateY(-8px); box-shadow: var(--sh-lg); border-color: var(--teal) }
.cred-card.featured {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0,174,239,0.12), var(--sh-lg);
  transform: translateY(-6px) scale(1.01);
}
.cred-card.featured:hover { transform: translateY(-12px) scale(1.01) }

.cred-head {
  background: var(--ink);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 2px solid var(--teal);
}
.cred-head.red-accent { border-bottom-color: var(--red) }

.cred-ident {
  min-width: 50px; height: 50px;
  border-radius: 10px;
  background: rgba(0,174,239,0.12);
  border: 1px solid rgba(0,174,239,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 900;
  color: var(--white);
  letter-spacing: 1px;
  flex-shrink: 0;
}
.cred-ident.red {
  background: rgba(232,53,43,0.12);
  border-color: rgba(232,53,43,0.3);
}

.cred-org { display: flex; flex-direction: column; gap: 3px; min-width: 0 }
.cred-org span { font-size: 14px; font-weight: 700; color: var(--white); overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.cred-org small { font-size: 10px; color: rgba(255,255,255,0.38); letter-spacing: 0.5px }

.cred-body { padding: 26px }
.cred-body h3 {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  line-height: 1.45;
}
.cred-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid #f2f4f7;
  font-size: 13px;
}
.cred-row:last-of-type { border: none }
.cred-row span    { color: var(--muted); font-size: 12px; flex-shrink: 0 }
.cred-row strong  { color: var(--text);  font-weight: 700; text-align: end }

.cred-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: 5px;
  margin-top: 16px;
}
.cred-badge.ok {
  background: rgba(22,163,74,0.08);
  color: var(--green);
  border: 1.5px solid rgba(22,163,74,0.2);
}
.cred-badge.ok svg { stroke: var(--green) }

/* ══════════════════════════════════════════
   WHY US
══════════════════════════════════════════ */
.whyus { background: var(--ink-mid); position: relative; overflow: hidden }
.whyus::before {
  content: '';
  position: absolute;
  top: -30%; right: -10%;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(0,174,239,0.04) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}

.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px }

.why-card {
  padding: 34px 28px;
  border-radius: var(--rl);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  position: relative;
  overflow: hidden;
  transition: transform var(--dur) var(--ease), border-color var(--dur), background var(--dur), box-shadow var(--dur);
}
.why-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), transparent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease);
}
body.lang-en .why-card::after { transform-origin: left }
.why-card:hover::after { transform: scaleX(1) }
.why-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0,174,239,0.22);
  background: rgba(0,174,239,0.04);
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
}

.why-n {
  font-size: 72px;
  font-weight: 900;
  color: rgba(255,255,255,0.025);
  line-height: 1;
  font-family: var(--font-display);
  position: absolute;
  top: 8px; left: 16px;
  pointer-events: none;
}
body[dir="rtl"] .why-n { left: auto; right: 16px }

.why-ico {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: rgba(0,174,239,0.09);
  border: 1px solid rgba(0,174,239,0.18);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
  transition: background var(--dur), transform var(--dur);
}
.why-ico svg { stroke: var(--teal) }
.why-card:hover .why-ico { background: rgba(0,174,239,0.18); transform: rotate(-7deg) scale(1.1) }
.why-card h3 { font-size: 17px; font-weight: 700; color: var(--white); margin-bottom: 11px }
.why-card p  { font-size: 14px; color: rgba(255,255,255,0.48); line-height: 1.85 }

/* كارت الضمان — ممتد على العمودين */
.stat-guarantee {
  grid-column: 1 / -1;
  background: rgba(0,174,239,0.06);
  border-color: rgba(0,174,239,0.22);
  padding: 16px 20px;
  gap: 14px;
  justify-content: space-between;
  overflow: hidden;
}
/* shimmer */
.stat-guarantee::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(0,174,239,0.10) 50%, transparent 80%);
  transform: translateX(-100%);
  animation: gshimmer 3.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes gshimmer {
  0%        { transform: translateX(-100%) }
  45%, 100% { transform: translateX(200%)  }
}
.stat-guarantee:hover {
  border-color: rgba(0,174,239,0.40);
  background: rgba(0,174,239,0.10);
  transform: none;
}

/* أيقونة الدرع */
.guarantee-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(0,174,239,0.15);
  border: 1px solid rgba(0,174,239,0.30);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.guarantee-icon svg {
  stroke: var(--teal);
  filter: drop-shadow(0 0 5px rgba(0,174,239,0.5));
}

/* النص */
.guarantee-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}
.guarantee-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.3px;
}
.guarantee-sub {
  font-size: 11px;
  color: rgba(255,255,255,0.38);
  line-height: 1.5;
}

/* badge مضمون */
.guarantee-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--teal);
  background: rgba(0,174,239,0.12);
  border: 1px solid rgba(0,174,239,0.28);
  padding: 5px 10px;
  border-radius: 5px;
  flex-shrink: 0;
  white-space: nowrap;
}
.guarantee-badge svg { stroke: var(--teal) }

/* موبايل */
@media (max-width: 480px) {
  .guarantee-badge { display: none }
  .guarantee-sub   { display: none }
}

/* ══════════════════════════════════════════
   CONTACT
══════════════════════════════════════════ */
.contact { background: var(--ink); position: relative; overflow: hidden }
.contact::before {
  content: '';
  position: absolute;
  bottom: -20%; left: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(0,174,239,0.05), transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
}

.contact-intro {
  font-size: 15.5px;
  color: rgba(255,255,255,0.5);
  line-height: 1.9;
  margin-bottom: 44px;
}

.contact-items { display: flex; flex-direction: column; gap: 22px }
.ci-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}
.ci-ico {
  width: 48px; height: 48px;
  border-radius: 10px;
  background: rgba(0,174,239,0.08);
  border: 1px solid rgba(0,174,239,0.18);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background var(--dur), transform var(--dur);
}
.ci-ico svg { stroke: var(--teal) }
.ci-item:hover .ci-ico { background: rgba(0,174,239,0.18); transform: rotate(-5deg) }
.ci-label { font-size: 10px; color: rgba(255,255,255,0.32); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 5px; display: block }
.ci-item a { color: var(--teal); font-weight: 700; font-size: 15.5px; transition: color var(--dur) }
.ci-item a:hover { color: #33C0F4 }
.ci-item p { color: rgba(255,255,255,0.6); font-size: 14px; line-height: 1.65 }

/* Form card */
.form-card {
  background: var(--white);
  border-radius: var(--rxl);
  padding: 48px;
  box-shadow: var(--sh-dark);
  position: relative;
  overflow: hidden;
}
/* Teal top stripe */
.form-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--teal-dark));
}
/* Corner glow */
.form-card::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 120px; height: 120px;
  background: radial-gradient(circle at top right, rgba(0,174,239,0.08), transparent 70%);
  pointer-events: none;
}

.form-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.form-grid { display: grid; gap: 18px }
.fg { display: flex; flex-direction: column; gap: 7px }
.fg label { font-size: 12px; font-weight: 700; color: var(--text); letter-spacing: 0.5px; text-transform: uppercase }
.fg input, .fg select, .fg textarea {
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  background: var(--off-white);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 13px 16px;
  outline: none;
  transition: border-color var(--dur), box-shadow var(--dur), background var(--dur);
  resize: vertical;
  direction: inherit;
  width: 100%;
}
.fg input:focus, .fg select:focus, .fg textarea:focus {
  border-color: var(--teal);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(0,174,239,0.10);
}
.fg-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px }

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
.footer {
  background: #08101C;
  color: rgba(255,255,255,0.5);
  padding: 80px 0 0;
  position: relative;
}
.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,174,239,0.4), transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1.3fr 1.5fr;
  gap: 56px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.footer-logo-img { height: 50px; width: auto; margin-bottom: 20px }
.footer-logo-text {
  display: none;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 20px;
}
.footer-logo-text strong { font-size: 22px; font-weight: 900; color: var(--white) }
.footer-logo-text em     { font-size: 9px; font-style: normal; color: var(--teal); letter-spacing: 4px }

.footer-about p { font-size: 14px; line-height: 1.85; margin-bottom: 24px; max-width: 260px }

.socials { display: flex; gap: 10px }
.socials a {
  width: 38px; height: 38px;
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.45);
  transition: all var(--dur);
  text-decoration: none;
}
.socials a:hover { background: var(--teal-10); border-color: rgba(0,174,239,0.3); color: var(--teal) }

.foot-col { display: flex; flex-direction: column; gap: 8px }
.foot-col h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(0,174,239,0.15);
}
.foot-col a {
  font-size: 13.5px;
  color: rgba(255,255,255,0.48);
  display: flex; align-items: center; gap: 7px;
  transition: color 0.2s;
  text-decoration: none;
}
.foot-col a:hover { color: var(--teal) }
.foot-col a svg { stroke: var(--teal); flex-shrink: 0 }
.foot-col span { font-size: 13.5px; color: rgba(255,255,255,0.48) }
.foot-col p { font-size: 13px; display: flex; align-items: flex-start; gap: 7px; line-height: 1.6 }
.foot-col p svg { stroke: var(--teal); flex-shrink: 0; margin-top: 2px }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  font-size: 12px;
  flex-wrap: wrap;
  gap: 12px;
  color: rgba(255,255,255,0.28);
}

/* ══════════════════════════════════════════
   FLOATING BUTTONS
══════════════════════════════════════════ */
.wa-float {
  position: fixed;
  bottom: 92px;
  inset-inline-start: 24px;
  z-index: 999;
  width: 54px; height: 54px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 24px rgba(37,211,102,0.45);
  transition: transform var(--dur), box-shadow var(--dur);
  animation: waBounce 4s ease-in-out infinite 4s;
  text-decoration: none;
}
.wa-float svg { fill: var(--white); width: 26px; height: 26px }
.wa-float:hover { transform: scale(1.12); box-shadow: 0 10px 32px rgba(37,211,102,0.55) }
@keyframes waBounce { 0%,100%{transform:scale(1)} 50%{transform:scale(1.08) translateY(-5px)} }

.btt {
  position: fixed;
  bottom: 28px;
  inset-inline-start: 24px;
  z-index: 999;
  width: 44px; height: 44px;
  background: var(--teal);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--sh-teal);
  opacity: 0; pointer-events: none;
  transition: opacity var(--dur), transform var(--dur), background var(--dur);
  transform: translateY(12px);
  cursor: pointer;
}
.btt.show { opacity: 1; pointer-events: auto; transform: translateY(0) }
.btt:hover { background: var(--teal-dark); transform: translateY(-2px) }
.btt svg { stroke: var(--white) }

/* ══════════════════════════════════════════
   SCROLLBAR
══════════════════════════════════════════ */
::-webkit-scrollbar       { width: 5px }
::-webkit-scrollbar-track { background: var(--ink) }
::-webkit-scrollbar-thumb { background: var(--teal); border-radius: 3px; opacity: 0.8 }

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 1100px) {
  /* services-list: يتحول لعمودين هنا، ويتحول لعمود واحد عند 640px (انظر الأسفل) */
  .services-list { grid-template-columns: repeat(2, 1fr) }
  .works-grid    { grid-template-columns: 1fr 1fr; grid-auto-rows: 260px }
  .works-grid .work-item.tall { grid-row: span 1 }
  .why-grid      { grid-template-columns: repeat(2, 1fr) }
  /* credentials: 3 cards → 1 col على الشاشات المتوسطة لأن 3 cols ضيقة جداً */
  .creds-grid    { grid-template-columns: repeat(2, 1fr); max-width: 720px; margin: 0 auto }
  .cred-card.featured { transform: none }
  .footer-grid   { grid-template-columns: 1fr 1fr; gap: 36px }
}

@media (max-width: 900px) {
  .hero-content  { grid-template-columns: 1fr; padding-top: 140px; gap: 50px }
  /* hero-right في HTML قبل hero-left (لأجل RTL ديسكتوب) — نعكس الترتيب هنا */
  .hero-left  { order: 1 }
  .hero-right { order: 2; display: grid; grid-template-columns: repeat(2, 1fr) }
  .about-grid    { grid-template-columns: 1fr; gap: 60px }
  .about-visual  { padding-bottom: 32px; padding-inline-start: 32px }
  .about-badge-card { position: relative; inset: auto; margin-top: 16px; animation: none }
  .contact-grid  { grid-template-columns: 1fr; gap: 56px }
}

@media (max-width: 768px) {
  .section { padding: 72px 0 }
  /* اللانج بار على الموبايل ارتفاعها ~37px، الناف بار يجلس فوقها صح */
  .lang-info { display: none }
  .navbar { top: 37px }
  .navbar.scrolled { top: 0 }
  .nav-links, .nav-cta { display: none }
  .hamburger { display: flex }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: rgba(17,24,39,0.99);
    backdrop-filter: blur(24px);
    padding: 100px 32px 40px;
    gap: 4px;
    z-index: 999;
    justify-content: flex-start;
    align-items: stretch;
  }
  .nav-links.open a {
    padding: 16px 20px;
    font-size: 18px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px;
  }

  .hero-title { font-size: clamp(36px, 9vw, 60px) }
  /* hero-right في الـ HTML قبل hero-left (لأجل RTL على ديسكتوب)،
     لكن على الموبايل نعيد ترتيبهم: النص أولاً ثم الإحصائيات */
  .hero-left  { order: 1 }
  .hero-right { order: 2; display: grid; grid-template-columns: 1fr 1fr }
  .hero-actions { flex-direction: column }
  .hero-actions .btn-lg { width: 100%; justify-content: center }

  /* Stats bar on mobile: 2x2 grid */
  .hero-stats { flex-wrap: wrap; padding: 12px 6px }
  .hero-stats .stat { flex: 0 0 50%; padding: 12px 8px }
  .hero-stats .stat-div { display: none }

  .works-grid { grid-template-columns: 1fr; grid-auto-rows: 240px }
  .works-grid .work-item.wide, .works-grid .work-item.tall { grid-column: span 1; grid-row: span 1 }

  .why-grid { grid-template-columns: 1fr }
  .footer-grid { grid-template-columns: 1fr }
  .footer-bottom { flex-direction: column; text-align: center }
  .form-card { padding: 32px 24px }
  .fg-row { grid-template-columns: 1fr }
  .svc-cta-bar { flex-direction: column; padding: 24px }
}

@media (max-width: 480px) {
  .hero-right { grid-template-columns: 1fr 1fr }
  .stat-block { padding: 14px 16px; gap: 10px }
  .stat-num   { font-size: 22px }
  .stat-icon  { width: 34px; height: 34px }
  .stat-icon svg { width: 14px; height: 14px }
}

/* ══════════════════════════════════════════
   LTR OVERRIDES
══════════════════════════════════════════ */
body.lang-en .about-badge-card { inset-inline-start: -16px }
body.lang-en .about-frame { inset-inline-end: -12px }
body.lang-en .about-frame-bl { inset-inline-start: 24px }
body.lang-en .pillar:hover { transform: translateX(4px) }
body.lang-en .hero-mesh {
  mask-image: radial-gradient(ellipse 80% 80% at 70% 50%, black 0%, transparent 70%);
}

/* ══════════════════════════════════════════
   DESKTOP-ONLY ENHANCEMENTS
══════════════════════════════════════════ */
@media (min-width: 769px) {
  /* تأكيد ظهور الناف بار على ديسكتوب حتى لو تم إخفاؤه بواسطة JS خطأً */
  .nav-links { display: flex !important }
  .nav-cta   { display: inline-flex !important }
  /* contact form يبقى عمودين على الشاشات الكبيرة */
  .fg-row    { grid-template-columns: 1fr 1fr }
}

/* ══════════════════════════════════════════
   EXTRA VISUAL ANIMATIONS (v8 additions)
══════════════════════════════════════════ */

/* ── 1. Section headings: animated underline on reveal ─── */
.heading .hi {
  position: relative;
  display: inline-block;
}
.heading .hi::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), transparent);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 1s var(--ease) 0.3s;
}
body.lang-en .heading .hi::after { transform-origin: left }
.revealed .heading .hi::after,
.heading .hi.anim-underline { transform: scaleX(1) }

/* ── 2. Service items: number counter pulse on hover ─── */
@keyframes svcPop {
  0%   { transform: scale(1) }
  40%  { transform: scale(1.18) }
  100% { transform: scale(1) }
}
.svc-item:hover .svc-index { animation: svcPop 0.45s var(--ease) }

/* ── 3. Stat blocks: shimmer sweep ─── */
@keyframes shimmer {
  0%   { left: -80% }
  100% { left: 130% }
}
.stat-block::after {
  content: '';
  position: absolute;
  top: 0;
  left: -80%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0,174,239,0.06), transparent);
  pointer-events: none;
  transition: none;
}
.stat-block:hover::after {
  animation: shimmer 0.7s var(--ease) forwards;
}

/* ── 4. Ticker track: pause on hover for readability ─── */
.ticker-wrap:hover .ticker-track { animation-play-state: paused }

/* ── 5. Work items: category tag slides in on hover ─── */
.work-cat {
  display: inline-block;
  transform: translateY(6px);
  opacity: 0.6;
  transition: transform 0.35s var(--ease), opacity 0.35s ease;
}
.work-item:hover .work-cat {
  transform: translateY(0);
  opacity: 1;
}

/* ── 6. Nav logo: subtle rotation on hover ─── */
.nav-logo:hover .logo-bracket {
  transform: rotate(-6deg) scale(1.08);
}

/* ── 7. Pillar cards: icon spin on hover ─── */
@keyframes pillarIconSpin {
  0%   { transform: rotate(0deg) }
  100% { transform: rotate(360deg) }
}
.pillar:hover .pillar-ico svg {
  animation: pillarIconSpin 0.7s var(--ease);
}

/* ── 8. CTA bar: pulsing border glow ─── */
@keyframes ctaGlow {
  0%,100% { box-shadow: 0 0 0 0 rgba(0,174,239,0.15) }
  50%      { box-shadow: 0 0 0 8px rgba(0,174,239,0) }
}
.svc-cta-bar {
  animation: ctaGlow 3s ease-in-out infinite;
}

/* ── 9. Footer socials: scale + colour on hover ─── */
.socials a {
  transition: transform 0.3s var(--ease), background 0.3s, border-color 0.3s, color 0.3s;
}
.socials a:hover { transform: translateY(-4px) scale(1.12) }

/* ── 10. Back-to-top: spin arrow on hover ─── */
@keyframes bttSpin {
  0%   { transform: rotate(0deg) }
  100% { transform: rotate(-360deg) }
}
.btt:hover svg { animation: bttSpin 0.5s var(--ease) }

/* ── RESPONSIVE: about gallery on mobile ─────────────── */
@media (max-width: 900px) {
  .about-gallery-row { grid-template-columns: 1fr 1fr }
  .about-img-main    { height: 220px }
  .about-img-sec     { height: 130px }
}
@media (max-width: 600px) {
  .about-gallery-row { grid-template-columns: 1fr }
  .about-img-third-wrap { display: none }   /* keep layout clean on small screens */
}

/* ── RESPONSIVE: services 2-col → 1-col ──────────────
   (3-col default is in main CSS, 2-col at 1100px is above) */
@media (max-width: 640px) {
  .services-list { grid-template-columns: 1fr }
}

/* ── RESPONSIVE: credentials ─────────────────────── */
@media (max-width: 640px) {
  .creds-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto }
  .cred-card.featured { transform: none }
}

/* ══════════════════════════════════════════
   FIX: select عناصر على iOS
   بدون هذا يظهر السهم والحواف بشكل مختلف
══════════════════════════════════════════ */
.fg select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 14px center; /* RTL: السهم على اليسار */
  padding-left: 40px;
  cursor: pointer;
}
body.lang-en .fg select {
  background-position: right 14px center;
  padding-left: 16px;
  padding-right: 40px;
}

/* ══════════════════════════════════════════
   WORKS GRID: work-view الآن <span> وليس <a>
   نضمن نفس الـ styling
══════════════════════════════════════════ */
span.work-view {
  cursor: pointer;
  user-select: none;
}

/* ══════════════════════════════════════════
   WORKS GRID: 7 مشاريع — تعديل grid على الموبايل
   الصف الأخير (7) يمتد على العرض الكامل كـ wide
══════════════════════════════════════════ */
@media (max-width: 768px) {
  /* work-7 يكون عرض كامل على الموبايل */
  .works-grid a.work-item:last-child {
    grid-column: span 1;
  }
}

/* ══════════════════════════════════════════
   FORM: تأثيرات تفاعلية مُحسَّنة
   (focus-within highlight للـ .fg)
══════════════════════════════════════════ */
.fg:focus-within label {
  color: var(--teal);
}
.fg input::placeholder,
.fg textarea::placeholder {
  color: var(--muted);
  opacity: 0.7;
}
/* منع zoom على iOS عند focus على input */
@media (max-width: 768px) {
  .fg input, .fg select, .fg textarea {
    font-size: 16px; /* 16px = لا zoom على iOS */
  }
}

/* inset-inline-end في .work-link-icon يعمل تلقائياً مع RTL/LTR */
