/* ============================================================
   EjraaSoft — إجراء سوفت | Premium Design System
   ============================================================ */

/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

/* ---------- Design Tokens ---------- */
:root {
  /* Brand — from EjraaSoft logo */
  --blue-900: #14267f;
  --blue-800: #1d34b8;
  --blue-700: #2444d4;
  --blue-600: #2b59e0;
  --blue-500: #3d6ef0;
  --blue-400: #5b8def;
  --blue-300: #8ab1f7;
  --blue-200: #bcd2fb;
  --blue-100: #e2ecfe;

  --grad-brand: linear-gradient(120deg, var(--blue-800) 0%, var(--blue-600) 55%, var(--blue-400) 100%);
  --grad-soft: linear-gradient(120deg, rgba(61, 110, 240,.16), rgba(138, 177, 247,.05));
  --grad-text: linear-gradient(100deg, var(--blue-400), var(--blue-300) 60%, #cfe0ff);

  --radius-xs: 10px;
  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 36px;

  --shadow-1: 0 8px 30px rgba(4, 10, 30, .18);
  --shadow-2: 0 18px 60px rgba(4, 10, 30, .28);
  --shadow-blue: 0 10px 44px rgba(43, 89, 224, .35);

  --container: 1240px;
  --header-h: 84px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
}

/* Dark theme (default) */
:root,
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #05070f;
  --bg-2: #070b18;
  --surface: #0b1120;
  --surface-2: #101a30;
  --surface-3: #16213c;
  --border: rgba(148, 175, 235, .13);
  --border-strong: rgba(148, 175, 235, .25);
  --text: #eaf0fb;
  --text-2: #b7c3da;
  --muted: #8493ae;
  --glow-1: rgba(43, 89, 224, .32);
  --glow-2: rgba(91, 141, 239, .16);
  --card-glow: rgba(61, 110, 240, .10);
  --header-bg: rgba(5, 7, 15, .72);
  --hero-grid: rgba(120, 150, 220, .07);
  --logo-file: url('../images/logo-dark.png');
}

/* Light theme */
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f7fd;
  --bg-2: #eef2fa;
  --surface: #ffffff;
  --surface-2: #f2f5fc;
  --surface-3: #e9eef9;
  --border: rgba(15, 35, 90, .10);
  --border-strong: rgba(15, 35, 90, .18);
  --text: #0b1330;
  --text-2: #3c4a68;
  --muted: #5f6f8f;
  --glow-1: rgba(43, 89, 224, .16);
  --glow-2: rgba(91, 141, 239, .10);
  --card-glow: rgba(61, 110, 240, .06);
  --header-bg: rgba(244, 247, 253, .8);
  --hero-grid: rgba(30, 60, 140, .06);
  --logo-file: url('../images/logo.png');
  --shadow-1: 0 8px 30px rgba(24, 40, 90, .10);
  --shadow-2: 0 18px 60px rgba(24, 40, 90, .16);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  /* منع أي تجاوز أفقي يسبب تقريب/قص جانبي على شاشات الهاتف */
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  font-family: 'Cairo', 'Outfit', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  overflow-x: hidden;
  min-height: 100vh;
  transition: background .45s ease, color .45s ease;
}

.team-view-all {
display: flex;
justify-content: center;
align-items: center;
margin-top: 36px;
}

.team-view-btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 10px;
min-width: 150px;
padding: 13px 26px;
border: 1px solid rgba(255, 255, 255, 0.14);
border-radius: 14px;
background: linear-gradient(
135deg,
rgba(255, 255, 255, 0.07),
rgba(255, 255, 255, 0.025)
);
color: var(--text);
font-family: inherit;
font-size: 15px;
font-weight: 700;
cursor: pointer;
transition:
transform 0.3s ease,
border-color 0.3s ease,
background 0.3s ease,
box-shadow 0.3s ease;
}

.team-view-btn svg {
width: 18px;
height: 18px;
transition: transform 0.3s ease;
}

.team-view-btn:hover {
transform: translateY(-3px);
border-color: var(--gold);
background: linear-gradient(
135deg,
rgba(212, 175, 55, 0.14),
rgba(255, 255, 255, 0.05)
);
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.team-view-btn:hover svg {
transform: translateY(3px);
}

.team-view-btn:active {
transform: translateY(-1px);
}

.team-view-btn:focus-visible {
outline: 2px solid var(--gold);
outline-offset: 4px;
}


:root[dir="ltr"] body { font-family: 'Outfit', 'Cairo', system-ui, sans-serif; letter-spacing: .1px; }

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }

::selection { background: var(--blue-600); color: #fff; }

/* Scrollbar */
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--blue-700), var(--blue-500)); border-radius: 8px; border: 2px solid var(--bg-2); }

/* Focus */
:focus-visible { outline: 2px solid var(--blue-400); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: fixed; top: -60px; inset-inline-start: 16px; z-index: 3000;
  background: var(--blue-600); color: #fff; padding: 10px 18px; border-radius: 10px;
  transition: top .3s;
}
.skip-link:focus { top: 14px; }

/* ---------- Layout ---------- */
.container { width: min(var(--container), 92%); margin-inline: auto; }
.section { padding-block: clamp(72px, 9vw, 130px); position: relative; }
.section-tight { padding-block: clamp(52px, 6vw, 84px); }

/* ---------- Preloader ---------- */
#preloader {
  position: fixed; inset: 0; z-index: 5000;
  background: var(--bg);
  display: grid; place-items: center;
  transition: opacity .6s ease, visibility .6s;
}
#preloader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-inner { text-align: center; }
.preloader-logo {
  width: clamp(130px, 18vw, 180px); margin-inline: auto; margin-bottom: 26px;
  animation: preFloat 2.2s ease-in-out infinite;
  filter: drop-shadow(0 12px 40px rgba(43, 89, 224, .45));
}
:root[data-theme="light"] .preloader-logo { filter: drop-shadow(0 12px 40px rgba(43, 89, 224, .25)); }
.preloader-bar { width: 200px; height: 3px; background: var(--surface-3); border-radius: 99px; overflow: hidden; margin-inline: auto; }
.preloader-bar i { display: block; height: 100%; width: 40%; background: var(--grad-brand); border-radius: 99px; animation: preBar 1.1s var(--ease-out) infinite; }
.preloader-txt { margin-top: 14px; font-size: .8rem; letter-spacing: 3px; text-transform: uppercase; color: var(--muted); font-weight: 600; }
@keyframes preFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes preBar { 0% { transform: translateX(110%); } 100% { transform: translateX(-320%); } }

