/* ============================================================
   TechVantix — Digital Growth, Engineered.
   Design system: dark, glassy, teal accent (brand color)
   ============================================================ */

:root {
  --bg: #052229;
  --bg-2: #072E37;
  --bg-3: #0A3E4B;
  --card: rgba(255, 255, 255, 0.035);
  --card-border: rgba(255, 255, 255, 0.08);
  --card-hover: rgba(35, 195, 212, 0.06);
  --teal: #23c3d4;
  --teal-light: #7ef0fa;
  --teal-deep: #0e93a3;
  --blue: #3f7bff;
  --text: #e9f2f6;
  --muted: #9BB6BD;
  --grad: linear-gradient(120deg, #23c3d4, #3f7bff);
  --grad-text: linear-gradient(100deg, #7ef0fa 0%, #23c3d4 45%, #3f7bff 100%);
  --radius: 18px;
  --nav-h: 76px;
  --font-head: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --shadow-glow: 0 0 60px rgba(35, 195, 212, 0.18);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16.5px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(35, 195, 212, 0.35); color: #fff; }

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.container { width: min(1180px, 92%); margin-inline: auto; }

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

/* ---------- Animated page background ---------- */
.bg-scene {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 55% at 50% -10%, rgba(35, 195, 212, 0.16), transparent 62%),
    radial-gradient(ellipse 55% 45% at 88% 6%, rgba(0, 220, 190, 0.08), transparent 60%),
    var(--bg);
}
.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.028) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 75%);
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  will-change: transform;
  animation: blob-drift 26s var(--ease) infinite alternate;
}
.blob-1 { width: 540px; height: 540px; top: -180px; left: -120px; background: rgba(35, 195, 212, 0.20); }
.blob-2 { width: 480px; height: 480px; top: 32%; right: -200px; background: rgba(30, 220, 200, 0.12); animation-delay: -8s; animation-duration: 32s; }
.blob-3 { width: 420px; height: 420px; bottom: -160px; left: 28%; background: rgba(35, 195, 212, 0.13); animation-delay: -16s; animation-duration: 38s; }

@keyframes blob-drift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(70px, -50px) scale(1.12); }
  100% { transform: translate(-50px, 60px) scale(0.95); }
}

/* ---------- Navigation ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.35s, border-color 0.35s, backdrop-filter 0.35s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(5, 34, 41, 0.84);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: rgba(255, 255, 255, 0.07);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo { display: inline-flex; align-items: center; line-height: 1; flex: none; }
.logo img { height: 38px; width: auto; display: block; }
.site-footer .logo img { height: 42px; }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links > a, .has-drop > a {
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 500;
  position: relative;
  transition: color 0.25s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-links > a::after, .has-drop > a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%; height: 2px;
  background: var(--grad);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav-links > a:hover, .nav-links > a.active, .has-drop > a:hover, .has-drop:hover > a { color: #fff; }
.nav-links > a:hover::after, .nav-links > a.active::after, .has-drop:hover > a::after { transform: scaleX(1); }

/* ---------- Services dropdown ---------- */
.nav-item.has-drop { position: relative; }
.has-drop .caret { font-size: 0.7em; transition: transform 0.3s var(--ease); }
.has-drop:hover .caret { transform: rotate(180deg); }
.dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  padding-top: 18px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
  z-index: 120;
}
.has-drop:hover .dropdown, .has-drop:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.drop-inner {
  display: flex;
  gap: 44px;
  padding: 28px 32px;
  border-radius: 18px;
  background: rgba(6, 40, 48, 0.97);
  border: 1px solid rgba(35, 195, 212, 0.22);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55), 0 0 40px rgba(35, 195, 212, 0.07);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.drop-col { display: flex; flex-direction: column; gap: 2px; min-width: 230px; }
