/* ==========================================================================
   Louisiana — main stylesheet (dark theme, mint + blue accents from the logo)
   1. Design tokens         7. Industries carousel   13. Contact
   2. Base & typography     8. Process timeline      14. Footer
   3. Sections & tags       9. Tech stack grid       15. WhatsApp float
   4. Buttons              10. Portfolio             16. Motion & a11y
   5. Header & nav         11. About / stats
   6. Hero & services      12. CTA banner
   Layout uses CSS logical properties (inline-start/end) so it mirrors
   automatically for Arabic (dir="rtl").
   ========================================================================== */

/* 1. DESIGN TOKENS ------------------------------------------------------- */
:root {
  /* Brand colors — change these to re-theme the whole site */
  --bg: #05080f;                 /* page background */
  --bg-tint: #070c16;            /* alternate section background */
  --surface: rgba(148, 197, 255, 0.035);
  --surface-2: rgba(148, 197, 255, 0.06);
  --line: rgba(148, 197, 255, 0.11);
  --line-strong: rgba(148, 197, 255, 0.2);

  --cyan: #5ee6b8;               /* main accent (logo mint) — variable name kept for compatibility */
  --cyan-light: #bef7de;
  --sky: #8b93ff;                /* light logo blue */
  --teal-deep: #4f5bff;          /* logo blue */
  --accent-text: #86efc8;        /* accent used for text */
  --glow: rgba(94, 230, 184, 0.45);

  --text: #e8f1f8;
  --text-soft: #a3b1c4;
  --text-mute: #8392a8;

  --mint: #5ee6b8;               /* logo accent */
  --logo-blue: #4f5bff;          /* logo mark */
  --whatsapp: #25d366;

  /* Shape & depth */
  --radius: 16px;
  --radius-sm: 12px;
  --radius-lg: 24px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);

  /* Type */
  --font-en: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-ar: "IBM Plex Sans Arabic", "Tajawal", "Segoe UI", Tahoma, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --font: var(--font-en);
  --tracking-tight: -0.03em;

  /* Layout */
  --container: 1200px;
  --gutter: 16px;
  --header-h: 68px;
  --section-y: 80px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html[dir="rtl"] {
  --font: var(--font-ar);
  --tracking-tight: 0; /* never letter-space Arabic */
}

@media (min-width: 768px) { :root { --gutter: 24px; --section-y: 104px; --header-h: 76px; } }
@media (min-width: 1100px) { :root { --section-y: 128px; } }

/* 2. BASE & TYPOGRAPHY --------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
  color-scheme: dark;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
html[dir="rtl"] body { line-height: 1.8; }

.i18n-pending body { visibility: hidden; }

h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: var(--tracking-tight); font-weight: 600; }
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3 { line-height: 1.4; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

.icon {
  width: 1.25em; height: 1.25em; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}
html[dir="rtl"] .icon-dir { transform: scaleX(-1); }

.container {
  position: relative;
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute; inset-inline-start: 16px; top: -100px; z-index: 1000;
  background: var(--cyan); color: #00131a; padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 600;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 8px; }

.text-accent {
  color: var(--accent-text);
  background: linear-gradient(100deg, #86efc8 0%, #5ee6b8 45%, #8b93ff 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.text-gradient {
  background: linear-gradient(100deg, #bef7de 0%, #5ee6b8 30%, #8b93ff 65%, #bef7de 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: shimmer 9s ease-in-out infinite alternate;
}

/* 3. SECTIONS, TAGS ------------------------------------------------------ */
.section { padding-block: var(--section-y); position: relative; overflow: hidden; }
.section-tint { background: var(--bg-tint); border-block: 1px solid rgba(148, 197, 255, 0.05); }
.section-tight { padding-block: calc(var(--section-y) * 0.55); }

.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head-start { margin: 0; text-align: start; }

/* Small bordered label, e.g. "WHAT WE DO" */
.tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px; margin-bottom: 18px;
  border: 1px solid var(--line-strong); border-radius: 8px;
  background: var(--surface);
  font-size: 0.6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--text-soft);
}
html[dir="rtl"] .tag { letter-spacing: 0; font-size: 0.8125rem; text-transform: none; }

.num-tag {
  display: inline-grid; place-items: center; min-width: 34px; height: 24px; padding: 0 8px;
  border: 1px solid var(--line-strong); border-radius: 7px;
  font-family: var(--font-mono); font-size: 0.6875rem; color: var(--text-mute);
}

.section-title { font-size: clamp(1.875rem, 1.2rem + 2.6vw, 3rem); font-weight: 500; }
html[dir="rtl"] .section-title { font-weight: 600; }
.section-lead { margin-top: 18px; font-size: 1.0625rem; color: var(--text-soft); }

