/* ==========================================================================
   21timesai — Design System
   Dark, high-tech aesthetic: near-black surfaces, cyan/violet glow accents,
   glassmorphism panels, subtle motion.
   ========================================================================== */

:root {
  /* Surfaces — muted navy, restrained (Cognizant/Infosys influenced) */
  --bg: #0a1130;
  --bg-alt: #0d1638;
  --bg-elevated: #101a40;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-hover: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);

  /* Accents — used sparingly, not as full-bleed glow */
  --cyan: #3fb8d4;
  --cyan-strong: #6cd0e8;
  --violet: #6a6ad8;
  --violet-strong: #8f8fe8;
  --amber: #f59e0b;
  --electric-blue: #2f5fc4;
  --electric-blue-deep: #0a1a5a;
  --pink: #d46ca8;

  /* Text on dark */
  --text: #eef1f7;
  --text-dim: #a3acc2;
  --text-faint: #6b7590;

  /* Text on light (hero white frame, Contact page) */
  --navy-ink: #00003f;
  --navy-ink-dim: #4a5568;
  --light-bg: #ffffff;
  --light-bg-alt: #f5f7fa;

  /* Gradients — muted, used sparingly on accents only */
  --grad-primary: linear-gradient(135deg, var(--cyan) 0%, var(--violet) 100%);
  --grad-radial-glow: radial-gradient(circle, rgba(63, 184, 212, 0.18) 0%, rgba(106, 106, 216, 0.08) 45%, transparent 70%);

  /* Shape */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Ambient background glow, fixed behind all content */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 900px 600px at 12% -5%, rgba(63, 184, 212, 0.06), transparent 60%),
    radial-gradient(ellipse 800px 700px at 100% 15%, rgba(106, 106, 216, 0.05), transparent 55%),
    var(--bg);
}

/* Faint grid texture */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 1200px 800px at 50% 0%, black 20%, transparent 75%);
}

img { max-width: 100%; display: block; }

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

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #fff;
}

h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p { color: var(--text-dim); }

.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px;
}

section { position: relative; padding: 96px 0; }
section.tight { padding: 64px 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan-strong);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px 2px rgba(34, 211, 238, 0.7);
}

.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { margin-top: 16px; font-size: 1.08rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad-primary);
  color: #051018;
  box-shadow: 0 8px 30px -8px rgba(34, 211, 238, 0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 36px -8px rgba(34, 211, 238, 0.75); }
.btn-ghost {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover { background: var(--surface-hover); border-color: var(--border-strong); transform: translateY(-2px); }
.btn-sm { padding: 10px 20px; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 0;
  background: transparent;
  transition: top 0.4s var(--ease), padding 0.4s var(--ease);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transition: max-width 0.4s var(--ease), padding 0.4s var(--ease),
    border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
  border-radius: 999px;
  border: 1px solid transparent;
  background: rgba(10, 17, 48, 0);
}
/* Scrolled state: condense into a floating pill, Infosys-style */
.site-header.scrolled {
  top: 16px;
  padding: 0;
}
.site-header.scrolled .container {
  max-width: 960px;
  padding: 10px 12px 10px 24px;
  background: rgba(10, 17, 48, 0.85);
  backdrop-filter: blur(20px) saturate(140%);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 50px -18px rgba(0, 0, 0, 0.55);
}

/* Light-frame state: nav sits over a white/light background (hero Frame 1) */
.site-header.on-light .logo,
.site-header.on-light .nav-links a,
.site-header.on-light .dropdown-toggle {
  color: var(--navy-ink);
}
.site-header.on-light .menu-toggle span {
  background: var(--navy-ink);
}
.site-header.on-light .nav-links a:hover,
.site-header.on-light .dropdown-toggle:hover { color: var(--electric-blue); }

.logo {
  display: inline-block;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: #fff;
  transition: color 0.4s var(--ease);
}
.logo .ai-mark { position: relative; }
.logo .ai-mark::before {
  content: '';
  position: absolute;
  top: -0.42em;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5eead4, #38bdf8);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
  white-space: nowrap;
}
.nav-links a {
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--text-dim);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s;
}
.nav-links a:hover { color: #fff; }
.nav-links a.active { color: #fff; }
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 2px;
  background: var(--grad-primary);
  border-radius: 2px;
}

/* ---------- Dropdown nav (Expertise) ---------- */
.has-dropdown { position: relative; }
.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--text-dim);
  padding: 6px 0;
  transition: color 0.2s;
}
.has-dropdown:hover .dropdown-toggle,
.dropdown-toggle.open { color: #fff; }
.dropdown-toggle .caret { font-size: 0.7rem; transition: transform 0.25s var(--ease); }
.dropdown-toggle.open .caret { transform: rotate(180deg); }

.dropdown-menu {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 300px;
  list-style: none;
  padding: 10px;
  border-radius: var(--radius);
  background: rgba(9, 13, 23, 0.92);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(20px);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
  z-index: 50;
}
.has-dropdown:hover .dropdown-menu,
.dropdown-menu.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.dropdown-menu li a {
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--text-dim);
  transition: background 0.2s, color 0.2s;
}
.dropdown-menu li a:hover { background: var(--surface-hover); color: #fff; }

.header-cta { display: flex; align-items: center; gap: 14px; }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 200;
}
.menu-toggle span {
  width: 22px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Glass card ---------- */
.glass {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
}

/* Layer 1: pure white background — Frames 1-4 */
.hero-white-bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  background: var(--light-bg);
  transition: opacity 1s var(--ease);
}
.hero-white-bg.faded { opacity: 0; }