.drop-head {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 10px;
  white-space: nowrap;
}
.drop-col a {
  font-size: 0.9rem;
  color: var(--muted);
  padding: 7px 10px;
  margin: 0 -10px;
  border-radius: 9px;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s, padding-left 0.25s var(--ease);
}
.drop-col a:hover { color: #fff; background: rgba(35, 195, 212, 0.09); padding-left: 16px; }
.drop-col a.drop-all { color: var(--teal); font-weight: 600; margin-top: 8px; }
.drop-col a.drop-all:hover { color: var(--teal-light); }

/* Wide mega-menu: three grouped columns of sub-links */
.dropdown-wide .drop-inner { gap: 34px; padding: 30px 34px; }
.dropdown-wide .drop-col { min-width: 232px; }
.dropdown-wide .drop-col a { font-size: 0.875rem; }
@media (max-width: 1100px) {
  .dropdown-wide .drop-inner { gap: 24px; padding: 24px; }
  .dropdown-wide .drop-col { min-width: 200px; }
}


.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, background 0.25s, border-color 0.25s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad);
  color: #032027;
  box-shadow: 0 8px 28px rgba(35, 195, 212, 0.32);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 38px rgba(35, 195, 212, 0.45); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--text);
}
.btn-ghost:hover { transform: translateY(-3px); border-color: rgba(35, 195, 212, 0.6); background: rgba(35, 195, 212, 0.08); }
.btn-sm { padding: 11px 22px; font-size: 0.9rem; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 42px; height: 42px;
  position: relative;
  z-index: 110;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: #fff;
  margin: 6px auto;
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 60px) 0 80px;
  position: relative;
}
.hero-inner { text-align: center; max-width: 900px; margin-inline: auto; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(35, 195, 212, 0.08);
  border: 1px solid rgba(35, 195, 212, 0.25);
  color: var(--teal-light);
  font-size: 0.86rem;
  font-weight: 500;
  margin-bottom: 28px;
}
.hero-badge .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--teal);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(35, 195, 212, 0.6); }
  60% { box-shadow: 0 0 0 9px rgba(35, 195, 212, 0); }
}

.hero h1 {
  font-size: clamp(2.5rem, 6.2vw, 4.4rem);
  margin-bottom: 10px;
}
/* Rotating headline — words roll up behind a mask, always centred,
   with the box easing to each phrase's width so nothing jumps. */