/* Huge outlined background word */
.bg-word {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  font-family: var(--font-en); font-weight: 700; line-height: 0.9; letter-spacing: -0.02em;
  font-size: clamp(4.5rem, 17vw, 15rem);
  color: transparent; -webkit-text-stroke: 1px rgba(134, 239, 200, 0.14);
  white-space: nowrap; pointer-events: none; user-select: none;
  -webkit-mask-image: linear-gradient(180deg, #000 20%, transparent 95%);
  mask-image: linear-gradient(180deg, #000 20%, transparent 95%);
}

/* 4. BUTTONS ------------------------------------------------------------- */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 10px 20px;
  border-radius: 12px; border: 1px solid transparent;
  font-weight: 500; font-size: 0.9375rem; line-height: 1.2; white-space: nowrap;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background-color 0.3s, border-color 0.3s, color 0.3s;
}
.btn .icon { width: 16px; height: 16px; stroke-width: 2; transition: transform 0.3s var(--ease); }
.btn:hover .icon-dir { transform: translateX(3px); }
html[dir="rtl"] .btn:hover .icon-dir { transform: scaleX(-1) translateX(3px); }
.btn-lg { min-height: 52px; padding: 14px 26px; font-size: 1rem; }
.btn-block { width: 100%; }

/* Glass button with glowing bottom streak */
.btn-glass {
  color: var(--text);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 8px 24px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.btn-glass::after {
  content: ""; position: absolute; z-index: -1;
  left: 20%; right: 20%; bottom: -1px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.85), transparent);
  box-shadow: 0 0 12px 2px rgba(255, 255, 255, 0.35);
  opacity: 0.55; transition: opacity 0.3s, left 0.4s var(--ease), right 0.4s var(--ease);
}
.btn-glass:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, 0.3); background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03)); }
.btn-glass:hover::after { opacity: 1; left: 10%; right: 10%; }

.btn-accent {
  border-color: rgba(134, 239, 200, 0.45);
  background: linear-gradient(180deg, rgba(94, 230, 184, 0.2), rgba(94, 230, 184, 0.05));
  box-shadow: inset 0 1px 0 rgba(190, 247, 222, 0.25), 0 8px 30px rgba(94, 230, 184, 0.18);
}
.btn-accent::after { background: linear-gradient(90deg, transparent, var(--cyan-light), transparent); box-shadow: 0 0 14px 3px var(--glow); }
.btn-accent:hover { border-color: rgba(190, 247, 222, 0.7); background: linear-gradient(180deg, rgba(94, 230, 184, 0.28), rgba(94, 230, 184, 0.08)); box-shadow: inset 0 1px 0 rgba(190, 247, 222, 0.3), 0 12px 40px rgba(94, 230, 184, 0.3); }