/* Layer 2: full-bleed video background — Frame 5 onward, edge to edge, no framing */
.hero-video-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0;
  transition: opacity 1.3s var(--ease);
}
.hero-video-bg.visible { opacity: 1; }
.hero-video-bg video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-video-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 17, 48, 0) 45%, rgba(10, 17, 48, 0.65) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 100px 24px 60px;
  max-width: 900px;
  margin: 0 auto;
}

.hero-inner .eyebrow {
  justify-content: center;
  color: var(--electric-blue);
  transition: color 0.6s var(--ease);
}
.hero-inner.on-video .eyebrow { color: var(--cyan-strong); }
.hero-inner .eyebrow::before {
  background: var(--electric-blue);
  box-shadow: 0 0 10px 2px rgba(47, 95, 196, 0.6);
  animation: dot-pulse 1.4s ease-in-out infinite;
}
.hero-inner .eyebrow.dot-green::before {
  background: #22c55e;
  box-shadow: 0 0 10px 2px rgba(34, 197, 94, 0.6);
}
@keyframes dot-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.hero-inner h1 {
  max-width: 900px;
  margin: 0 auto 22px;
  color: var(--navy-ink);
  transition: color 0.8s var(--ease);
}
.hero-inner.on-video h1 { color: #fff; }
.hero-inner h1 .accent,
.accent-text {
  background: linear-gradient(120deg, var(--cyan-strong), var(--violet-strong));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-inner h1 .seq { opacity: 1; display: inline-block; }
.hero-inner p.lead {
  font-size: 1.15rem;
  max-width: 620px;
  margin: 0 auto 32px;
  color: var(--navy-ink-dim);
  transition: color 0.8s var(--ease);
}
.hero-inner.on-video p.lead { color: #cdd4e6; }

/* Pill badge — appears after the video finishes */
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 26px;
  padding: 11px 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(14px);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 500;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

/* ---------- Trust strip ---------- */
.trust-strip {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.trust-strip .label {
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 26px;
}
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 64px;
  width: max-content;
  animation: marquee-scroll 26s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.trust-logos span {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-faint);
  opacity: 0.7;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: opacity 0.2s, color 0.2s;
}
.trust-logos span:hover { opacity: 1; color: var(--text-dim); }

/* ---------- Grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; perspective: 1200px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; perspective: 1200px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; perspective: 1200px; }

/* ---------- Benefit / feature card ---------- */
.card {
  padding: 34px 28px;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
  transform-style: preserve-3d;
  will-change: transform;
}
.card:hover { border-color: var(--border-strong); background: var(--surface-hover); }
.card .icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.16), rgba(139, 92, 246, 0.16));
  border: 1px solid var(--border);
  margin-bottom: 20px;
  color: var(--cyan-strong);
}
.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.95rem; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; counter-reset: step; perspective: 1200px; }
.step {
  padding: 32px 26px;
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
}
.step .step-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.6rem;
  font-weight: 700;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.85;
  margin-bottom: 14px;
  display: block;
}
.step h3 { margin-bottom: 10px; }
.step p { font-size: 0.95rem; }
.step-connector {
  display: none;
}

