/* ============================================================
   Jannat Al Nakheel General Trading Company
   Premium Dark Blue Futuristic AI SaaS Corporate Website
   ============================================================ */

/* ---------- Design Tokens ---------- */
:root {
  --bg-main: #020817;
  --bg-secondary: #061226;
  --bg-soft: #0B1B36;

  --blue-primary: #2563EB;
  --blue-neon: #008CFF;
  --blue-cyan: #00C8FF;
  --blue-light: #60A5FA;
  --blue-deep: #0A2A66;

  --text-main: #FFFFFF;
  --text-muted: #A7B4C8;

  --card-bg: rgba(255, 255, 255, 0.055);
  --card-border: rgba(96, 165, 250, 0.22);

  --grad-blue: linear-gradient(120deg, var(--blue-primary), var(--blue-neon) 55%, var(--blue-cyan));
  --shadow-soft: 0 18px 50px -22px rgba(0, 140, 255, 0.35);
  --shadow-card: 0 10px 34px -18px rgba(2, 8, 23, 0.9);
  --header-bg: rgba(6, 18, 38, 0.42);
  --header-bg-scrolled: rgba(4, 12, 28, 0.82);
  --grid-line: rgba(96, 165, 250, 0.055);
  --orb-opacity: 0.55;
  --input-bg: rgba(2, 8, 23, 0.55);

  --font-en: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-ar: "Cairo", "Inter", system-ui, sans-serif;
  --font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;

  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --container: 1180px;
  --section-pad: clamp(4.5rem, 9vw, 7.5rem);
}

/* ---------- Light (blue corporate) theme ---------- */
[data-theme="light"] {
  --bg-main: #EDF3FC;
  --bg-secondary: #E2ECFA;
  --bg-soft: #D8E6F9;

  --text-main: #0A1A38;
  --text-muted: #46587A;

  --card-bg: rgba(255, 255, 255, 0.72);
  --card-border: rgba(37, 99, 235, 0.22);

  --shadow-soft: 0 18px 44px -24px rgba(37, 99, 235, 0.35);
  --shadow-card: 0 12px 30px -20px rgba(10, 42, 102, 0.28);
  --header-bg: rgba(255, 255, 255, 0.96);
  --header-bg-scrolled: #FFFFFF;
  --grid-line: rgba(37, 99, 235, 0.07);
  --orb-opacity: 0.3;
  --input-bg: rgba(255, 255, 255, 0.8);
}

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

html {
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  width: 100%;
  max-width: 100%;
  background: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-en);
  font-size: 1rem;
  line-height: 1.7;
  overflow-x: hidden;
  transition: background-color 0.45s ease, color 0.45s ease;
}

html[lang="ar"] body {
  font-family: var(--font-ar);
  letter-spacing: 0;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

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

::selection {
  background: rgba(0, 140, 255, 0.35);
  color: #fff;
}

.container {
  width: min(var(--container), calc(100% - 3rem));
  margin-inline: auto;
}

/* ---------- Ambient background ---------- */
.bg-scene {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 78%);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: var(--orb-opacity);
  animation: orbDrift 16s ease-in-out infinite alternate;
}

.orb-1 {
  width: 520px;
  height: 520px;
  top: -160px;
  inset-inline-start: -140px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.55), transparent 70%);
}

.orb-2 {
  width: 460px;
  height: 460px;
  top: 12%;
  inset-inline-end: -160px;
  background: radial-gradient(circle, rgba(0, 200, 255, 0.4), transparent 70%);
  animation-delay: -6s;
}

.orb-3 {
  width: 600px;
  height: 600px;
  bottom: -240px;
  inset-inline-start: 30%;
  background: radial-gradient(circle, rgba(10, 42, 102, 0.8), transparent 70%);
  animation-delay: -11s;
}

@keyframes orbDrift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(40px, 50px, 0) scale(1.08); }
}

