/* ============================================================
   Code Experts — شركة الخبراء للحلول التقنية
   Design system
   ============================================================ */

:root {
  /* Brand */
  --navy-950: #08182b;
  --navy-900: #0b1f36;
  --navy-850: #0e2540;
  --navy-800: #102a47;
  --navy-700: #163a5e;
  --navy-600: #1d4a76;

  --teal:      #5fa8a2;   /* primary accent */
  --teal-400:  #6fb3ad;
  --teal-300:  #8fc9c4;
  --teal-200:  #b9deda;
  --teal-600:  #4a8b86;
  --teal-700:  #3a716d;

  --paper:   #f3f6f7;
  --paper-2: #ffffff;
  --paper-3: #e9eff1;

  --ink:    #0e2540;
  --ink-2:  #2c4257;
  --muted:  #5e7081;
  --muted-2:#8093a1;

  --line:        rgba(14, 37, 64, 0.10);
  --line-strong: rgba(14, 37, 64, 0.16);
  --line-dark:   rgba(255, 255, 255, 0.10);

  /* tweakable accent */
  --accent: var(--teal);
  --accent-soft: rgba(95, 168, 162, 0.14);

  --maxw: 1240px;
  --gut: clamp(20px, 5vw, 64px);
  --radius: 18px;
  --radius-lg: 26px;
  --radius-sm: 12px;

  --font-sans: "Noto Kufi Arabic", "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Noto Kufi Arabic", "IBM Plex Sans Arabic", sans-serif;
  --font-ui: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;

  --shadow-sm: 0 1px 3px rgba(8, 24, 43, 0.06), 0 6px 18px rgba(8, 24, 43, 0.05);
  --shadow:    0 10px 40px rgba(8, 24, 43, 0.10);
  --shadow-lg: 0 30px 70px rgba(8, 24, 43, 0.18);
  --shadow-teal: 0 18px 40px rgba(58, 113, 109, 0.30);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
html.reduce-motion { scroll-behavior: auto; }

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 { line-height: 1.28; margin: 0; font-weight: 700; letter-spacing: -0.01em; font-family: var(--font-display); }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }

/* mono accents always LTR */
.mono { font-family: var(--font-mono); direction: ltr; unicode-bidi: isolate; font-feature-settings: "ss01"; }