/* ---------- Services grid ---------- */
.service-card {
  padding: 32px 28px;
  scroll-margin-top: 110px;
}
.service-card ul { list-style: none; margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.service-card li {
  font-size: 0.9rem;
  color: var(--text-dim);
  padding-left: 22px;
  position: relative;
}
.service-card li::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan);
}

/* ---------- Testimonials ---------- */
.testimonial {
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.testimonial .quote { font-size: 1.02rem; color: var(--text); font-style: italic; }
.testimonial .author { display: flex; align-items: center; gap: 12px; }
.testimonial .avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border-strong);
}
.testimonial .author-info strong { display: block; font-size: 0.92rem; color: #fff; }
.testimonial .author-info span { font-size: 0.82rem; color: var(--text-faint); }
.stars { color: var(--amber); font-size: 0.85rem; letter-spacing: 2px; }

/* ---------- About preview / split ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.split img, .split .media {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
}
.split .media img,
.split .media video { width: 100%; height: 100%; object-fit: cover; object-position: center 12%; aspect-ratio: 4/3; display: block; background: #000; }
.split .media { position: relative; }
.split .media .listing-tag { z-index: 2; }
.media-caption {
  position: absolute;
  top: 52px; left: 14px;
  z-index: 2;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: rgba(5, 7, 13, 0.6);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  pointer-events: none;
}
.media-caption strong { display: block; font-family: 'Space Grotesk', sans-serif; font-size: 1rem; color: #fff; line-height: 1.2; }
.media-caption span { display: block; font-size: 0.76rem; color: var(--text-dim); margin-top: 2px; }
.stat-row { display: flex; gap: 40px; margin-top: 30px; }
.stat strong {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  background: var(--grad-primary);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat span { font-size: 0.85rem; color: var(--text-faint); }

/* ---------- Manifesto block ---------- */
.manifesto {
  padding: 64px 48px;
  text-align: center;
  position: relative;
}
.manifesto p {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: #fff;
  line-height: 1.55;
  max-width: 820px;
  margin: 0 auto;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 400;
}
.manifesto .one-liner {
  margin-top: 28px;
  font-size: 0.95rem;
  color: var(--cyan-strong);
  font-family: 'Inter', sans-serif;
  font-style: italic;
  letter-spacing: 0.01em;
}

/* ---------- FAQ ---------- */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 22px 0;
}
.faq-item:first-child { padding-top: 0; }
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  gap: 20px;
}
.faq-q h4 { font-family: 'Inter', sans-serif; font-weight: 600; font-size: 1.02rem; color: #fff; }
.faq-q .plus {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  color: var(--cyan-strong);
  transition: transform 0.3s var(--ease);
}
.faq-item.open .plus { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease), margin-top 0.35s var(--ease);
}
.faq-item.open .faq-a { max-height: 240px; margin-top: 14px; }
.faq-a p { font-size: 0.95rem; }

/* ---------- Filter bar ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 44px;
}
.filter-btn {
  padding: 9px 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-dim);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.filter-btn:hover { border-color: var(--border-strong); color: #fff; }
.filter-btn.active {
  background: var(--grad-primary);
  color: #051018;
  border-color: transparent;
  font-weight: 600;
}

/* ---------- Deployment / listing cards ---------- */
.listing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; perspective: 1200px; }
.listing-card {
  overflow: hidden;
  transition: border-color 0.3s var(--ease);
  transform-style: preserve-3d;
  will-change: transform;
}
.listing-card:hover { border-color: var(--border-strong); }
.listing-media { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.listing-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.listing-card:hover .listing-media img { transform: scale(1.06); }
.listing-media video { width: 100%; height: 100%; object-fit: cover; display: block; background: #000; }
.listing-tag {
  position: absolute;
  top: 14px; left: 14px;
  padding: 5px 13px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(5, 7, 13, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-strong);
  color: var(--cyan-strong);
}
.listing-body { padding: 24px; }
.listing-body h3 { margin-bottom: 8px; }
.listing-body p { font-size: 0.92rem; margin-bottom: 16px; }
.listing-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-faint);
}
.listing-meta a { color: var(--cyan-strong); font-weight: 600; }