/* Animated light wave band */
.bg-wave {
  position: absolute;
  inset-inline: -20%;
  top: 34%;
  height: 340px;
  background: linear-gradient(100deg,
      transparent 0%,
      rgba(0, 140, 255, 0.10) 30%,
      rgba(0, 200, 255, 0.16) 50%,
      rgba(37, 99, 235, 0.10) 70%,
      transparent 100%);
  filter: blur(60px);
  transform: rotate(-7deg);
  animation: waveSweep 14s ease-in-out infinite alternate;
}

@keyframes waveSweep {
  from { transform: rotate(-7deg) translateX(-6%); opacity: 0.7; }
  to { transform: rotate(-5deg) translateX(6%); opacity: 1; }
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: fixed;
  top: 18px;
  inset-inline: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding-inline: 1rem;
}

.header-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  width: min(var(--container), 100%);
  padding: 0.55rem 0.75rem 0.55rem 1.15rem;
  border-radius: 999px;
  border: 1px solid var(--card-border);
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.site-header.scrolled .header-pill {
  background: var(--header-bg-scrolled);
  border-color: rgba(96, 165, 250, 0.38);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.site-logo-img {
  height: 40px;
  width: auto;
  display: block;
  object-fit: contain;
}

.footer-logo-img {
  height: 46px;
  width: auto;
  display: block;
  object-fit: contain;
  margin-bottom: 18px;
}

@media (max-width: 767px) {
  .site-logo-img {
    height: 30px;
  }

  .footer-logo-img {
    height: 40px;
  }
}

/* Nav */
.main-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.main-nav a {
  position: relative;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.25s ease, background 0.25s ease;
  white-space: nowrap;
}

.main-nav a:hover {
  color: var(--text-main);
  background: rgba(96, 165, 250, 0.1);
}

.main-nav a.active {
  color: var(--text-main);
  background: rgba(37, 99, 235, 0.18);
  box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.3);
}

/* Light mode only — white header with soft blue border */
html[data-theme="light"] .header-pill {
  border-color: rgba(37, 99, 235, 0.18);
}

html[data-theme="light"] .site-header.scrolled .header-pill {
  border-color: rgba(37, 99, 235, 0.22);
  box-shadow: 0 10px 30px -20px rgba(37, 99, 235, 0.3);
}

/* Light mode only — indigo nav link colors */
html[data-theme="light"] .main-nav a {
  color: #1E3A8A;
}

html[data-theme="light"] .main-nav a:hover {
  color: #172554;
  background: rgba(37, 99, 235, 0.08);
}

html[data-theme="light"] .main-nav a.active {
  color: #172554;
  background: rgba(37, 99, 235, 0.12);
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.3);
}

/* Light mode only — header icon buttons tuned for white background */
html[data-theme="light"] .header-pill .icon-btn,
html[data-theme="light"] .header-pill .hamburger {
  background: rgba(37, 99, 235, 0.06);
  border-color: rgba(37, 99, 235, 0.22);
  color: #1E3A8A;
}

html[data-theme="light"] .header-pill .icon-btn:hover {
  border-color: #2563EB;
  box-shadow: 0 0 14px -4px rgba(37, 99, 235, 0.45);
}