.hero .rotator-line {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}
.rotator {
  position: relative;
  display: block;
  height: 1.16em;                 /* one line box */
  padding-bottom: 0.22em;         /* room for descenders (g, p, y) */
  overflow: hidden;
  width: var(--rw, auto);
  transition: width 0.62s var(--ease);
  will-change: width;
}
.rotator .word {
  position: absolute;
  left: 50%;                      /* centred, whatever the length */
  top: 0;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-50%) translateY(105%);
  filter: blur(7px);
  transition: transform 0.62s var(--ease), opacity 0.44s var(--ease), filter 0.44s var(--ease);
}
.rotator .word.on {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  filter: blur(0);
}
.rotator .word.off {
  opacity: 0;
  transform: translateX(-50%) translateY(-105%);
  filter: blur(7px);
}
/* Gradient rule that sweeps in under each phrase */
.rotator-rule {
  display: block;
  height: 3px;
  width: var(--rw, 0);
  margin: 0.18em auto 0;
  border-radius: 3px;
  background: var(--grad);
  opacity: 0.85;
  transform-origin: center;
  animation: rule-sweep 3.4s var(--ease) infinite;
  transition: width 0.62s var(--ease);
}
@keyframes rule-sweep {
  0%   { transform: scaleX(0); opacity: 0; }
  14%  { transform: scaleX(1); opacity: 0.85; }
  86%  { transform: scaleX(1); opacity: 0.85; }
  100% { transform: scaleX(0); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .rotator { overflow: visible; width: auto !important; }
  .rotator .word { filter: none; }
  .rotator-rule { display: none; }
}

.hero-sub {
  color: var(--muted);
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  max-width: 660px;
  margin: 22px auto 38px;
}
.hero-cta { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

.hero-stats {
  margin-top: 72px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.stat-card {
  padding: 22px 14px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(8px);
}
.stat-card .num {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: #fff;
}
.stat-card .num .suffix { color: var(--teal); }
.stat-card .lbl { color: var(--muted); font-size: 0.86rem; margin-top: 4px; }

.scroll-hint {
  position: absolute;
  bottom: 26px; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid rgba(255,255,255,0.25);
  border-radius: 16px;
}
.scroll-hint::before {
  content: "";
  position: absolute;
  top: 7px; left: 50%;
  width: 4px; height: 8px;
  margin-left: -2px;
  border-radius: 4px;
  background: var(--teal);
  animation: scroll-wheel 1.8s infinite;
}
@keyframes scroll-wheel {
  0% { opacity: 1; transform: translateY(0); }
  70% { opacity: 0; transform: translateY(14px); }
  100% { opacity: 0; }
}

/* ---------- Marquee ---------- */
.marquee-section { padding: 26px 0; border-block: 1px solid rgba(255,255,255,0.06); overflow: hidden; background: rgba(255,255,255,0.015); }
.marquee { display: flex; overflow: hidden; user-select: none; gap: 0; }
.marquee-track {
  display: flex;
  align-items: center;
  gap: 48px;
  padding-right: 48px;
  flex: none;
  animation: marquee-scroll 30s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee-scroll { to { transform: translateX(-100%); } }
.marquee-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
  color: rgba(233, 242, 246, 0.75);
  white-space: nowrap;
}
.marquee-item .star { color: var(--teal); font-size: 0.8em; }

/* ---------- Sections ---------- */
.section { padding: 110px 0; position: relative; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 64px; }
.eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 16px;
}
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); margin-bottom: 18px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* ---------- Service cards ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  position: relative;
  padding: 34px 30px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--card-border);
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s, background 0.35s, box-shadow 0.35s;
  display: flex;
  flex-direction: column;
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px 200px at var(--mx, 50%) var(--my, 0%), rgba(35, 195, 212, 0.12), transparent 65%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(35, 195, 212, 0.4);
  box-shadow: var(--shadow-glow);
}
.service-card:hover::before { opacity: 1; }
.service-icon {
  width: 58px; height: 58px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: rgba(35, 195, 212, 0.1);
  border: 1px solid rgba(35, 195, 212, 0.25);
  margin-bottom: 24px;
  color: var(--teal);
  transition: transform 0.35s var(--ease);
}
.service-card:hover .service-icon { transform: scale(1.08) rotate(-4deg); }
.service-icon svg { width: 28px; height: 28px; }
.service-card h3 { font-size: 1.28rem; margin-bottom: 12px; }
.service-card p { color: var(--muted); font-size: 0.96rem; flex: 1; }
.service-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.service-tags span {
  font-size: 0.74rem;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.09);
  color: var(--muted);
}
.card-link {
  margin-top: 22px;
  font-weight: 600;
  font-size: 0.93rem;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.card-link .arr { transition: transform 0.3s var(--ease); }
.service-card:hover .card-link .arr { transform: translateX(6px); }

/* ---------- Split / feature sections ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}
.split h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 20px; }
.split .lead { color: var(--muted); margin-bottom: 28px; }
.check-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 10px 0;
  color: var(--text);
}
.check-list li strong { display: block; }
.check-list li .desc { color: var(--muted); font-size: 0.93rem; }
.check-icon {
  flex: none;
  width: 26px; height: 26px;
  margin-top: 3px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(35, 195, 212, 0.12);
  border: 1px solid rgba(35, 195, 212, 0.35);
  color: var(--teal);
}
.check-icon svg { width: 13px; height: 13px; }

/* Visual panel (AI/search mock) */
.visual-panel {
  position: relative;
  border-radius: 22px;
  border: 1px solid var(--card-border);
  background: linear-gradient(160deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015));
  padding: 30px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}