/* ---------- Final CTA ---------- */
.final-cta {
  padding: 90px 0;
  text-align: center;
  position: relative;
}
.final-cta-inner {
  padding: 72px 40px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.1), rgba(139, 92, 246, 0.1));
  border: 1px solid var(--border-strong);
  position: relative;
  overflow: hidden;
}
.final-cta h2 { margin-bottom: 18px; }
.final-cta p { max-width: 560px; margin: 0 auto 34px; font-size: 1.05rem; }
.final-cta .btn-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}
.contact-form { padding: 40px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--text-dim); }
.field input, .field textarea {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s, background 0.2s;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--cyan);
  background: rgba(34, 211, 238, 0.04);
}
.field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 0.8rem; color: var(--text-faint); margin-top: 14px; text-align: center; }
.form-success {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.35);
  color: var(--cyan-strong);
  font-size: 0.9rem;
  margin-bottom: 20px;
}
.form-success.show { display: flex; }

.info-card { padding: 28px; margin-bottom: 20px; }
.info-row { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 20px; }
.info-row:last-child { margin-bottom: 0; }
.info-row .icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.16), rgba(139, 92, 246, 0.16));
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--cyan-strong);
  flex-shrink: 0;
}
.info-row strong { display: block; color: #fff; font-size: 0.92rem; margin-bottom: 3px; }
.info-row span, .info-row a { font-size: 0.88rem; color: var(--text-dim); }

.map-box {
  aspect-ratio: 16/10;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background:
    linear-gradient(rgba(9, 13, 23, 0.75), rgba(9, 13, 23, 0.85)),
    repeating-linear-gradient(0deg, rgba(34, 211, 238, 0.06) 0px, rgba(34, 211, 238, 0.06) 1px, transparent 1px, transparent 40px),
    repeating-linear-gradient(90deg, rgba(34, 211, 238, 0.06) 0px, rgba(34, 211, 238, 0.06) 1px, transparent 1px, transparent 40px);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  color: var(--text-faint);
  font-size: 0.85rem;
  text-align: center;
  padding: 20px;
}
.map-box .pin {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--grad-primary);
  display: flex; align-items: center; justify-content: center;
  color: #051018;
  box-shadow: 0 0 30px 4px rgba(34, 211, 238, 0.4);
}

.social-links { display: flex; gap: 12px; }
.social-links a {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dim);
  transition: all 0.2s var(--ease);
}
.social-links a:hover { border-color: var(--cyan); color: var(--cyan-strong); transform: translateY(-3px); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  padding: 140px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero .eyebrow { justify-content: center; }
.page-hero p { max-width: 620px; margin: 18px auto 0; font-size: 1.05rem; }

/* Muted navy/blue gradient base for inner-page heroes (restrained, no line texture) */
.hero-glass-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(165deg, #10193f 0%, #0a1130 60%, #070c26 100%);
}

/* Subtle glow accent — muted, single-tone, not a rainbow swirl */
.iridescent-swirl {
  position: absolute;
  z-index: -1;
  top: -18%;
  right: -14%;
  width: 44vw;
  max-width: 520px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(63, 184, 212, 0.16), rgba(106, 106, 216, 0.08) 55%, transparent 75%);
  filter: blur(50px);
  pointer-events: none;
}
.iridescent-swirl.small { width: 36vw; max-width: 420px; opacity: 0.7; top: -30%; right: -12%; }
.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-faint);
  margin-bottom: 18px;
}
.breadcrumb a:hover { color: var(--cyan-strong); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 72px 0 32px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 56px;
}
.footer-brand p { font-size: 0.9rem; margin: 18px 0 24px; max-width: 280px; }
.footer-col h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 18px;
  font-weight: 600;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 0.92rem; color: var(--text-dim); transition: color 0.2s; }
.footer-col a:hover { color: var(--cyan-strong); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-faint);
  flex-wrap: wrap;
  gap: 14px;
}

/* ---------- Scroll reveal ----------
   Default state is visible; GSAP sets the hidden starting state at runtime
   so content still renders if the animation library fails to load. */
.reveal { opacity: 1; }
.reveal.visible { opacity: 1; }

/* ---------- Global Reach (parallax photo section) ---------- */
.global-reach {
  position: relative;
  padding: 130px 0;
  overflow: hidden;
  border-radius: 40px;
}
.global-reach-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.global-reach-media img {
  width: 100%;
  height: 130%;
  object-fit: cover;
  position: absolute;
  top: -15%;
  left: 0;
}
.global-reach-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 7, 13, 0.55) 0%, rgba(5, 7, 13, 0.88) 78%, var(--bg) 100%),
    linear-gradient(90deg, rgba(5, 7, 13, 0.85) 0%, rgba(5, 7, 13, 0.35) 45%, rgba(5, 7, 13, 0.75) 100%);
}
.global-reach .container { position: relative; z-index: 1; }
.global-reach .section-head { max-width: 620px; }
.global-reach .stat-row { flex-wrap: wrap; gap: 40px 48px; }