html[data-theme="light"] .header-pill .hamburger span {
  background: #1E3A8A;
}

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.icon-btn {
  display: grid;
  place-items: center;
  min-width: 38px;
  height: 38px;
  padding-inline: 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 600;
  transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.icon-btn:hover {
  border-color: var(--blue-light);
  box-shadow: 0 0 18px -6px var(--blue-neon);
  transform: translateY(-1px);
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  padding-inline: 11px;
}

.hamburger span {
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background: var(--text-main);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav panel */
.mobile-nav {
  position: fixed;
  top: 84px;
  inset-inline: 1rem;
  z-index: 99;
  border-radius: var(--radius-lg);
  border: 1px solid var(--card-border);
  background: var(--header-bg-scrolled);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: var(--shadow-soft);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  opacity: 0;
  transform: translateY(-12px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.mobile-nav.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.mobile-nav a {
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  color: var(--text-muted);
}

.mobile-nav a.active,
.mobile-nav a:hover {
  color: var(--text-main);
  background: rgba(37, 99, 235, 0.16);
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--grad-blue);
  color: #fff;
  box-shadow: 0 8px 26px -10px rgba(0, 140, 255, 0.7);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px -10px rgba(0, 200, 255, 0.75);
}

.btn-ghost {
  border-color: var(--card-border);
  background: var(--card-bg);
  color: var(--text-main);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  border-color: var(--blue-light);
  box-shadow: 0 0 24px -8px var(--blue-neon);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.55rem 1.2rem;
  font-size: 0.88rem;
}

.btn i {
  font-size: 0.85em;
}

html[dir="rtl"] .btn .fa-arrow-right,
html[dir="rtl"] .link-more .fa-arrow-right {
  transform: scaleX(-1);
}

/* ============================================================
   Typography helpers
   ============================================================ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  color: var(--blue-light);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

html[lang="ar"] .eyebrow {
  letter-spacing: 0;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--grad-blue);
  box-shadow: 0 0 10px var(--blue-neon);
}

h1, h2, h3, h4 {
  line-height: 1.22;
  font-weight: 700;
  letter-spacing: -0.02em;
}

html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] h4 {
  letter-spacing: 0;
  line-height: 1.4;
}

.h-xl,
.h-lg {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.5px;
}

.h-md { font-size: clamp(1.35rem, 2.4vw, 1.7rem); }

.hl {
  background: var(--grad-blue);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.it-serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
}

html[lang="ar"] .it-serif {
  font-family: var(--font-ar);
  font-style: normal;
  font-weight: 800;
}

.lead {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.8;
}

.section {
  padding-block: var(--section-pad);
  position: relative;
}

/* Clearance below the fixed header for whichever section leads the page.
   .site-header is position:fixed (~77px tall including its top offset), so the
   gap below it must add the header's own footprint on top of the visible gap. */
main > .section:first-child {
  padding-top: 158px;
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(2.5rem, 5vw, 3.8rem);
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-head p {
  margin-top: 1rem;
}

/* ============================================================
   Glass cards
   ============================================================ */
.glass {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.icon-chip {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(140deg, rgba(37, 99, 235, 0.28), rgba(0, 200, 255, 0.1));
  border: 1px solid var(--card-border);
  color: var(--blue-light);
  font-size: 1.25rem;
  margin-bottom: 1.15rem;
  box-shadow: 0 0 22px -8px rgba(0, 140, 255, 0.6);
}

.icon-chip i {
  background: var(--grad-blue);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-block: 9.5rem 5rem;
  position: relative;
  overflow: hidden;
  background-image: url("../hero.avif");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--text-main);
}

/* Hero always keeps its dark, futuristic look — re-pin the theme tokens
   to their dark-mode values inside the hero only, so light mode never
   touches its background, text, badge, or button colors. Everything
   inside .hero that reads var(--text-main), var(--card-bg), etc. picks
   these back up automatically; the rest of the site still switches. */
html[data-theme="light"] .hero {
  --bg-main: #020817;
  --bg-secondary: #061226;
  --text-main: #FFFFFF;
  --text-muted: #A7B4C8;
  --card-bg: rgba(255, 255, 255, 0.055);
  --card-border: rgba(96, 165, 250, 0.22);
}

.hero-blue-strip {
  width: 100%;
  height: 4px;
  background: #00C8FF;
  position: relative;
  z-index: 5;
}

@media (max-width: 640px) {
  .hero-blue-strip {
    height: 3px;
  }
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2rem;
}

.hero-copy {
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-badge {
  margin-bottom: 1.4rem;
}

.hero h1 {
  margin-bottom: 1.4rem;
  white-space: nowrap;
  font-size: 46px;
}

.hero .lead {
  max-width: 560px;
  margin-bottom: 2.2rem;
  margin-inline: auto;
}

@media (min-width: 1024px) {
  html[lang="en"] .hero .lead {
    max-width: 900px;
  }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
}

/* ============================================================
   Reveal on scroll
   ============================================================ */
.d1 { --d: 0.06s; }
.d2 { --d: 0.12s; }
.d3 { --d: 0.18s; }
.d4 { --d: 0.24s; }
.d5 { --d: 0.3s; }
.d6 { --d: 0.36s; }
.d7 { --d: 0.42s; }

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
  transition-delay: var(--d, 0s);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* The content right under the header must never animate in — it should be
   in its final position and spacing on the very first paint, with no fade
   or slide that could read as the header gap "appearing" after a delay.
   Scoped to the first section's direct content blocks only, so card grids
   further inside it keep their normal staggered reveal animation. */
main > .section:first-child > .container > .reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

/* ============================================================
   About preview
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 3.5rem;
  align-items: center;
}

.about-copy p {
  color: var(--text-muted);
  margin-block: 1.1rem 1.8rem;
}

.stat-cards {
  display: grid;
  gap: 1rem;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.3rem;
}

.stat-card .icon-chip {
  margin-bottom: 0;
  width: 46px;
  height: 46px;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.stat-card h3 {
  font-size: 1.02rem;
}

.stat-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.stat-card:hover {
  transform: translateX(6px);
  border-color: var(--blue-light);
}

html[dir="rtl"] .stat-card:hover {
  transform: translateX(-6px);
}

/* ============================================================
   Services grid
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.service-card {
  padding: 28px;
  min-height: 300px;
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--blue-light);
}

.service-card .icon-chip {
  margin-bottom: 0.9rem;
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.service-card p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
  flex-grow: 1;
}

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1rem;
  color: var(--blue-light);
  font-size: 0.9375rem;
  font-weight: 600;
  transition: gap 0.25s ease, color 0.25s ease;
}

.service-card:hover .link-more {
  gap: 0.75rem;
  color: var(--blue-cyan);
}

/* ============================================================
   Digital transformation split
   ============================================================ */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3.5rem;
  align-items: center;
}

.split-copy p {
  color: var(--text-muted);
  margin-top: 1.1rem;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.8rem;
}

.tag {
  padding: 0.42rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--blue-light);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.tag:hover {
  border-color: var(--blue-neon);
  box-shadow: 0 0 16px -6px var(--blue-neon);
  transform: translateY(-2px);
}

/* Mock dashboard panel */
.dash-panel {
  padding: 1.4rem;
  border-radius: var(--radius-lg);
  position: relative;
}

.dash-panel::before {
  content: "";
  position: absolute;
  inset: -30px;
  background: radial-gradient(circle at 50% 50%, rgba(0, 140, 255, 0.18), transparent 68%);
  filter: blur(30px);
  z-index: -1;
}

.dash-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--card-border);
  margin-bottom: 1.1rem;
}

.dash-head span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.dash-lights {
  display: flex;
  gap: 6px;
}

.dash-lights i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--blue-primary);
  opacity: 0.5;
}