/* ---------- Custom cursor ---------- */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 4000; pointer-events: none;
  border-radius: 50%; transform: translate(-50%, -50%);
  will-change: transform;
}
.cursor-dot { width: 7px; height: 7px; background: var(--blue-400); }
.cursor-ring {
  width: 38px; height: 38px; border: 1.5px solid rgba(91, 141, 239, .55);
  transition: width .28s ease, height .28s ease, border-color .28s, background .28s;
}
.cursor-ring.is-hover { width: 62px; height: 62px; background: rgba(61, 110, 240, .12); border-color: var(--blue-400); }
.cursor-ring.is-press { width: 30px; height: 30px; }
@media (hover: none), (pointer: coarse) { .cursor-dot, .cursor-ring { display: none; } }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset-inline: 0; top: 0; z-index: 1000;
  height: var(--header-h);
  transition: transform .45s var(--ease-out), background .35s ease, box-shadow .35s ease, border-color .35s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: var(--header-bg);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom-color: var(--border);
  box-shadow: 0 10px 40px rgba(2, 6, 18, .25);
}
:root[data-theme="light"] .site-header.scrolled { box-shadow: 0 10px 40px rgba(24, 40, 90, .08); }
.site-header.hidden { transform: translateY(-110%); }

.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 22px; }

.brand { display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0; }
.brand img { height: 52px; width: auto; transition: height .3s; }
.site-header.scrolled .brand img { height: 46px; }

.main-nav { margin-inline-start: auto; }
.main-nav ul { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 15px; border-radius: 12px;
  font-size: .95rem; font-weight: 600; color: var(--text-2);
  transition: color .25s, background .25s;
  position: relative;
}
.main-nav a:hover { color: var(--text); background: rgba(120, 155, 235, .09); }
.main-nav a.active { color: var(--blue-400); }
.main-nav a.active::after {
  content: ""; position: absolute; bottom: 2px; inset-inline: 18px; height: 2px;
  background: var(--grad-brand); border-radius: 99px;
}
.main-nav a svg { width: 12px; height: 12px; transition: transform .3s; }

/* dropdown */
.has-dropdown { position: relative; }
.dropdown {
  position: absolute; top: calc(100% + 10px); inset-inline-start: 50%;
  transform: translate(50%, -8px);
  min-width: 250px; padding: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-2);
  opacity: 0; visibility: hidden;
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-out), visibility .3s;
  display: grid; gap: 2px;
}
:root[dir="ltr"] .dropdown { transform: translate(-50%, -8px); }
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translate(50%, 0); }
:root[dir="ltr"] .has-dropdown:hover .dropdown,
:root[dir="ltr"] .has-dropdown:focus-within .dropdown { transform: translate(-50%, 0); }
.has-dropdown:hover > a svg { transform: rotate(180deg); }
.dropdown a {
  padding: 11px 14px; border-radius: 12px; font-size: .92rem;
  display: flex; align-items: center; gap: 12px;
}
.dropdown a i { color: var(--blue-400); width: 20px; text-align: center; font-style: normal; }
.dropdown a::after { display: none; }

.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

/* icon buttons */
.icon-btn {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  border: 1px solid var(--border);
  background: rgba(120, 155, 235, .06);
  color: var(--text-2); font-size: 1rem;
  transition: all .3s var(--ease-out);
}
.icon-btn:hover { color: var(--blue-400); border-color: var(--blue-400); transform: translateY(-2px); }
.icon-btn svg { width: 19px; height: 19px; }

/* theme toggle */
.theme-btn .sun { display: none; }
.theme-btn .moon { display: block; }
:root[data-theme="light"] .theme-btn .sun { display: block; }
:root[data-theme="light"] .theme-btn .moon { display: none; }