/* ---------- Card tilt micro-interaction helper ---------- */
[data-tilt] { transform: perspective(1000px); }

/* ---------- Floating Contact-Us side tab ---------- */
.floating-contact-tab {
  position: fixed;
  top: 50%;
  right: 0;
  z-index: 90;
  transform: translateY(-50%) translateX(100%);
  opacity: 0;
  transition: transform 0.45s var(--ease), opacity 0.45s var(--ease);
  pointer-events: none;
}
.floating-contact-tab.visible {
  transform: translateY(-50%) translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.floating-contact-tab a {
  display: flex;
  align-items: center;
  justify-content: center;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  padding: 22px 10px;
  border-radius: 10px 0 0 10px;
  background: var(--grad-primary);
  color: #051018;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  box-shadow: -8px 8px 30px -12px rgba(0, 0, 0, 0.45);
  transition: padding 0.2s var(--ease);
}
.floating-contact-tab a:hover { padding-right: 16px; }

/* ---------- Light page theme (Contact page, Wipro-style) ---------- */
body.light-page { background: var(--light-bg-alt); }
body.light-page::before,
body.light-page::after { display: none; }
body.light-page .site-header:not(.scrolled) .logo,
body.light-page .site-header:not(.scrolled) .nav-links a,
body.light-page .site-header:not(.scrolled) .dropdown-toggle { color: var(--navy-ink); }
body.light-page .site-header:not(.scrolled) .menu-toggle span { background: var(--navy-ink); }
body.light-page .footer-col a,
body.light-page .footer-col h4,
body.light-page .footer-brand p,
body.light-page .footer-bottom { color: var(--navy-ink-dim); }
body.light-page .footer-brand .logo,
body.light-page .footer-col h4 { color: var(--navy-ink); }
body.light-page .site-footer { border-top-color: rgba(0,0,0,0.08); }
body.light-page .social-links a { border-color: rgba(0,0,0,0.12); color: var(--navy-ink-dim); background: #fff; }
body.light-page .form-note { color: var(--navy-ink-dim); }
body.light-page .floating-contact-tab { display: none; }

.light-hero {
  padding: 140px 0 40px;
  text-align: center;
}
.light-hero h1 { color: var(--navy-ink); font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.light-hero p { color: var(--navy-ink-dim); max-width: 560px; margin: 14px auto 0; }

.topic-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 0;
}
.topic-tabs button {
  padding: 9px 20px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  background: #fff;
  color: var(--navy-ink-dim);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.topic-tabs button.active {
  background: var(--electric-blue);
  border-color: var(--electric-blue);
  color: #fff;
}
.topic-tabs button:hover:not(.active) { border-color: var(--electric-blue); color: var(--electric-blue); }

.light-form-wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 48px 0 100px;
}
.light-form {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: 0 30px 70px -40px rgba(0, 0, 0, 0.15);
}
.light-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.light-form .field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.light-form .field label { font-size: 0.85rem; font-weight: 600; color: var(--navy-ink); }
.light-form .field label .req { color: #d64545; }
.light-form input,
.light-form select,
.light-form textarea {
  background: var(--light-bg-alt);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  color: var(--navy-ink);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s, background 0.2s;
}
.light-form input:focus,
.light-form select:focus,
.light-form textarea:focus {
  outline: none;
  border-color: var(--electric-blue);
  background: #fff;
}
.light-form textarea { resize: vertical; min-height: 120px; }
.light-form .btn-primary { background: var(--electric-blue); color: #fff; }
.light-form .form-success {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #16803c;
  font-size: 0.9rem;
  margin-bottom: 20px;
}
.light-form .form-success.show { display: flex; }

/* ---------- Capability cards (Home, hover spotlight) ---------- */
/* Infosys-style: full-round image, content box floats overlapping the image's bottom edge.
   Scale/opacity/z-index on hover are driven by GSAP in main.js so they share one
   source of truth with the tilt system — this block just sets the resting state. */
.capability-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  padding-top: 12px;
  max-width: 1040px;
  margin: 0 auto;
}
.capability-card {
  opacity: 1;
  position: relative;
  z-index: 1;
  cursor: pointer;
}

.capability-card .cap-media {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  position: relative;
  z-index: 1;
}
.capability-card .cap-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.capability-card .cap-media-bpa img { object-position: left center; }
.capability-card .cap-media.art-bpa,
.capability-card .cap-media.art-prompt {
  background: linear-gradient(135deg, #14213d 0%, #2f5fc4 60%, #3fb8d4 100%);
}
.capability-card .cap-media.art-bpa::after,
.capability-card .cap-media.art-prompt::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.18), transparent 60%);
}

.capability-card .cap-body {
  position: relative;
  z-index: 2;
  margin: -64px 22px 0;
  padding: 28px 30px;
  background: rgba(16, 26, 64, 0.94);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: 0 25px 50px -24px rgba(0, 0, 0, 0.55);
  transition: box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.capability-card:hover .cap-body {
  border-color: rgba(63, 184, 212, 0.4);
  box-shadow: 0 30px 60px -24px rgba(47, 95, 196, 0.5);
}
.capability-card h3 { font-size: 1.35rem; margin-bottom: 10px; }
.capability-card p { font-size: 1rem; }

@media (max-width: 860px) {
  .capability-grid { grid-template-columns: 1fr; max-width: 480px; gap: 32px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .iridescent-swirl,
  .hero-glass-bg::after,
  .marquee-track,
  .node,
  .glow-ring {
    animation: none !important;
  }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-3, .grid-4, .listing-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .iridescent-swirl { width: 80vw; top: -10%; right: -30%; }
  .split { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .global-reach { padding: 100px 0; border-radius: 24px; }
}

@media (max-width: 960px) {
  .nav-links, .header-cta .btn-ghost { display: none; }
  .menu-toggle { display: flex; }

  .mobile-nav {
    position: fixed;
    inset: 0;
    background: rgba(5, 7, 13, 0.98);
    backdrop-filter: blur(20px);
    z-index: 150;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 26px;
    padding: 110px 24px 60px;
    overflow-y: auto;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease);
  }
  .mobile-nav.open { opacity: 1; pointer-events: auto; }
  .mobile-nav > a { font-size: 1.4rem; font-family: 'Space Grotesk', sans-serif; color: var(--text); }
  .mobile-nav a.active { color: var(--cyan-strong); }

  .mobile-dropdown { display: flex; flex-direction: column; align-items: center; gap: 18px; width: 100%; }
  .mobile-dropdown-toggle {
    background: none; border: none; cursor: pointer;
    font-size: 1.4rem; font-family: 'Space Grotesk', sans-serif; color: var(--text);
    display: flex; align-items: center; gap: 8px;
  }
  .mobile-dropdown-toggle .caret { font-size: 1rem; transition: transform 0.25s var(--ease); }
  .mobile-dropdown-toggle.open .caret { transform: rotate(180deg); }
  .mobile-dropdown-menu {
    max-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
    transition: max-height 0.4s var(--ease);
  }
  .mobile-dropdown-menu.open { max-height: 700px; padding-top: 4px; }
  .mobile-dropdown-menu a { font-size: 0.95rem; font-family: 'Inter', sans-serif; color: var(--text-dim); text-align: center; }
}

@media (min-width: 961px) {
  .mobile-nav { display: none; }
}

@media (max-width: 720px) {
  section { padding: 64px 0; }
  .grid-3, .grid-4, .grid-2, .listing-grid { grid-template-columns: 1fr; }
  .form-row, .light-form .form-row { grid-template-columns: 1fr; }
  .marquee-track { gap: 32px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .manifesto { padding: 40px 22px; }
  .final-cta-inner { padding: 48px 24px; }
  .hero { border-radius: 0 0 24px 24px; }
  .hero-inner { padding: 20px 0 64px; }
  .ai-ask-input { padding: 6px 6px 6px 18px; }
  .ai-ask-input input { font-size: 0.9rem; }
  .hero-video { margin-top: 40px; border-radius: 16px; }
  .iridescent-swirl { width: 130vw; top: -22%; right: -35%; opacity: 0.4; }
  .global-reach { padding: 80px 0; border-radius: 18px; }
  .global-reach .stat-row { gap: 28px 36px; }
}