.dash-lights i:nth-child(2) { background: var(--blue-neon); opacity: 0.7; }
.dash-lights i:nth-child(3) { background: var(--blue-cyan); opacity: 0.9; }

.dash-rows {
  display: grid;
  gap: 0.8rem;
}

.dash-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.9rem;
  padding: 0.8rem 0.95rem;
  border-radius: var(--radius-sm);
  background: rgba(2, 8, 23, 0.35);
  border: 1px solid rgba(96, 165, 250, 0.12);
}

[data-theme="light"] .dash-row {
  background: rgba(255, 255, 255, 0.6);
}

.dash-row i {
  color: var(--blue-light);
  font-size: 0.95rem;
  width: 20px;
  text-align: center;
}

.dash-track {
  height: 7px;
  border-radius: 99px;
  background: rgba(96, 165, 250, 0.14);
  overflow: hidden;
}

.dash-track b {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: var(--grad-blue);
  width: var(--w, 60%);
  box-shadow: 0 0 12px rgba(0, 140, 255, 0.6);
  animation: trackLoad 2.4s ease both;
}

@keyframes trackLoad {
  from { width: 8%; }
}

.dash-row small {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--blue-cyan);
}

.dash-label {
  font-size: 0.82rem;
  font-weight: 600;
}

.w84 { --w: 84%; }
.w67 { --w: 67%; }
.w91 { --w: 91%; }
.w98 { --w: 98%; }