/* lang switch */
.lang-switch {
  display: inline-flex; align-items: center; gap: 2px;
  border: 1px solid var(--border); border-radius: 12px; padding: 3px;
  background: rgba(120, 155, 235, .06);
  font-weight: 700; font-size: .82rem;
}
.lang-switch a { padding: 7px 13px; border-radius: 9px; color: var(--muted); transition: all .25s; }
.lang-switch a.active { background: var(--grad-brand); color: #fff; box-shadow: 0 4px 14px rgba(43, 89, 224, .35); }
.lang-switch a:not(.active):hover { color: var(--text); }

/* CTA button in header */
.header-cta { display: inline-flex; }

.nav-toggle { display: none; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px; border-radius: 16px;
  font-weight: 700; font-size: 1rem; line-height: 1.2;
  transition: transform .35s var(--ease-spring), box-shadow .35s, background .35s, color .35s, border-color .35s;
  will-change: transform; overflow: hidden; isolation: isolate;
}
.btn svg { width: 18px; height: 18px; transition: transform .3s; }
.btn-primary { background: var(--grad-brand); color: #fff; box-shadow: var(--shadow-blue); }
.btn-primary::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(120deg, var(--blue-600), var(--blue-400));
  opacity: 0; transition: opacity .4s;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 54px rgba(43, 89, 224, .5); }
.btn-primary:hover::before { opacity: 1; }
.btn-primary:hover svg { transform: translateX(-5px); }
:root[dir="ltr"] .btn-primary:hover svg { transform: translateX(5px); }
.btn-ghost { border: 1.5px solid var(--border-strong); color: var(--text); background: rgba(120, 155, 235, .05); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: var(--blue-400); color: var(--blue-400); transform: translateY(-3px); background: rgba(61, 110, 240, .08); }
.btn-light { background: #fff; color: var(--blue-700); box-shadow: 0 10px 34px rgba(255, 255, 255, .18); }
.btn-light:hover { transform: translateY(-3px); }
.btn-sm { padding: 11px 22px; font-size: .9rem; border-radius: 13px; }
.btn-block { width: 100%; }

/* magnetic wrap */
.magnetic { display: inline-block; }

/* ---------- Section headings ---------- */
.sec-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 18px; border-radius: 99px;
  background: var(--grad-soft);
  border: 1px solid rgba(91, 141, 239, .25);
  color: var(--blue-400); font-size: .85rem; font-weight: 700;
  margin-bottom: 18px;
}
.sec-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--blue-400); box-shadow: 0 0 12px var(--blue-400); animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1);} 50% { opacity: .5; transform: scale(.8);} }
.sec-title {
  font-size: clamp(1.9rem, 4.2vw, 3.1rem);
  font-weight: 800; line-height: 1.32; letter-spacing: -.5px;
  color: var(--text);
}
.sec-title .grad, .grad {
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
:root[dir="ltr"] .sec-title { line-height: 1.15; }
.sec-sub { margin-top: 16px; color: var(--muted); font-size: 1.06rem; font-weight: 500; max-width: 640px; }
.sec-head.center .sec-sub { margin-inline: auto; }
.sec-accent-line { width: 72px; height: 4px; border-radius: 99px; background: var(--grad-brand); margin-top: 22px; }
.sec-head.center .sec-accent-line { margin-inline: auto; }

/* ---------- Reveal animations ---------- */
/* الحالة الابتدائية (مخفي/مزاح) تُطبّق فقط عند توفر الجافاسكربت (html.js)
   حتى لا يبقى أي عنصر مزاحاً خارج الشاشة ويحدث قص جانبي على الهاتف.
   :where() تجعل الأولوية صفراً فيظل قاعدة .in هي الغالبة دائماً. */
:where(html.js) [data-reveal] {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}
:where(html.js) [data-reveal="right"] { transform: translateX(-46px); }
:where(html[dir="ltr"].js) [data-reveal="right"] { transform: translateX(46px); }
:where(html.js) [data-reveal="left"] { transform: translateX(46px); }
:where(html[dir="ltr"].js) [data-reveal="left"] { transform: translateX(-46px); }
:where(html.js) [data-reveal="zoom"] { transform: scale(.86); }
[data-reveal].in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  padding-top: calc(var(--header-h) + 46px); padding-bottom: 80px;
  overflow: clip;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-grid-bg {
  position: absolute; inset: -2%;
  background-image: linear-gradient(var(--hero-grid) 1px, transparent 1px),
                    linear-gradient(90deg, var(--hero-grid) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 38%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 90% 70% at 50% 38%, #000 30%, transparent 75%);
  animation: gridShift 26s linear infinite;
}
@keyframes gridShift { to { background-position: 64px 64px, 64px 64px; } }

.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .8; will-change: transform; }
.orb-1 { width: 560px; height: 560px; background: radial-gradient(circle, var(--glow-1), transparent 65%); top: -140px; inset-inline-end: -120px; }
.orb-2 { width: 480px; height: 480px; background: radial-gradient(circle, var(--glow-2), transparent 65%); bottom: -160px; inset-inline-start: -140px; }
.orb-3 { width: 300px; height: 300px; background: radial-gradient(circle, rgba(61, 110, 240, .22), transparent 60%); top: 38%; inset-inline-start: 42%; }

.hero .container { position: relative; }
.hero-content { max-width: 780px; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 11px;
  padding: 10px 20px; border-radius: 99px;
  background: rgba(61, 110, 240, .08);
  border: 1px solid rgba(91, 141, 239, .3);
  color: var(--text-2); font-size: .92rem; font-weight: 600;
  margin-bottom: 28px;
  backdrop-filter: blur(8px);
}
.hero-badge .spark { color: var(--blue-400); animation: pulse 2s infinite; }
.hero-badge .spark svg { width: 15px; height: 15px; display: block; }

.hero-title {
  font-size: clamp(2.5rem, 3.5vw, 4.5rem);
  font-weight: 900; line-height: 1.28; letter-spacing: -1px;
  margin-bottom: 26px;
}
:root[dir="ltr"] .hero-title { line-height: 1.08; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.hero-title .word {
  display: inline-block;
  transform: translateY(115%);
  animation: wordUp 1s var(--ease-out) forwards;
  animation-delay: var(--wd, 0s);
}
.hero-title .grad .word,
.hero-title .grad {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
}
.hero-title .grad .word { -webkit-text-fill-color: transparent; color: transparent; }
@keyframes wordUp { to { transform: translateY(0); } }

.hero-sub {
  font-size: clamp(1.02rem, 1.6vw, 1.22rem);
  color: var(--text-2); font-weight: 500;
  max-width: 620px; margin-bottom: 40px;
  opacity: 0; animation: fadeUp 1s var(--ease-out) .9s forwards;
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-bottom: 58px; opacity: 0; animation: fadeUp 1s var(--ease-out) 1.05s forwards; }

.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  max-width: 700px;
  opacity: 0; animation: fadeUp 1s var(--ease-out) 1.2s forwards;
}
.hero-stat {
  padding: 18px 14px; border-radius: var(--radius-md);
  background: rgba(120, 155, 235, .055);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  transition: transform .35s var(--ease-out), border-color .3s, background .3s;
}
.hero-stat:hover { transform: translateY(-6px); border-color: rgba(91, 141, 239, .45); background: rgba(61, 110, 240, .09); }
.hero-stat b { display: block; font-size: clamp(1.35rem, 2.6vw, 1.9rem); font-weight: 900; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-stat span { font-size: .84rem; color: var(--muted); font-weight: 600; }

/* floating code chips */
.hero-chip {
  position: absolute; z-index: -1;
  display: grid; place-items: center;
  width: 58px; height: 58px; border-radius: 18px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-1);
  color: var(--blue-400); font-weight: 800; font-family: 'Outfit', monospace; font-size: 1.05rem;
  backdrop-filter: blur(8px);
  animation: chipFloat var(--cf, 7s) ease-in-out infinite;
  opacity: 0;
  animation-fill-mode: forwards;
  animation-delay: 1.4s;
}
@keyframes chipFloat {
  0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); opacity: 0; }
  12% { opacity: .95; }
  50% { transform: translateY(-22px) rotate(var(--rot, 0deg)); opacity: .95; }
  88% { opacity: .95; }
}
.hero-chip svg { width: 26px; height: 26px; }

