/* ============================================================
   APPWARE TECHNOLOGY — PREMIUM STYLES v6
   Fixes: fonts, nav glider, page animations, overflow, responsive
   ============================================================ */

/* --- Variables --- */
:root {
  --bg: #030711;
  --bg-2: #071321;
  --panel: #081725;
  --panel-2: #0b2235;
  --cyan: #00e7ff;
  --cyan-soft: #7df7ff;
  --blue: #2f9bff;
  --purple: #8465ff;
  --text: #f3fbff;
  --muted: #a8bacb;
  --line: rgba(126,238,255,.18);
  --line-strong: rgba(0,231,255,.34);
  --shadow: 0 26px 80px rgba(0,0,0,.38);
  --radius: 24px;
  --ease: cubic-bezier(.2,.8,.2,1);
  --ease-spring: cubic-bezier(.34,1.56,.64,1);
  --font-body: 'DM Sans', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-head: 'Space Grotesk', 'DM Sans', ui-sans-serif, system-ui, sans-serif;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; min-width: 0; }
html {
  scroll-behavior: smooth;
  overflow-x: hidden;         /* FIX: prevent horizontal scroll on html */
}
body {
  margin: 0;
  background: radial-gradient(circle at 10% -10%, rgba(0,231,255,.13), transparent 34%),
              radial-gradient(circle at 88% 8%, rgba(132,101,255,.16), transparent 36%),
              linear-gradient(180deg, #020610 0%, #071321 46%, #030711 100%);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.nav-open {
  overflow: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.026) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.026) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, #000, transparent 82%);
  z-index: -2;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 24%, transparent 0 42%, rgba(0,0,0,.42) 100%);
  z-index: -1;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
.container { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 16px; top: 16px; z-index: 999; background: white; color: black; padding: 10px 12px; border-radius: 10px; }

/* ============================================================
   NAVIGATION — Modern Glider Style
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(3,7,17,.72);
  border-bottom: 1px solid rgba(126,238,255,.06);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  transition: background .3s, box-shadow .3s;
}
.site-header.scrolled {
  background: rgba(3,7,17,.92);
  box-shadow: 0 1px 0 rgba(0,231,255,.06), 0 14px 50px rgba(0,0,0,.28);
}
.nav-bar {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand img { width: 185px; height: auto; }

/* Nav links — pill container with glider */
.nav-links {
  position: relative;
  display: flex;
  gap: 2px;
  align-items: center;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 999px;
  padding: 4px;
}

/* Glider pill (JS-driven) */
.nav-glider {
  position: absolute;
  border-radius: 999px;
  background: rgba(0,231,255,.12);
  border: 1px solid rgba(0,231,255,.24);
  box-shadow: 0 0 18px rgba(0,231,255,.14), inset 0 1px 0 rgba(255,255,255,.1);
  transition: left .32s var(--ease), top .32s var(--ease),
              width .32s var(--ease), height .32s var(--ease),
              opacity .2s;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
}

.nav-links a {
  position: relative;
  z-index: 1;
  padding: 8px 15px;
  border-radius: 999px;
  color: #b8cedd;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .01em;
  transition: color .2s;
  white-space: nowrap;
}
.nav-links a:hover { color: #fff; }
.nav-links a.active { color: #e8faff; font-weight: 700; }

.nav-actions { display: flex; align-items: center; gap: 12px; }

.menu-toggle {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.04);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: background .2s, border-color .2s;
}
.menu-toggle:hover { background: rgba(0,231,255,.08); border-color: rgba(0,231,255,.3); }
.menu-toggle span {
  display: block;
  width: 18px; height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform .22s var(--ease), opacity .22s;
}
.nav-open .menu-toggle span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-open .menu-toggle span:nth-child(2) { opacity: 0; }
.nav-open .menu-toggle span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  text-align: center;
  cursor: pointer;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s, background .22s;
}
.btn-primary {
  color: #02121c;
  background: linear-gradient(135deg, var(--cyan), #37a7ff);
  box-shadow: 0 12px 30px rgba(0,231,255,.22), inset 0 1px 0 rgba(255,255,255,.45);
}
.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 18px 44px rgba(0,231,255,.34);
}
.btn-secondary {
  color: #e9fbff;
  border-color: rgba(255,255,255,.13);
  background: rgba(255,255,255,.04);
}
.btn-secondary:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background: rgba(0,231,255,.06);
  box-shadow: 0 16px 38px rgba(0,0,0,.24);
}
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 13px; }
.btn span { display: inline-block; transition: transform .2s var(--ease); }
.btn:hover span { transform: translateX(3px); }

/* ============================================================
   TYPOGRAPHY — Space Grotesk headings, DM Sans body
   ============================================================ */
h1, h2, h3, h4, p { margin: 0; overflow-wrap: break-word; }
h1, h2, h3, h4 { font-family: var(--font-head); }

h1 {
  font-size: clamp(40px, 5vw, 70px);
  line-height: 1.08;
  letter-spacing: -.04em;
  font-weight: 700;
  max-width: 860px;
}
h2 {
  font-size: clamp(28px, 3.2vw, 46px);
  line-height: 1.13;
  letter-spacing: -.03em;
  font-weight: 700;
}
h3 {
  font-size: 19px;
  line-height: 1.28;
  letter-spacing: -.015em;
  font-weight: 700;
}
h4 { font-size: 14px; font-weight: 600; }

