/* ============================================================
   FUTURE SOLUTION CO. LTD — Corporate Technology Website
   Design system + components
   ============================================================ */

:root {
  /* Brand palette */
  --navy-950: #04102b;
  --navy-900: #061634;
  --navy-850: #081d44;
  --navy-800: #0a234f;
  --navy-700: #0e2f6a;
  --blue-600: #1764da;
  --blue-500: #2b82f6;
  --blue-400: #4f9dff;
  --cyan-400: #46c8ff;
  --red-600: #d8161d;
  --red-500: #ec3128;
  --red-400: #ff5a4d;
  --white: #ffffff;
  --ink-100: #eaf1ff;
  --ink-200: #d3def5;
  --ink-300: #b6c6e6;
  --ink-400: #8ea4ce;
  --ink-500: #6c83ad;
  --line: rgba(120, 160, 230, 0.16);
  --line-strong: rgba(120, 160, 230, 0.32);

  /* Glass */
  --glass: rgba(13, 32, 72, 0.55);
  --glass-2: rgba(10, 26, 60, 0.7);
  --glass-line: rgba(140, 180, 255, 0.18);

  /* Type */
  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --font-ar: "Tajawal", "Sora", sans-serif;

  --maxw: 1240px;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-card: 0 24px 60px -28px rgba(2, 10, 30, 0.9);
  --glow-blue: 0 0 40px rgba(43, 130, 246, 0.35);
  --glow-red: 0 0 36px rgba(236, 49, 40, 0.4);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--navy-950);
  color: var(--ink-300);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

html[dir="rtl"] body { font-family: var(--font-ar); }
html[dir="rtl"] .display,
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3 { font-family: var(--font-ar); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--white);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 700;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; }
ul { list-style: none; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.section { padding: 110px 0; position: relative; }

/* Eyebrow / labels */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--blue-400);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}
html[dir="rtl"] .eyebrow { font-family: var(--font-ar); letter-spacing: 0; font-weight: 700; }
.eyebrow::before {
  content: ""; width: 26px; height: 2px;
  background: linear-gradient(90deg, var(--red-500), var(--blue-500));
}

.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(30px, 4vw, 48px); margin: 18px 0 16px; }
.section-head p { font-size: 18px; color: var(--ink-400); }