/* scroll hint */
.scroll-hint {
  position: absolute; bottom: 6px; inset-inline-start: 50%;
  transform: translateX(50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--muted); font-size: .78rem; font-weight: 600;
}
:root[dir="ltr"] .scroll-hint { transform: translateX(-50%); }
.scroll-hint .mouse { width: 25px; height: 40px; border: 2px solid var(--border-strong); border-radius: 99px; display: flex; justify-content: center; padding-top: 7px; }
.scroll-hint .mouse i { width: 4px; height: 8px; border-radius: 99px; background: var(--blue-400); animation: wheel 1.7s infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- Clients marquee ---------- */
.clients { padding-block: clamp(48px, 6vw, 76px); border-block: 1px solid var(--border); background: var(--bg-2); position: relative; overflow: hidden; }
.clients-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 38px; }
.clients-head h2 { font-size: 1.25rem; font-weight: 800; }
.clients-head p { color: var(--muted); font-size: .95rem; max-width: 520px; }
.marquee { overflow: hidden; position: relative; padding-block: 8px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee + .marquee { margin-top: 20px; }
.marquee-track { display: flex; gap: 18px; width: max-content; animation: marq var(--mq, 42s) linear infinite; }
.marquee-track.reverse { animation-direction: reverse; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marq { to { transform: translateX(calc(-50% - 9px)); } }
.client-item {
  display: grid; place-items: center;
  min-width: 168px; height: 84px; padding: 14px 26px;
  background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  filter: grayscale(1); opacity: .62;
  transition: filter .4s, opacity .4s, transform .4s var(--ease-out), border-color .4s;
}
.client-item:hover { filter: grayscale(0); opacity: 1; transform: translateY(-5px); border-color: var(--border-strong); }
.client-item img { max-height: 44px; max-width: 128px; width: auto; object-fit: contain; }
.client-item.light-logo { background: #f4f6fb; }

/* ---------- Portfolio ---------- */
.portfolio-list { display: grid; gap: clamp(28px, 4vw, 44px); }
.project-card {
  position: relative;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding: clamp(22px, 3.4vw, 44px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: border-color .4s, transform .5s var(--ease-out), box-shadow .5s;
}
.project-card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px 320px at var(--mx, 70%) var(--my, 20%), rgba(61, 110, 240, .12), transparent 70%);
  opacity: 0; transition: opacity .5s; pointer-events: none;
}
.project-card:hover { border-color: rgba(91, 141, 239, .4); transform: translateY(-6px); box-shadow: var(--shadow-2); }
.project-card:hover::before { opacity: 1; }

.project-media { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 100 / 62; }
.project-card.flip .project-media { order: 2; }
.project-media img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .9s var(--ease-out); }
.project-card:hover .project-media img { transform: scale(1.06); }
.project-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(200deg, rgba(43, 89, 224, .16), transparent 45%); opacity: 0; transition: opacity .5s; }
.project-card:hover .project-media::after { opacity: 1; }

.project-num {
  position: absolute; top: 14px; inset-inline-start: 18px; z-index: 2;
  font-family: 'Outfit', sans-serif; font-size: .95rem; font-weight: 800;
  letter-spacing: 2px;
  background: rgba(8, 12, 26, .55); backdrop-filter: blur(8px);
  padding: 6px 14px; border-radius: 99px; border: 1px solid rgba(138, 177, 247, .3);
  color: #bcd2fb;
}
.project-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.project-tags span {
  font-size: .76rem; font-weight: 700; letter-spacing: .4px;
  padding: 6px 13px; border-radius: 99px;
  background: rgba(61, 110, 240, .09); color: var(--blue-300);
  border: 1px solid rgba(91, 141, 239, .22);
}
:root[data-theme="light"] .project-tags span { color: var(--blue-700); }
.project-title { font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 800; margin-bottom: 14px; letter-spacing: -.3px; }
.project-desc { color: var(--muted); font-size: 1rem; margin-bottom: 24px; max-width: 480px; }
.project-link {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 800; color: var(--blue-400); font-size: .98rem;
  position: relative; padding-bottom: 4px;
}
.project-link::after { content: ""; position: absolute; bottom: 0; inset-inline-start: 0; width: 0; height: 2px; background: var(--grad-brand); border-radius: 99px; transition: width .45s var(--ease-out); }
.project-link:hover::after { width: 100%; }
.project-link svg { width: 17px; height: 17px; transition: transform .3s; }
.project-link:hover svg { transform: translateX(-5px); }
:root[dir="ltr"] .project-link:hover svg { transform: translateX(5px); }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card {
  position: relative; padding: 34px 28px 30px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .5s var(--ease-out), border-color .4s, box-shadow .5s;
  display: flex; flex-direction: column; gap: 16px;
}
.service-card::after {
  content: ""; position: absolute; inset-inline: 0; top: 0; height: 3px;
  background: var(--grad-brand);
  transform: scaleX(0); transform-origin: 50%;
  transition: transform .55s var(--ease-out);
}
.service-card:hover { transform: translateY(-9px); border-color: rgba(91, 141, 239, .38); box-shadow: var(--shadow-2); }
.service-card:hover::after { transform: scaleX(1); }
.service-icon {
  width: 66px; height: 66px; border-radius: 20px;
  display: grid; place-items: center;
  background: var(--grad-soft);
  border: 1px solid rgba(91, 141, 239, .3);
  color: var(--blue-400);
  transition: transform .5s var(--ease-spring), box-shadow .4s;
}
.service-card:hover .service-icon { transform: scale(1.1) rotate(-6deg); box-shadow: 0 12px 34px rgba(43, 89, 224, .3); }
.service-icon svg { width: 30px; height: 30px; }
.service-card h3 { font-size: 1.22rem; font-weight: 800; }
.service-card p { color: var(--muted); font-size: .95rem; flex-grow: 1; }
.service-more { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .92rem; color: var(--blue-400); }
.service-more svg { width: 16px; height: 16px; transition: transform .3s; }
.service-more:hover svg { transform: translateX(-4px); }
:root[dir="ltr"] .service-more:hover svg { transform: translateX(4px); }