.btn-whatsapp { background: #1a9e4c; color: #fff; border-color: rgba(255, 255, 255, 0.1); }
.btn-whatsapp:hover { background: #168a42; transform: translateY(-2px); }
.btn-whatsapp .icon { width: 22px; height: 22px; }

.round-btn {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--text);
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}
.round-btn:hover { border-color: var(--cyan); color: var(--cyan-light); background: rgba(94, 230, 184, 0.08); }
.round-btn .icon { width: 18px; height: 18px; }
.round-btn[data-carousel-prev] .icon { transform: scaleX(-1); }
html[dir="rtl"] .round-btn[data-carousel-prev] .icon { transform: none; }

/* 5. HEADER & NAV -------------------------------------------------------- */
.site-header {
  position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 100;
  height: var(--header-h);
  transition: background-color 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled, .site-header.menu-open {
  background: rgba(5, 8, 15, 0.78);
  backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom-color: var(--line);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 16px; }

.logo { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; direction: ltr; }
.logo-mark { width: 36px; height: 36px; border-radius: 9px; filter: drop-shadow(0 0 16px rgba(79, 91, 255, 0.45)); transition: transform 0.4s var(--ease); }
.logo:hover .logo-mark { transform: rotate(-6deg) scale(1.05); }
/* Wordmark: "louisiana" bold white + "soft" medium mint, Space Grotesk, tight tracking */
.logo-text {
  font-family: "Space Grotesk", var(--font-en); font-size: 1.375rem; font-weight: 700;
  letter-spacing: -0.04em; line-height: 1; color: #fff;
}
.logo-soft { font-weight: 500; color: var(--mint); }
.logo-lg .logo-mark { width: 44px; height: 44px; border-radius: 11px; }
.logo-lg .logo-text { font-size: 1.75rem; }
@media (max-width: 359px) { .logo-text { font-size: 1.1875rem; } }

.primary-nav { margin-inline-start: auto; }
.primary-nav ul { display: flex; align-items: center; gap: 6px; }
.primary-nav ul a {
  display: block; padding: 7px 14px; border-radius: 9px;
  border: 1px solid transparent;
  font-size: 0.875rem; font-weight: 500; color: var(--text-soft);
  transition: color 0.2s, background-color 0.2s, border-color 0.2s;
}
.primary-nav ul a:hover, .primary-nav ul a.is-active { color: #fff; border-color: var(--line-strong); background: var(--surface-2); }
.nav-cta { display: none; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.header-cta { min-height: 40px; padding: 8px 16px; font-size: 0.875rem; }
.lang-toggle {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 12px;
  border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface);
  color: var(--text); font-weight: 500; font-size: 0.875rem;
  transition: background-color 0.2s, border-color 0.2s;
}
.lang-toggle:hover { background: var(--surface-2); border-color: rgba(134, 239, 200, 0.4); }
.lang-toggle .icon { width: 18px; height: 18px; }
.lang-toggle-label[lang="ar"] { font-family: var(--font-ar); }
.lang-toggle-label[lang="en"] { font-family: var(--font-en); }

.menu-toggle {
  display: none; width: 44px; height: 44px; place-items: center;
  border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface); color: #fff;
}
.menu-toggle .icon { width: 22px; height: 22px; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 1023px) {
  .menu-toggle { display: grid; }
  .header-actions { margin-inline-start: auto; }
  .primary-nav {
    position: fixed; inset-inline: 0; top: var(--header-h); bottom: 0;
    margin: 0; padding: 24px var(--gutter) calc(32px + env(safe-area-inset-bottom));
    background: rgba(5, 8, 15, 0.97);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    display: flex; flex-direction: column; gap: 24px; overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 0.25s, transform 0.25s var(--ease), visibility 0s linear 0.25s;
  }
  .primary-nav.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity 0.25s, transform 0.25s var(--ease); }
  .primary-nav ul { flex-direction: column; align-items: stretch; gap: 6px; }
  .primary-nav ul a { padding: 14px 16px; font-size: 1.125rem; color: var(--text); border-color: var(--line); border-radius: 12px; }
  .nav-cta { display: inline-flex; min-height: 52px; }
}
@media (max-width: 559px) { .header-cta { display: none; } }
body.no-scroll { overflow: hidden; }

/* 6. HERO ---------------------------------------------------------------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding-top: calc(var(--header-h) + 56px);
  padding-bottom: 24px;
  background:
    radial-gradient(80% 60% at 50% 0%, rgba(79, 91, 255, 0.45), transparent 70%),
    var(--bg);
}
@media (min-width: 768px) { .hero { padding-top: calc(var(--header-h) + 80px); } }

.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-bg .bg-word { top: calc(var(--header-h) - 10px); }
.hero-grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(148, 197, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 197, 255, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
}
.glow { position: absolute; border-radius: 50%; filter: blur(100px); will-change: transform; }
.glow-1 { width: 620px; height: 420px; background: #4f5bff; opacity: 0.35; top: -160px; left: 50%; margin-left: -310px; animation: drift 16s ease-in-out infinite alternate; }
.glow-2 { width: 420px; height: 320px; background: #4f5bff; opacity: 0.18; bottom: 60px; left: 50%; margin-left: -210px; animation: drift 22s ease-in-out infinite alternate-reverse; }

.hero-inner { position: relative; text-align: center; }

/* Rounded glowing frame behind the headline */
.hero-frame {
  position: absolute; z-index: -1;
  inset-inline: max(0px, calc(var(--gutter) - 4px)); top: -28px; height: calc(100% - 150px);
  max-width: 980px; margin-inline: auto;
  border-radius: 48px; padding: 1px;
  background: linear-gradient(90deg, rgba(134, 239, 200, 0.55), rgba(134, 239, 200, 0.04) 22%, rgba(134, 239, 200, 0.04) 78%, rgba(134, 239, 200, 0.55));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  filter: drop-shadow(0 0 10px rgba(94, 230, 184, 0.4));
}
@media (max-width: 767px) { .hero-frame { display: none; } }

.hero-content { max-width: 820px; margin-inline: auto; padding-top: 24px; }
.pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); animation: pulse 2.2s infinite; }
.hero .tag { color: var(--text); }