.lead {
  margin-top: 20px;
  max-width: 680px;
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.72;
  color: #bdd0de;
}
.section-head { margin-bottom: 34px; }
.section-head.center { text-align: center; }
.section-head.center p { margin-inline: auto; }
.section-head p {
  max-width: 720px;
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.72;
}
.eyebrow, .kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--cyan-soft);
  text-transform: uppercase;
  letter-spacing: .13em;
  font-size: 11.5px;
  font-weight: 700;
}
.kicker {
  border: 1px solid rgba(0,231,255,.20);
  border-radius: 999px;
  padding: 8px 13px;
  background: rgba(0,231,255,.07);
  margin-bottom: 18px;
}
.kicker::before, .eyebrow::before { content: "✦"; color: var(--cyan); }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; overflow: hidden; padding: 86px 0 58px; }
.page-hero { padding: 76px 0 48px; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: 56px;
  align-items: center;
}
.hero-copy { position: relative; z-index: 2; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}
.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.hero-points span {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  padding: 7px 12px;
  color: #e2faff;
  font-size: 12.5px;
  font-weight: 600;
}
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 36px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,255,255,.032);
  box-shadow: var(--shadow);
}
.trust-strip b { margin-right: 8px; color: #effcff; font-weight: 700; }
.trust-strip span { color: #9eb4c4; font-weight: 600; font-size: 13.5px; }

/* Hero Visual — 3D phone scene */
.hero-visual {
  position: relative;
  min-height: 580px;
  perspective: 1200px;
  overflow: visible;    /* FIX: don't clip hero visual */
}
.ambient-orbit {
  position: absolute;
  border: 1px solid rgba(0,231,255,.24);
  border-radius: 50%;
  box-shadow: 0 0 42px rgba(0,231,255,.10);
  opacity: .8;
}
.orbit-a { inset: 14% 4%; transform: rotate(-12deg); animation: orbit 20s linear infinite; }
.orbit-b { inset: 20% 12%; transform: rotate(28deg); animation: orbit 28s linear infinite reverse; }
.orbit-c { inset: 28% 20%; transform: rotate(54deg); animation: orbit 36s linear infinite; }
.phone-scene {
  position: absolute;
  left: 50%; top: 50%;
  width: 350px; height: 470px;
  transform-style: preserve-3d;
  transform: translate(-50%,-50%) rotateY(-16deg) rotateX(6deg);
  animation: phoneFloat 7s var(--ease) infinite;
}
.phone {
  position: absolute;
  width: 230px; height: 455px;
  border-radius: 38px;
  padding: 12px;
  background: linear-gradient(145deg, #1c293d, #040813 58%, #25364f);
  border: 1px solid rgba(255,255,255,.17);
  box-shadow: 0 42px 95px rgba(0,0,0,.54), 0 0 58px rgba(0,231,255,.16);
}
.phone-front { left: 60px; top: 8px; }
.phone-back { left: 120px; top: -2px; transform: translateZ(-90px) rotateY(14deg); opacity: .58; }
.phone-screen {
  height: 100%;
  border-radius: 28px;
  background: radial-gradient(circle at 75% 0%, rgba(0,231,255,.2), transparent 30%),
              linear-gradient(180deg, #0d2236, #07101d);
  border: 1px solid rgba(126,238,255,.14);
  overflow: hidden;
  padding: 18px;
}
.phone-screen.muted {
  background: linear-gradient(145deg, rgba(0,231,255,.1), rgba(255,255,255,.02)), #06101d;
}
.screen-head { display: grid; grid-template-columns: 36px 1fr auto; gap: 10px; align-items: center; }
.screen-head b { display: block; font-size: 13px; }
.screen-head small { display: block; color: #8ba4b7; font-size: 10px; }
.screen-head strong { font-size: 14px; color: var(--cyan); }
.avatar-dot {
  width: 36px; height: 36px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  box-shadow: 0 0 20px rgba(0,231,255,.28);
}
.chart-bars {
  height: 94px;
  display: flex;
  align-items: end;
  gap: 9px;
  margin: 24px 0;
  padding: 15px;
  border-radius: 18px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
}
.chart-bars i {
  flex: 1;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--cyan), var(--blue));
  box-shadow: 0 0 16px rgba(0,231,255,.3);
}
.chart-bars i:nth-child(1) { height: 36%; }
.chart-bars i:nth-child(2) { height: 62%; }
.chart-bars i:nth-child(3) { height: 46%; }
.chart-bars i:nth-child(4) { height: 84%; }
.chart-bars i:nth-child(5) { height: 55%; }
.chart-bars i:nth-child(6) { height: 74%; }
.app-mini-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; }
.app-mini-grid span {
  display: grid;
  place-items: center;
  min-height: 48px;
  border-radius: 15px;
  background: rgba(0,231,255,.08);
  border: 1px solid rgba(0,231,255,.14);
  color: #dffcff;
  font-size: 12px;
  font-weight: 700;
}
.screen-list { display: grid; gap: 11px; margin-top: 22px; }
.screen-list i {
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,255,255,.16), rgba(255,255,255,.04));
}
.screen-list i:nth-child(2) { width: 76%; }
.floating-card {
  position: absolute;
  min-width: 140px;
  border: 1px solid rgba(126,238,255,.22);
  border-radius: 18px;
  padding: 13px 15px;
  background: rgba(8,22,36,.74);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 24px 60px rgba(0,0,0,.32), 0 0 30px rgba(0,231,255,.1);
  animation: cardFloat 7s ease-in-out infinite;
}
.floating-card small { display: block; color: #9fb1c2; font-size: 11px; }
.floating-card b { display: block; margin: 4px 0; font-size: 24px; font-weight: 700; }
.floating-card span { color: var(--cyan); font-weight: 700; font-size: 13px; }
.card-a { left: 3%; top: 28%; }
.card-b { right: 1%; top: 38%; animation-delay: .4s; }
.card-c { left: 8%; bottom: 14%; animation-delay: .8s; }

/* ============================================================
   SECTIONS & CARDS
   ============================================================ */
.section { padding: 86px 0; }
.section.compact { padding: 58px 0; }

.grid { display: grid; gap: 18px; }
.cards-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.cards-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.cards-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }

.glass-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(12,32,52,.82), rgba(5,14,26,.80));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 18px 55px rgba(0,0,0,.22);
  transition: transform .26s var(--ease), border-color .26s, box-shadow .26s;
}
.glass-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx,50%) var(--my,0%), rgba(0,231,255,.13), transparent 34%);
  opacity: 0;
  transition: opacity .26s;
  pointer-events: none;
}
.glass-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0,231,255,.22);
  box-shadow: 0 24px 66px rgba(0,0,0,.32), 0 0 28px rgba(0,231,255,.08);
}
.glass-card:hover::before { opacity: 1; }

.service-card {
  display: grid;
  grid-template-columns: 56px minmax(0,1fr);
  gap: 18px;
  padding: 24px;
  align-items: start;
}
.icon-badge {
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 16px;
  color: var(--cyan);
  font-size: 22px;
  font-weight: 700;
  border: 1px solid rgba(0,231,255,.20);
  background: radial-gradient(circle at 30% 20%, rgba(125,247,255,.22), rgba(0,231,255,.06));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 0 24px rgba(0,231,255,.1);
}
.card-body { position: relative; z-index: 1; }
.card-number, .phase {
  display: inline-block;
  color: var(--cyan);
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 8px;
}
.service-card p, .simple p, .model p, .project-info p, .testimonial p {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.65;
}
.card-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.card-meta span, .pill {
  display: inline-flex;
  border: 1px solid rgba(0,231,255,.16);
  border-radius: 999px;
  background: rgba(0,231,255,.06);
  padding: 6px 10px;
  color: #cbf9ff;
  font-size: 12px;
  font-weight: 600;
}
.service-card a, .project-info a {
  display: inline-flex;
  margin-top: 4px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 700;
  gap: 4px;
  transition: gap .2s var(--ease);
}
.service-card a:hover, .project-info a:hover { gap: 8px; }