/* ============================================================
   Innovation section
   ============================================================ */
.innovation {
  position: relative;
  overflow: hidden;
}

.innovation::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(860px, 90vw);
  height: 520px;
  background: radial-gradient(ellipse, rgba(0, 140, 255, 0.16), transparent 66%);
  filter: blur(40px);
  pointer-events: none;
}

.innov-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.3rem;
}

.innov-card {
  position: relative;
  z-index: 1;
  padding: 1.7rem 1.4rem;
  text-align: center;
}

.innov-card .icon-chip {
  margin-inline: auto;
}

.innov-card h3 {
  font-size: 1.02rem;
  margin-bottom: 0.45rem;
}

.innov-card p {
  font-size: 0.86rem;
  color: var(--text-muted);
}

.innov-card:hover {
  transform: translateY(-6px);
  border-color: var(--blue-cyan);
  box-shadow: 0 0 34px -10px rgba(0, 200, 255, 0.5);
}

/* ============================================================
   Innovation strategy showcase (innovation.html, section 2)
   ============================================================ */
.innovation-showcase {
  position: relative;
  padding-block: 120px;
}

.innovation-showcase-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 3.5rem;
}

.innovation-showcase-copy .eyebrow {
  margin-bottom: 1rem;
}

.innovation-showcase-copy .lead {
  margin-top: 1.1rem;
}

.innovation-showcase-visual {
  display: flex;
  justify-content: center;
}

.innov-orbit {
  position: relative;
  width: 100%;
  max-width: 440px;
  aspect-ratio: 1;
}

.innov-orbit-glow {
  position: absolute;
  inset: 12%;
  background: radial-gradient(circle, rgba(0, 140, 255, 0.35), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

.innov-orbit-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.innov-orbit-lines line {
  stroke: rgba(96, 165, 250, 0.35);
  stroke-width: 1.5;
  stroke-dasharray: 5 7;
}

.innov-orbit-core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 112px;
  height: 112px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--grad-blue);
  box-shadow: 0 0 50px rgba(0, 140, 255, 0.55), 0 0 0 10px rgba(0, 140, 255, 0.08);
  color: #fff;
  font-size: 1.9rem;
  z-index: 2;
}

.innov-orbit-node {
  position: absolute;
  width: 168px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  text-align: center;
  padding: 1.1rem 1rem;
  border-radius: var(--radius-md);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-main);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  z-index: 2;
}

.innov-orbit-node .icon-chip {
  margin-inline: auto;
}

.innov-orbit-node:hover {
  transform: translateY(-6px);
  border-color: var(--blue-cyan);
  box-shadow: 0 16px 34px -18px rgba(0, 200, 255, 0.5);
}

.node-tl { top: 0; left: 0; }
.node-tr { top: 0; right: 0; }
.node-bl { bottom: 0; left: 0; }
.node-br { bottom: 0; right: 0; }

@media (max-width: 1024px) {
  .innovation-showcase {
    padding-block: 90px;
  }
}

@media (max-width: 900px) {
  .innovation-showcase-grid {
    grid-template-columns: 1fr;
  }

  .innovation-showcase-copy {
    text-align: center;
  }

  .innov-orbit {
    max-width: 380px;
    margin-inline: auto;
  }
}

