/* ═══════════════════════════════════════════════════════════════
   SERVICE INNER PAGE — service.css
   Standalone stylesheet. Shares design language with main site.
   One file governs all three service inner pages.

   Architecture:
   — CSS custom properties for full theme control
   — Every layout built with CSS Grid / Flexbox
   — Zero magic numbers — spacing via a consistent scale
   — Mobile-first responsive breakpoints
═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&family=Poppins:wght@300;400;500;600&display=swap');

/* ── DESIGN TOKENS ──────────────────────────────────────────── */
:root {
  /* Palette */
  --bg:          #070b14;
  --bg-2:        #0b1220;
  --bg-3:        #0f1828;
  --surface:     rgba(11, 18, 32, 0.88);
  --surface-2:   rgba(15, 24, 44, 0.75);
  --border:      rgba(0, 238, 255, 0.10);
  --border-hi:   rgba(0, 238, 255, 0.28);
  --cyan:        #00eeff;
  --cyan-dim:    rgba(0, 238, 255, 0.10);
  --cyan-mid:    rgba(0, 238, 255, 0.22);
  --accent:      #ff2d78;
  --text-hi:     #ffffff;
  --text:        #9db4cc;
  --text-mute:   #4a6480;

  /* Glow scale */
  --glow-xs: 0 0  6px rgba(0,238,255,0.45);
  --glow-sm: 0 0 14px rgba(0,238,255,0.50), 0 0 30px rgba(0,238,255,0.18);
  --glow-md: 0 0 24px rgba(0,238,255,0.60), 0 0 55px rgba(0,238,255,0.22);

  /* Spacing scale (8-point) */
  --s-1:  0.8rem;
  --s-2:  1.6rem;
  --s-3:  2.4rem;
  --s-4:  3.2rem;
  --s-5:  4.0rem;
  --s-6:  4.8rem;
  --s-8:  6.4rem;
  --s-10: 8.0rem;
  --s-12: 9.6rem;

  /* Max content width */
  --max-w:       1160px;
  --max-w-prose: 720px;

  /* Typography */
  --font-display: 'Rajdhani', sans-serif;
  --font-body:    'Poppins', sans-serif;

  /* Motion */
  --ease:   cubic-bezier(0.23, 1, 0.32, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── RESET & BASE ───────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0; padding: 0;
  border: none; outline: none;
  text-decoration: none;
}
html   { font-size: 62.5%; scroll-behavior: smooth; }
body   { font-family: var(--font-body); font-size: 1.6rem; background: var(--bg); color: var(--text); line-height: 1.75; overflow-x: hidden; }
img    { max-width: 100%; height: auto; vertical-align: top; display: block; }
*::selection { background: var(--cyan); color: var(--bg); }
a      { color: inherit; }

/* ── LAYOUT CONTAINER ───────────────────────────────────────── */
.container {
  width: min(var(--max-w), 100% - 4.8rem);
  margin-inline: auto;
}

/* ── GLOBAL AMBIENT LAYER ───────────────────────────────────── */
.site-orb {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(110px);
  z-index: 0;
  animation: orbDrift 22s ease-in-out infinite;
}
.site-orb-1 {
  width: 55rem; height: 55rem;
  background: radial-gradient(circle, rgba(0,238,255,0.07), transparent 70%);
  top: -15rem; left: -15rem;
}
.site-orb-2 {
  width: 45rem; height: 45rem;
  background: radial-gradient(circle, rgba(0,80,255,0.06), transparent 70%);
  bottom: -10rem; right: -10rem;
  animation-delay: -11s; animation-duration: 28s;
}
@keyframes orbDrift {
  0%,100% { transform: translate(0,0) scale(1); }
  33%      { transform: translate(40px,-50px) scale(1.08); }
  66%      { transform: translate(-30px,40px) scale(0.94); }
}

/* ── SCROLL PROGRESS BAR ────────────────────────────────────── */
#scrollBar {
  position: fixed; top: 0; left: 0;
  height: 2px; width: 0%;
  background: linear-gradient(90deg, var(--cyan), var(--accent));
  z-index: 9999;
  box-shadow: var(--glow-sm);
  transition: width 0.1s linear;
}

/* ────────────────────────────────────────────────────────────
   SITE NAV (top bar)
──────────────────────────────────────────────────────────── */
.site-nav {
  position: fixed; top: 0; left: 0;
  width: 100%; z-index: 100;
  padding: 2rem 0;
  background: rgba(7, 11, 20, 0.45);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  transition: background 0.4s var(--ease), padding 0.3s var(--ease);
}
.site-nav.scrolled {
  background: rgba(7, 11, 20, 0.95);
  padding: 1.4rem 0;
  border-bottom-color: var(--border-hi);
}
.site-nav .container {
  display: flex; align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 2.2rem; font-weight: 700;
  color: var(--text-hi); letter-spacing: 0.08em;
}
.nav-logo .bracket { color: var(--cyan); text-shadow: var(--glow-sm); }