/* ============================================================
   STATS
   ============================================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(90deg, rgba(0,231,255,.08), rgba(47,155,255,.05), rgba(132,101,255,.05));
  box-shadow: var(--shadow);
}
.stats-grid div {
  padding: 28px 24px;
  text-align: center;
  border-right: 1px solid rgba(126,238,255,.12);
}
.stats-grid div:last-child { border-right: 0; }
.stats-grid b { display: block; color: var(--cyan); font-size: 34px; line-height: 1.1; font-weight: 700; font-family: var(--font-head); }
.stats-grid span { display: block; margin-top: 6px; color: var(--muted); font-size: 13px; }

/* ============================================================
   MARQUEE — FIX overflow
   ============================================================ */
.marquee-section {
  position: relative;
  overflow: hidden;           /* FIX: clip marquee content */
  max-width: 100%;           /* FIX: prevent width blowout */
  padding: 76px 0;
  border-block: 1px solid rgba(126,238,255,.08);
  background: linear-gradient(180deg, rgba(0,231,255,.025), rgba(11,27,45,.18), rgba(0,231,255,.025));
}
.marquee {
  display: flex;
  overflow: hidden;
  margin-top: 18px;
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.marquee-track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: marqueeMove 36s linear infinite;
  will-change: transform;
}
.marquee.reverse .marquee-track {
  animation-direction: reverse;
  animation-duration: 44s;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
  border: 1px solid rgba(126,238,255,.18);
  border-radius: 999px;
  padding: 11px 16px;
  color: #e1fbff;
  font-weight: 600;
  font-size: 13.5px;
  background: linear-gradient(145deg, rgba(9,27,45,.82), rgba(5,14,27,.70));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 14px 32px rgba(0,0,0,.16);
  transition: border-color .2s, box-shadow .2s;
}
.marquee-track span::before {
  content: none;
  display: none;
}
.marquee-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  object-fit: contain;
  opacity: .96;
  filter: drop-shadow(0 0 8px rgba(0,231,255,.42));
}
.marquee-track span:hover {
  border-color: rgba(0,231,255,.36);
  box-shadow: 0 0 20px rgba(0,231,255,.12);
}

/* ============================================================
   PROCESS TIMELINE
   ============================================================ */