@media (max-width: 640px) {
  .innovation-showcase {
    padding-block: 70px;
  }

  .innov-orbit {
    max-width: 300px;
  }

  .innov-orbit-core {
    width: 84px;
    height: 84px;
    font-size: 1.4rem;
  }

  .innov-orbit-node {
    width: 122px;
    padding: 0.75rem 0.6rem;
    font-size: 0.74rem;
    gap: 0.35rem;
  }

  .innov-orbit-node .icon-chip {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
  }
}

/* ============================================================
   Process
   ============================================================ */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.3rem;
  position: relative;
}

.process-grid::before {
  content: "";
  position: absolute;
  top: 54px;
  inset-inline: 6%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue-neon), var(--blue-cyan), var(--blue-neon), transparent);
  opacity: 0.45;
  box-shadow: 0 0 14px rgba(0, 140, 255, 0.6);
}

.process-card {
  padding: 1.8rem 1.5rem;
  position: relative;
  z-index: 1;
}

.process-num {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
  background: var(--grad-blue);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
}

.process-card h3 {
  font-size: 1.08rem;
  margin-bottom: 0.55rem;
}

.process-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.process-card:hover {
  transform: translateY(-6px);
  border-color: var(--blue-light);
}

/* ============================================================
   Why choose us
   ============================================================ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.3rem;
}

.why-card {
  padding: 1.7rem 1.5rem;
}

.why-card .icon-chip {
  width: 46px;
  height: 46px;
  font-size: 1.05rem;
}

.why-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.why-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.why-card:hover {
  transform: translateY(-5px);
  border-color: var(--blue-light);
  box-shadow: 0 16px 38px -16px rgba(0, 140, 255, 0.4);
}

/* ============================================================
   Sectors
   ============================================================ */
.sectors-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.sector-pill {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.05rem 1.2rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
}

.sector-pill i {
  color: var(--blue-light);
  font-size: 1rem;
  flex-shrink: 0;
}

.sector-pill:hover {
  transform: translateY(-4px);
  border-color: var(--blue-cyan);
  box-shadow: 0 0 26px -10px var(--blue-neon);
}

/* ============================================================
   CTA
   ============================================================ */
.cta-card {
  position: relative;
  padding: clamp(2.8rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 4rem);
  border-radius: var(--radius-lg);
  text-align: center;
  overflow: hidden;
  border-color: rgba(0, 200, 255, 0.35);
  box-shadow: 0 0 60px -20px rgba(0, 140, 255, 0.5), var(--shadow-card);
}

.cta-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(ellipse 60% 45% at 30% 70%, rgba(37, 99, 235, 0.3), transparent 65%),
    radial-gradient(ellipse 55% 40% at 75% 25%, rgba(0, 200, 255, 0.22), transparent 65%);
  filter: blur(24px);
  animation: waveSweep 12s ease-in-out infinite alternate;
  z-index: 0;
}

.cta-card > * {
  position: relative;
  z-index: 1;
}

.cta-card h2 {
  max-width: 680px;
  margin-inline: auto;
}

.cta-card p {
  max-width: 620px;
  margin: 1.1rem auto 2rem;
  color: var(--text-muted);
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  margin-top: 2rem;
  background: var(--bg-secondary);
  border-top: 1px solid rgba(96, 165, 250, 0.18);
  position: relative;
  box-shadow: none;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr) minmax(0, 0.9fr);
  gap: 2.5rem;
  padding-block: 3.5rem 2.2rem;
}

.footer-brand .logo {
  display: inline-flex;
  margin-bottom: 1rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.93rem;
  line-height: 1.7;
  max-width: 380px;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-top: 20px;
}

.footer-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  color: var(--text-muted);
  font-size: 15px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-contact-link span {
  overflow-wrap: anywhere;
}

.footer-contact-link i {
  flex-shrink: 0;
  color: var(--blue-cyan);
  font-size: 14px;
}

.footer-contact-link:hover {
  color: var(--blue-cyan);
}

.footer-inner h4 {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 1rem;
}

html[lang="ar"] .footer-inner h4 {
  letter-spacing: 0;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.92rem;
  transition: color 0.25s ease;
}