.hero-title {
  font-size: clamp(2.375rem, 1.3rem + 4.8vw, 4.75rem);
  font-weight: 500; line-height: 1.05; color: #fff;
}
html[dir="rtl"] .hero-title { line-height: 1.3; font-weight: 600; }
.hero-subtitle { margin: 24px auto 0; max-width: 560px; font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem); color: var(--text-soft); }
.hero-actions { margin-top: 36px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
@media (max-width: 479px) { .hero-actions .btn { flex: 1 1 100%; } }

.hero-art-wrap { margin: 28px auto 0; max-width: 860px; }
.hero-art { width: 100%; height: auto; overflow: visible; }
.trace-pulses use { stroke-dasharray: 26 420; animation: trace 4.5s linear infinite; }
.trace-pulses use:nth-child(2) { animation-delay: -1.2s; }
.trace-pulses use:nth-child(3) { animation-delay: -2.4s; }
.trace-pulses use:nth-child(4) { animation-delay: -3.1s; }
.trace-pulses use:nth-child(5) { animation-delay: -0.6s; animation-duration: 3.5s; }
.trace-pulses use:nth-child(6) { animation-delay: -1.8s; animation-duration: 3.5s; }
.hero-art .chip { animation: hover-chip 6s ease-in-out infinite; transform-origin: 400px 180px; }

/* SERVICES — alternating wide rows */
.service-list { display: grid; gap: 20px; }
.service-row {
  display: grid; gap: 24px; align-items: center;
  padding: 20px; border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  transition: border-color 0.4s, transform 0.4s var(--ease), box-shadow 0.4s;
}
.service-row:hover { border-color: rgba(134, 239, 200, 0.3); box-shadow: 0 0 0 1px rgba(94, 230, 184, 0.08), 0 30px 60px rgba(0, 0, 0, 0.35); }
.service-text { padding: 8px 8px 4px; }
.service-text h3 { margin-top: 18px; font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem); font-weight: 500; }
html[dir="rtl"] .service-text h3 { font-weight: 600; }
.service-text p { margin-top: 12px; max-width: 460px; color: var(--text-soft); }

.service-art {
  position: relative; display: grid; place-items: center; overflow: hidden;
  min-height: 200px; border-radius: 18px;
  background:
    radial-gradient(60% 70% at 50% 60%, rgba(94, 230, 184, 0.22), transparent 70%),
    linear-gradient(rgba(148, 197, 255, 0.06) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(148, 197, 255, 0.06) 1px, transparent 1px) 0 0 / 28px 28px,
    #060b14;
  border: 1px solid var(--line);
}
.service-art::before, .service-art::after {
  content: ""; position: absolute; left: 50%; top: 50%; border-radius: 50%;
  border: 1px solid rgba(134, 239, 200, 0.18); transform: translate(-50%, -50%);
}
.service-art::before { width: 170px; height: 170px; }
.service-art::after { width: 260px; height: 260px; border-color: rgba(134, 239, 200, 0.08); }

.art-icon {
  position: relative; z-index: 1; display: grid; place-items: center; flex-shrink: 0;
  width: 84px; height: 84px; border-radius: 22px;
  background: linear-gradient(160deg, rgba(94, 230, 184, 0.25), rgba(14, 44, 46, 0.6));
  border: 1px solid rgba(134, 239, 200, 0.45);
  color: var(--cyan-light);
  box-shadow: 0 0 40px rgba(94, 230, 184, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition: transform 0.5s var(--ease), box-shadow 0.5s;
}
.art-icon .icon { width: 36px; height: 36px; stroke-width: 1.5; filter: drop-shadow(0 0 6px rgba(134, 239, 200, 0.8)); }
.art-icon-sm { width: 46px; height: 46px; border-radius: 13px; box-shadow: 0 0 18px rgba(94, 230, 184, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.12); }
.art-icon-sm .icon { width: 20px; height: 20px; }
.service-row:hover .art-icon { transform: translateY(-6px) scale(1.04); box-shadow: 0 0 60px rgba(94, 230, 184, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2); }

@media (min-width: 860px) {
  .service-row { grid-template-columns: 1.1fr 0.9fr; padding: 24px 24px 24px 40px; gap: 40px; }
  html[dir="rtl"] .service-row { padding: 24px 40px 24px 24px; }
  .service-row:nth-child(even) .service-art { order: -1; }
  .service-row:nth-child(even) { padding: 24px 40px 24px 24px; }
  html[dir="rtl"] .service-row:nth-child(even) { padding: 24px 24px 24px 40px; }
  .service-art { min-height: 240px; }
}

/* 7. INDUSTRIES CAROUSEL ------------------------------------------------- */
.head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 48px; }
.head-row .section-head { max-width: 640px; }
.carousel-nav { display: flex; gap: 10px; }

.industries {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-block: 12px 8px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
  scrollbar-width: none;
}
.industries::-webkit-scrollbar { display: none; }
.industry {
  position: relative; flex: 0 0 78%; scroll-snap-align: start;
  min-height: 260px; padding: 26px;
  border-radius: var(--radius-lg); border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  cursor: pointer; outline-offset: 4px;
  transition: flex-basis 0.6s var(--ease), border-color 0.4s, background 0.4s, box-shadow 0.4s, transform 0.4s var(--ease);
}
@media (min-width: 560px) { .industry { flex-basis: 300px; } }
.industry-icon {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px;
  border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--text-soft);
  transition: color 0.4s, border-color 0.4s, background 0.4s, box-shadow 0.4s;
}
.industry-icon .icon { width: 26px; height: 26px; stroke-width: 1.5; }
.industry h3 { margin-top: 48px; font-size: 1.1875rem; font-weight: 500; }
.industry p { margin-top: 12px; color: var(--text-soft); font-size: 0.9375rem; }