/* ---------- Testimonials ---------- */
.tst-wrap { position: relative; max-width: 860px; margin-inline: auto; }
.tst-slider { position: relative; min-height: 340px; }
.tst-slide {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden; transform: translateY(26px) scale(.98);
  transition: opacity .65s var(--ease-out), transform .65s var(--ease-out), visibility .65s;
}
.tst-slide.active { opacity: 1; visibility: visible; transform: none; position: relative; }
.tst-card {
  text-align: center; padding: clamp(34px, 5vw, 56px);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-xl); position: relative; overflow: hidden;
}
.tst-card::before {
  content: "\201C"; position: absolute; top: 8px; inset-inline-start: 30px;
  font-size: 8rem; font-weight: 900; line-height: 1;
  background: var(--grad-soft); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; opacity: .5; font-family: Georgia, serif;
}
.tst-stars { display: flex; justify-content: center; gap: 5px; color: #fbbf24; margin-bottom: 20px; }
.tst-stars svg { width: 18px; height: 18px; }
.tst-text { font-size: clamp(1.04rem, 1.8vw, 1.24rem); font-weight: 600; color: var(--text-2); line-height: 2; max-width: 640px; margin: 0 auto 30px; }
:root[dir="ltr"] .tst-text { line-height: 1.8; }
.tst-author { display: flex; align-items: center; justify-content: center; gap: 15px; }
.tst-avatar {
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; overflow: hidden;
  background: var(--grad-brand); color: #fff;
  font-weight: 800; font-size: 1.15rem;
  box-shadow: var(--shadow-blue); flex-shrink: 0;
}
.tst-author b { display: block; font-size: 1.02rem; }
.tst-author span { color: var(--muted); font-size: .88rem; }
.tst-nav { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 30px; }
.tst-arrow {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  border: 1px solid var(--border-strong); color: var(--text-2); background: var(--surface);
  transition: all .3s;
}
.tst-arrow:hover { background: var(--grad-brand); color: #fff; border-color: transparent; transform: translateY(-2px); }
.tst-arrow svg { width: 18px; height: 18px; }
.tst-dots { display: flex; gap: 8px; }
.tst-dots button { width: 9px; height: 9px; border-radius: 99px; background: var(--border-strong); transition: all .35s var(--ease-out); }
.tst-dots button.active { width: 30px; background: var(--grad-brand); }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.team-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border); background: var(--surface);
  transition: transform .5s var(--ease-out), box-shadow .5s, border-color .4s;
}
.team-card:hover { transform: translateY(-9px); box-shadow: var(--shadow-2); border-color: rgba(91, 141, 239, .4); }
.team-photo { position: relative; aspect-ratio: 832 / 900; overflow: hidden; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; filter: grayscale(.85) contrast(1.02); transition: filter .6s var(--ease-out), transform .8s var(--ease-out); }
.team-card:hover .team-photo img { filter: grayscale(0); transform: scale(1.05); }
.team-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(6, 10, 22, .88)); }
.team-avatar-ph { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(160deg, var(--surface-3), var(--surface)); }
.team-avatar-ph svg { width: 62%; height: auto; opacity: .9; }
.team-info { position: absolute; inset-inline: 0; bottom: 0; padding: 24px; z-index: 2; }
.team-info h3 { color: #fff; font-size: 1.18rem; font-weight: 800; }
.team-info p { color: var(--blue-300); font-size: .9rem; font-weight: 600; }
.team-social {
  position: absolute; top: 16px; inset-inline-end: 16px; z-index: 2;
  display: grid; gap: 8px;
  opacity: 0; transform: translateY(-12px);
  transition: opacity .45s var(--ease-out), transform .45s var(--ease-out);
}
.team-card:hover .team-social { opacity: 1; transform: none; }
.team-social a {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(10, 16, 32, .6); backdrop-filter: blur(8px);
  border: 1px solid rgba(148, 175, 235, .25); color: #dbe6fb;
  transition: all .3s;
}
.team-social a:hover { background: var(--blue-600); border-color: transparent; }
.team-social svg { width: 16px; height: 16px; }

/* ---------- Split / About strip ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 72px); align-items: center; }
.split-media { position: relative; }
.split-media .frame {
  border-radius: var(--radius-xl); overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-2);
  position: relative;
}
.split-media .frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.split-media:hover .frame img { transform: scale(1.04); }
.exp-badge {
  position: absolute; bottom: -22px; inset-inline-end: -10px;
  background: var(--grad-brand); color: #fff;
  padding: 20px 26px; border-radius: 22px;
  box-shadow: var(--shadow-blue);
  text-align: center;
}
.exp-badge b { display: block; font-size: 2rem; font-weight: 900; line-height: 1.2; font-family: 'Outfit', sans-serif; }
.exp-badge span { font-size: .82rem; font-weight: 600; opacity: .92; }

.check-list { display: grid; gap: 14px; margin-top: 26px; }
.check-list li { display: flex; gap: 13px; align-items: flex-start; color: var(--text-2); font-weight: 600; }
.check-list li svg { width: 22px; height: 22px; color: var(--blue-400); flex-shrink: 0; margin-top: 3px; }

/* ---------- Blog ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.blog-card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: transform .5s var(--ease-out), box-shadow .5s, border-color .4s;
}
.blog-card:hover { transform: translateY(-9px); box-shadow: var(--shadow-2); border-color: rgba(91, 141, 239, .38); }
.blog-thumb { position: relative; aspect-ratio: 767 / 500; overflow: hidden; }
.blog-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.blog-card:hover .blog-thumb img { transform: scale(1.07); }
.blog-date {
  position: absolute; top: 14px; inset-inline-start: 14px;
  background: rgba(8, 12, 26, .62); backdrop-filter: blur(8px);
  color: #fff; font-size: .78rem; font-weight: 700;
  padding: 7px 14px; border-radius: 99px; border: 1px solid rgba(148, 175, 235, .3);
}
.blog-body { padding: 24px; display: flex; flex-direction: column; gap: 12px; flex-grow: 1; }
.blog-body h3 { font-size: 1.1rem; font-weight: 800; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color .3s; }
.blog-card:hover .blog-body h3 { color: var(--blue-400); }
:root[dir="ltr"] .blog-body h3 { line-height: 1.45; }
.blog-body p { color: var(--muted); font-size: .92rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.blog-meta { margin-top: auto; padding-top: 8px; display: flex; align-items: center; gap: 9px; color: var(--blue-400); font-weight: 700; font-size: .88rem; }
.blog-meta svg { width: 16px; height: 16px; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; }
.cta-inner {
  position: relative; text-align: center;
  padding: clamp(56px, 8vw, 100px) clamp(24px, 5vw, 80px);
  background: linear-gradient(140deg, var(--blue-900), var(--blue-700) 55%, var(--blue-500));
  border-radius: clamp(26px, 4vw, 44px);
  overflow: hidden; box-shadow: 0 30px 90px rgba(29, 52, 184, .35);
}
.cta-inner::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.14) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 70% 90% at 50% 50%, #000, transparent 78%);
  mask-image: radial-gradient(ellipse 70% 90% at 50% 50%, #000, transparent 78%);
  opacity: .5;
}
.cta-glow { position: absolute; width: 420px; height: 420px; border-radius: 50%; background: rgba(138, 177, 247, .3); filter: blur(110px); top: -160px; inset-inline-start: -120px; }
.cta-inner > * { position: relative; z-index: 1; }
.cta-inner h2 { color: #fff; font-size: clamp(1.8rem, 4.4vw, 3.2rem); font-weight: 900; line-height: 1.4; margin-bottom: 18px; }
:root[dir="ltr"] .cta-inner h2 { line-height: 1.15; }
.cta-inner p { color: rgba(230, 238, 255, .85); font-size: 1.1rem; max-width: 560px; margin: 0 auto 36px; font-weight: 500; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--border); position: relative; overflow: hidden; }
.footer-glow { position: absolute; width: 640px; height: 340px; background: radial-gradient(ellipse, rgba(43, 89, 224, .14), transparent 65%); bottom: -180px; inset-inline-start: 50%; transform: translateX(50%); pointer-events: none; }
:root[dir="ltr"] .footer-glow { transform: translateX(-50%); }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: clamp(28px, 4vw, 56px); padding-block: clamp(56px, 7vw, 90px) 46px; position: relative; }
.footer-brand img { height: 64px; margin-bottom: 20px; }
.footer-brand p { color: var(--muted); font-size: .95rem; max-width: 320px; margin-bottom: 24px; }
.socials { display: flex; gap: 10px; }
.socials a {
  width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-2);
  transition: all .35s var(--ease-out);
}
.socials a:hover { background: var(--grad-brand); color: #fff; border-color: transparent; transform: translateY(-4px); box-shadow: var(--shadow-blue); }
.socials svg { width: 18px; height: 18px; }
.footer-col h4 { font-size: 1.05rem; font-weight: 800; margin-bottom: 22px; position: relative; padding-bottom: 12px; }
.footer-col h4::after { content: ""; position: absolute; bottom: 0; inset-inline-start: 0; width: 34px; height: 3px; border-radius: 99px; background: var(--grad-brand); }
.footer-col ul { display: grid; gap: 12px; }
.footer-col ul a { color: var(--muted); font-size: .94rem; font-weight: 600; transition: color .3s; display: inline-flex; align-items: center; gap: 8px; }
.footer-col ul a::before { content: "‹"; color: var(--blue-400); font-weight: 900; transition: transform .3s; }
:root[dir="ltr"] .footer-col ul a::before { content: "›"; }
.footer-col ul a:hover { color: var(--blue-400); }
.footer-col ul a:hover::before { transform: scale(1.4); }
.footer-contact li { display: flex; gap: 13px; align-items: flex-start; color: var(--muted); font-size: .94rem; }
.footer-contact li svg { width: 19px; height: 19px; color: var(--blue-400); flex-shrink: 0; margin-top: 4px; }
.footer-contact a { color: var(--muted); transition: color .3s; }
.footer-contact a:hover { color: var(--blue-400); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-block: 22px;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px;
  color: var(--muted); font-size: .88rem; font-weight: 600;
  position: relative;
}
.footer-bottom .heart { color: var(--blue-400); }

/* ---------- Page hero (subpages) ---------- */
.page-hero {
  position: relative; padding-top: calc(var(--header-h) + clamp(56px, 8vw, 110px));
  padding-bottom: clamp(50px, 7vw, 90px);
  overflow: clip;
}
.page-hero .hero-bg { z-index: -1; }
.breadcrumb { display: flex; align-items: center; gap: 10px; color: vسar(--muted); font-size: .9rem; font-weight: 600; margin-bottom: 22px; }
.breadcrumb a { color: var(--blue-400); transition: opacity .3s; }
.breadcrumb a:hover { opacity: .75; }
.breadcrumb svg { width: 13px; height: 13px; opacity: .6; }
.page-title { font-size: clamp(2.5rem, 3.5vw, 4.0rem); font-weight: 900; line-height: 1.35; letter-spacing: -.5px; max-width: 900px; margin-bottom: 20px; }
:root[dir="ltr"] .page-title { line-height: 1.12; }
.page-sub { color: var(--text-2); font-size: clamp(1rem, 1.5vw, 1.15rem); max-width: 680px; font-weight: 500; }

/* ---------- Feature cards / process ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature-card {
  padding: 30px 24px; border-radius: var(--radius-md);
  background: var(--surface); border: 1px solid var(--border);
  transition: transform .45s var(--ease-out), border-color .35s, box-shadow .45s;
  position: relative; overflow: hidden;
}
.feature-card:hover { transform: translateY(-7px); border-color: rgba(91, 141, 239, .4); box-shadow: var(--shadow-2); }
.feature-num {
  font-family: 'Outfit', sans-serif; font-size: 2.6rem; font-weight: 900; line-height: 1;
  background: var(--grad-soft); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 14px; display: block;
}
.feature-card h3 { font-size: 1.08rem; font-weight: 800; margin-bottom: 10px; }
.feature-card p { color: var(--muted); font-size: .92rem; }
.feature-icon {
  width: 56px; height: 56px; border-radius: 17px; display: grid; place-items: center;
  background: var(--grad-soft); border: 1px solid rgba(91, 141, 239, .3);
  color: var(--blue-400); margin-bottom: 18px;
}
.feature-icon svg { width: 26px; height: 26px; }

/* process timeline */
.process { position: relative; }
.process-line { position: absolute; top: 34px; inset-inline: 8%; height: 2px; background: linear-gradient(90deg, transparent, var(--blue-500), var(--blue-300), var(--blue-500), transparent); opacity: .4; }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; }
.process-step { text-align: center; padding: 0 10px; }
.step-dot {
  width: 68px; height: 68px; margin: 0 auto 20px;
  border-radius: 22px; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--border-strong);
  color: var(--blue-400); font-weight: 900; font-size: 1.2rem; font-family: 'Outfit', sans-serif;
  position: relative; z-index: 1;
  box-shadow: 0 0 0 8px var(--bg);
  transition: transform .45s var(--ease-spring), background .35s, color .35s;
}
.process-step:hover .step-dot { background: var(--grad-brand); color: #fff; transform: scale(1.1) rotate(-4deg); }
.process-step h3 { font-size: 1.06rem; font-weight: 800; margin-bottom: 10px; }
.process-step p { color: var(--muted); font-size: .9rem; }

/* stats band */
.stats-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat-box {
  text-align: center; padding: 34px 18px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  transition: transform .4s var(--ease-out), border-color .3s;
}
.stat-box:hover { transform: translateY(-6px); border-color: rgba(91, 141, 239, .4); }
.stat-box b { display: block; font-size: clamp(1.9rem, 3.6vw, 2.7rem); font-weight: 900; font-family: 'Outfit', sans-serif; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; line-height: 1.3; }
.stat-box span { color: var(--muted); font-weight: 600; font-size: .95rem; }

/* gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery-item { border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border); position: relative; margin: 0; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; transition: transform .8s var(--ease-out); }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item figcaption {
  position: absolute; inset-inline: 0; bottom: 0; padding: 30px 20px 16px;
  background: linear-gradient(180deg, transparent, rgba(5, 8, 18, .9));
  color: #fff; font-weight: 700; font-size: .95rem;
  transform: translateY(102%); transition: transform .5s var(--ease-out);
}
.gallery-item:hover figcaption { transform: none; }

/* showcase rows (stories) */
.showcase {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(26px, 4vw, 60px);
  align-items: center;
  padding: clamp(26px, 4vw, 46px);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  margin-bottom: 30px;
  transition: border-color .4s, box-shadow .5s;
}
.showcase:hover { border-color: rgba(91, 141, 239, .35); box-shadow: var(--shadow-2); }
.showcase-media { border-radius: var(--radius-lg); overflow: hidden; }
.showcase-media img { width: 100%; object-fit: cover; aspect-ratio: 4 / 3.1; transition: transform .9s var(--ease-out); }
.showcase:hover .showcase-media img { transform: scale(1.05); }
.showcase.flip .showcase-media { order: 2; }
.showcase-kpis { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.kpi {
  padding: 14px 22px; border-radius: var(--radius-sm);
  background: var(--grad-soft); border: 1px solid rgba(91, 141, 239, .25);
  text-align: center; min-width: 118px;
}
.kpi b { display: block; font-size: 1.5rem; font-weight: 900; font-family: 'Outfit', sans-serif; color: var(--blue-400); line-height: 1.4; }
:root[data-theme="light"] .kpi b { color: var(--blue-700); }
.kpi span { font-size: .82rem; color: var(--muted); font-weight: 600; }
.showcase h3 { font-size: clamp(1.35rem, 2.4vw, 1.8rem); font-weight: 800; margin-bottom: 6px; }
.showcase .cat { color: var(--blue-400); font-weight: 700; font-size: .92rem; margin-bottom: 14px; display: block; }
.showcase p { color: var(--muted); }

/* sectors */
.sector-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.sector-card {
  padding: 30px 22px; text-align: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  transition: transform .45s var(--ease-out), border-color .35s;
}
.sector-card:hover { transform: translateY(-7px); border-color: rgba(91, 141, 239, .4); }
.sector-card .feature-icon { margin-inline: auto; }
.sector-card h3 { font-size: 1rem; font-weight: 800; margin-top: 4px; }

/* tech chips */
.tech-cloud { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.tech-chip {
  padding: 12px 24px; border-radius: 99px;
  background: var(--surface); border: 1px solid var(--border-strong);
  font-weight: 700; font-size: .95rem; color: var(--text-2);
  font-family: 'Outfit', sans-serif;
  transition: all .35s var(--ease-out);
}
.tech-chip:hover { background: var(--grad-brand); color: #fff; border-color: transparent; transform: translateY(-4px); box-shadow: var(--shadow-blue); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin-inline: auto; display: grid; gap: 14px; }
.faq-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); overflow: hidden;
  transition: border-color .35s;
}
.faq-item.open { border-color: rgba(91, 141, 239, .45); }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 26px; text-align: start;
  font-weight: 800; font-size: 1.04rem;
  transition: color .3s;
}
.faq-item:hover .faq-q, .faq-item.open .faq-q { color: var(--blue-400); }
.faq-q .chev {
  width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; flex-shrink: 0;
  background: var(--grad-soft); border: 1px solid rgba(91, 141, 239, .3); color: var(--blue-400);
  transition: transform .45s var(--ease-out);
}
.faq-item.open .chev { transform: rotate(180deg); background: var(--grad-brand); color: #fff; }
.faq-q svg { width: 16px; height: 16px; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .55s var(--ease-out); }
.faq-a p { padding: 0 26px 24px; color: var(--muted); font-size: .97rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(26px, 4vw, 50px); align-items: start; }
.contact-cards { display: grid; gap: 16px; }
.contact-card {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 24px; border-radius: var(--radius-md);
  background: var(--surface); border: 1px solid var(--border);
  transition: transform .4s var(--ease-out), border-color .3s;
}
.contact-card:hover { transform: translateY(-4px); border-color: rgba(91, 141, 239, .4); }
.contact-card .cc-icon {
  width: 52px; height: 52px; border-radius: 15px; flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--grad-soft); border: 1px solid rgba(91, 141, 239, .3); color: var(--blue-400);
}
.contact-card .cc-icon svg { width: 24px; height: 24px; }
.contact-card h3 { font-size: 1rem; font-weight: 800; margin-bottom: 4px; }
.contact-card p, .contact-card a { color: var(--muted); font-size: .95rem; font-weight: 600; word-break: break-word; }
.contact-card a:hover { color: var(--blue-400); }

.contact-form {
  padding: clamp(28px, 4vw, 44px);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-xl); position: relative; overflow: hidden;
}
.contact-form::before { content: ""; position: absolute; top: 0; inset-inline: 0; height: 3px; background: var(--grad-brand); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: grid; gap: 9px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-weight: 700; font-size: .94rem; }
.form-field label span { color: var(--blue-400); }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 15px 18px;
  background: var(--bg-2); border: 1.5px solid var(--border);
  border-radius: 14px; color: var(--text);
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.form-field textarea { min-height: 150px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--blue-500);
  box-shadow: 0 0 0 4px rgba(61, 110, 240, .15);
}
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--muted); opacity: .7; }
.form-submit { margin-top: 22px; }
.form-note { margin-top: 16px; font-size: .85rem; color: var(--muted); text-align: center; }