.nav-back {
  display: inline-flex; align-items: center; gap: 0.8rem;
  font-family: var(--font-display);
  font-size: 1.4rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-mute);
  padding: 0.8rem 1.6rem;
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  transition: color 0.3s, border-color 0.3s, box-shadow 0.3s, background 0.3s;
}
.nav-back:hover {
  color: var(--cyan);
  border-color: var(--border-hi);
  background: var(--cyan-dim);
  box-shadow: var(--glow-xs);
}
.nav-back i { font-size: 1.6rem; }

/* ────────────────────────────────────────────────────────────
   HERO SECTION
──────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding-block: var(--s-12) var(--s-10);
  padding-top: calc(var(--s-12) + 6rem); /* clear fixed nav */
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
  min-height: 60vh;
}

/* Radiating grid background — pure CSS, zero JS */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,238,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,238,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 0%, black 40%, transparent 100%);
  pointer-events: none;
}

/* Bottom fade into page body */
.hero::after {
  content: '';
  position: absolute; bottom: 0; left: 0;
  width: 100%; height: 12rem;
  background: linear-gradient(transparent, var(--bg));
  pointer-events: none;
}

.hero-content { position: relative; z-index: 1; }

.hero-label {
  display: inline-flex; align-items: center; gap: 0.8rem;
  font-family: var(--font-display);
  font-size: 1.3rem; font-weight: 600;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--cyan); opacity: 0.8;
  margin-bottom: var(--s-3);
}
.hero-label::before,
.hero-label::after {
  content: '';
  display: block;
  width: 3rem; height: 1px;
  background: var(--cyan);
  opacity: 0.5;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(4rem, 7vw, 7.5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0.02em;
  color: var(--text-hi);
  margin-bottom: var(--s-3);
}
/* The accent word (wrapped in <em>) — no italic, just colour */
.hero-title em {
  font-style: normal;
  color: var(--cyan);
  text-shadow: var(--glow-sm);
}

.hero-subtitle {
  max-width: var(--max-w-prose);
  margin-inline: auto;
  margin-bottom: var(--s-5);
  font-size: 1.9rem;
  font-weight: 300;
  color: var(--text);
  line-height: 1.7;
}

/* KPI strip under subtitle */
.hero-kpi {
  display: flex;
  justify-content: center;
  gap: var(--s-6);
  flex-wrap: wrap;
  margin-top: var(--s-5);
}
.kpi-item {
  display: flex; flex-direction: column;
  align-items: center; gap: 0.3rem;
}
.kpi-num {
  font-family: var(--font-display);
  font-size: 3.6rem; font-weight: 700;
  color: var(--cyan); line-height: 1;
  text-shadow: var(--glow-sm);
}
.kpi-label {
  font-size: 1.2rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.kpi-divider {
  width: 1px;
  align-self: stretch;
  background: var(--border-hi);
}

/* ────────────────────────────────────────────────────────────
   SHARED SECTION SCAFFOLDING
──────────────────────────────────────────────────────────── */
.sp-section {
  position: relative;
  padding-block: var(--s-10);
  z-index: 1;
}
.sp-section + .sp-section { border-top: 1px solid var(--border); }

/* Alternating bg tint */
.sp-section.tinted { background: var(--bg-2); }

/* Section header */
.section-head {
  max-width: var(--max-w-prose);
  margin-inline: auto;
  text-align: center;
  margin-bottom: var(--s-8);
}
.section-eyebrow {
  font-family: var(--font-display);
  font-size: 1.2rem; font-weight: 600;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--cyan); opacity: 0.75;
  margin-bottom: var(--s-2);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 4vw, 4.4rem);
  font-weight: 700;
  color: var(--text-hi);
  letter-spacing: 0.02em;
  line-height: 1.15;
  margin-bottom: var(--s-2);
}
.section-title em {
  font-style: normal;
  color: var(--cyan);
  text-shadow: var(--glow-xs);
}
.section-body {
  font-size: 1.7rem;
  color: var(--text);
  line-height: 1.8;
}

/* Glowing horizontal rule */
.glow-rule {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan) 30%, #fff 50%, var(--cyan) 70%, transparent);
  box-shadow: 0 0 12px rgba(0,238,255,0.4);
  border: none;
  margin-block: var(--s-8);
  opacity: 0.5;
}