.industry.is-active, .industry:hover, .industry:focus-visible {
  border-color: rgba(134, 239, 200, 0.45);
  background: linear-gradient(180deg, rgba(94, 230, 184, 0.12), rgba(14, 44, 46, 0.25));
  box-shadow: 0 0 0 1px rgba(94, 230, 184, 0.1), 0 24px 60px rgba(79, 91, 255, 0.18);
}
.industry.is-active .industry-icon, .industry:hover .industry-icon {
  color: var(--cyan-light); border-color: rgba(134, 239, 200, 0.5); background: rgba(94, 230, 184, 0.14);
  box-shadow: 0 0 24px rgba(94, 230, 184, 0.35);
}

/* Desktop: all cards in one row; the active one expands and reveals its text */
@media (min-width: 1024px) {
  .carousel-nav { display: none; }
  .industries { overflow: visible; margin: 0; padding: 0; gap: 14px; }
  .industry { flex: 1 1 0; min-width: 0; min-height: 300px; }
  .industry.is-active { flex-grow: 2.6; transform: translateY(-6px); }
  .industry p { opacity: 0; max-height: 0; overflow: hidden; transition: opacity 0.4s 0.1s, max-height 0.5s var(--ease); }
  .industry.is-active p { opacity: 1; max-height: 200px; }
  .industry h3 { margin-top: 110px; }
}

/* 8. PROCESS TIMELINE ---------------------------------------------------- */
.timeline { position: relative; display: grid; gap: 36px; }
.step { position: relative; padding-inline-start: 80px; }
.step-marker {
  position: absolute; inset-inline-start: 0; top: 0; z-index: 1;
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
  background: #07121c; color: var(--cyan-light);
  border: 1px solid rgba(134, 239, 200, 0.4);
  box-shadow: 0 0 0 6px var(--bg), 0 0 28px rgba(94, 230, 184, 0.25);
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
}
.step-marker .icon { width: 24px; height: 24px; stroke-width: 1.5; }
.step:hover .step-marker { transform: scale(1.08); box-shadow: 0 0 0 6px var(--bg), 0 0 40px rgba(94, 230, 184, 0.5); }
.step .num-tag { margin-bottom: 10px; }
.step h3 { font-size: 1.25rem; font-weight: 500; }
.step p { margin-top: 8px; color: var(--text-soft); font-size: 0.9688rem; }

.timeline::before {
  content: ""; position: absolute; inset-inline-start: 28px; top: 29px; bottom: 29px; width: 1px;
  background: linear-gradient(180deg, transparent, var(--cyan) 15%, var(--cyan) 85%, transparent);
  opacity: 0.4;
}
@media (min-width: 900px) {
  .timeline { grid-template-columns: repeat(4, 1fr); gap: 28px; }
  .timeline::before {
    inset-inline: 12.5%; top: 29px; bottom: auto; width: auto; height: 1px;
    background: linear-gradient(90deg, transparent, var(--cyan) 10%, var(--cyan) 90%, transparent);
  }
  .step { padding-inline-start: 0; text-align: center; }
  .step-marker { position: relative; margin: 0 auto 22px; inset: auto; }
}