/* toast */
.toast {
  position: fixed; bottom: 28px; inset-inline-start: 50%; z-index: 4500;
  transform: translate(50%, 140%);
  display: flex; align-items: center; gap: 12px;
  background: var(--surface-2); border: 1px solid rgba(91, 141, 239, .4);
  padding: 16px 24px; border-radius: 16px;
  box-shadow: var(--shadow-2); color: var(--text); font-weight: 700;
  transition: transform .6s var(--ease-spring);
  max-width: min(92vw, 480px);
}
:root[dir="ltr"] .toast { transform: translate(-50%, 140%); }
.toast.show { transform: translate(50%, 0); }
:root[dir="ltr"] .toast.show { transform: translate(-50%, 0); }
.toast svg { width: 22px; height: 22px; color: #34d399; flex-shrink: 0; }

/* map */
.map-frame {
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border); position: relative;
  filter: saturate(.85);
}
.map-frame iframe { width: 100%; height: 380px; border: 0; display: block; }
:root[data-theme="dark"] .map-frame { filter: invert(.92) hue-rotate(185deg) saturate(.7) brightness(.92); }

/* ---------- Careers ---------- */
.job-list { display: grid; gap: 16px; max-width: 900px; margin-inline: auto; }
.job-card {
  display: flex; flex-wrap: wrap; align-items: center; gap: 18px;
  padding: 26px 28px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: transform .4s var(--ease-out), border-color .35s, box-shadow .45s;
}
.job-card:hover { transform: translateY(-4px); border-color: rgba(91, 141, 239, .4); box-shadow: var(--shadow-1); }
.job-icon {
  width: 56px; height: 56px; border-radius: 16px; flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--grad-soft); border: 1px solid rgba(91, 141, 239, .3); color: var(--blue-400);
}
.job-icon svg { width: 26px; height: 26px; }
.job-info { flex-grow: 1; min-width: 220px; }
.job-info h3 { font-size: 1.1rem; font-weight: 800; }
.job-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.job-tags span { font-size: .78rem; font-weight: 700; color: var(--muted); background: var(--surface-2); border: 1px solid var(--border); padding: 4px 12px; border-radius: 99px; display: inline-flex; align-items: center; gap: 6px; }
.job-tags svg { width: 12px; height: 12px; }
.benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; bottom: 26px; inset-inline-end: 26px; z-index: 1200;
  width: 50px; height: 50px; border-radius: 15px;
  display: grid; place-items: center;
  background: var(--grad-brand); color: #fff;
  box-shadow: var(--shadow-blue);
  opacity: 0; visibility: hidden; transform: translateY(16px);
  transition: all .45s var(--ease-out);
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { transform: translateY(-4px); }
.to-top svg { width: 20px; height: 20px; }

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 2000;
  background: var(--bg);
  display: flex; flex-direction: column;
  padding: 20px;
  clip-path: circle(0 at calc(100% - 44px) 42px);
  transition: clip-path .65s var(--ease-out), visibility .65s;
  visibility: hidden;
}
.mobile-menu.open { clip-path: circle(150% at calc(100% - 44px) 42px); visibility: visible; }
:root[dir="ltr"] .mobile-menu { clip-path: circle(0 at 44px 42px); }
:root[dir="ltr"] .mobile-menu.open { clip-path: circle(150% at 44px 42px); }
.mm-head { display: flex; justify-content: space-between; align-items: center; height: 64px; }
.mm-head img { height: 46px; }
.mm-close { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--border); color: var(--text); }
.mm-close svg { width: 20px; height: 20px; }
.mm-nav { flex-grow: 1; display: flex; flex-direction: column; justify-content: center; gap: 4px; overflow-y: auto; padding-block: 20px; }
.mm-nav a {
  font-size: clamp(1.3rem, 5.4vw, 1.7rem); font-weight: 800; padding: 10px 6px;
  color: var(--text-2); display: flex; justify-content: space-between; align-items: center;
  opacity: 0; transform: translateY(24px);
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out), color .3s;
  transition-delay: var(--md, 0s), var(--md, 0s), 0s;
}
.mobile-menu.open .mm-nav a { opacity: 1; transform: none; }
.mm-nav a:hover, .mm-nav a.active { color: var(--blue-400); }
.mm-nav a svg { width: 20px; height: 20px; opacity: .5; }
.mm-foot { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding-top: 16px; border-top: 1px solid var(--border); }
.mm-foot .lang-switch a { padding: 9px 18px; }
.mm-foot .socials a { width: 40px; height: 40px; }