.text-red { color: var(--red-400); }
.text-blue { color: var(--blue-400); }
.text-grad {
  background: linear-gradient(100deg, var(--blue-400) 0%, var(--cyan-400) 60%, var(--white) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
  padding: 14px 26px; border-radius: 12px; cursor: pointer;
  border: 1px solid transparent; transition: all .25s ease; white-space: nowrap;
}
html[dir="rtl"] .btn { font-family: var(--font-ar); }
.btn svg { width: 17px; height: 17px; transition: transform .25s ease; }
html[dir="rtl"] .btn svg { transform: scaleX(-1); }
.btn-primary {
  background: linear-gradient(180deg, var(--red-500), var(--red-600));
  color: #fff; box-shadow: var(--glow-red), 0 12px 30px -12px rgba(216,22,29,.7);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 50px rgba(236,49,40,.55), 0 18px 40px -14px rgba(216,22,29,.8); }
.btn-primary:hover svg { transform: translateX(4px); }
html[dir="rtl"] .btn-primary:hover svg { transform: scaleX(-1) translateX(4px); }
.btn-ghost {
  background: rgba(255,255,255,0.04); color: var(--white);
  border-color: var(--glass-line); backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: rgba(79,157,255,0.12); border-color: var(--blue-400); transform: translateY(-2px); }
.btn-blue { background: linear-gradient(180deg, var(--blue-500), var(--blue-600)); color:#fff; box-shadow: var(--glow-blue); }
.btn-blue:hover { transform: translateY(-2px); box-shadow: 0 0 50px rgba(43,130,246,.5); }
.btn-lg { padding: 17px 34px; font-size: 16px; }

/* ============================================================
   TOP UTILITY BAR + NAV
   ============================================================ */
.topbar {
  background: var(--navy-950);
  border-bottom: 1px solid var(--line);
  font-size: 13px; color: var(--ink-400);
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 42px; }
.topbar-info { display: flex; gap: 26px; }
.topbar-info a { display: inline-flex; align-items: center; gap: 7px; transition: color .2s; }
.topbar-info a:hover { color: var(--ink-100); }
.topbar-info svg { width: 14px; height: 14px; color: var(--blue-400); }
.topbar-right { display: flex; align-items: center; gap: 18px; }
.social { display: flex; gap: 12px; }
.social a { color: var(--ink-500); transition: color .2s, transform .2s; }
.social a:hover { color: var(--blue-400); transform: translateY(-1px); }
.social svg { width: 15px; height: 15px; }

.lang-toggle {
  display: inline-flex; align-items: center; gap: 0;
  border: 1px solid var(--line-strong); border-radius: 8px; overflow: hidden;
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
}
.lang-toggle button {
  background: transparent; border: 0; color: var(--ink-400);
  padding: 5px 11px; cursor: pointer; transition: all .2s; font-family: inherit;
}
.lang-toggle button.active { background: var(--blue-600); color: #fff; }

.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(6, 18, 44, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--line);
  transition: background .3s, box-shadow .3s;
}
.nav.scrolled { background: rgba(5, 14, 36, 0.94); box-shadow: 0 10px 40px -20px rgba(0,0,0,.8); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 13px; }
.brand img { width: 46px; height: 46px; filter: drop-shadow(0 4px 12px rgba(43,130,246,.4)); }
.brand-txt { display: flex; flex-direction: column; line-height: 1.05; }
.brand-txt .b1 { font-family: var(--font-display); font-weight: 800; font-size: 17px; color: #fff; letter-spacing: .01em; }
.brand-txt .b2 { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .22em; color: var(--blue-400); text-transform: uppercase; }
html[dir="rtl"] .brand-txt .b2 { font-family: var(--font-ar); letter-spacing: 0; }

.menu { display: flex; align-items: center; gap: 4px; }
.menu > li > a {
  display: block; padding: 9px 15px; border-radius: 9px;
  font-size: 14.5px; font-weight: 600; color: var(--ink-300);
  font-family: var(--font-display); transition: color .2s, background .2s;
}
html[dir="rtl"] .menu > li > a { font-family: var(--font-ar); }
.menu > li > a:hover { color: #fff; background: rgba(79,157,255,.1); }
.nav-cta { display: flex; align-items: center; gap: 12px; }

.burger { display: none; background: none; border: 1px solid var(--line-strong); border-radius: 9px; width: 44px; height: 44px; cursor: pointer; color: #fff; }
.burger svg { width: 22px; height: 22px; margin: auto; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 90% at 78% 8%, rgba(43,130,246,.22), transparent 55%),
    radial-gradient(90% 80% at 12% 92%, rgba(216,22,29,.16), transparent 55%),
    linear-gradient(180deg, var(--navy-900), var(--navy-950) 78%);
  padding: 92px 0 0;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-bg svg { width: 100%; height: 100%; }
.hero-grid {
  position: absolute; inset: 0; z-index: 0; opacity: .5;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(120% 80% at 50% 0%, #000 35%, transparent 78%);
  mask-image: radial-gradient(120% 80% at 50% 0%, #000 35%, transparent 78%);
}
.hero .wrap { position: relative; z-index: 2; }

.hero-inner { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 50px; align-items: center; padding-bottom: 40px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--glass); border: 1px solid var(--glass-line);
  padding: 7px 15px 7px 8px; border-radius: 100px; font-size: 13px; color: var(--ink-200);
  backdrop-filter: blur(8px); margin-bottom: 26px;
}
.hero-badge b { color: #fff; font-weight: 600; }
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #2bd47f; box-shadow: 0 0 0 4px rgba(43,212,127,.18); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(43,212,127,0); } }

.hero-title-ar { font-family: var(--font-ar); font-weight: 700; color: #fff; direction: rtl; }
.hero-title-en { font-family: var(--font-display); }

/* EN mode: english big, arabic eyebrow */
.hero h1.hero-title-en { font-size: clamp(38px, 5.2vw, 66px); line-height: 1.04; margin: 0 0 8px; }
.hero h1.hero-title-en .ln2 { background: linear-gradient(100deg, var(--blue-400), var(--cyan-400) 70%, #fff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .hero-title-ar { font-size: clamp(26px, 3vw, 38px); opacity: .92; margin-bottom: 14px; }
html[lang="en"] .hero-title-ar { color: var(--blue-300, #8fbcff); font-weight: 700; }

/* AR mode swap */
html[dir="rtl"] .hero h1.hero-title-en { font-size: clamp(22px, 2.6vw, 32px); order: 2; opacity: .85; margin: 12px 0 0; font-weight: 600; }
html[dir="rtl"] .hero .hero-title-ar { font-size: clamp(38px, 5.4vw, 64px); opacity: 1; margin: 0; }
html[dir="rtl"] .hero-headline { display: flex; flex-direction: column; }

.hero-sub { font-size: 18.5px; color: var(--ink-300); max-width: 540px; margin: 22px 0 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-trust { margin-top: 34px; display: flex; align-items: center; gap: 14px; color: var(--ink-500); font-size: 13.5px; }
.hero-trust .avatars { display: flex; }
.hero-trust .avatars span { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--navy-900); margin-inline-start: -9px; background: linear-gradient(135deg, var(--blue-500), var(--navy-700)); }
.hero-trust .avatars span:first-child { margin: 0; }

/* Hero right — hex service cluster */
.hero-visual { position: relative; }
.hero-orb {
  position: absolute; inset: -8% -10%; z-index: 0;
  background: radial-gradient(circle at 60% 40%, rgba(43,130,246,.4), transparent 60%);
  filter: blur(30px);
}
.hex-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
}
.hex-card {
  background: var(--glass); border: 1px solid var(--glass-line); border-radius: 16px;
  padding: 20px 18px; backdrop-filter: blur(12px);
  transition: transform .3s, border-color .3s, box-shadow .3s;
  position: relative; overflow: hidden;
}
.hex-card:nth-child(odd) { transform: translateY(14px); }
.hex-card:hover { transform: translateY(-4px); border-color: rgba(79,157,255,.5); box-shadow: var(--glow-blue); }
.hex-card:nth-child(odd):hover { transform: translateY(10px); }
.hex-ic {
  width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px;
  background: linear-gradient(150deg, rgba(43,130,246,.25), rgba(236,49,40,.15));
  border: 1px solid var(--glass-line); margin-bottom: 13px; color: var(--blue-400);
}
.hex-ic svg { width: 24px; height: 24px; }
.hex-card h4 { font-size: 15px; margin-bottom: 3px; }
.hex-card .ar { font-family: var(--font-ar); font-size: 13px; color: var(--ink-400); direction: rtl; }

/* Hero stats strip */
.hero-stats {
  position: relative; z-index: 2; margin-top: 8px;
  background: linear-gradient(180deg, rgba(10,26,60,.7), rgba(7,20,48,.85));
  border: 1px solid var(--glass-line); border-bottom: none;
  border-radius: 20px 20px 0 0; backdrop-filter: blur(14px);
  display: grid; grid-template-columns: repeat(6, 1fr);
  box-shadow: 0 -10px 50px -20px rgba(43,130,246,.4);
}
.stat { padding: 26px 20px; text-align: center; border-inline-end: 1px solid var(--line); position: relative; }
.stat:last-child { border: none; }
.stat .num { font-family: var(--font-display); font-weight: 800; font-size: clamp(26px, 3vw, 38px); color: #fff; letter-spacing: -.02em; }
.stat .num .suf { color: var(--red-400); }
.stat .lbl { font-size: 12.5px; color: var(--ink-400); margin-top: 4px; }
html[dir="rtl"] .stat .lbl { font-family: var(--font-ar); }

/* ============================================================
   PARTNERS MARQUEE
   ============================================================ */
.marquee-sec { padding: 40px 0; border-bottom: 1px solid var(--line); background: var(--navy-950); }
.marquee-label { text-align: center; font-family: var(--font-mono); font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-500); margin-bottom: 26px; }
html[dir="rtl"] .marquee-label { font-family: var(--font-ar); letter-spacing: 0; }
.marquee { display: flex; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 56px; padding-inline-end: 56px; animation: scroll 38s linear infinite; flex-shrink: 0; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes scroll { to { transform: translateX(-100%); } }
html[dir="rtl"] .marquee-track { animation-direction: reverse; }
.logo-chip { font-family: var(--font-display); font-weight: 700; font-size: 21px; color: var(--ink-500); white-space: nowrap; transition: color .25s; letter-spacing: -.01em; }
.logo-chip:hover { color: var(--ink-100); }

/* ============================================================
   SERVICES
   ============================================================ */
.bg-deep { background: linear-gradient(180deg, var(--navy-950), var(--navy-900)); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.svc-card {
  background: linear-gradient(165deg, rgba(14,34,78,.6), rgba(8,22,52,.5));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; position: relative; overflow: hidden;
  transition: transform .35s, border-color .35s, box-shadow .35s;
}
.svc-card::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 100% at 100% 0%, rgba(43,130,246,.14), transparent 55%); opacity: 0; transition: opacity .35s; }
.svc-card:hover { transform: translateY(-6px); border-color: rgba(79,157,255,.45); box-shadow: var(--shadow-card); }
.svc-card:hover::after { opacity: 1; }
.svc-card.feature { grid-column: span 1; }
.svc-ic {
  width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center;
  background: linear-gradient(150deg, var(--blue-600), var(--navy-700));
  box-shadow: 0 10px 26px -12px rgba(43,130,246,.7); color: #fff; margin-bottom: 22px;
  position: relative; z-index: 1;
}
.svc-card:nth-child(3n+2) .svc-ic { background: linear-gradient(150deg, var(--red-500), #8c0f14); box-shadow: 0 10px 26px -12px rgba(236,49,40,.7); }
.svc-ic svg { width: 30px; height: 30px; }
.svc-card h3 { font-size: 21px; margin-bottom: 6px; position: relative; z-index: 1; }
.svc-card .svc-ar { font-family: var(--font-ar); direction: rtl; color: var(--ink-400); font-size: 14px; margin-bottom: 14px; }
.svc-card p { font-size: 14.5px; color: var(--ink-400); position: relative; z-index: 1; margin-bottom: 18px; }
.svc-tags { display: flex; flex-wrap: wrap; gap: 7px; position: relative; z-index: 1; }
.svc-tags span { font-size: 11.5px; font-family: var(--font-mono); padding: 4px 10px; border-radius: 20px; background: rgba(79,157,255,.1); border: 1px solid var(--line); color: var(--ink-300); }
html[dir="rtl"] .svc-tags span { font-family: var(--font-ar); }
.svc-link { display: inline-flex; align-items: center; gap: 7px; margin-top: 18px; color: var(--blue-400); font-weight: 600; font-size: 14px; position: relative; z-index: 1; font-family: var(--font-display); }
html[dir="rtl"] .svc-link { font-family: var(--font-ar); }
.svc-link svg { width: 15px; height: 15px; transition: transform .25s; }
html[dir="rtl"] .svc-link svg { transform: scaleX(-1); }
.svc-card:hover .svc-link svg { transform: translateX(4px); }
html[dir="rtl"] .svc-card:hover .svc-link svg { transform: scaleX(-1) translateX(4px); }

/* ============================================================
   WHY US
   ============================================================ */
.why { background: var(--navy-900); position: relative; overflow: hidden; }
.why-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; align-items: center; }
.why-panel {
  background: linear-gradient(165deg, rgba(14,34,78,.7), rgba(8,22,52,.6));
  border: 1px solid var(--glass-line); border-radius: 24px; padding: 8px;
  position: relative;
}
.why-panel-inner { border-radius: 18px; overflow: hidden; background: var(--navy-950); padding: 36px; position: relative; }
.why-ring { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.why-metric { padding: 18px; border-radius: 14px; background: rgba(43,130,246,.07); border: 1px solid var(--line); }
.why-metric .m { font-family: var(--font-display); font-weight: 800; font-size: 30px; color: #fff; }
.why-metric .t { font-size: 13px; color: var(--ink-400); }
html[dir="rtl"] .why-metric .t { font-family: var(--font-ar); }
.why-list { display: grid; gap: 16px; margin-top: 12px; }
.why-item { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; border-radius: 14px; background: rgba(255,255,255,.02); border: 1px solid var(--line); transition: border-color .25s, background .25s; }
.why-item:hover { border-color: rgba(79,157,255,.4); background: rgba(43,130,246,.06); }
.why-check { flex: none; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: linear-gradient(150deg, var(--blue-500), var(--blue-600)); color: #fff; }
.why-check svg { width: 20px; height: 20px; }
.why-item:nth-child(even) .why-check { background: linear-gradient(150deg, var(--red-500), var(--red-600)); }
.why-item h4 { font-size: 16.5px; margin-bottom: 2px; }
.why-item p { font-size: 13.5px; color: var(--ink-400); }

/* ============================================================
   INDUSTRIES
   ============================================================ */
.ind-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.ind-card {
  position: relative; padding: 26px 22px; border-radius: 16px; overflow: hidden;
  background: linear-gradient(165deg, rgba(14,34,78,.5), rgba(8,22,52,.45));
  border: 1px solid var(--line); transition: transform .3s, border-color .3s;
  min-height: 150px; display: flex; flex-direction: column; justify-content: space-between;
}
.ind-card:hover { transform: translateY(-5px); border-color: rgba(79,157,255,.45); }
.ind-card:hover .ind-ic { background: linear-gradient(150deg, var(--red-500), var(--red-600)); color: #fff; }
.ind-ic { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: rgba(43,130,246,.12); border: 1px solid var(--line); color: var(--blue-400); transition: all .3s; }
.ind-ic svg { width: 25px; height: 25px; }
.ind-card h4 { font-size: 16px; margin-top: auto; }
.ind-card .ind-ar { font-family: var(--font-ar); direction: rtl; font-size: 13px; color: var(--ink-500); }

/* ============================================================
   PORTFOLIO
   ============================================================ */
.bg-deep2 { background: linear-gradient(180deg, var(--navy-900), var(--navy-950)); }
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 38px; }
.filter-btn {
  font-family: var(--font-display); font-weight: 600; font-size: 14px;
  padding: 10px 20px; border-radius: 30px; cursor: pointer;
  background: rgba(255,255,255,.03); border: 1px solid var(--line); color: var(--ink-300);
  transition: all .25s;
}
html[dir="rtl"] .filter-btn { font-family: var(--font-ar); }
.filter-btn:hover { color: #fff; border-color: var(--line-strong); }
.filter-btn.active { background: linear-gradient(180deg, var(--blue-500), var(--blue-600)); color: #fff; border-color: transparent; box-shadow: var(--glow-blue); }
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.proj-card {
  border-radius: var(--radius); overflow: hidden; position: relative;
  border: 1px solid var(--line); background: var(--navy-850);
  transition: transform .35s, border-color .35s, box-shadow .35s;
}
.proj-card.hide { display: none; }
.proj-card:hover { transform: translateY(-6px); border-color: rgba(79,157,255,.4); box-shadow: var(--shadow-card); }
.proj-img { aspect-ratio: 16/10; position: relative; overflow: hidden; }
.proj-img .ph {
  position: absolute; inset: 0;
  background: linear-gradient(150deg, var(--navy-700), var(--navy-900));
  display: grid; place-items: center;
}
.proj-img .ph svg { width: 64px; height: 64px; color: rgba(79,157,255,.45); }
.proj-img .ph-grid { position: absolute; inset: 0; opacity: .4;
  background-image: linear-gradient(rgba(79,157,255,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(79,157,255,.12) 1px, transparent 1px);
  background-size: 26px 26px; }
.proj-cat { position: absolute; top: 14px; inset-inline-start: 14px; z-index: 2; font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; padding: 5px 12px; border-radius: 20px; background: rgba(7,20,48,.8); border: 1px solid var(--glass-line); color: var(--blue-400); backdrop-filter: blur(6px); }
html[dir="rtl"] .proj-cat { font-family: var(--font-ar); letter-spacing: 0; }
.proj-body { padding: 22px 24px 26px; }
.proj-body h3 { font-size: 19px; margin-bottom: 6px; }
.proj-meta { display: flex; gap: 16px; font-size: 12.5px; color: var(--ink-500); margin-bottom: 14px; flex-wrap: wrap; }
.proj-meta span { display: inline-flex; align-items: center; gap: 6px; }
.proj-meta svg { width: 13px; height: 13px; color: var(--blue-400); }
.proj-body p { font-size: 14px; color: var(--ink-400); }
.proj-tech { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 16px; }
.proj-tech span { font-size: 11px; font-family: var(--font-mono); color: var(--ink-400); padding: 3px 9px; border: 1px solid var(--line); border-radius: 6px; }

/* ============================================================
   PARTNERS WALL
   ============================================================ */
.partners-wall { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.pw-cell { background: var(--navy-900); aspect-ratio: 16/9; display: grid; place-items: center; transition: background .3s; padding: 18px; }
.pw-cell:hover { background: var(--navy-800); }
.pw-cell span { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--ink-500); transition: color .3s; }
.pw-cell:hover span { color: #fff; }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band { position: relative; overflow: hidden; padding: 0; }
.cta-inner {
  background:
    radial-gradient(90% 140% at 85% 0%, rgba(43,130,246,.4), transparent 55%),
    radial-gradient(90% 140% at 10% 100%, rgba(216,22,29,.35), transparent 55%),
    linear-gradient(180deg, var(--navy-800), var(--navy-850));
  border: 1px solid var(--glass-line); border-radius: 28px;
  padding: 64px 56px; text-align: center; position: relative; overflow: hidden;
}
.cta-inner h2 { font-size: clamp(30px, 4.2vw, 50px); margin-bottom: 16px; }
.cta-inner p { font-size: 18px; color: var(--ink-300); max-width: 580px; margin: 0 auto 32px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   CONTACT TEASER
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: stretch; }
.contact-info { display: flex; flex-direction: column; gap: 14px; }
.ci-card { display: flex; gap: 16px; align-items: flex-start; padding: 22px 24px; border-radius: 16px; background: linear-gradient(165deg, rgba(14,34,78,.55), rgba(8,22,52,.5)); border: 1px solid var(--line); transition: border-color .25s; }
.ci-card:hover { border-color: rgba(79,157,255,.4); }
.ci-ic { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(43,130,246,.12); color: var(--blue-400); border: 1px solid var(--line); }
.ci-ic svg { width: 22px; height: 22px; }
.ci-card .t { font-size: 12px; color: var(--ink-500); font-family: var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
html[dir="rtl"] .ci-card .t { font-family: var(--font-ar); letter-spacing: 0; }
.ci-card .v { font-size: 16px; color: #fff; font-weight: 600; font-family: var(--font-display); }
html[dir="rtl"] .ci-card .v { font-family: var(--font-ar); }
.form-card { background: linear-gradient(165deg, rgba(14,34,78,.6), rgba(8,22,52,.55)); border: 1px solid var(--glass-line); border-radius: 24px; padding: 36px; }
.form-card h3 { font-size: 24px; margin-bottom: 6px; }
.form-card > p { font-size: 14.5px; color: var(--ink-400); margin-bottom: 24px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; color: var(--ink-300); margin-bottom: 7px; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border-radius: 11px; font-family: var(--font-body); font-size: 14.5px;
  background: rgba(4,16,43,.7); border: 1px solid var(--line-strong); color: #fff; transition: border-color .2s, box-shadow .2s;
}
html[dir="rtl"] .field input, html[dir="rtl"] .field select, html[dir="rtl"] .field textarea { font-family: var(--font-ar); }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-500); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue-400); box-shadow: 0 0 0 3px rgba(43,130,246,.18); }
.field textarea { resize: vertical; min-height: 96px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-note { font-size: 12.5px; color: var(--ink-500); margin-top: 14px; text-align: center; }
.form-actions { display: flex; gap: 12px; margin-top: 4px; }
.form-actions .btn svg { flex: none; }
.form-status { margin-top: 14px; text-align: center; font-size: 13.5px; font-weight: 600; padding: 11px 14px; border-radius: 11px; }
.form-status.ok { color: #8af0bd; background: rgba(43,212,127,.1); border: 1px solid rgba(43,212,127,.3); }
.form-status.pending { color: var(--blue-400); background: rgba(43,130,246,.1); border: 1px solid rgba(43,130,246,.3); }
.form-status.err { color: #ffb4ad; background: rgba(236,49,40,.1); border: 1px solid rgba(236,49,40,.3); }
html[dir="rtl"] .form-status { font-family: var(--font-ar); }
@media (max-width: 460px) { .form-actions { flex-direction: column; } }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--navy-950); border-top: 1px solid var(--line); padding: 72px 0 0; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 52px; border-bottom: 1px solid var(--line); }
.footer-brand .brand { margin-bottom: 18px; }
.footer-brand p { font-size: 14px; color: var(--ink-400); max-width: 300px; margin-bottom: 20px; }
.footer-col h5 { font-family: var(--font-display); font-size: 14px; color: #fff; letter-spacing: .04em; margin-bottom: 18px; text-transform: uppercase; }
html[dir="rtl"] .footer-col h5 { font-family: var(--font-ar); }
.footer-col ul { display: grid; gap: 11px; }
.footer-col a { font-size: 14px; color: var(--ink-400); transition: color .2s; }
.footer-col a:hover { color: var(--blue-400); }
.newsletter input { width: 100%; padding: 12px 14px; border-radius: 10px; background: var(--navy-900); border: 1px solid var(--line-strong); color: #fff; font-size: 14px; margin-bottom: 10px; font-family: var(--font-body); }
.newsletter input:focus { outline: none; border-color: var(--blue-400); }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.04); border: 1px solid var(--line); color: var(--ink-400); transition: all .25s; }
.footer-social a:hover { color: #fff; border-color: var(--blue-400); background: rgba(43,130,246,.12); }
.footer-social svg { width: 17px; height: 17px; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding: 26px 0; font-size: 13px; color: var(--ink-500); flex-wrap: wrap; gap: 12px; }
.footer-bottom a:hover { color: var(--blue-400); }

/* ============================================================
   WHATSAPP FLOAT
   ============================================================ */
.wa-float {
  position: fixed; bottom: 26px; inset-inline-end: 26px; z-index: 200;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(150deg, #25d366, #128c4b); color: #fff;
  box-shadow: 0 12px 30px -8px rgba(37,211,102,.6); transition: transform .25s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }

/* ============================================================
   REVEAL ANIM
   ============================================================ */
/* Progressive enhancement: content is visible by default (no-JS safe).
   With JS active (html.js) we hide-then-reveal on scroll. A JS timer adds
   `.shown` ~0.8s after reveal, force-snapping the element visible — this is
   timer-based (not compositor-based) so content can never get stuck hidden,
   even in environments that pause CSS transitions/animations. */
.reveal { opacity: 1; transform: none; }
html.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
html.js .reveal.in { opacity: 1; transform: none; }
html.js .reveal.shown { opacity: 1 !important; transform: none !important; transition: none; }
html.js .reveal.d1 { transition-delay: .08s; } html.js .reveal.d2 { transition-delay: .16s; } html.js .reveal.d3 { transition-delay: .24s; } html.js .reveal.d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) { html.js .reveal { opacity: 1; transform: none; transition: none; } }

/* ============================================================
   MOBILE MENU
   ============================================================ */
.mobile-menu { position: fixed; inset: 0; z-index: 150; background: rgba(4,16,43,.97); backdrop-filter: blur(14px); display: none; flex-direction: column; padding: 28px; }
.mobile-menu.open { display: flex; }
.mm-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 36px; }
.mm-close { background: none; border: 1px solid var(--line-strong); border-radius: 10px; width: 46px; height: 46px; color: #fff; cursor: pointer; }
.mm-close svg { width: 22px; height: 22px; margin: auto; }
.mobile-menu nav { display: grid; gap: 6px; }
.mobile-menu nav a { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: #fff; padding: 12px 0; border-bottom: 1px solid var(--line); }
html[dir="rtl"] .mobile-menu nav a { font-family: var(--font-ar); }
.mobile-menu .btn { margin-top: 24px; justify-content: center; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .services-grid, .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .ind-grid { grid-template-columns: repeat(3, 1fr); }
  .partners-wall { grid-template-columns: repeat(4, 1fr); }
  .why-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 860px) {
  .menu, .nav-cta .btn, .topbar-info { display: none; }
  .burger { display: grid; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); }
  .stat:nth-child(3) { border-inline-end: none; }
  .stat:nth-child(n+4) { border-top: 1px solid var(--line); }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .section { padding: 72px 0; }
  .services-grid, .portfolio-grid, .ind-grid { grid-template-columns: 1fr; }
  .partners-wall { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-inline-end: 1px solid var(--line); }
  .field-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .cta-inner { padding: 44px 28px; }
  .topbar-right .social { display: none; }
}

/* ============================================================
   HERO IMAGE SLIDER (added)
   ============================================================ */
.hero-slider { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.4s ease; transform: scale(1.05);
}
.hero-slide img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-slide.active { opacity: 1; animation: heroZoom 7.5s ease-out forwards; }
@keyframes heroZoom { from { transform: scale(1.05); } to { transform: scale(1.14); } }
@media (prefers-reduced-motion: reduce) { .hero-slide.active { animation: none; transform: none; } }
.hero-scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(98deg, rgba(4,12,32,.96) 0%, rgba(5,14,36,.84) 32%, rgba(5,14,36,.46) 58%, rgba(4,12,32,.66) 100%),
    linear-gradient(0deg, var(--navy-950) 1%, rgba(4,16,43,0) 34%);
}
.hero .hero-grid { z-index: 1; opacity: .2; }
.hero .wrap { z-index: 2; }
.hero-dots {
  position: absolute; z-index: 3; bottom: 172px; inset-inline-start: 50%;
  transform: translateX(-50%); display: flex; gap: 9px;
}
html[dir="rtl"] .hero-dots { transform: translateX(50%); }
.hero-dots button {
  width: 30px; height: 4px; border-radius: 3px; border: 0; padding: 0; cursor: pointer;
  background: rgba(255,255,255,.32); transition: all .35s ease;
}
.hero-dots button.active { width: 48px; background: linear-gradient(90deg, var(--red-500), var(--blue-400)); }
@media (max-width: 860px) { .hero-dots { display: none; } }

/* ============================================================
   SERVICE CARD MEDIA (added)
   ============================================================ */
.svc-media {
  margin: -30px -28px 6px; aspect-ratio: 16 / 9; position: relative; overflow: hidden;
}
.svc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.svc-card:hover .svc-media img { transform: scale(1.07); }
.svc-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,22,52,0) 38%, rgba(10,26,60,.55) 72%, rgba(14,34,78,.95) 100%);
}
.svc-card .svc-ic { margin-top: -52px; position: relative; z-index: 2; }

/* ============================================================
   PROJECT CARD PHOTO (added)
   ============================================================ */
.proj-photo {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s ease;
}
.proj-card:hover .proj-photo { transform: scale(1.06); }
.proj-img::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(4,12,32,.35) 0%, rgba(4,12,32,0) 35%, rgba(4,12,32,.15) 100%);
}