/* 9. TECH STACK GRID ----------------------------------------------------- */
.tech-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 32px; }
.chip-btn {
  min-height: 38px; padding: 7px 16px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--surface);
  color: var(--text-soft); font-size: 0.875rem; font-weight: 500;
  transition: color 0.2s, background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.chip-btn:hover { color: #fff; border-color: rgba(134, 239, 200, 0.4); }
.chip-btn.is-active { color: #00131a; background: var(--cyan); border-color: var(--cyan); box-shadow: 0 0 20px rgba(94, 230, 184, 0.4); }

.tech-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 980px; margin-inline: auto; }
@media (min-width: 560px) { .tech-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 900px) { .tech-grid { grid-template-columns: repeat(6, 1fr); gap: 14px; } }
.tech-tile {
  aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  padding: 12px; text-align: center;
  border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  font-family: var(--font-en); font-size: 0.8125rem; font-weight: 500; color: var(--text-soft);
  transition: transform 0.35s var(--ease), border-color 0.35s, color 0.35s, box-shadow 0.35s, opacity 0.35s;
}
.tech-tile:hover { transform: translateY(-4px); border-color: rgba(134, 239, 200, 0.4); color: #fff; box-shadow: 0 0 30px rgba(94, 230, 184, 0.15); }
.tech-tile.is-hidden { display: none; }
.tech-mark {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px;
  background: color-mix(in srgb, var(--c) 16%, transparent); color: var(--c);
  border: 1px solid color-mix(in srgb, var(--c) 30%, transparent);
  font-size: 1.0625rem; font-weight: 700; line-height: 1;
}

/* 10. PORTFOLIO ---------------------------------------------------------- */
.cards-grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

.project-card {
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: var(--radius-lg); border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s;
}
.project-card:hover { transform: translateY(-6px); border-color: rgba(134, 239, 200, 0.35); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(94, 230, 184, 0.08); }
.project-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; margin: 8px 8px 0; border-radius: 18px; background: #0a1220; }
.project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.project-card:hover .project-media img { transform: scale(1.05); }
.placeholder-badge {
  position: absolute; top: 12px; inset-inline-start: 12px;
  padding: 4px 10px; border-radius: 8px;
  background: rgba(5, 8, 15, 0.8); color: #fcd34d;
  border: 1px dashed rgba(252, 211, 77, 0.6); font-size: 0.75rem; font-weight: 600;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.project-body { padding: 20px 22px 26px; }
.project-cat { font-size: 0.8125rem; font-weight: 500; color: var(--accent-text); }
.project-body h3 { margin-top: 6px; font-size: 1.1875rem; font-weight: 500; }
.project-body p:last-child { margin-top: 8px; color: var(--text-soft); font-size: 0.9375rem; }

/* 11. ABOUT / STATS ------------------------------------------------------ */
.bg-word-section { top: 40px; -webkit-text-stroke-color: rgba(134, 239, 200, 0.07); }
.mission { display: grid; gap: 24px; margin-bottom: 48px; }
@media (min-width: 900px) { .mission { grid-template-columns: 1fr 1fr; gap: 64px; align-items: end; } }
.mission-text { color: var(--text-soft); font-size: 1.0625rem; }

.team-photo {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  aspect-ratio: 16 / 7; min-height: 200px; padding: 24px; text-align: center;
  border-radius: var(--radius-lg); border: 1px dashed rgba(252, 211, 77, 0.45);
  background:
    radial-gradient(60% 80% at 50% 100%, rgba(94, 230, 184, 0.12), transparent 70%),
    var(--surface);
  color: #fcd34d; font-size: 0.9375rem; font-weight: 500;
}
.team-photo .icon { width: 36px; height: 36px; stroke-width: 1.5; }
.team-photo-img { width: 100%; border-radius: var(--radius-lg); border: 1px solid var(--line); }

.why-list { display: grid; gap: 28px; margin-top: 56px; }
@media (min-width: 640px) { .why-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .why-list { grid-template-columns: repeat(4, 1fr); } }
.why-item h3 { margin-top: 18px; font-size: 1.0625rem; font-weight: 500; }
.why-item p { margin-top: 8px; color: var(--text-soft); font-size: 0.9375rem; }

.stats {
  display: grid; grid-template-columns: repeat(2, 1fr); margin-top: 72px;
  border-top: 1px solid var(--line);
}
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { position: relative; padding: 36px 16px 8px; text-align: center; }
/* Glowing vertical divider between stats */
.stat + .stat::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 30px; bottom: 0; width: 1px;
  background: linear-gradient(180deg, transparent, var(--cyan), transparent);
  box-shadow: 0 0 10px var(--glow);
}
@media (max-width: 899px) { .stat:nth-child(3)::before { display: none; } }
.stat-value {
  font-family: var(--font-en); font-size: clamp(2.5rem, 1.8rem + 2.6vw, 3.75rem); font-weight: 500; line-height: 1; letter-spacing: -0.03em;
  color: #fff; text-shadow: 0 0 30px rgba(94, 230, 184, 0.35);
}
.stat-label { margin-top: 12px; font-size: 0.9375rem; color: var(--text-soft); }
.placeholder-note {
  width: fit-content; margin: 28px auto 0; padding: 6px 14px; border-radius: 8px; text-align: center;
  font-size: 0.8125rem; font-weight: 600; color: #fcd34d;
  border: 1px dashed rgba(252, 211, 77, 0.5); background: rgba(252, 211, 77, 0.06);
}

/* 12. CTA BANNER --------------------------------------------------------- */
.cta-banner {
  position: relative; overflow: hidden; isolation: isolate; text-align: center;
  padding: clamp(56px, 9vw, 104px) clamp(24px, 6vw, 64px);
  border-radius: 32px; border: 1px solid rgba(134, 239, 200, 0.25);
  background: #061019;
  box-shadow: 0 0 80px rgba(94, 230, 184, 0.1);
}
.cta-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(50% 80% at 50% 120%, rgba(94, 230, 184, 0.45), transparent 70%),
    radial-gradient(40% 60% at 0% 0%, rgba(79, 91, 255, 0.5), transparent 70%),
    radial-gradient(40% 60% at 100% 0%, rgba(79, 91, 255, 0.3), transparent 70%),
    linear-gradient(rgba(148, 197, 255, 0.05) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, rgba(148, 197, 255, 0.05) 1px, transparent 1px) 0 0 / 40px 40px;
  animation: cta-shift 14s ease-in-out infinite alternate;
}
.cta-banner h2 { font-size: clamp(2rem, 1.2rem + 3.4vw, 3.5rem); font-weight: 500; color: #fff; }
html[dir="rtl"] .cta-banner h2 { font-weight: 600; }
.cta-banner > p:not(.tag) { margin: 18px auto 36px; max-width: 540px; font-size: 1.0625rem; color: var(--text-soft); }

/* 13. CONTACT ------------------------------------------------------------ */
.contact-grid { display: grid; gap: 24px; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1.25fr 0.75fr; gap: 28px; align-items: start; } }

.contact-card {
  border-radius: 28px; border: 1px solid var(--line); overflow: hidden;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
}
.contact-card-head {
  position: relative; overflow: hidden; isolation: isolate;
  margin: 8px; padding: clamp(28px, 5vw, 44px);
  border-radius: 22px; border: 1px solid rgba(134, 239, 200, 0.2);
  background:
    radial-gradient(70% 120% at 100% 100%, rgba(94, 230, 184, 0.35), transparent 60%),
    radial-gradient(60% 100% at 0% 0%, rgba(79, 91, 255, 0.45), transparent 70%),
    #08141f;
}
.contact-card-head h2 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.625rem); font-weight: 500; color: #fff; max-width: 560px; }
html[dir="rtl"] .contact-card-head h2 { font-weight: 600; }
.contact-card-mail { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; color: var(--text); font-size: 0.9375rem; }
.contact-card-mail:hover { color: var(--cyan-light); }
.contact-card-mail .icon { width: 18px; height: 18px; color: var(--accent-text); }