.visual-panel .glow {
  position: absolute;
  inset: -1px;
  border-radius: 22px;
  background: var(--grad);
  opacity: 0.14;
  filter: blur(28px);
  z-index: -1;
}
.mock-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 18px;
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 14px;
}
.mock-row:last-child { margin-bottom: 0; }
.mock-row .mi {
  width: 38px; height: 38px;
  flex: none;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(35, 195, 212, 0.12);
  color: var(--teal);
}
.mock-row .mi svg { width: 19px; height: 19px; }
.mock-row .mt { font-weight: 600; font-size: 0.93rem; }
.mock-row .ms { color: var(--muted); font-size: 0.8rem; }
.mock-row .badge-ok {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 600;
  color: #58e6a8;
  background: rgba(88, 230, 168, 0.1);
  border: 1px solid rgba(88, 230, 168, 0.3);
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

/* Animated bar chart */
.bars {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  height: 130px;
  padding: 20px 18px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  margin-top: 14px;
}
.bars .bar {
  flex: 1;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(to top, rgba(35,195,212,0.25), var(--teal));
  height: 12%;
  transition: height 1.1s var(--ease);
  transition-delay: var(--d, 0s);
}
.in-view .bars .bar { height: var(--h); }

/* ---------- Process timeline ---------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}
.process-step {
  position: relative;
  padding: 34px 26px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--card-border);
  transition: transform 0.35s var(--ease), border-color 0.35s;
}
.process-step:hover { transform: translateY(-6px); border-color: rgba(35,195,212,0.4); }
.process-step .step-num {
  font-family: var(--font-head);
  font-size: 2.6rem;
  font-weight: 800;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0.9;
  line-height: 1;
  margin-bottom: 18px;
}
.process-step h3 { font-size: 1.12rem; margin-bottom: 10px; }
.process-step p { color: var(--muted); font-size: 0.92rem; }
.process-step::after {
  content: "";
  position: absolute;
  top: 50%; right: -24px;
  width: 24px; height: 1px;
  background: linear-gradient(90deg, rgba(35,195,212,0.5), transparent);
}
.process-step:last-child::after { display: none; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; margin-inline: auto; }
.faq-item {
  border: 1px solid var(--card-border);
  border-radius: 14px;
  background: var(--card);
  margin-bottom: 14px;
  overflow: hidden;
  transition: border-color 0.3s;
}
.faq-item.open { border-color: rgba(35, 195, 212, 0.4); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  text-align: left;
  padding: 22px 26px;
  background: none;
  border: 0;
  color: var(--text);
  font-family: var(--font-head);
  font-size: 1.02rem;
  font-weight: 600;
}
.faq-q .fi {
  flex: none;
  width: 30px; height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--teal);
  transition: transform 0.35s var(--ease), background 0.3s;
  font-size: 1.15rem;
  line-height: 1;
}
.faq-item.open .fi { transform: rotate(45deg); background: rgba(35,195,212,0.12); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s var(--ease);
}
.faq-a p { padding: 0 26px 24px; color: var(--muted); font-size: 0.96rem; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  border-radius: 26px;
  padding: 74px 40px;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 120% at 50% 130%, rgba(35, 195, 212, 0.30), transparent 60%),
    linear-gradient(160deg, #0A3E4B, #052229);
  border: 1px solid rgba(35, 195, 212, 0.25);
}
.cta-band h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 16px; }
.cta-band p { color: var(--muted); max-width: 560px; margin: 0 auto 34px; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}
.contact-info h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-bottom: 18px; }
.contact-info > p { color: var(--muted); margin-bottom: 30px; }
.contact-line {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--card-border);
  margin-bottom: 14px;
  transition: border-color 0.3s, transform 0.3s var(--ease);
}
.contact-line:hover { border-color: rgba(35,195,212,0.45); transform: translateX(6px); }
.contact-line .ci {
  width: 44px; height: 44px;
  flex: none;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(35, 195, 212, 0.1);
  color: var(--teal);
}
.contact-line .ci svg { width: 21px; height: 21px; }
.contact-line .cl-label { font-size: 0.8rem; color: var(--muted); }
.contact-line .cl-value { font-weight: 600; }

.contact-form {
  padding: 36px;
  border-radius: 22px;
  background: var(--card);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(8px);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.85rem; font-weight: 500; color: var(--muted); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.field select option { background: var(--bg-2); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(35, 195, 212, 0.16);
}
.field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 0.8rem; color: var(--muted); margin-top: 14px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.015);
  padding: 54px 0 28px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr repeat(4, minmax(0, 1fr));
  gap: 34px 28px;
  align-items: start;
  margin-bottom: 34px;
}
.footer-brand p { color: var(--muted); font-size: 0.9rem; line-height: 1.6; margin-top: 14px; max-width: 270px; }
.footer-mail { display: inline-block; margin-top: 12px; color: var(--teal); font-size: 0.92rem; font-weight: 500; }
.footer-mail:hover { color: var(--teal-light); }
.footer-col h4 {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 16px;
  white-space: nowrap;
}
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: var(--muted); font-size: 0.89rem; line-height: 1.5; transition: color 0.25s, padding-left 0.25s; }
.footer-col a:hover { color: var(--teal); padding-left: 5px; }

/* Compact 'Serving Oman' row — keeps the local pages linked without
   turning the footer into a wall of text. */
.footer-local {
  display: flex;
  align-items: baseline;
  gap: 20px;
  flex-wrap: wrap;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.footer-local .fl-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--teal);
  white-space: nowrap;
  flex: none;
}
.footer-local .fl-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  flex: 1;
}
.footer-local .fl-links a {
  color: var(--muted);
  font-size: 0.86rem;
  transition: color 0.22s;
  white-space: nowrap;
}
.footer-local .fl-links a:hover { color: var(--teal); }

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1.4fr repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px 20px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-local { flex-direction: column; gap: 12px; }
  .footer-local .fl-links { gap: 8px 16px; }
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.06);
  color: var(--muted);
  font-size: 0.86rem;
}