/* ---------- Section separators / deco ---------- */
.grid-dots {
  position: absolute; inset-inline: 0; top: 0; height: 100%; pointer-events: none;
  background-image: radial-gradient(rgba(120, 150, 220, .12) 1px, transparent 1px);
  background-size: 30px 30px;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
  opacity: .5;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1120px) {
  .main-nav, .header-cta { display: none; }
  .nav-toggle { display: grid; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid, .process-grid, .sector-grid { grid-template-columns: repeat(2, 1fr); }
  .process-line { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  :root { --header-h: 72px; }
  .brand img { height: 44px; }
  .site-header.scrolled .brand img { height: 40px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .project-card, .project-card.flip { grid-template-columns: 1fr; }
  .project-card.flip .project-media { order: 0; }
  .split { grid-template-columns: 1fr; }
  .showcase, .showcase.flip { grid-template-columns: 1fr; }
  .showcase.flip .showcase-media { order: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .stats-band { grid-template-columns: repeat(2, 1fr); }
  .benefit-grid { grid-template-columns: repeat(2, 1fr); }
  .exp-badge { inset-inline-end: 12px; bottom: -18px; padding: 14px 18px; }
  .exp-badge b { font-size: 1.5rem; }
}

@media (max-width: 560px) {
  .services-grid, .team-grid, .blog-grid, .feature-grid, .process-grid, .sector-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 36px; }
  .hero-cta .btn { width: 100%; }
  .hero-chip { display: none; }
  .lang-switch { font-size: .76rem; }
  .lang-switch a { padding: 6px 10px; }
  .header-actions .icon-btn { width: 38px; height: 38px; }
  .benefit-grid { grid-template-columns: 1fr; }
  .job-card { padding: 20px; }
  .job-card .btn { width: 100%; }
  .footer-bottom { justify-content: center; text-align: center; }
}

/* print */
@media print {
  .site-header, .mobile-menu, .to-top, .cursor-dot, .cursor-ring, #preloader, .cta-band { display: none !important; }
}

/* ---------- Two-member team grid ---------- */
.team-grid.two { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.team-grid.two .team-card { max-width: 420px; width: 100%; justify-self: center; }
/* team social links always reachable on touch devices (no hover) */
@media (hover: none) {
  .team-social { opacity: 1; transform: none; }
}

/* ---------- Responsive column utilities ---------- */
/* بديل الأنماط المضمّنة (inline) على شبكات الخدمات: يحافظ على عدد الأعمدة
   في سطح المكتب ويسمح بانهيار الشبكة على الأجهزة اللوحية والهواتف. */
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1120px) {
  .cols-2, .cols-3, .cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }
  /* معرض الأعمال يبقى بعمودين على الهاتف كما في التصميم الأصلي */
  .gallery-grid.cols-2, .gallery-grid.cols-3, .gallery-grid.cols-4 { grid-template-columns: 1fr 1fr; }
}