.footer-links a:hover {
  color: var(--blue-cyan);
}

.footer-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.footer-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.15rem;
  border-radius: 999px;
  border: 1px solid rgba(96, 165, 250, 0.3);
  background: var(--card-bg);
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  backdrop-filter: blur(8px);
  transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
}

.footer-cta-btn i {
  color: var(--blue-cyan);
  font-size: 0.85em;
}

.footer-cta-btn:hover {
  border-color: var(--blue-cyan);
  color: var(--blue-cyan);
  background: rgba(0, 200, 255, 0.1);
}

.footer-bottom {
  border-top: 1px solid rgba(96, 165, 250, 0.12);
  padding-block: 1.3rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.2rem;
    text-align: center;
    padding-block: 3rem 2rem;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-brand .logo {
    justify-content: center;
  }

  .footer-brand p {
    max-width: none;
    margin-inline: auto;
  }

  .footer-contact {
    align-items: center;
  }

  .footer-links ul {
    align-items: center;
  }

  .footer-cta-actions {
    justify-content: center;
  }
}

/* ============================================================
   Inner page hero
   ============================================================ */
.page-hero {
  padding-block: 11rem 4.5rem;
  text-align: center;
  position: relative;
}

.page-hero h1 {
  margin-bottom: 1rem;
}

.page-hero .lead {
  max-width: 640px;
  margin-inline: auto;
}

/* ============================================================
   Services page — title size
   ============================================================ */
[data-page="services"] .page-hero h1 {
  font-size: 46px;
}

/* ============================================================
   About page
   ============================================================ */
.prose-block p {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 1.1rem;
}

.vm-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.4rem;
}

.vm-card {
  padding: 2.1rem 1.9rem;
}

.vm-card .icon-chip {
  width: 56px;
  height: 56px;
}

.vm-card h2 {
  font-size: 1.35rem;
  margin-bottom: 0.7rem;
}

.vm-card p {
  color: var(--text-muted);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.3rem;
}

.values-grid .why-card:nth-last-child(-n+2) {
  /* keeps 5-card grid balanced via auto flow */
}

/* ============================================================
   Services page detail cards
   ============================================================ */
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.4rem;
}

.detail-card {
  padding: 2rem 1.8rem;
  display: flex;
  gap: 1.3rem;
  align-items: flex-start;
}

.detail-card .icon-chip {
  margin-bottom: 0;
  flex-shrink: 0;
}

.detail-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.55rem;
}

.detail-card p {
  color: var(--text-muted);
  font-size: 0.94rem;
}

.detail-card:hover {
  transform: translateY(-5px);
  border-color: var(--blue-light);
  box-shadow: 0 18px 40px -16px rgba(0, 140, 255, 0.42);
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
}

/* ============================================================
   Process page timeline
   ============================================================ */
.timeline {
  position: relative;
  max-width: 820px;
  margin-inline: auto;
  padding-inline-start: 3.2rem;
}

.timeline::before {
  content: "";
  position: absolute;
  inset-block: 10px;
  inset-inline-start: 18px;
  transform: translateX(-50%);
  width: 2px;
  z-index: 1;
  background: linear-gradient(to bottom, transparent, var(--blue-neon), var(--blue-cyan), var(--blue-neon), transparent);
  box-shadow: 0 0 14px rgba(0, 140, 255, 0.7);
}

html[dir="rtl"] .timeline::before {
  transform: translateX(50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 1.8rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  top: 2rem;
  inset-inline-start: calc(18px - 3.2rem);
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  z-index: 2;
  background: var(--grad-blue);
  box-shadow: 0 0 16px var(--blue-neon), 0 0 0 5px rgba(0, 140, 255, 0.15);
}

html[dir="rtl"] .timeline-item::before {
  transform: translateX(50%);
}

.timeline-card {
  padding: 1.9rem 1.8rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.timeline-card .process-num {
  margin-bottom: 0;
  font-size: 2.9rem;
  flex-shrink: 0;
}

.timeline-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.timeline-card p {
  color: var(--text-muted);
  font-size: 0.94rem;
}

.timeline-card:hover {
  border-color: var(--blue-cyan);
  transform: translateX(6px);
}

html[dir="rtl"] .timeline-card:hover {
  transform: translateX(-6px);
}

/* ============================================================
   Contact page
   ============================================================ */
.contact-section {
  position: relative;
  overflow: hidden;
}

.contact-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(0, 140, 255, 0.16), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(0, 200, 255, 0.13), transparent 45%);
  pointer-events: none;
}