/* ---------- Back to top ---------- */
.back-top {
  position: fixed;
  right: 26px; bottom: 26px;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(35,195,212,0.4);
  background: rgba(5, 34, 41, 0.85);
  color: var(--teal);
  display: grid;
  place-items: center;
  z-index: 90;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s var(--ease), background 0.3s;
  backdrop-filter: blur(8px);
}
.back-top.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-top:hover { background: rgba(35,195,212,0.15); }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(42px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--rd, 0s);
  will-change: opacity, transform;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-left { transform: translateX(-50px); }
.reveal-left.in-view { transform: translateX(0); }
.reveal-right { transform: translateX(50px); }
.reveal-right.in-view { transform: translateX(0); }
.reveal-scale { transform: scale(0.92); }
.reveal-scale.in-view { transform: scale(1); }

/* ---------- Service page (inner) ---------- */
.page-hero {
  padding: calc(var(--nav-h) + 90px) 0 70px;
  text-align: center;
}
.page-hero .breadcrumbs {
  display: flex;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.86rem;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.page-hero .breadcrumbs a { color: var(--teal); }
.page-hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); max-width: 860px; margin: 0 auto 20px; }
.page-hero .page-sub { color: var(--muted); font-size: 1.08rem; max-width: 700px; margin: 0 auto 36px; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.feature-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.feature-card {
  padding: 28px 26px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--card-border);
  transition: transform 0.35s var(--ease), border-color 0.35s;
}
.feature-card:hover { transform: translateY(-6px); border-color: rgba(35,195,212,0.4); }
.feature-card h3 { font-size: 1.08rem; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.feature-card h3 .fdot { width: 9px; height: 9px; border-radius: 50%; background: var(--grad); flex: none; }
.feature-card p { color: var(--muted); font-size: 0.93rem; }

.prose { max-width: 780px; margin-inline: auto; }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 46px 0 18px; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--muted); margin-bottom: 18px; }
.prose strong { color: var(--text); }
.prose ul { margin: 0 0 18px; }
.prose ul li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  color: var(--muted);
}
.prose ul li::before {
  content: "";
  position: absolute;
  left: 4px; top: 11px;
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--grad);
  transform: rotate(45deg);
}