/* ────────────────────────────────────────────────────────────
   APPROACH SECTION — numbered philosophy steps
──────────────────────────────────────────────────────────── */
.approach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(28rem, 1fr));
  gap: var(--s-3);
}
.approach-card {
  padding: var(--s-5) var(--s-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.6rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease), box-shadow 0.4s ease;
  backdrop-filter: blur(10px);
}
.approach-card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at top left, rgba(0,238,255,0.05), transparent 60%);
  opacity: 0; transition: opacity 0.4s;
}
.approach-card:hover { border-color: var(--border-hi); transform: translateY(-4px); box-shadow: 0 20px 50px rgba(0,0,0,0.35), var(--glow-xs); }
.approach-card:hover::before { opacity: 1; }

.approach-number {
  font-family: var(--font-display);
  font-size: 5.5rem; font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1px rgba(0,238,255,0.2);
  line-height: 1;
  margin-bottom: var(--s-2);
  user-select: none;
}
.approach-card-title {
  font-family: var(--font-display);
  font-size: 2.2rem; font-weight: 700;
  color: var(--text-hi);
  margin-bottom: var(--s-1);
  letter-spacing: 0.03em;
}
.approach-card-body {
  font-size: 1.5rem;
  color: var(--text);
  line-height: 1.8;
}

/* ────────────────────────────────────────────────────────────
   VALUE SECTION — 3-column deliverable grid
──────────────────────────────────────────────────────────── */
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-3);
}
.value-card {
  padding: var(--s-4) var(--s-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.4rem;
  display: flex; flex-direction: column;
  gap: var(--s-2);
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease), box-shadow 0.4s;
  backdrop-filter: blur(8px);
  position: relative; overflow: hidden;
}
/* Animated top-edge accent line */
.value-card::after {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 0%; height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--accent));
  box-shadow: var(--glow-sm);
  transition: width 0.5s var(--ease);
}
.value-card:hover::after { width: 100%; }
.value-card:hover { border-color: var(--border-hi); transform: translateY(-5px); box-shadow: 0 22px 50px rgba(0,0,0,0.35); }

.value-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 5.2rem; height: 5.2rem;
  border-radius: 1.2rem;
  background: var(--cyan-dim);
  border: 1px solid var(--border-hi);
  color: var(--cyan);
  font-size: 2.4rem;
  flex-shrink: 0;
  transition: background 0.3s, box-shadow 0.3s;
}
.value-card:hover .value-icon { background: var(--cyan-mid); box-shadow: var(--glow-xs); }

.value-title {
  font-family: var(--font-display);
  font-size: 2rem; font-weight: 700;
  color: var(--text-hi);
  letter-spacing: 0.03em;
}
.value-body {
  font-size: 1.5rem;
  color: var(--text);
  line-height: 1.8;
  flex: 1;
}
/* Optional ROI metric badge */
.value-roi {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.2rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--cyan);
  background: var(--cyan-dim);
  border: 1px solid var(--border-hi);
  border-radius: 0.4rem;
  padding: 0.3rem 1rem;
  align-self: flex-start;
}

/* ────────────────────────────────────────────────────────────
   STACK / PROCESS SECTION
──────────────────────────────────────────────────────────── */
.stack-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-6);
  align-items: start;
}

/* Tech pills list */
.stack-group-title {
  font-family: var(--font-display);
  font-size: 1.2rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: var(--s-2);
}
.stack-pills {
  display: flex; flex-wrap: wrap; gap: var(--s-1);
  list-style: none;
  margin-bottom: var(--s-4);
}
.stack-pill {
  font-family: var(--font-display);
  font-size: 1.4rem; font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-hi);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  padding: 0.7rem 1.6rem;
  transition: all 0.3s var(--ease);
  cursor: default;
}
.stack-pill:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: var(--cyan-dim);
  box-shadow: var(--glow-xs);
  transform: translateY(-2px);
}
/* Icon prefix inside pill — optional */
.stack-pill i { margin-right: 0.5rem; vertical-align: middle; }

/* Process timeline */
.process-list {
  list-style: none;
  display: flex; flex-direction: column; gap: 0;
}
.process-item {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 0 var(--s-3);
  padding-bottom: var(--s-4);
  position: relative;
}
/* Vertical connector line */
.process-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 3.5rem; left: 1.65rem;
  width: 1px;
  bottom: 0;
  background: linear-gradient(to bottom, var(--border-hi), transparent);
}
.process-dot {
  width: 3.5rem; height: 3.5rem;
  border-radius: 50%;
  background: var(--cyan-dim);
  border: 1.5px solid var(--cyan);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 1.4rem; font-weight: 700;
  color: var(--cyan);
  box-shadow: var(--glow-xs);
  position: relative; z-index: 1;
}
.process-content { padding-top: 0.4rem; }
.process-title {
  font-family: var(--font-display);
  font-size: 1.8rem; font-weight: 700;
  color: var(--text-hi);
  letter-spacing: 0.03em;
  margin-bottom: 0.4rem;
}
.process-desc {
  font-size: 1.5rem;
  color: var(--text);
  line-height: 1.75;
}