.contact-card {
  position: relative;
  max-width: 760px;
  margin-inline: auto;
  padding: clamp(2.4rem, 5vw, 4rem) clamp(1.75rem, 6vw, 4rem);
  border-radius: 30px;
  text-align: center;
  overflow: hidden;
}

.contact-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(0, 200, 255, 0.14), transparent 60%);
  pointer-events: none;
}

.contact-card > * {
  position: relative;
}

.contact-card .eyebrow {
  margin-bottom: 1.3rem;
}

.contact-card .lead {
  max-width: 540px;
  margin-block: 1rem 2.3rem;
  margin-inline: auto;
}

.contact-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.8rem;
}

.contact-hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.contact-hero-meta .meta-sep {
  color: var(--card-border);
}

@media (max-width: 640px) {
  .contact-card {
    padding: 2.2rem 1.4rem;
    border-radius: 24px;
  }

  .contact-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .contact-hero-actions .btn {
    width: 100%;
  }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  main > .section:first-child {
    padding-top: 138px;
  }

  .h-xl,
  .h-lg {
    font-size: 28px;
  }

  .lead,
  .prose-block p {
    font-size: 15px;
    line-height: 1.8;
  }

  [data-page="services"] .page-hero h1 {
    font-size: 40px;
  }

  .services-grid,
  .why-grid,
  .values-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-card h3 {
    font-size: 1.1rem;
  }

  .service-card p {
    font-size: 0.94rem;
  }

  .link-more {
    font-size: 0.88rem;
  }

  .innov-grid,
  .process-grid,
  .sectors-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-grid::before {
    display: none;
  }

  .main-nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .about-grid,
  .split {
    grid-template-columns: 1fr;
  }

  .split.reverse .split-visual {
    order: -1;
  }

  .hero {
    padding-top: 8.5rem;
    text-align: center;
  }

  .hero h1 {
    white-space: normal;
    font-size: 38px;
  }
}

@media (max-width: 640px) {
  :root {
    --section-pad: 4rem;
  }

  .container {
    width: calc(100% - 2.2rem);
  }

  main > .section:first-child {
    padding-top: 123px;
  }

  .h-xl,
  .h-lg {
    font-size: 24px;
  }

  .hero h1 {
    font-size: 30px;
  }

  .lead,
  .prose-block p {
    font-size: 14px;
    line-height: 1.8;
  }

  [data-page="services"] .page-hero h1 {
    font-size: 34px;
  }

  .service-card {
    padding: 22px;
    min-height: auto;
  }

  .service-card h3 {
    font-size: 1.125rem;
  }

  .service-card p {
    font-size: 0.9375rem;
  }

  .link-more {
    font-size: 0.85rem;
  }


  .services-grid,
  .why-grid,
  .values-grid,
  .innov-grid,
  .process-grid,
  .sectors-grid,
  .detail-grid,
  .solutions-grid,
  .vm-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-block: 7.5rem 3.5rem;
    min-height: 100vh;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
  }

  .detail-card,
  .timeline-card {
    flex-direction: column;
  }

  .timeline {
    padding-inline-start: 2.4rem;
  }

  .timeline::before {
    inset-inline-start: 12px;
  }

  .timeline-item::before {
    inset-inline-start: calc(12px - 2.4rem);
  }

  .page-hero {
    padding-top: 9rem;
  }

  .footer-links ul {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