/* ---------- Robot check (reCAPTCHA-style) ---------- */
.robot-check {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: 320px;
  padding: 16px 18px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.16);
  cursor: pointer;
  user-select: none;
  margin-bottom: 18px;
  transition: border-color 0.25s;
}
.robot-check:hover { border-color: rgba(35, 195, 212, 0.5); }
.robot-check .rc-box {
  width: 26px; height: 26px;
  flex: none;
  border-radius: 4px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.06);
  display: grid;
  place-items: center;
  transition: background 0.25s, border-color 0.25s;
}
.robot-check .rc-box svg { width: 16px; height: 16px; opacity: 0; transform: scale(0.5); transition: opacity 0.25s, transform 0.25s var(--ease); color: #58e6a8; }
.robot-check.checked .rc-box { border-color: #58e6a8; background: rgba(88, 230, 168, 0.12); }
.robot-check.checked .rc-box svg { opacity: 1; transform: scale(1); }
.robot-check .rc-label { font-size: 0.95rem; color: var(--text); flex: 1; }
.robot-check .rc-brand { display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--muted); font-size: 0.58rem; }
.robot-check .rc-brand svg { width: 26px; height: 26px; }
.robot-check.error { border-color: #ff6b6b; animation: rc-shake 0.4s; }
@keyframes rc-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}
.g-recaptcha { margin-bottom: 18px; }
.form-status { display: none; margin-top: 14px; padding: 13px 16px; border-radius: 10px; font-size: 0.9rem; }
.form-status.ok { display: block; color: #58e6a8; background: rgba(88, 230, 168, 0.1); border: 1px solid rgba(88, 230, 168, 0.3); }
.form-status.err { display: block; color: #ff8a8a; background: rgba(255, 107, 107, 0.08); border: 1px solid rgba(255, 107, 107, 0.35); }

/* ---------- Blog ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.blog-card {
  display: flex;
  flex-direction: column;
  padding: 30px 28px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--card-border);
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}
.blog-card:hover {
  transform: translateY(-8px);
  border-color: rgba(35, 195, 212, 0.4);
  box-shadow: var(--shadow-glow);
}
.post-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--teal);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.post-meta .sep { color: var(--muted); }
.blog-card h3 { font-size: 1.18rem; margin-bottom: 12px; }
.blog-card p { color: var(--muted); font-size: 0.94rem; flex: 1; }
.post-hero-meta {
  display: flex;
  justify-content: center;
  gap: 12px;
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 8px;
}
.post-hero-meta .tag { color: var(--teal); font-weight: 600; }
.prose h3 { font-size: 1.25rem; margin: 32px 0 12px; }
.prose blockquote {
  border-left: 3px solid var(--teal);
  padding: 14px 22px;
  margin: 0 0 18px;
  border-radius: 0 12px 12px 0;
  background: rgba(35, 195, 212, 0.06);
  color: var(--text);
  font-style: italic;
}
.prose ol { margin: 0 0 18px 22px; color: var(--muted); }
.prose ol li { margin-bottom: 10px; padding-left: 6px; }

/* Linked hub cards (Oman pages) */
a.feature-card { display: flex; flex-direction: column; }
a.feature-card .card-link { margin-top: 16px; }
a.feature-card p { flex: 1; }

/* ---------- 404 ---------- */
.err-page { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 40px 20px; }
.err-page .code { font-family: var(--font-head); font-size: clamp(5rem, 18vw, 10rem); font-weight: 800; line-height: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .services-grid, .feature-grid, .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .process-step::after { display: none; }
  .split { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 768px) {
  .section { padding: 80px 0; }
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    inset: 0;
    background: rgba(5, 34, 41, 0.97);
    backdrop-filter: blur(16px);
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    font-size: 1.2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s;
    z-index: 105;
  }
  .nav-links.open { opacity: 1; pointer-events: auto; }
  .nav-links a { font-size: 1.15rem; }
  /* On mobile the Services link goes to the full services page instead of a dropdown */
  .has-drop .dropdown, .has-drop .caret { display: none; }
  .nav .btn-cta-desktop { display: none; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .services-grid, .feature-grid, .feature-grid.cols-2, .process-grid, .blog-grid { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; }
}

/* ---------- Reduced motion ---------- */
@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;
  }
  .reveal { opacity: 1; transform: none; }
  .in-view .bars .bar { transition: none; }
}