.process-section { position: relative; }
.process-timeline {
  position: relative;
  max-width: 1080px;
  margin: 46px auto 0;
  --progress: 0%;
}
.process-line {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 4px;
  transform: translateX(-50%);
  border-radius: 99px;
  background: linear-gradient(180deg, rgba(126,238,255,.18), rgba(126,238,255,.08));
  overflow: hidden;
}
.process-line span {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: var(--progress);
  border-radius: 99px;
  background: linear-gradient(180deg, var(--cyan), var(--blue), var(--cyan));
  box-shadow: 0 0 16px rgba(0,231,255,.9), 0 0 42px rgba(0,231,255,.42);
  transition: height .08s linear;
}
.process-line span::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 16px; height: 16px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 20px rgba(0,231,255,.95), 0 0 46px rgba(0,231,255,.55);
}
.process-step {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0,1fr) 84px minmax(0,1fr);
  align-items: center;
  min-height: 250px;
}
.process-step.right .process-card { grid-column: 3; }
.process-step:not(.right) .process-card { grid-column: 1; }
.process-dot {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  z-index: 3;
  width: 54px; height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 35% 28%, #ecffff, var(--cyan) 28%, #097bb8 64%, #021626 100%);
  border: 1px solid rgba(210,255,255,.72);
  box-shadow: 0 0 22px rgba(0,231,255,.68), 0 0 52px rgba(0,231,255,.30);
}
.process-dot::before {
  content: "";
  position: absolute;
  width: 78px; height: 78px;
  border-radius: 50%;
  border: 1px solid rgba(0,231,255,.24);
  animation: dotPulse 2.6s ease-in-out infinite;
}
.process-dot span { font-size: 13px; font-weight: 700; color: #02131c; }
.process-card { padding: 26px; }
.process-card .icon-badge { margin-bottom: 16px; }
.process-card h3 { font-size: 22px; }
.process-card p { margin-top: 10px; color: #adc0cf; line-height: 1.72; }
.process-card ul, .model ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}
.process-card li, .model li {
  font-size: 12px;
  color: #d2fbff;
  border: 1px solid rgba(0,231,255,.16);
  border-radius: 999px;
  background: rgba(0,231,255,.06);
  padding: 7px 10px;
}

/* ============================================================
   PORTFOLIO / FILTERS
   ============================================================ */
.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
}
.filter-btn {
  border: 1px solid rgba(126,238,255,.16);
  background: rgba(255,255,255,.04);
  color: #dffaff;
  border-radius: 999px;
  padding: 9px 16px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13.5px;
  transition: background .2s, border-color .2s, color .2s;
}
.filter-btn.active, .filter-btn:hover {
  background: rgba(0,231,255,.12);
  border-color: rgba(0,231,255,.32);
  color: #fff;
}
.project-card { display: flex; flex-direction: column; }
.project-preview {
  min-height: 210px;
  position: relative;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: radial-gradient(circle at 75% 18%, rgba(132,101,255,.30), transparent 36%),
              radial-gradient(circle at 20% 80%, rgba(0,231,255,.22), transparent 42%),
              linear-gradient(145deg, #0b1c31, #06101c);
  overflow: hidden;
}
.app-window {
  position: absolute;
  left: 24px; right: 80px;
  top: 42px;
  height: 120px;
  border-radius: 20px;
  border: 1px solid rgba(126,238,255,.20);
  background: rgba(4,13,24,.58);
  box-shadow: 0 22px 50px rgba(0,0,0,.32);
  padding: 18px;
}
.app-window span {
  display: block;
  height: 12px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--cyan), transparent);
  margin-bottom: 12px;
}
.app-window span:nth-child(2) { width: 72%; }
.app-window span:nth-child(3) { width: 52%; }
.mini-phone {
  position: absolute;
  right: 26px; top: 28px;
  width: 72px; height: 146px;
  border-radius: 18px;
  background: #07101d;
  border: 1px solid rgba(255,255,255,.16);
  padding: 14px;
  box-shadow: 0 24px 52px rgba(0,0,0,.42);
}
.mini-phone i {
  display: block;
  height: 15px;
  border-radius: 99px;
  background: rgba(0,231,255,.18);
  margin-bottom: 12px;
}
.project-info { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.project-info > a { margin-top: auto; }
.project-info h3 { margin-top: 10px; }
.project-stats { display: flex; gap: 10px; margin: 16px 0; }
.project-stats span {
  flex: 1;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  padding: 10px;
  background: rgba(255,255,255,.03);
}
.project-stats b { display: block; color: var(--cyan); font-weight: 700; }
.project-stats small { color: var(--muted); font-size: 12px; }

/* FIX: chips-grid - was 5 cols which overflows on medium screens */
.chips-grid { grid-template-columns: repeat(5, minmax(0,1fr)); }
.chip-card { display: flex; align-items: center; gap: 12px; padding: 18px; }
.chip-card .icon-badge { width: 40px; height: 40px; font-size: 17px; }
.chip-card span { font-size: 13.5px; font-weight: 600; }

/* ============================================================
   OTHER CARDS
   ============================================================ */
.simple, .model, .testimonial, .contact-box { padding: 24px; }
.model .icon-badge, .simple .icon-badge { margin-bottom: 15px; }
.split {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: 42px;
  align-items: center;
}
.team-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.team-card {
  text-align: center;
  padding: 22px;
  flex: 1 1 180px;
  max-width: 220px;
}
.avatar {
  width: 72px; height: 72px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(0,231,255,.23), rgba(132,101,255,.23));
  border: 1px solid rgba(0,231,255,.22);
  color: #eaffff;
  font-weight: 700;
  font-size: 14px;
}
.team-card h3 { font-size: 15px; }
.team-card p { color: var(--muted); font-size: 12.5px; margin-top: 4px; }
.timeline-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.timeline-row div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.03);
  text-align: center;
}
.timeline-row b { display: block; color: var(--cyan); margin-bottom: 6px; font-weight: 700; }
.timeline-row span { display: block; color: #c3d4e0; font-size: 13px; }
.stars { color: #ffd766; margin-bottom: 10px; }
.testimonial small { display: block; color: var(--muted); margin-top: 4px; font-size: 12.5px; }

/* ============================================================
   CTA + FAQ
   ============================================================ */
.cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  border: 1px solid rgba(0,231,255,.26);
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(0,231,255,.16), rgba(47,155,255,.08) 48%, rgba(132,101,255,.10));
  box-shadow: var(--shadow);
  padding: 32px;
  overflow: hidden;
}
.cta-card .icon-badge { margin-bottom: 12px; }
.cta-card p { margin-top: 10px; color: #c2d2df; line-height: 1.62; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; flex-shrink: 0; }

.faq-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; margin-top: 22px; }
.faq-item {
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 16px;
  background: rgba(255,255,255,.032);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 17px 18px;
  color: #eaf8ff;
  background: transparent;
  border: 0;
  text-align: left;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background .2s;
}
.faq-question:hover { background: rgba(0,231,255,.04); }
.faq-question span { line-height: 1.35; }
.faq-question b { color: var(--cyan); font-size: 20px; transition: transform .22s var(--ease); flex-shrink: 0; }
.faq-item.open .faq-question b { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .32s var(--ease); }
.faq-answer p { padding: 0 18px 18px; color: #aabccc; line-height: 1.65; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr);
  gap: 22px;
}
.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 14px;
  padding: 28px;
}
.contact-form h2, .contact-form p,
.contact-form .full, .contact-form button { grid-column: 1/-1; }
.contact-form p { color: var(--muted); line-height: 1.6; }
.contact-form label { display: grid; gap: 8px; color: #e9faff; font-size: 13px; font-weight: 600; }
.contact-form input, .contact-form textarea, .contact-form select, .newsletter input {
  width: 100%;
  border: 1px solid rgba(126,238,255,.13);
  border-radius: 12px;
  background: rgba(4,12,24,.72);
  padding: 12px 14px;
  outline: none;
  color: #fff;
  font-size: 14px;
  transition: border-color .2s, box-shadow .2s;
}
.contact-form textarea { min-height: 150px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus,
.contact-form select:focus, .newsletter input:focus {
  border-color: rgba(0,231,255,.48);
  box-shadow: 0 0 0 4px rgba(0,231,255,.08);
}
.contact-side { display: grid; gap: 14px; }
.contact-box .icon-badge { margin-bottom: 12px; }
.contact-box p { margin-top: 8px; color: #dff8ff; }
.contact-box small { display: block; margin-top: 6px; color: var(--muted); }
.map-card {
  min-height: 180px;
  border-radius: 20px;
  border: 1px solid rgba(0,231,255,.18);
  background: linear-gradient(135deg, rgba(0,231,255,.12), transparent),
              repeating-linear-gradient(45deg, rgba(255,255,255,.055) 0 1px, transparent 1px 18px),
              #061527;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 22px;
  gap: 8px;
}
.map-pin {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--cyan);
  color: #02131c;
  box-shadow: 0 0 24px rgba(0,231,255,.7);
}
.map-card span { color: var(--muted); font-size: 13px; }
.map-card-logo {
  width: 190px;
  max-width: 82%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(0,231,255,.26));
}


/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  padding: 64px 0 24px;
  border-top: 1px solid rgba(126,238,255,.08);
  background: rgba(2,6,14,.42);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr .8fr .8fr 1fr 1.1fr;
  gap: 28px;
}
.footer-grid img { width: 185px; }
.footer-grid p { color: var(--muted); line-height: 1.65; margin-top: 12px; font-size: 14px; }
.footer-grid h4 { margin-bottom: 14px; color: #effcff; font-size: 14px; font-weight: 700; }
.footer-grid a { display: block; color: #aebccd; margin: 9px 0; font-size: 13.5px; transition: color .2s; }
.footer-grid a:hover { color: var(--cyan); }
.social-row { display: flex; gap: 8px; margin-top: 18px; }
.social-row a {
  width: 34px; height: 34px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  transition: border-color .2s, background .2s, color .2s;
}
.social-row a:hover { border-color: var(--cyan); background: rgba(0,231,255,.08); color: var(--cyan); }
.newsletter { display: flex; gap: 8px; margin-top: 14px; }
.newsletter input { flex: 1; min-width: 0; }
.newsletter button {
  flex-shrink: 0;
  width: 44px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: #02131c;
  font-weight: 900;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}
.newsletter button:hover { transform: scale(1.06); box-shadow: 0 6px 18px rgba(0,231,255,.3); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,.07);
  margin-top: 38px;
  padding-top: 22px;
  color: #91a5b8;
  font-size: 13px;
}
.footer-bottom div { display: flex; gap: 20px; }
.footer-bottom a { color: #91a5b8; transition: color .2s; }
.footer-bottom a:hover { color: var(--cyan); }

/* ============================================================
   PAGE-SPECIFIC HERO ANIMATIONS
   ============================================================ */

/* Default reveal for all elements */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .65s var(--ease), transform .65s var(--ease);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none !important;
  filter: none !important;
}

/* HOME — slide up (default) */
body[data-page="home"] .hero [data-reveal] {
  transform: translateY(36px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}

/* SERVICES — slide in from left */
body[data-page="services"] .hero [data-reveal] {
  transform: translateX(-40px);
  transition: opacity .65s var(--ease), transform .65s var(--ease);
}

/* PORTFOLIO — scale up + fade */
body[data-page="portfolio"] .hero [data-reveal] {
  transform: scale(0.93) translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}

/* PROCESS — slide in from right */
body[data-page="process"] .hero [data-reveal] {
  transform: translateX(40px);
  transition: opacity .65s var(--ease), transform .65s var(--ease);
}

/* ABOUT — fade + blur */
body[data-page="about"] .hero [data-reveal] {
  transform: translateY(18px);
  filter: blur(5px);
  transition: opacity .75s var(--ease), transform .75s var(--ease), filter .75s var(--ease);
}

/* CONTACT — spring bounce up */
body[data-page="contact"] .hero [data-reveal] {
  transform: translateY(44px);
  transition: opacity .6s var(--ease), transform .65s var(--ease-spring);
}


/* CAREER — soft upward scale reveal */
body[data-page="career"] .hero [data-reveal] {
  transform: scale(0.96) translateY(28px);
  transition: opacity .68s var(--ease), transform .68s var(--ease);
}

/* Process step custom reveal */
.process-step[data-reveal] { transform: translateY(28px); }

/* ============================================================
   KEYFRAMES
   ============================================================ */
@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes phoneFloat {
  0%, 100% { transform: translate(-50%,-50%) rotateY(-16deg) rotateX(6deg) translateY(0); }
  50% { transform: translate(-50%,-50%) rotateY(-12deg) rotateX(8deg) translateY(-14px); }
}
@keyframes cardFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes marqueeMove {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes dotPulse {
  0%, 100% { transform: scale(.86); opacity: .44; }
  50% { transform: scale(1.12); opacity: .9; }
}
@keyframes navGliderIn {
  from { opacity: 0; transform: scaleX(.8); }
  to { opacity: 1; transform: scaleX(1); }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .marquee-track { animation: none; }
  .process-line span { transition: none; }
}

/* ============================================================
   RESPONSIVE — 1120px (Large tablet / small desktop)
   ============================================================ */
@media (max-width: 1120px) {
  .hero-grid, .split, .contact-layout { grid-template-columns: 1fr; }
  .hero-visual { order: 1; min-height: 480px; }
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .cards-3 { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .chips-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }   /* FIX: was 5 cols */
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid div {
    border-right: 1px solid rgba(126,238,255,.12);
    border-bottom: 1px solid rgba(126,238,255,.12);
  }
  .stats-grid div:nth-child(2n) {
    border-right: 0;
  }
  .stats-grid div:nth-child(3),
  .stats-grid div:nth-child(4) {
    border-bottom: 0;
  }
  .timeline-row { grid-template-columns: repeat(3, 1fr); }
  .cta-actions { justify-content: flex-start; }
}

/* ============================================================
   RESPONSIVE — 860px (Tablet)
   ============================================================ */
@media (max-width: 860px) {
  .container { width: calc(100% - 28px); }
  .nav-bar { height: 68px; }
  .brand img { width: 155px; }

  /* Mobile nav — hide pills container, show as dropdown */
  .nav-links {
    position: absolute;
    left: 14px; right: 14px;
    top: 74px;
    display: grid;
    gap: 4px;
    padding: 12px;
    border: 1px solid rgba(0,231,255,.18);
    border-radius: 20px;
    background: rgba(3,10,22,.98);
    backdrop-filter: blur(18px);
    box-shadow: 0 28px 80px rgba(0,0,0,.46);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px) scale(0.98);
    transition: opacity .22s, transform .22s var(--ease);
  }
  .nav-open .nav-links {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }
  .nav-links a { text-align: center; border-radius: 14px; padding: 11px 16px; border: 1px solid transparent; }
  .nav-links a.active {
    color: var(--cyan);
    background: rgba(0, 231, 255, .08);
    border-color: rgba(0, 231, 255, .16);
  }
  .nav-glider { display: none; }    /* Hide glider on mobile */
  .nav-actions .btn { display: none; }
  .menu-toggle { display: flex; }

  .hero, .page-hero { padding: 46px 0; }
  .hero-grid { gap: 18px; }
  h1 { font-size: clamp(36px, 8vw, 54px); line-height: 1.1; letter-spacing: -.032em; }
  .lead { font-size: 16px; }
  .hero-actions { display: grid; grid-template-columns: 1fr; max-width: 420px; }
  .hero-actions .btn { width: 100%; }
  .hero-visual { min-height: 420px; }
  .phone-scene { transform: translate(-50%,-50%) scale(.82) rotateY(-16deg) rotateX(6deg); }
  .floating-card { transform: scale(.86); }
  .card-a { left: 1%; }
  .card-b { right: 0; }
  .card-c { display: none; }

  .section { padding: 64px 0; }
  .section.compact { padding: 44px 0; }

  .process-timeline { max-width: 640px; }
  .process-line { left: 27px; }
  .process-step, .process-step.right {
    grid-template-columns: 54px minmax(0,1fr);
    min-height: auto;
    gap: 14px;
    margin-bottom: 20px;
  }
  .process-step .process-card, .process-step.right .process-card, .process-step:not(.right) .process-card { grid-column: 2; }
  .process-dot { grid-column: 1; width: 44px; height: 44px; }
  .process-dot::before { width: 62px; height: 62px; }
  .process-card { padding: 20px; }
  .process-card h3 { font-size: 19px; }

  .filters {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    padding: 6px 14px;
    margin-inline: -14px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .filters::-webkit-scrollbar {
    display: none;
  }
  .filter-btn {
    flex-shrink: 0;
  }

  .faq-grid, .contact-form { grid-template-columns: 1fr; }
  .contact-form { padding: 22px; }
  .contact-layout { grid-template-columns: 1fr; }

  .chips-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .cta-card { align-items: flex-start; flex-direction: column; }
  .cta-actions { justify-content: flex-start; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { display: block; }
  .footer-bottom div { margin-top: 12px; flex-wrap: wrap; }
  .trust-strip { justify-content: flex-start; }
  .marquee-section { padding: 52px 0; }
  .timeline-row { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   RESPONSIVE — 560px (Mobile)
   ============================================================ */
@media (max-width: 560px) {
  .container { width: calc(100% - 20px); }
  .brand img { width: 140px; }

  h1 { font-size: clamp(32px, 10vw, 42px); line-height: 1.12; letter-spacing: -.022em; }
  h2 { font-size: clamp(26px, 8vw, 32px); line-height: 1.18; }

  .hero-visual { min-height: 320px; overflow: hidden; }
  .phone-scene { transform: translate(-50%,-50%) scale(.60) rotateY(-16deg) rotateX(6deg); }
  .ambient-orbit { inset: 12% -26%; }
  .orbit-b, .orbit-c, .floating-card { display: none; }

  .service-card { grid-template-columns: 1fr; }
  .icon-badge { width: 48px; height: 48px; }

  .cards-3, .cards-4, .team-grid {
    grid-template-columns: 1fr;
  }

  .service-card, .glass-card { padding: 20px; }

  .filters {
    margin-inline: -10px;
    padding: 6px 10px;
  }

  .btn:active { transform: scale(0.97); }
  .filter-btn:active { transform: scale(0.95); }
  .social-row a:active { transform: scale(0.9); }

  .project-preview { min-height: 180px; }
  .project-stats { display: grid; }

  .cta-card { padding: 22px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid img { width: 175px; }
  .newsletter { max-width: 100%; }

  .marquee-track span { font-size: 12.5px; padding: 9px 13px; }
  .process-card ul, .model ul { display: grid; }
  .hero-points span { font-size: 12px; }
  .trust-strip { padding: 14px; }
  .faq-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   FINAL INTEGRATION SAFEGUARDS
   Keeps responsive scale active while transform animations run.
   ============================================================ */
.phone-scene { --phone-scale: 1; }
.floating-card { --card-scale: 1; }
@keyframes phoneFloat {
  0%, 100% { transform: translate(-50%,-50%) scale(var(--phone-scale)) rotateY(-16deg) rotateX(6deg) translateY(0); }
  50% { transform: translate(-50%,-50%) scale(var(--phone-scale)) rotateY(-12deg) rotateX(8deg) translateY(-14px); }
}
@keyframes cardFloat {
  0%, 100% { transform: scale(var(--card-scale)) translateY(0); }
  50% { transform: scale(var(--card-scale)) translateY(-10px); }
}
@media (max-width: 860px) {
  .phone-scene { --phone-scale: .82; }
  .floating-card { --card-scale: .86; }
}
@media (max-width: 560px) {
  .phone-scene { --phone-scale: .60; }
}

/* ============================================================
   MARQUEE CHIP SHRINK FIX v6.1
   Prevents pill items from collapsing into circles while text
   keeps overflowing outside the chip on wide/zoomed screens.
   ============================================================ */
.marquee-track {
  flex: 0 0 max-content;
  min-width: max-content;
}
.marquee-track span {
  flex: 0 0 auto;
  min-width: max-content;
  width: auto;
  max-width: none;
}
.marquee-track span::before {
  flex: 0 0 0;
}
.marquee-icon {
  flex-shrink: 0;
}


/* ============================================================
   ICON SYSTEM + CAREER BUTTON FIX v6.4
   Adds real SVG icons while keeping the existing dark premium UI.
   ============================================================ */
.icon-badge img.site-icon,
.map-pin img.site-icon,
.step-icon img.site-icon,
.pill img.site-icon {
  width: 24px;
  height: 24px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(0,231,255,.48));
}
.chip-card .icon-badge img.site-icon,
.pill img.site-icon {
  width: 18px;
  height: 18px;
}
.map-pin img.site-icon {
  width: 22px;
  height: 22px;
  filter: none;
}
.pill {
  align-items: center;
  gap: 7px;
}
.career-role-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 100%;
}
.career-role-card .card-number,
.career-role-card h3,
.career-role-card p,
.career-role-card ul,
.career-role-card .role-apply {
  position: relative;
  z-index: 1;
}
.career-role-card ul {
  margin-bottom: 0;
}
.role-apply {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  margin-top: auto;
  border: 1px solid rgba(0,231,255,.24);
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(0,231,255,.12), rgba(47,155,255,.08));
  color: #e7fcff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 10px 28px rgba(0,0,0,.18);
  transition: transform .22s var(--ease), border-color .22s, background .22s, box-shadow .22s;
}
.role-apply:hover {
  transform: translateY(-2px);
  border-color: rgba(0,231,255,.44);
  background: linear-gradient(135deg, rgba(0,231,255,.18), rgba(47,155,255,.12));
  box-shadow: 0 16px 36px rgba(0,231,255,.12), inset 0 1px 0 rgba(255,255,255,.10);
}
.role-apply span {
  display: inline-block;
  transition: transform .2s var(--ease);
}
.role-apply:hover span { transform: translateX(3px); }
.step-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  margin: 0 auto 10px;
  border-radius: 14px;
  border: 1px solid rgba(0,231,255,.18);
  background: radial-gradient(circle at 30% 20%, rgba(125,247,255,.18), rgba(0,231,255,.06));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 0 22px rgba(0,231,255,.08);
}
.step-icon img.site-icon {
  width: 19px;
  height: 19px;
}
@media (max-width: 560px) {
  .role-apply {
    width: 100%;
    min-height: 44px;
  }
  .step-icon {
    margin-inline: 0;
  }
}


/* ============================================================
   REQUESTED FINAL FIXES v6.5
   Keep existing design while centering hiring icons and adding social icons.
   ============================================================ */
.timeline-row .step-icon {
  margin-left: auto;
  margin-right: auto;
  justify-self: center;
  align-self: center;
}
.social-row img {
  width: 17px;
  height: 17px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(0,231,255,.44));
}

/* ============================================================
   HIRING PROCESS ICON ALIGNMENT FIX v6.6
   Keeps the same card design while making every icon optically centered.
   ============================================================ */
.timeline-row > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.timeline-row .step-icon {
  position: relative;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  margin: 0 auto 10px !important;
  padding: 0;
  line-height: 0 !important;
}
.timeline-row .step-icon img.site-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: 19px;
  height: 19px;
  margin: 0;
  object-fit: contain;
  object-position: center;
  transform: translate(-50%, -50%);
}
.timeline-row .step-icon[data-icon="email"] img.site-icon { transform: translate(-50%, -50%) translateY(.2px); }
.timeline-row .step-icon[data-icon="user-check"] img.site-icon { width: 20px; height: 20px; transform: translate(-50%, -50%) translateX(.2px); }
.timeline-row .step-icon[data-icon="code"] img.site-icon { transform: translate(-50%, -50%); }
.timeline-row .step-icon[data-icon="chat"] img.site-icon { transform: translate(-50%, -50%) translateY(.2px); }
.timeline-row .step-icon[data-icon="offer"] img.site-icon { width: 20px; height: 20px; transform: translate(-50%, -50%) translateY(.2px); }
.timeline-row .step-icon[data-icon="handshake"] img.site-icon { width: 21px; height: 21px; transform: translate(-50%, -50%); }

/* ============================================================
   PAGE MOTION POLISH v6.7
   Page-specific reveal patterns without changing layout/design.
   Home mobile animation is intentionally left untouched.
   ============================================================ */

body:not([data-page="home"]) [data-reveal] {
  will-change: opacity, transform, filter;
}

/* Hero visual motion: each inner page gets its own subtle rhythm. */
body[data-page="services"] .phone-scene { animation-name: phoneFloatServices; }
body[data-page="portfolio"] .phone-scene { animation-name: phoneFloatPortfolio; }
body[data-page="process"] .phone-scene { animation-name: phoneFloatProcess; }
body[data-page="about"] .phone-scene { animation-name: phoneFloatAbout; }
body[data-page="contact"] .phone-scene { animation-name: phoneFloatContact; }
body[data-page="career"] .phone-scene { animation-name: phoneFloatCareer; }

body[data-page="services"] .floating-card { animation-name: cardFloatServices; }
body[data-page="portfolio"] .floating-card { animation-name: cardFloatPortfolio; }
body[data-page="process"] .floating-card { animation-name: cardFloatProcess; }
body[data-page="about"] .floating-card { animation-name: cardFloatAbout; }
body[data-page="contact"] .floating-card { animation-name: cardFloatContact; }
body[data-page="career"] .floating-card { animation-name: cardFloatCareer; }

/* SERVICES: service cards sweep in like a capability library. */
body[data-page="services"] .service-card[data-reveal]:nth-of-type(3n + 1) { transform: translateX(-38px); }
body[data-page="services"] .service-card[data-reveal]:nth-of-type(3n + 2) { transform: translateY(34px) scale(.97); }
body[data-page="services"] .service-card[data-reveal]:nth-of-type(3n) { transform: translateX(38px); }
body[data-page="services"] .model[data-reveal] { transform: translateY(32px) scale(.96); }
body[data-page="services"] .faq-item[data-reveal]:nth-child(odd) { transform: translateX(-26px); }
body[data-page="services"] .faq-item[data-reveal]:nth-child(even) { transform: translateX(26px); }

/* PORTFOLIO: project cards reveal with a showcase/gallery feel. */
body[data-page="portfolio"] .project-card[data-reveal] {
  transform: translateY(32px) scale(.94);
  filter: saturate(.78);
  transition-duration: .78s;
}
body[data-page="portfolio"] .project-card[data-reveal]:nth-of-type(even) { transform: translateY(36px) scale(.94) rotateX(4deg); }
body[data-page="portfolio"] .stats-grid[data-reveal] { transform: translateY(28px) scale(.97); }
body[data-page="portfolio"] .chip-card[data-reveal] { transform: translateY(24px) scale(.92); transition-duration: .72s; }

/* PROCESS: timeline steps now enter from their own side. */
body[data-page="process"] .process-step[data-reveal]:not(.right) { transform: translateX(-58px); }
body[data-page="process"] .process-step.right[data-reveal] { transform: translateX(58px); }
body[data-page="process"] .cards-4 .glass-card[data-reveal] { transform: translateY(30px) rotateX(5deg); transform-origin: center top; }
body[data-page="process"] .faq-item[data-reveal]:nth-child(odd) { transform: translateX(-24px); }
body[data-page="process"] .faq-item[data-reveal]:nth-child(even) { transform: translateX(24px); }

/* ABOUT: soft blur/scale reveal for story, team, timeline, testimonials. */
body[data-page="about"] .split > div[data-reveal] { transform: translateX(-30px); filter: blur(5px); }
body[data-page="about"] .cards-2 .glass-card[data-reveal] { transform: translateY(30px) scale(.96); filter: blur(4px); }
body[data-page="about"] .team-card[data-reveal] { transform: translateY(34px) scale(.92); filter: blur(3px); }
body[data-page="about"] .timeline-row[data-reveal] { transform: translateY(24px) scaleX(.94); transform-origin: center; }
body[data-page="about"] .testimonial[data-reveal] { transform: translateY(30px) scale(.96); }

/* CONTACT: form comes from left, contact information from right. */
body[data-page="contact"] .contact-form[data-reveal] { transform: translateX(-44px); }
body[data-page="contact"] .contact-side[data-reveal] { transform: translateX(44px); }
body[data-page="contact"] .cards-3 .simple[data-reveal]:nth-of-type(odd) { transform: translateY(34px) scale(.96); }
body[data-page="contact"] .cards-3 .simple[data-reveal]:nth-of-type(even) { transform: translateY(34px) scale(.96) rotateX(4deg); }
body[data-page="contact"] .faq-item[data-reveal]:nth-child(odd) { transform: translateX(-24px); }
body[data-page="contact"] .faq-item[data-reveal]:nth-child(even) { transform: translateX(24px); }

/* CAREER: roles and hiring steps reveal like a hiring flow. */
body[data-page="career"] .stats-grid[data-reveal] { transform: translateY(28px) scale(.96); }
body[data-page="career"] .career-role-card[data-reveal] { transform: translateY(34px) scale(.95); }
body[data-page="career"] .grid.cards-3 .glass-card.simple[data-reveal]:nth-of-type(odd) { transform: translateX(-30px); }
body[data-page="career"] .grid.cards-3 .glass-card.simple[data-reveal]:nth-of-type(even) { transform: translateX(30px); }
body[data-page="career"] .timeline-row[data-reveal] > div {
  opacity: 0;
  transform: translateY(24px) scale(.94);
  transition: opacity .58s var(--ease), transform .58s var(--ease);
}
body[data-page="career"] .timeline-row[data-reveal].is-visible > div {
  opacity: 1;
  transform: none;
}
body[data-page="career"] .timeline-row[data-reveal].is-visible > div:nth-child(1) { transition-delay: 0ms; }
body[data-page="career"] .timeline-row[data-reveal].is-visible > div:nth-child(2) { transition-delay: 70ms; }
body[data-page="career"] .timeline-row[data-reveal].is-visible > div:nth-child(3) { transition-delay: 140ms; }
body[data-page="career"] .timeline-row[data-reveal].is-visible > div:nth-child(4) { transition-delay: 210ms; }
body[data-page="career"] .timeline-row[data-reveal].is-visible > div:nth-child(5) { transition-delay: 280ms; }
body[data-page="career"] .timeline-row[data-reveal].is-visible > div:nth-child(6) { transition-delay: 350ms; }

/* Mobile safety: keep motions light on smaller screens so content feels smooth. */
@media (max-width: 860px) {
  body:not([data-page="home"]) .service-card[data-reveal],
  body:not([data-page="home"]) .project-card[data-reveal],
  body:not([data-page="home"]) .process-step[data-reveal],
  body:not([data-page="home"]) .team-card[data-reveal],
  body:not([data-page="home"]) .testimonial[data-reveal],
  body:not([data-page="home"]) .career-role-card[data-reveal],
  body:not([data-page="home"]) .contact-form[data-reveal],
  body:not([data-page="home"]) .contact-side[data-reveal],
  body:not([data-page="home"]) .faq-item[data-reveal] {
    transform: translateY(22px) scale(.98);
    filter: none;
  }
}

@keyframes phoneFloatServices {
  0%, 100% { transform: translate(-50%,-50%) scale(var(--phone-scale)) rotateY(-18deg) rotateX(7deg) translateY(0); }
  50% { transform: translate(-50%,-50%) scale(var(--phone-scale)) rotateY(-10deg) rotateX(9deg) translateY(-12px); }
}
@keyframes phoneFloatPortfolio {
  0%, 100% { transform: translate(-50%,-50%) scale(var(--phone-scale)) rotateY(-13deg) rotateX(5deg) translateY(0); }
  50% { transform: translate(-50%,-50%) scale(var(--phone-scale)) rotateY(-20deg) rotateX(8deg) translateY(-10px); }
}
@keyframes phoneFloatProcess {
  0%, 100% { transform: translate(-50%,-50%) scale(var(--phone-scale)) rotateY(-18deg) rotateX(8deg) translateY(0); }
  50% { transform: translate(-50%,-50%) scale(var(--phone-scale)) rotateY(-13deg) rotateX(4deg) translateY(-16px); }
}
@keyframes phoneFloatAbout {
  0%, 100% { transform: translate(-50%,-50%) scale(var(--phone-scale)) rotateY(-15deg) rotateX(5deg) translateY(0); }
  50% { transform: translate(-50%,-50%) scale(var(--phone-scale)) rotateY(-11deg) rotateX(7deg) translateY(-9px); }
}
@keyframes phoneFloatContact {
  0%, 100% { transform: translate(-50%,-50%) scale(var(--phone-scale)) rotateY(-20deg) rotateX(6deg) translateY(0); }
  50% { transform: translate(-50%,-50%) scale(var(--phone-scale)) rotateY(-12deg) rotateX(9deg) translateY(-14px); }
}
@keyframes phoneFloatCareer {
  0%, 100% { transform: translate(-50%,-50%) scale(var(--phone-scale)) rotateY(-16deg) rotateX(6deg) translateY(0); }
  50% { transform: translate(-50%,-50%) scale(var(--phone-scale)) rotateY(-8deg) rotateX(8deg) translateY(-13px); }
}

@keyframes cardFloatServices {
  0%, 100% { transform: scale(var(--card-scale)) translateY(0) translateX(0); }
  50% { transform: scale(var(--card-scale)) translateY(-9px) translateX(4px); }
}
@keyframes cardFloatPortfolio {
  0%, 100% { transform: scale(var(--card-scale)) translateY(0) rotateZ(0); }
  50% { transform: scale(var(--card-scale)) translateY(-8px) rotateZ(.8deg); }
}
@keyframes cardFloatProcess {
  0%, 100% { transform: scale(var(--card-scale)) translateY(0) translateX(0); }
  50% { transform: scale(var(--card-scale)) translateY(-11px) translateX(-4px); }
}
@keyframes cardFloatAbout {
  0%, 100% { transform: scale(var(--card-scale)) translateY(0); opacity: .94; }
  50% { transform: scale(var(--card-scale)) translateY(-7px); opacity: 1; }
}
@keyframes cardFloatContact {
  0%, 100% { transform: scale(var(--card-scale)) translateY(0) translateX(0); }
  50% { transform: scale(var(--card-scale)) translateY(-10px) translateX(5px); }
}
@keyframes cardFloatCareer {
  0%, 100% { transform: scale(var(--card-scale)) translateY(0) rotateZ(0); }
  50% { transform: scale(var(--card-scale)) translateY(-9px) rotateZ(-.7deg); }
}


/* ============================================================
   PORTFOLIO APP ICON PREVIEW v6.10
   Replaces generic mockup shapes inside portfolio previews with
   actual app icon images or generated app-icon pictures.
   ============================================================ */
.app-icon-preview {
  display: flex;
  align-items: center;
  justify-content: center;
}
.app-icon-stage {
  position: relative;
  width: 148px;
  height: 148px;
  display: grid;
  place-items: center;
}
.app-icon-glow {
  position: absolute;
  inset: -22px;
  border-radius: 44px;
  background: radial-gradient(circle, rgba(0,231,255,.34), rgba(132,101,255,.10) 46%, transparent 70%);
  filter: blur(14px);
  opacity: .9;
}
.project-app-icon {
  position: relative;
  width: 116px;
  height: 116px;
  border-radius: 28px;
  object-fit: cover;
  box-shadow: 0 24px 54px rgba(0,0,0,.42), 0 0 0 1px rgba(255,255,255,.18), 0 0 34px rgba(0,231,255,.18);
}
.project-card:hover .project-app-icon {
  transform: translateY(-4px) scale(1.035);
  transition: transform .28s ease, box-shadow .28s ease;
  box-shadow: 0 30px 70px rgba(0,0,0,.48), 0 0 0 1px rgba(255,255,255,.22), 0 0 42px rgba(0,231,255,.26);
}
@media (max-width: 640px) {
  .app-icon-stage { width: 132px; height: 132px; }
  .project-app-icon { width: 104px; height: 104px; border-radius: 24px; }
}