/* ---------- Section scaffolding ---------- */
.section { padding-block: clamp(72px, 9vw, 130px); position: relative; }
.section--dark { background: var(--navy-900); color: #eaf1f3; }
.section--navy { background: linear-gradient(180deg, var(--navy-900), var(--navy-950)); color: #eaf1f3; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--teal-600);
}
.section--dark .eyebrow, .section--navy .eyebrow { color: var(--teal-300); }
.eyebrow::before {
  content: ""; width: 26px; height: 2px; background: var(--accent); display: inline-block; border-radius: 2px;
}

.sec-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }
.sec-head h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); margin-top: 18px; }
.sec-head p { margin-top: 18px; font-size: 1.08rem; color: var(--muted); }
.section--dark .sec-head p, .section--navy .sec-head p { color: #a9bdc8; }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-head--center .eyebrow { justify-content: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: 1rem;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .25s, color .25s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-teal); }
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 24px 50px rgba(58, 113, 109, 0.42); }
.btn--ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.section--dark .btn--ghost, .section--navy .btn--ghost, .hero .btn--ghost { box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.24); color: #eaf1f3; }
.btn--ghost:hover { background: var(--accent-soft); box-shadow: inset 0 0 0 1.5px var(--accent); transform: translateY(-3px); }
.btn--light { background: #fff; color: var(--navy-900); }
.btn--light:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.btn--lg { padding: 17px 34px; font-size: 1.06rem; }

/* ============================================================
   Header / nav
   ============================================================ */
.site-header {
  position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 100;
  transition: background .4s var(--ease), box-shadow .4s var(--ease), padding .4s var(--ease);
  padding-block: 18px;
}
.site-header.scrolled {
  background: rgba(243, 246, 247, 0.82);
  backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 1px 0 var(--line), 0 8px 30px rgba(8,24,43,.06);
  padding-block: 11px;
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark { width: 38px; height: 38px; flex: none; }
.brand__mark .e { fill: var(--navy-850); transition: fill .3s; }
.brand__mark .c { fill: var(--teal); }
.scrolled .brand__mark .e, .hero-mode-light .brand__mark .e { fill: var(--navy-850); }
.brand__name { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name b { font-size: 1.06rem; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; font-family: var(--font-sans); }
.brand__name span { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.26em; color: var(--teal-600); text-transform: uppercase; }
/* header over hero (top, not scrolled) = light text */
.site-header:not(.scrolled) .brand__name b { color: #fff; }
.site-header:not(.scrolled) .brand__mark .e { fill: #fff; }
.site-header:not(.scrolled) .brand__name span { color: var(--teal-300); }

.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a {
  padding: 9px 15px; border-radius: 999px; font-size: 0.96rem; font-weight: 500; font-family: var(--font-sans);
  color: rgba(255,255,255,.82); transition: color .25s, background .25s;
}
.scrolled .nav__links a { color: var(--ink-2); }
.nav__links a:hover { color: #fff; background: rgba(255,255,255,.10); }
.scrolled .nav__links a:hover { color: var(--navy-900); background: var(--accent-soft); }
.nav__links a.active { color: var(--teal-300); }
.scrolled .nav__links a.active { color: var(--teal-700); background: var(--accent-soft); }

.nav__cta { display: flex; align-items: center; gap: 10px; }
.nav__drawer-cta { display: none; }   /* only shown inside the open mobile drawer */
.site-header:not(.scrolled) .nav__cta .btn--ghost { color: #fff; }

.nav__burger { display: none; width: 44px; height: 44px; border-radius: 12px; align-items: center; justify-content: center; }
.nav__burger span { display: block; width: 22px; height: 2px; background: currentColor; position: relative; transition: .3s; }
.nav__burger span::before, .nav__burger span::after { content: ""; position: absolute; left: 0; width: 22px; height: 2px; background: currentColor; transition: .3s; }
.nav__burger span::before { top: -7px; } .nav__burger span::after { top: 7px; }
.site-header:not(.scrolled) .nav__burger { color: #fff; }
.nav-open .nav__burger span { background: transparent; }
.nav-open .nav__burger span::before { top: 0; transform: rotate(45deg); }
.nav-open .nav__burger span::after { top: 0; transform: rotate(-45deg); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  background: radial-gradient(120% 120% at 85% -10%, #15375a 0%, var(--navy-900) 45%, var(--navy-950) 100%);
  color: #eaf1f3; overflow: hidden; padding-block: 130px 70px;
}
.hero__grid-bg {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--line-dark) 1px, transparent 1px), linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: radial-gradient(120% 90% at 70% 0%, #000 0%, transparent 72%);
          mask-image: radial-gradient(120% 90% at 70% 0%, #000 0%, transparent 72%);
  opacity: .55;
}
.hero__glow { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .5; pointer-events: none; }
.hero__glow.g1 { width: 520px; height: 520px; background: radial-gradient(circle, var(--teal), transparent 65%); top: -180px; inset-inline-end: -120px; opacity:.4; }
.hero__glow.g2 { width: 420px; height: 420px; background: radial-gradient(circle, #1d4a76, transparent 65%); bottom: -160px; inset-inline-start: -100px; }

.hero__inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 72px); align-items: center; width: 100%; }

.hero__chip {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 8px 7px 16px;
  border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  font-size: .85rem; color: #cfe0e4; margin-bottom: 26px;
}
.hero__chip b { font-weight: 600; color: #fff; }
.hero__chip .dot { width: 8px; height: 8px; border-radius: 50%; background: #69d6a0; box-shadow: 0 0 0 4px rgba(105,214,160,.18); }
.hero__chip .tag { font-family: var(--font-mono); font-size: .72rem; background: var(--accent); padding: 3px 9px; border-radius: 999px; color: #06241f; font-weight: 600; }

.hero h1 {
  font-size: clamp(1.95rem, 4.2vw, 3.4rem); line-height: 1.25; letter-spacing: -0.02em;
  text-wrap: balance;
}
.hero h1 .hl { position: relative; color: var(--teal-300); white-space: nowrap; }
.hero h1 .hl::after {
  content: ""; position: absolute; inset-inline: -2px; bottom: 6px; height: 12px; z-index: -1;
  background: var(--accent); opacity: .28; border-radius: 4px;
}
.hero__sub { font-size: clamp(1.05rem, 1.8vw, 1.28rem); color: #b6cad2; max-width: 560px; margin-top: 24px; text-wrap: pretty; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 44px; }
.hero__meta-item { display: flex; flex-direction: column; }
.hero__meta-item b { font-size: 1.7rem; font-weight: 700; color: #fff; font-family: var(--font-mono); }
.hero__meta-item span { font-size: .86rem; color: #91a8b3; }
.hero__meta-sep { width: 1px; background: var(--line-dark); }

/* hero code window */
.code-window {
  background: linear-gradient(180deg, rgba(18,42,71,.92), rgba(11,31,54,.96));
  border: 1px solid rgba(255,255,255,.10); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); overflow: hidden; backdrop-filter: blur(6px);
  transform: perspective(1400px) rotateY(6deg) rotateX(2deg);
  transition: transform .6s var(--ease);
}
.code-window:hover { transform: perspective(1400px) rotateY(2deg) rotateX(1deg) translateY(-6px); }
.code-window__bar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid rgba(255,255,255,.07); }
.code-window__bar i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.code-window__bar i:nth-child(1){ background:#ff5f57;} .code-window__bar i:nth-child(2){ background:#febc2e;} .code-window__bar i:nth-child(3){ background:#28c840;}
.code-window__bar .file { margin-inline-start: 12px; font-family: var(--font-mono); font-size: .76rem; color: #7d94a0; direction: ltr; }
.code-window__body { padding: 22px 24px 26px; font-family: var(--font-mono); font-size: .86rem; direction: ltr; line-height: 2; min-height: 280px; }
.code-line { white-space: pre; color: #c7d6dd; }
.code-line .k { color: #79c0ff; }
.code-line .s { color: #a5d6a4; } .code-line .f { color: var(--teal-300); } .code-line .c { color: #5b7283; } .code-line .n { color: #ffab70; }
.code-line .ok { color: #69d6a0; font-weight: 600; }
.cursor { display: inline-block; width: 8px; height: 1.05em; background: var(--teal-300); vertical-align: -2px; animation: blink 1.1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.code-window__foot { display:flex; gap:8px; flex-wrap:wrap; padding: 0 24px 22px; }
.code-window__foot span { font-family: var(--font-mono); font-size:.7rem; color:#9fb4be; border:1px solid rgba(255,255,255,.12); padding:4px 10px; border-radius:999px; direction:ltr; }

.hero__scroll { position: absolute; bottom: 26px; inset-inline-start: 50%; transform: translateX(-50%); z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 8px; color: #80969f; font-size: .72rem; font-family: var(--font-mono); letter-spacing: .1em; }
.hero__scroll .mouse { width: 22px; height: 36px; border: 2px solid rgba(255,255,255,.3); border-radius: 12px; position: relative; }
.hero__scroll .mouse::before { content: ""; position: absolute; top: 6px; left: 50%; transform: translateX(-50%); width: 3px; height: 7px; background: var(--teal-300); border-radius: 2px; animation: scrolldot 1.6s var(--ease) infinite; }
@keyframes scrolldot { 0%{opacity:0; transform:translate(-50%,0);} 30%{opacity:1;} 100%{opacity:0; transform:translate(-50%,12px);} }

/* ---------- marquee / partners ---------- */
.marquee { background: var(--navy-950); padding-block: 30px; overflow: hidden; border-block: 1px solid var(--line-dark); }
.marquee__label { text-align:center; font-family:var(--font-mono); font-size:.74rem; letter-spacing:.18em; text-transform:uppercase; color:#6d8591; margin-bottom: 22px; }
.marquee__track { display: flex; gap: 70px; width: max-content; animation: scroll-x 32s linear infinite; align-items: center; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track img { height: 38px; width: auto; opacity: .62; filter: grayscale(1) brightness(2); transition: opacity .3s; }
.marquee__track .pl { display:flex; align-items:center; gap:10px; color:#8aa0ab; font-weight:600; font-size:1.05rem; opacity:.7; }
.marquee__track .pl svg { width: 26px; height: 26px; }
@keyframes scroll-x { to { transform: translateX(calc(-50% - 35px)); } }

/* ============================================================
   Reveal animation
   ============================================================ */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"]{ transition-delay:.08s;} .reveal[data-d="2"]{ transition-delay:.16s;}
.reveal[data-d="3"]{ transition-delay:.24s;} .reveal[data-d="4"]{ transition-delay:.32s;} .reveal[data-d="5"]{ transition-delay:.4s;}
html.reduce-motion .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }

/* ============================================================
   Stats
   ============================================================ */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(18px, 3vw, 40px); }
.stat { text-align: center; padding: 12px; position: relative; }
.stat:not(:last-child)::after { content:""; position:absolute; inset-inline-start: -1px; top: 20%; height: 60%; width: 1px; background: var(--line-dark); }
.stat b { display:block; font-family: var(--font-mono); font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 700; color: #fff; letter-spacing: -.02em; }
.stat b .suf { color: var(--teal-300); }
.stat span { color: #9fb4be; font-size: .98rem; }

/* ============================================================
   Services
   ============================================================ */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.svc {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 34px 30px; position: relative; overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .4s;
}
.svc::before { content:""; position:absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--accent), transparent); transform: scaleX(0); transform-origin: var(--so, right); transition: transform .5s var(--ease); }
.svc:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: transparent; }
.svc:hover::before { transform: scaleX(1); }
.svc__icon {
  width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--teal-700); margin-bottom: 22px;
  transition: transform .5s var(--ease), background .4s;
}
.svc:hover .svc__icon { transform: scale(1.06) rotate(-4deg); }
.svc__icon svg { width: 28px; height: 28px; }
.svc h3 { font-size: 1.3rem; margin-bottom: 10px; }
.svc p { color: var(--muted); font-size: 1rem; }
.svc__tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.svc__tags span { font-family: var(--font-mono); font-size: .72rem; color: var(--teal-700); background: var(--accent-soft); padding: 4px 10px; border-radius: 999px; direction: ltr; }
.svc__no { position: absolute; top: 26px; inset-inline-end: 28px; font-family: var(--font-mono); font-size: .8rem; color: var(--line-strong); font-weight: 600; }

/* ============================================================
   Process
   ============================================================ */
.process { position: relative; }
.proc-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; position: relative; }
.proc-grid::before { content:""; position:absolute; top: 30px; inset-inline: 40px; height: 2px; background: repeating-linear-gradient(90deg, var(--teal-300) 0 8px, transparent 8px 18px); opacity:.5; }
.proc { position: relative; }
.proc__num {
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  background: var(--navy-900); color: var(--teal-300); font-family: var(--font-mono); font-weight: 700; font-size: 1.15rem;
  margin-bottom: 22px; position: relative; z-index: 1; box-shadow: 0 0 0 6px var(--paper);
  transition: transform .4s var(--ease), background .4s;
}
.proc:hover .proc__num { transform: translateY(-4px) scale(1.05); background: var(--accent); color: #fff; }
.proc h3 { font-size: 1.12rem; margin-bottom: 8px; }
.proc p { color: var(--muted); font-size: .96rem; }

/* ============================================================
   Portfolio
   ============================================================ */
.work-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px; }
.work {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--navy-900);
  box-shadow: var(--shadow-sm); transition: transform .5s var(--ease), box-shadow .5s var(--ease);
  min-height: 320px; display: flex; flex-direction: column; justify-content: flex-end;
}
.work:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.work__media { position: absolute; inset: 0; overflow: hidden; }
.work__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.work:hover .work__media img { transform: scale(1.06); }
.work__media::after { content:""; position:absolute; inset:0; pointer-events: none; background: linear-gradient(180deg, rgba(8,24,43,.05) 30%, rgba(8,24,43,.92) 100%); }
.work__body { position: relative; z-index: 2; padding: 28px; color: #fff; }
.work__cat { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-300); }
.work__body h3 { font-size: 1.5rem; margin: 10px 0 6px; }
.work__body p { color: #c2d3da; font-size: .98rem; max-width: 46ch; }
.work__link { display:inline-flex; align-items:center; gap:8px; margin-top:16px; font-size:.92rem; font-weight:600; color:var(--teal-300); }
.work__link svg { width:16px; height:16px; transition: transform .35s var(--ease); }
.work:hover .work__link svg { transform: translateX(-5px); }
.work.span4 { grid-column: span 4; } .work.span3 { grid-column: span 3; } .work.span2 { grid-column: span 2; }
.work.tall { min-height: 380px; }
.work__feats { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.work__feats span { font-size: .78rem; font-weight: 600; color: #fff; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); padding: 5px 12px; border-radius: 999px; }

/* ============================================================
   Ittihad showcase (navy theme · minimal red)
   ============================================================ */
.ith .eyebrow::before { display: none; }
.ith-dot { width: 9px; height: 9px; border-radius: 50%; background: #d02127; display: inline-block; box-shadow: 0 0 0 4px rgba(208,33,39,.2); }
.ith-main { margin-bottom: 60px; }
.ith-browser { max-width: 1010px; margin-inline: auto; border-radius: 18px; overflow: hidden; border: 1px solid rgba(255,255,255,.12); box-shadow: var(--shadow-lg); background: #0c0c0c; }
.ith-browser__bar { display: flex; align-items: center; gap: 7px; padding: 13px 17px; background: var(--navy-800); border-bottom: 1px solid rgba(255,255,255,.08); }
.ith-browser__bar i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,.2); display: block; }
.ith-browser__bar .url { margin-inline-start: 12px; font-size: .76rem; color: #9fb4be; background: rgba(255,255,255,.06); padding: 4px 14px; border-radius: 999px; direction: ltr; }
.ith-browser img { width: 100%; display: block; }

.ith-subhead { color: #fff; font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin: 8px 0 26px; }

.ith-gallery { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; margin-bottom: 60px; }
.ith-shot.s3 { grid-column: span 3; } .ith-shot.s2 { grid-column: span 2; }
.ith-shot { border-radius: 16px; overflow: hidden; border: 1px solid rgba(255,255,255,.1); background: var(--navy-850); box-shadow: var(--shadow); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.ith-shot:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.ith-shot__img { overflow: hidden; aspect-ratio: 16 / 9; }
.ith-shot__img img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .7s var(--ease); }
.ith-shot:hover .ith-shot__img img { transform: scale(1.05); }
.ith-shot figcaption { display: flex; align-items: center; gap: 9px; padding: 15px 18px; color: #dce7ec; font-size: .96rem; font-weight: 600; }
.ith-shot .live { width: 8px; height: 8px; border-radius: 50%; background: #d02127; box-shadow: 0 0 0 4px rgba(208,33,39,.22); animation: blink 1.4s infinite; flex: none; }

.ith-feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 46px; }
.ith-feat { display: flex; gap: 15px; align-items: flex-start; padding: 22px; border-radius: 16px; background: rgba(255,255,255,.04); border: 1px solid var(--line-dark); transition: background .3s, transform .3s; }
.ith-feat:hover { background: rgba(95,168,162,.10); transform: translateY(-4px); }
.ith-feat__ic { flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--accent-soft); color: var(--teal-300); display: grid; place-items: center; }
.ith-feat__ic svg { width: 24px; height: 24px; }
.ith-feat b { display: block; color: #fff; font-size: 1.04rem; margin-bottom: 4px; }
.ith-feat span { color: #a9bdc8; font-size: .92rem; }
.ith-cta { text-align: center; }
@media (max-width: 1080px){ .ith-feats { grid-template-columns: repeat(2, 1fr); } .ith-gallery { grid-template-columns: repeat(4, 1fr); } .ith-shot.s3, .ith-shot.s2 { grid-column: span 2; } }
@media (max-width: 760px){ .ith-feats { grid-template-columns: 1fr; } .ith-gallery { grid-template-columns: 1fr; } .ith-shot.s3, .ith-shot.s2 { grid-column: span 1; } }

/* ============================================================
   Why us / features split
   ============================================================ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 80px); align-items: center; }
.feat-list { display: grid; gap: 14px; margin-top: 32px; }
.feat {
  display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; border-radius: var(--radius);
  background: rgba(255,255,255,.04); border: 1px solid var(--line-dark); transition: background .3s, transform .3s;
}
.feat:hover { background: rgba(255,255,255,.07); transform: translateX(-6px); }
.feat__ic { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--teal-300); display: grid; place-items: center; }
.feat__ic svg { width: 22px; height: 22px; }
.feat b { display: block; font-size: 1.06rem; color: #fff; margin-bottom: 3px; }
.feat span { color: #a9bdc8; font-size: .95rem; }

.stack-card {
  background: linear-gradient(160deg, var(--navy-800), var(--navy-950));
  border: 1px solid var(--line-dark); border-radius: var(--radius-lg); padding: 34px;
  box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.stack-card h3 { color: #fff; font-size: 1.2rem; margin-bottom: 6px; }
.stack-card p.sub { color: #93a8b3; font-size: .92rem; margin-bottom: 24px; }
.tech-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tech {
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 10px; border-radius: 14px;
  background: rgba(255,255,255,.04); border: 1px solid var(--line-dark); transition: transform .35s var(--ease), background .3s;
}
.tech:hover { transform: translateY(-4px); background: rgba(95,168,162,.12); }
.tech svg { width: 30px; height: 30px; color: var(--teal-300); }
.tech span { font-family: var(--font-mono); font-size: .72rem; color: #b6cad2; direction: ltr; }

/* ============================================================
   Testimonials
   ============================================================ */
.quote-card {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 38px 34px; box-shadow: var(--shadow-sm); position: relative; height: 100%;
}
.quote-card .mark { font-family: Georgia, serif; font-size: 4rem; line-height: .6; color: var(--accent); opacity: .28; }
.quote-card p { font-size: 1.12rem; color: var(--ink-2); margin: 10px 0 26px; text-wrap: pretty; }
.quote-card .who { display: flex; align-items: center; gap: 14px; }
.quote-card .who .av { width: 48px; height: 48px; border-radius: 50%; background: var(--accent-soft); color: var(--teal-700); display: grid; place-items: center; font-weight: 700; font-family: var(--font-mono); }
.quote-card .who b { display: block; font-size: 1rem; }
.quote-card .who span { font-size: .86rem; color: var(--muted); }
.quotes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

/* ============================================================
   CTA band
   ============================================================ */
.cta-band { position: relative; overflow: hidden; background: linear-gradient(120deg, var(--teal-700), var(--teal)); color: #fff; border-radius: 0; }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); max-width: 18ch; }
.cta-band p { color: rgba(255,255,255,.86); margin-top: 12px; max-width: 42ch; }
.cta-band__deco { position: absolute; font-family: var(--font-mono); color: rgba(255,255,255,.10); font-size: 7rem; font-weight: 700; bottom: -30px; inset-inline-start: 40%; user-select: none; }

/* ============================================================
   Contact
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.contact-info { display: grid; gap: 14px; }
.ci-row { display: flex; gap: 16px; align-items: flex-start; padding: 18px; border-radius: var(--radius); background: var(--paper-2); border: 1px solid var(--line); transition: transform .3s, box-shadow .3s; }
.ci-row:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.ci-row .ic { flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--accent-soft); color: var(--teal-700); display: grid; place-items: center; }
.ci-row .ic svg { width: 22px; height: 22px; }
.ci-row .lbl { font-size: .82rem; color: var(--muted); }
.ci-row .val { font-weight: 600; color: var(--ink); direction: ltr; text-align: start; }
.ci-row[dir] { }

.form-card { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .9rem; font-weight: 500; margin-bottom: 8px; color: var(--ink-2); }
.field label .req { color: var(--accent); }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 16px; border-radius: 12px; border: 1.5px solid var(--line-strong);
  background: var(--paper); font-family: inherit; font-size: 1rem; color: var(--ink); transition: border-color .25s, box-shadow .25s, background .25s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 4px var(--accent-soft); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip-radio { position: relative; }
.chip-radio input { position: absolute; opacity: 0; }
.chip-radio label { padding: 10px 16px; border-radius: 999px; border: 1.5px solid var(--line-strong); font-size: .92rem; font-weight: 500; cursor: pointer; transition: .25s; margin: 0; color: var(--ink-2); }
.chip-radio input:checked + label { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: var(--shadow-teal); }
.chip-radio input:focus-visible + label { box-shadow: 0 0 0 4px var(--accent-soft); }
.form-note { font-size: .84rem; color: var(--muted); margin-top: 6px; }
.form-ok { display: none; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 14px; background: var(--accent-soft); color: var(--teal-700); font-weight: 600; margin-bottom: 16px; }
.form-ok.show { display: flex; }

/* ============================================================
   FAQ
   ============================================================ */
.faq { max-width: 860px; margin-inline: auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 4px; text-align: start; font-size: 1.12rem; font-weight: 600; color: var(--ink); }
.faq-q .pm { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); color: var(--teal-700); display: grid; place-items: center; position: relative; transition: background .3s, color .3s; }
.faq-q .pm::before, .faq-q .pm::after { content: ""; position: absolute; background: currentColor; border-radius: 2px; }
.faq-q .pm::before { width: 12px; height: 2px; } .faq-q .pm::after { width: 2px; height: 12px; transition: transform .3s var(--ease); }
.faq-item.open .faq-q .pm { background: var(--accent); color: #fff; }
.faq-item.open .faq-q .pm::after { transform: scaleY(0); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.faq-a p { padding: 0 4px 24px; color: var(--muted); font-size: 1.02rem; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--navy-950); color: #aebfc8; padding-block: 70px 30px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 50px; border-bottom: 1px solid var(--line-dark); }
.footer-brand .brand__name b { color: #fff; }
.footer-brand p { margin: 20px 0; max-width: 38ch; color: #92a7b1; font-size: .96rem; }
.footer-soc { display: flex; gap: 10px; }
.footer-soc a { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.05); border: 1px solid var(--line-dark); color: #cfdce1; transition: .3s; }
.footer-soc a:hover { background: var(--accent); color: #fff; transform: translateY(-3px); }
.footer-soc svg { width: 19px; height: 19px; }
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 18px; }
.footer-col a { display: block; padding: 7px 0; color: #92a7b1; font-size: .95rem; transition: color .25s; }
.footer-col a:hover { color: var(--teal-300); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 26px; font-size: .86rem; color: #6d8591; }
.footer-bottom .mono { font-size: .8rem; }

/* WhatsApp float */
.wa-float { position: fixed; bottom: 24px; inset-inline-end: 24px; z-index: 90; width: 58px; height: 58px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 12px 30px rgba(37,211,102,.4); transition: transform .35s var(--ease); }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; color: #fff; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1080px) {
  .hero__inner { grid-template-columns: 1fr; gap: 48px; }
  .hero__visual { max-width: 520px; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .proc-grid { grid-template-columns: repeat(3, 1fr); gap: 30px 18px; }
  .proc-grid::before { display: none; }
  .work-grid { grid-template-columns: repeat(4, 1fr); }
  .work.span4, .work.span3 { grid-column: span 4; }
  .work.span2 { grid-column: span 2; }
  .quotes-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 760px) {
  .nav__links, .nav__cta .btn--ghost { display: none; }
  .nav__burger { display: flex; }
  .nav-open .nav__links {
    display: flex; flex-direction: column; align-items: stretch; gap: 4px;
    position: absolute; inset-inline: var(--gut); top: 70px; padding: 14px;
    background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  }
  .nav-open .nav__links a { color: var(--ink-2); padding: 13px 16px; }
  .nav-open .nav__links .nav__drawer-cta { display: inline-flex; justify-content: center; margin-top: 8px; color: #fff; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 30px 10px; }
  .stat:not(:last-child)::after { display: none; }
  .svc-grid { grid-template-columns: 1fr; }
  .proc-grid { grid-template-columns: 1fr 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .work.span4, .work.span3, .work.span2 { grid-column: span 1; }
  .split { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .quotes-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .cta-band__inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 520px) {
  /* small phones: top bar = logo + lang + burger only; CTA lives in the drawer */
  .nav__cta .btn--primary { display: none; }
  .nav { gap: 12px; }
  .brand__name span { font-size: 0.55rem; letter-spacing: 0.2em; }
  .hero { padding-block: 100px 54px; }
  .hero__meta { gap: 16px 22px; }
  .hero__meta-item b { font-size: 1.5rem; }
  .section { padding-block: clamp(56px, 12vw, 88px); }
  .vmv__watermark { font-size: 3.2rem; }
  .btn--lg { padding: 15px 26px; font-size: 1rem; }
}
@media (max-width: 380px) {
  .hero__actions .btn { width: 100%; }   /* avoid awkward half-width wrap on tiny screens */
}

/* ============================================================
   Language toggle
   ============================================================ */
.lang-toggle {
  display: inline-flex; align-items: center; gap: 7px; padding: 9px 15px; border-radius: 999px;
  font-family: var(--font-mono); font-size: .82rem; font-weight: 600; letter-spacing: .04em;
  color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.24); transition: .25s;
}
.scrolled .lang-toggle { color: var(--ink-2); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.lang-toggle:hover { background: var(--accent-soft); box-shadow: inset 0 0 0 1.5px var(--accent); color: var(--teal-700); }
.site-header:not(.scrolled) .lang-toggle:hover { color: #fff; }
.lang-toggle svg { width: 15px; height: 15px; }

/* English (LTR) micro-adjustments */
html[lang="en"] { --font-sans: "IBM Plex Sans Arabic", system-ui, sans-serif; --font-display: "IBM Plex Sans Arabic", system-ui, sans-serif; }
html[lang="en"] h1, html[lang="en"] h2, html[lang="en"] h3, html[lang="en"] h4 { line-height: 1.16; }
html[lang="en"] body { letter-spacing: 0; }
html[lang="en"] .hero h1 .hl { white-space: normal; }
html[lang="en"] .brand__name span { letter-spacing: .22em; }

/* ============================================================
   About (من نحن)
   ============================================================ */
.about-grid { display: grid; grid-template-columns: 1fr 0.92fr; gap: clamp(36px, 5vw, 80px); align-items: center; }
.about-copy h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); margin-top: 16px; }
.about-copy p { color: var(--muted); font-size: 1.08rem; margin-top: 18px; text-wrap: pretty; }
.about-copy .lead { color: var(--ink-2); font-size: 1.18rem; font-weight: 500; }
.about-badges { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.about-badge { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 14px; background: var(--paper-2); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.about-badge svg { width: 22px; height: 22px; color: var(--teal-700); flex: none; }
.about-badge b { font-size: .98rem; color: var(--ink); }
.about-badge span { font-size: .82rem; color: var(--muted); display: block; }

.about-visual { position: relative; }
.about-visual .frame {
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg);
  background: linear-gradient(160deg, var(--navy-800), var(--navy-950)); aspect-ratio: 4/3;
  display: grid; place-items: center; padding: 40px; position: relative;
}
.about-visual .frame .big-mark { width: 62%; opacity: .96; }
.about-visual .frame .big-mark .e { fill: #fff; } .about-visual .frame .big-mark .c { fill: var(--teal); }
.about-visual .frame .grid-ov { position:absolute; inset:0; background-image: linear-gradient(var(--line-dark) 1px, transparent 1px), linear-gradient(90deg, var(--line-dark) 1px, transparent 1px); background-size: 40px 40px; opacity:.4; }
.about-visual .est { position: absolute; bottom: -18px; inset-inline-start: -18px; background: var(--accent); color: #fff; border-radius: 16px; padding: 16px 22px; box-shadow: var(--shadow-teal); }
.about-visual .est b { font-family: var(--font-mono); font-size: 1.9rem; display: block; line-height: 1; }
.about-visual .est span { font-size: .82rem; opacity: .9; }

/* ============================================================
   Vision / Mission / Values
   ============================================================ */
.vmv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.vmv {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px 30px;
  position: relative; overflow: hidden; transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.vmv:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.vmv__ic { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--accent-soft); color: var(--teal-700); margin-bottom: 20px; }
.vmv__ic svg { width: 28px; height: 28px; }
.vmv h3 { font-size: 1.3rem; margin-bottom: 10px; }
.vmv p { color: var(--muted); }
.vmv__watermark { position: absolute; bottom: -14px; inset-inline-end: 14px; font-family: var(--font-mono); font-weight: 700; font-size: 4.5rem; color: var(--paper-3); z-index: 0; }
.vmv > * { position: relative; z-index: 1; }
.vmv .values-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.vmv .values-list span { font-size: .86rem; font-weight: 600; color: var(--teal-700); background: var(--accent-soft); padding: 6px 13px; border-radius: 999px; }

/* ============================================================
   Capabilities strip (full service catalog)
   ============================================================ */
.caps { margin-top: 30px; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow-sm); }
.caps h3 { font-size: 1.2rem; margin-bottom: 6px; }
.caps .sub { color: var(--muted); margin-bottom: 24px; font-size: .98rem; }
.caps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 28px; }
.cap { display: flex; gap: 12px; align-items: flex-start; padding: 9px 0; }
.cap svg { flex: none; width: 19px; height: 19px; color: var(--teal); margin-top: 3px; }
.cap span { font-size: .97rem; color: var(--ink-2); }
@media (max-width: 760px){ .caps-grid { grid-template-columns: 1fr; } }

/* ============================================================
   Let's Learn flagship
   ============================================================ */
.ll { position: relative; overflow: hidden; }
.ll-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(36px, 5vw, 72px); align-items: center; }
.ll-tag { display: inline-flex; align-items: center; gap: 9px; font-size: .9rem; font-weight: 600; color: var(--teal-300); background: rgba(95,168,162,.12); border: 1px solid var(--line-dark); padding: 8px 16px; border-radius: 999px; margin-bottom: 22px; }
.ll h2 { color: #fff; font-size: clamp(2rem, 4.4vw, 3rem); }
.ll .desc { color: #b6cad2; font-size: 1.08rem; margin-top: 18px; text-wrap: pretty; }
.ll-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 36px; }
.ll-metric { background: rgba(255,255,255,.04); border: 1px solid var(--line-dark); border-radius: 16px; padding: 18px 16px; }
.ll-metric b { display: block; font-family: var(--font-mono); font-size: 1.7rem; color: #fff; line-height: 1; }
.ll-metric b .suf { color: var(--teal-300); }
.ll-metric span { font-size: .82rem; color: #9fb4be; margin-top: 6px; display: block; }
.ll-integrations { margin-top: 30px; }
.ll-integrations .lbl { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: #7d94a0; margin-bottom: 12px; }
.ll-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ll-chips span { font-size: .86rem; color: #cfe0e4; background: rgba(255,255,255,.05); border: 1px solid var(--line-dark); padding: 7px 14px; border-radius: 999px; }
.ll-visual { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line-dark); }
.ll-visual img { width: 100%; display: block; }
.ll-actions { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 1080px){ .ll-grid { grid-template-columns: 1fr; } .ll-metrics { grid-template-columns: repeat(2,1fr); } }

/* ============================================================
   Target sectors
   ============================================================ */
.sectors-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.sector {
  text-align: center; padding: 30px 18px; border-radius: var(--radius); background: var(--paper-2);
  border: 1px solid var(--line); transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s;
}
.sector:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.sector__ic { width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 16px; display: grid; place-items: center; background: var(--accent-soft); color: var(--teal-700); transition: transform .45s var(--ease); }
.sector:hover .sector__ic { transform: scale(1.08); }
.sector__ic svg { width: 28px; height: 28px; }
.sector b { display: block; font-size: 1.02rem; color: var(--ink); }
.sector span { font-size: .85rem; color: var(--muted); margin-top: 4px; display: block; }
@media (max-width: 1080px){ .sectors-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px){ .sectors-grid { grid-template-columns: repeat(2, 1fr); } .vmv-grid { grid-template-columns: 1fr; } .about-grid { grid-template-columns: 1fr; } .ll-metrics { grid-template-columns: repeat(2,1fr); } }