/* ────────────────────────────────────────────────────────────
   CTA BANNER
──────────────────────────────────────────────────────────── */
.cta-section {
  position: relative;
  padding-block: var(--s-10);
  text-align: center;
  overflow: hidden;
  z-index: 1;
}
.cta-section::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 70% at 50% 50%, rgba(0,238,255,0.07), transparent 70%);
  pointer-events: none;
}
.cta-label {
  font-family: var(--font-display);
  font-size: 1.2rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--text-mute); margin-bottom: var(--s-2);
}
.cta-heading {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5vw, 5rem);
  font-weight: 700;
  color: var(--text-hi); letter-spacing: 0.02em;
  line-height: 1.2;
  margin-bottom: var(--s-2);
}
.cta-heading em { font-style: normal; color: var(--cyan); text-shadow: var(--glow-sm); }
.cta-sub {
  font-size: 1.7rem; color: var(--text);
  max-width: 55rem; margin-inline: auto;
  margin-bottom: var(--s-5);
  line-height: 1.75;
}
.cta-actions {
  display: flex; justify-content: center;
  gap: var(--s-2); flex-wrap: wrap;
}

/* ────────────────────────────────────────────────────────────
   BUTTON SYSTEM
──────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 0.8rem;
  padding: 1.3rem 3.2rem;
  border-radius: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.6rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  transition: all 0.35s var(--ease);
  position: relative; overflow: hidden;
  cursor: pointer;
}
/* Shimmer sweep on hover */
.btn::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(255,255,255,0.10);
  transform: translateX(-110%) skewX(-20deg);
  transition: transform 0.5s var(--ease);
}
.btn:hover::after { transform: translateX(110%) skewX(-20deg); }

.btn-primary {
  background: var(--cyan); color: var(--bg);
  box-shadow: var(--glow-sm);
}
.btn-primary:hover { box-shadow: var(--glow-md); transform: translateY(-3px); }

.btn-ghost {
  background: transparent;
  color: var(--cyan);
  border: 1.5px solid var(--cyan);
}
.btn-ghost:hover { background: var(--cyan-dim); box-shadow: var(--glow-xs); transform: translateY(-3px); }
.btn i { font-size: 1.8rem; }

/* ────────────────────────────────────────────────────────────
   FOOTER
──────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding-block: var(--s-4);
  text-align: center;
  font-size: 1.3rem;
  color: var(--text-mute);
  letter-spacing: 0.04em;
  position: relative; z-index: 1;
}
.site-footer span { color: var(--cyan); }

/* ────────────────────────────────────────────────────────────
   MICRO-ANIMATIONS — entrance via IntersectionObserver
   JS adds .is-visible; CSS drives the animation
──────────────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* Stagger children in reveal groups */
.reveal-group > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
.reveal-group.is-visible > *:nth-child(1) { opacity:1; transform:none; transition-delay:0.00s; }
.reveal-group.is-visible > *:nth-child(2) { opacity:1; transform:none; transition-delay:0.12s; }
.reveal-group.is-visible > *:nth-child(3) { opacity:1; transform:none; transition-delay:0.24s; }
.reveal-group.is-visible > *:nth-child(4) { opacity:1; transform:none; transition-delay:0.36s; }
.reveal-group.is-visible > *:nth-child(5) { opacity:1; transform:none; transition-delay:0.48s; }

/* ────────────────────────────────────────────────────────────
   RESPONSIVE
──────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .value-grid    { grid-template-columns: repeat(2, 1fr); }
  .stack-wrapper { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  html           { font-size: 58%; }
  .hero          { text-align: left; }
  .hero-label    { font-size: 1.1rem; }
  .hero-kpi      { justify-content: flex-start; gap: var(--s-4); }
  .kpi-divider   { display: none; }
  .value-grid    { grid-template-columns: 1fr; }
  .approach-grid { grid-template-columns: 1fr; }
  .cta-actions   { flex-direction: column; align-items: center; }
  .hero-subtitle { font-size: 2.1rem; }
  .approach-desc { font-size: 1.8rem; }
  .value-desc    { font-size: 1.8rem; }
  .cta-desc      { font-size: 1.7rem; }
}
@media (max-width: 480px) {
  html           { font-size: 55%; }
  .container     { width: calc(100% - 3.2rem); }
  .hero-kpi      { flex-direction: column; gap: var(--s-3); }
}