.contact-form { display: grid; gap: 26px; padding: clamp(22px, 4vw, 40px); }
.form-row { display: grid; gap: 26px; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; gap: 32px; } }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.8125rem; font-weight: 500; color: var(--text-soft); }
.req { color: var(--accent-text); }
/* Underline-only inputs */
.field input, .field select, .field textarea {
  width: 100%; min-height: 46px; padding: 10px 2px;
  border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0;
  background: transparent; color: var(--text);
  font-size: 1rem; /* ≥16px prevents iOS zoom */
  transition: border-color 0.25s, box-shadow 0.25s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a3b1c4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: 18px; background-position: right 2px center;
  padding-inline-end: 30px;
}
.field select option { background: #0b1220; color: var(--text); }
html[dir="rtl"] .field select { background-position: left 2px center; }
html[dir="rtl"] .field input[dir="ltr"] { text-align: right; }
.field input::placeholder, .field textarea::placeholder { color: #5f6e84; }
.field input:hover, .field select:hover, .field textarea:hover { border-bottom-color: rgba(148, 197, 255, 0.35); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-bottom-color: var(--cyan); box-shadow: 0 1px 0 0 var(--cyan), 0 8px 16px -12px var(--glow);
}
.field.has-error input, .field.has-error textarea { border-bottom-color: #f87171; box-shadow: 0 1px 0 0 #f87171; }
.field-foot { display: flex; justify-content: space-between; gap: 12px; }
.field-error { font-size: 0.8438rem; color: #fca5a5; }
.field-error:empty { visibility: hidden; }
.field > .field-error:empty { display: none; }
.char-count { margin-inline-start: auto; font-size: 0.75rem; color: var(--text-mute); font-family: var(--font-mono); }
.hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.contact-form > .btn { justify-self: start; }
@media (max-width: 479px) { .contact-form > .btn { justify-self: stretch; } }
.form-status { font-size: 0.9375rem; font-weight: 500; }
.form-status:empty { display: none; }
.form-status.is-success { color: #6ee7b7; }
.form-status.is-error { color: #fca5a5; }
.contact-form button[disabled] { opacity: 0.7; cursor: progress; }

.contact-info { display: grid; gap: 16px; }
.contact-list {
  display: grid; gap: 2px; padding: 8px;
  border-radius: var(--radius-lg); border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
}
.contact-list li { display: flex; align-items: center; gap: 14px; padding: 12px; }
.contact-label { font-size: 0.8125rem; color: var(--text-mute); }
.contact-list a, .contact-list p:not(.contact-label) { font-weight: 500; }
.contact-list a:hover { color: var(--cyan-light); }
html[dir="rtl"] .contact-list a[dir="ltr"] { display: inline-block; }
.map-wrap { overflow: hidden; border-radius: var(--radius-lg); border: 1px solid var(--line); aspect-ratio: 4 / 3; background: #0a1220; }
/* Dark-tinted Google Map */
.map-wrap iframe { display: block; width: 100%; height: 100%; border: 0; filter: invert(0.92) hue-rotate(180deg) saturate(0.6) brightness(0.95) contrast(0.9); }

/* 14. FOOTER ------------------------------------------------------------- */
.site-footer {
  position: relative; overflow: hidden;
  background: #03060b; color: var(--text-soft); border-top: 1px solid var(--line);
  padding-top: 72px;
}
.footer-grid { display: grid; gap: 40px; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px; } }
.footer-name { margin-top: 16px; color: var(--text); font-weight: 500; }
.footer-brand p:not(.footer-name) { margin-top: 8px; max-width: 360px; font-size: 0.9375rem; }
.socials { display: flex; gap: 10px; margin-top: 24px; }
.socials a {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line-strong); color: var(--text);
  transition: background 0.25s, transform 0.25s var(--ease), border-color 0.25s, color 0.25s, box-shadow 0.25s;
}
.socials a:hover { border-color: var(--cyan); color: var(--cyan-light); transform: translateY(-3px); box-shadow: 0 0 20px rgba(94, 230, 184, 0.25); }
.socials .icon { width: 18px; height: 18px; }
.footer-col h2 { font-size: 0.9375rem; font-weight: 600; color: #fff; margin-bottom: 16px; letter-spacing: 0; }
.footer-col ul { display: grid; gap: 10px; font-size: 0.9375rem; }
.footer-col a { transition: color 0.2s; }
.footer-col a:hover { color: var(--cyan-light); }
html[dir="rtl"] .footer-col a[dir="ltr"] { display: inline-block; }
.footer-bottom {
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center;
  font-size: 0.875rem;
}
.to-top { display: inline-flex; align-items: center; gap: 6px; }
.to-top:hover { color: var(--cyan-light); }
.to-top .icon { width: 16px; height: 16px; }
.footer-word {
  margin-top: 24px; text-align: center; white-space: nowrap; pointer-events: none; user-select: none;
  font-family: var(--font-en); font-weight: 700; line-height: 0.75; letter-spacing: -0.03em;
  font-size: clamp(4rem, 19vw, 17rem);
  background: linear-gradient(180deg, rgba(134, 239, 200, 0.16), rgba(134, 239, 200, 0));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  padding-bottom: env(safe-area-inset-bottom);
}

/* 15. FLOATING WHATSAPP (mobile only) ----------------------------------- */
.wa-float {
  position: fixed; z-index: 90;
  inset-inline-end: 18px; bottom: calc(18px + env(safe-area-inset-bottom));
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
  background: var(--whatsapp); color: #fff;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.4);
  transition: transform 0.25s var(--ease);
  animation: wa-in 0.5s 1s var(--ease) both;
}
.wa-float::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--whatsapp); animation: ring 2.6s 2s ease-out infinite; }
.wa-float:hover { transform: scale(1.08); }
.wa-float .icon { width: 30px; height: 30px; }
@media (min-width: 768px) { .wa-float { display: none; } }

/* 16. MOTION & ACCESSIBILITY -------------------------------------------- */
.js [data-reveal] {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--delay, 0ms);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@keyframes shimmer { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(60px, 30px) scale(1.12); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(94, 230, 184, 0.6); } 70% { box-shadow: 0 0 0 9px rgba(94, 230, 184, 0); } 100% { box-shadow: 0 0 0 0 rgba(94, 230, 184, 0); } }
@keyframes trace { from { stroke-dashoffset: 446; } to { stroke-dashoffset: 0; } }
@keyframes hover-chip { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes cta-shift { from { background-position: 0 0, 0 0, 0 0, 0 0, 0 0; } to { background-position: 0 -20px, 30px 0, -30px 0, 40px 40px, 40px 40px; } }
@keyframes wa-in { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: scale(1); } }
@keyframes ring { 0% { transform: scale(1); opacity: 0.7; } 100% { transform: scale(1.6); opacity: 0; } }

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

/* Mobile: compact service rows (icon instead of the large illustration panel) */
@media (max-width: 859px) {
  .service-row { gap: 0; padding: 22px; }
  .service-art { order: -1; min-height: 0; justify-items: start; background: none; border: 0; overflow: visible; }
  .service-art::before, .service-art::after { display: none; }
  .service-art .art-icon { width: 56px; height: 56px; border-radius: 16px; }
  .service-art .art-icon .icon { width: 26px; height: 26px; }
  .service-text { padding: 0; }
  .service-text .num-tag { position: absolute; top: 22px; inset-inline-end: 22px; }
  .service-row { position: relative; }
  .service-text h3 { margin-top: 18px; }
}
.team-photo { max-height: 340px; }
