/* ===== ROOT VARIABLES ===== */
:root {
  --white: #FFFFFF;
  --off-white: #F8F9FA;
  --light-grey: #F1F3F4;
  --border: #E8EAED;
  --text-primary: #0D0D0D;
  --text-secondary: #5F6368;
  --text-light: rgba(255,255,255,0.85);
  --text-light-dim: rgba(255,255,255,0.55);
  --dark-bg: #0D0D12;
  --dark-card: #16161F;
  --blue: #4285F4;
  --red: #EA4335;
  --yellow: #FBBC04;
  --green: #34A853;
  --purple: #9B72CF;
  --teal: #00BCD4;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --radius-xl: 48px;
  --shadow-sm: 0 2px 12px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.10);
  --shadow-lg: 0 24px 60px rgba(0,0,0,0.14);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--white);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.loading { overflow: hidden; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ===== PAGE LOADER ===== */
.page-loader {
  position: fixed;
  inset: 0;
  background: var(--dark-bg);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.page-loader.done { opacity: 0; visibility: hidden; }
.loader-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  color: white;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -1px;
}
.loader-bar {
  width: 200px;
  height: 2px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  overflow: hidden;
}
.loader-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--purple));
  border-radius: 2px;
  animation: loaderFill 1.4s ease forwards;
}
@keyframes loaderFill {
  from { width: 0%; }
  to { width: 100%; }
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 2000;
  transition: var(--transition);
}
.navbar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  backdrop-filter: blur(0px);
  transition: var(--transition);
  border-bottom: 1px solid transparent;
}
.navbar.scrolled::before {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
}
.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo-img { width: 36px; height: 36px; object-fit: contain; border-radius: 8px; }
.logo-text {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.4px;
  color: var(--text-primary);
}
.logo-thin { font-weight: 400; opacity: 0.6; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-link {
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 100px;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
  background: var(--light-grey);
}
.dropdown-caret {
  transition: transform var(--transition);
}
.nav-actions { display: flex; align-items: center; gap: 12px; }

/* ===== DROPDOWN ===== */
.nav-dropdown-wrap { position: relative; }
.nav-dropdown-wrap:hover .dropdown-caret { transform: rotate(180deg); }
.nav-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  width: 780px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  pointer-events: none;
  z-index: 500;
  /* Bridge: extends invisible hover area above dropdown to fill the gap */
  padding-top: 0;
}
/* Invisible bridge pseudo-element so mouse can travel from nav link to dropdown */
.nav-dropdown::before {
  content: '';
  position: absolute;
  top: -16px;
  left: 0;
  right: 0;
  height: 16px;
}
.nav-dropdown-wrap:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: all;
}

/* Fallback for when hover is unreliable or on larger tablets that use touch */
.nav-dropdown-wrap.open .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: all;
}
.dropdown-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 200px;
  gap: 0;
  padding: 24px;
}
.dropdown-col {
  padding: 0 16px;
  border-right: 1px solid var(--border);
}
.dropdown-col:first-child { padding-left: 0; }
.dropdown-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 8px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  margin-bottom: 2px;
}
.dropdown-item:hover { background: var(--light-grey); }
.di-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.di-icon svg { width: 16px; height: 16px; }
.di-title { font-size: 13px; font-weight: 600; color: var(--text-primary); line-height: 1.3; }
.di-sub { font-size: 11px; color: var(--text-secondary); }
.dropdown-promo {
  padding-left: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.dropdown-promo-img {
  width: 100%;
  border-radius: var(--radius-md);
  object-fit: cover;
  aspect-ratio: 1/1;
}
.dp-tag { font-size: 11px; font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: 1px; }
.dp-title { font-size: 13px; font-weight: 600; color: var(--text-primary); line-height: 1.4; }
.dp-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: white !important;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: 0 10px 20px rgba(66, 133, 244, 0.2);
  margin-top: 16px;
  width: fit-content;
}
.dp-link-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(66, 133, 244, 0.3);
  filter: brightness(1.1);
}

/* ===== HAMBURGER ===== */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 100px;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  letter-spacing: -0.1px;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: var(--transition);
  border-radius: inherit;
}
.btn:hover::after { background: rgba(255,255,255,0.08); }
.btn-lg { padding: 14px 32px; font-size: 16px; }
.btn-primary { background: var(--text-primary); color: var(--white); border-color: var(--text-primary); }
.btn-primary:hover { background: #333; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-dark { background: var(--text-primary); color: var(--white); }
.btn-dark:hover { background: #1a1a1a; transform: translateY(-2px); box-shadow: 0 12px 40px rgba(0,0,0,0.3); }
.btn-light { background: var(--light-grey); color: var(--text-primary); }
.btn-light:hover { background: var(--border); transform: translateY(-2px); }
.btn-outline { background: transparent; border-color: var(--border); color: var(--text-primary); }
.btn-outline:hover { background: var(--light-grey); transform: translateY(-1px); }
.btn-white { background: var(--white); color: var(--text-primary); }
.btn-white:hover { background: var(--off-white); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-ghost { background: rgba(255,255,255,0.12); color: var(--white); border-color: rgba(255,255,255,0.25); }
.btn-ghost:hover { background: rgba(255,255,255,0.22); transform: translateY(-2px); }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--white);
  padding: 120px 32px 80px;
}
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../assets/portfolio_showcase.png');
  background-size: cover;
  background-position: center;
  z-index: 0;
  opacity: 0.12;
}
#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,1) 95%);
  z-index: 1;
}
/* Orb glows — Antigravity style */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
  animation: orbFloat 8s ease-in-out infinite;
  z-index: 2;
}
.hero-orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(66,133,244,0.18), transparent 70%);
  top: -100px; left: -150px;
  animation-delay: 0s;
}
.hero-orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(155,114,207,0.15), transparent 70%);
  top: 50%; right: -100px;
  animation-delay: -3s;
}
.hero-orb-3 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(234,67,53,0.1), transparent 70%);
  bottom: -80px; left: 30%;
  animation-delay: -5s;
}
@keyframes orbFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 900px;
  width: 100%;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--light-grey);
  border: 1px solid var(--border);
  padding: 7px 18px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 32px;
  animation: fadeSlideUp 0.8s ease both;
}
.badge-dot {
  width: 7px; height: 7px;
  background: var(--green);
  border-radius: 50%;
  animation: pulseDot 2s infinite;
  flex-shrink: 0;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(52,168,83,0.4); }
  50% { opacity: 0.8; box-shadow: 0 0 0 5px rgba(52,168,83,0); }
}

.hero-headline {
  font-size: clamp(34px, 8vw, 82px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -2px;
  color: var(--text-primary);
  margin-bottom: 28px;
  min-height: 3.5em; /* prevents mobile height jumping during typing */
  animation: fadeSlideUp 0.8s 0.1s ease both;
}

@media (max-width: 500px) {
  .hero-headline {
    min-height: 4.5em; /* Extra buffer space to completely halt vertical shifts on narrow phones */
  }
}
.gradient-text {
  background: linear-gradient(135deg, var(--blue) 0%, var(--purple) 50%, var(--red) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% auto;
  animation: gradientShift 4s ease infinite;
}
@keyframes gradientShift {
  0% { background-position: 0% center; }
  50% { background-position: 100% center; }
  100% { background-position: 0% center; }
}

/* Typewriter cursor */
.typewriter-cursor {
  display: inline-block;
  width: 3px;
  height: 0.85em;
  background: var(--blue);
  margin-left: 2px;
  vertical-align: middle;
  animation: cursorBlink 0.8s step-end infinite;
  border-radius: 2px;
}
@keyframes cursorBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.hero-sub {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto 42px;
  line-height: 1.75;
  animation: fadeSlideUp 0.8s 0.2s ease both;
}
.hero-sub strong { color: var(--text-primary); }

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 56px;
  animation: fadeSlideUp 0.8s 0.3s ease both;
  flex-wrap: wrap;
}

/* Hero visual card */
.hero-visual-card {
  position: relative;
  max-width: 700px;
  margin: 0 auto 48px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  animation: fadeSlideUp 0.9s 0.35s ease both;
  transform-style: preserve-3d;
}
.hero-visual-img {
  width: 100%;
  display: block;
  border-radius: var(--radius-lg);
  transition: transform 0.6s ease;
}
.hero-visual-card:hover .hero-visual-img { transform: scale(1.02); }
.hvc-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.4) 0%, transparent 60%);
  border-radius: inherit;
  display: flex;
  align-items: flex-end;
  padding: 24px;
}
.hvc-tags { display: flex; gap: 8px; }
.hvc-tag {
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  color: white;
  backdrop-filter: blur(12px);
}
.hvc-tag.blue { background: rgba(66,133,244,0.7); }
.hvc-tag.purple { background: rgba(155,114,207,0.7); }
.hvc-tag.green { background: rgba(52,168,83,0.7); }

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--light-grey);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 22px 40px;
  animation: fadeSlideUp 0.8s 0.45s ease both;
  flex-wrap: wrap;
  gap: 8px;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 28px;
}
.stat-num {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -1px;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.stat-divider { width: 1px; height: 32px; background: var(--border); }

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.scroll-text { font-size: 11px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--text-secondary); opacity: 0.5; }
.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--blue), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { transform: scaleY(0) translateY(0); transform-origin: top; opacity: 1; }
  50% { transform: scaleY(1) translateY(0); transform-origin: top; opacity: 1; }
  100% { transform: scaleY(1) translateY(100%); transform-origin: top; opacity: 0; }
}

/* ===== MARQUEE ===== */
.marquee-band {
  background: var(--text-primary);
  overflow: hidden;
  padding: 14px 0;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 24px;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
.marquee-band:hover .marquee-track { animation-play-state: paused; }
.marquee-track .sep { color: var(--blue); font-size: 14px; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===== SECTIONS ===== */
.section { padding: 120px 0; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.section-header { margin-bottom: 64px; }
.section-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
}
.section-eyebrow.light { color: rgba(255,255,255,0.45); }
.section-headline {
  font-size: clamp(36px, 4.5vw, 58px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -2px;
  color: var(--text-primary);
}
.section-headline.center { text-align: center; }
.section-headline.light { color: var(--white); }
.section-sub { font-size: 18px; color: var(--text-secondary); margin-top: 16px; max-width: 560px; line-height: 1.7; }
.section-sub.center { text-align: center; margin: 16px auto 0; }
.section-body { font-size: 16px; color: var(--text-secondary); line-height: 1.85; margin-bottom: 20px; }
.section-body strong { color: var(--text-primary); }
.section-body.light { color: rgba(255,255,255,0.65); }
.section-body.light strong { color: var(--white); }

/* ===== SPLIT LAYOUT ===== */
.section-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.section-split.reverse { direction: rtl; }
.section-split.reverse > * { direction: ltr; }

/* ===== ABOUT SECTION ===== */
.about-section { background: var(--off-white); }

/* Image showcase */
.image-showcase {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: visible;
}
.showcase-img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  display: block;
}
.showcase-badge {
  position: absolute;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-md);
  animation: floatBadge 4s ease-in-out infinite;
  z-index: 10;
}
.sb-1 { bottom: -20px; left: -20px; animation-delay: 0s; }
.sb-2 { top: -20px; right: -20px; animation-delay: -2s; }
@keyframes floatBadge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.sb-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; color: white; flex-shrink: 0;
}
.sb-icon.green { background: linear-gradient(135deg, var(--green), #00C853); }
.sb-icon.blue { background: linear-gradient(135deg, var(--blue), #00BCD4); }
.sb-num { font-size: 16px; font-weight: 800; letter-spacing: -0.5px; color: var(--text-primary); }
.sb-label { font-size: 11px; color: var(--text-secondary); font-weight: 500; }

/* ===== FEATURED SERVICE ROWS ===== */
.featured-service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 80px;
  padding: 48px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  transition: var(--transition);
}
.featured-service-row:hover { box-shadow: var(--shadow-lg); border-color: rgba(66,133,244,0.2); }
.featured-service-row.reverse { direction: rtl; }
.featured-service-row.reverse > * { direction: ltr; }
.fsr-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.fsr-image img {
  width: 100%;
  display: block;
  transition: transform 0.5s ease;
  object-fit: cover;
}
.featured-service-row:hover .fsr-image img { transform: scale(1.03); }
.service-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}
.fsr-title {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 16px;
  color: var(--text-primary);
}
.fsr-desc { font-size: 15px; color: var(--text-secondary); line-height: 1.8; margin-bottom: 20px; }
.fsr-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.fsr-tags span {
  padding: 5px 14px;
  background: var(--light-grey);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

/* ===== SERVICES GRID ===== */
.services-section { background: var(--off-white); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
}
.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(66,133,244,0.04), rgba(155,114,207,0.04));
  opacity: 0;
  transition: var(--transition);
  pointer-events: none;
}
.service-card:hover { border-color: rgba(66,133,244,0.25); transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-card:hover::after { opacity: 1; }

.service-card-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--light-grey);
  flex-shrink: 0;
}
.service-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.service-card:hover .service-card-img img { transform: scale(1.06); }

.service-card > .service-icon,
.service-card > .service-title,
.service-card > .service-desc,
.service-card > .service-arrow { padding-left: 28px; padding-right: 28px; }
.service-card > .service-icon { margin-top: 24px; }
.service-card > .service-arrow { padding-bottom: 24px; }

.service-icon {
  width: 48px; height: 48px;
  background: var(--light-grey);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  transition: var(--transition);
}
.service-icon svg { width: 20px; height: 20px; }
.service-icon.blue-icon { background: rgba(66,133,244,0.1); color: var(--blue); }
.service-icon.green-icon { background: rgba(52,168,83,0.1); color: var(--green); }
.service-icon.purple-icon { background: rgba(155,114,207,0.1); color: var(--purple); }
.service-icon.yellow-icon { background: rgba(251,188,4,0.1); color: var(--yellow); }
.service-icon.teal-icon { background: rgba(0,188,212,0.1); color: var(--teal); }
.service-icon.red-icon { background: rgba(234,67,53,0.1); color: var(--red); }
.service-card:hover .service-icon { background: linear-gradient(135deg, var(--blue), var(--purple)); color: white; }

.service-title { font-size: 16px; font-weight: 700; letter-spacing: -0.3px; margin-bottom: 8px; color: var(--text-primary); }
.service-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.7; flex: 1; margin-bottom: 12px; }
.service-arrow { font-size: 18px; color: var(--border); margin-top: auto; transition: var(--transition); }
.service-card:hover .service-arrow { color: var(--blue); transform: translateX(4px); }

/* ===== DARK SECTION ===== */
.dark-section { background: var(--dark-bg); position: relative; overflow: hidden; }
.dark-section::before {
  content: '';
  position: absolute;
  top: -200px; left: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(66,133,244,0.1), transparent 70%);
  pointer-events: none;
}
.dark-section::after {
  content: '';
  position: absolute;
  bottom: -150px; right: -150px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(155,114,207,0.08), transparent 70%);
  pointer-events: none;
}
.dark-particles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }

.feature-list { margin: 28px 0 36px; }
.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  font-size: 15px;
  color: rgba(255,255,255,0.65);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: var(--transition);
}
.feature-item:hover { color: rgba(255,255,255,0.9); }
.feature-item:last-child { border-bottom: none; }
.feature-check {
  width: 22px; height: 22px;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: white; font-weight: 700; flex-shrink: 0;
}

/* Dark showcase image */
.dark-showcase { border-radius: var(--radius-lg); }
.dark-showcase .showcase-img { border-radius: var(--radius-lg); }

/* Floating Cards */
.floating-card-stack { display: flex; flex-direction: column; gap: 14px; }
.floating-card {
  background: var(--dark-card);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: var(--transition);
  animation: floatCard 6s ease-in-out infinite;
}
.floating-card:hover { border-color: rgba(66,133,244,0.4); transform: translateX(8px) !important; }
.fc-1 { animation-delay: 0s; }
.fc-2 { animation-delay: -2.5s; }
@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.fc-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.fc-icon svg { width: 17px; height: 17px; }
.fc-icon.blue { background: rgba(66,133,244,0.15); color: var(--blue); }
.fc-icon.green { background: rgba(52,168,83,0.15); color: var(--green); }
.fc-content { flex: 1; }
.fc-title { font-size: 14px; font-weight: 600; color: var(--white); margin-bottom: 2px; }
.fc-sub { font-size: 12px; color: rgba(255,255,255,0.4); }
.fc-badge {
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.fc-badge.growth { background: rgba(155,114,207,0.15); color: var(--purple); }
.fc-badge.savings { background: rgba(66,133,244,0.15); color: var(--blue); }

/* ===== TESTIMONIALS ===== */
.testimonials-section { background: var(--off-white); }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: var(--transition);
  position: relative;
}
.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 20px; right: 28px;
  font-size: 80px;
  line-height: 1;
  color: var(--light-grey);
  font-family: Georgia, serif;
  pointer-events: none;
}
.testimonial-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.stars { color: var(--yellow); font-size: 15px; letter-spacing: 2px; margin-bottom: 18px; }
.testimonial-text { font-size: 15px; color: var(--text-secondary); line-height: 1.8; margin-bottom: 24px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: white; flex-shrink: 0;
}
.av-1 { background: linear-gradient(135deg, var(--blue), var(--purple)); }
.av-2 { background: linear-gradient(135deg, var(--green), var(--teal)); }
.av-3 { background: linear-gradient(135deg, var(--red), var(--yellow)); }
.author-name { font-size: 14px; font-weight: 700; color: var(--text-primary); }
.author-role { font-size: 12px; color: var(--text-secondary); }

/* ===== PRICING PREVIEW ===== */
.pricing-preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.pricing-preview-card {
  background: var(--dark-bg);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.pricing-card-img { width: 100%; height: 240px; object-fit: cover; display: block; }
.ppc-text { padding: 32px; }
.ppc-text h3 { font-size: 22px; font-weight: 700; color: var(--white); margin-bottom: 10px; }
.ppc-text p { font-size: 14px; color: rgba(255,255,255,0.55); line-height: 1.7; }
.pricing-preview-highlights { display: flex; flex-direction: column; gap: 16px; }
.pph-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: var(--transition);
}
.pph-item:hover { transform: translateX(6px); border-color: rgba(66,133,244,0.3); box-shadow: var(--shadow-sm); }
.pph-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.pph-icon svg { width: 20px; height: 20px; }
.pph-icon.blue { background: rgba(66,133,244,0.1); color: var(--blue); }
.pph-icon.purple { background: rgba(155,114,207,0.1); color: var(--purple); }
.pph-icon.green { background: rgba(52,168,83,0.1); color: var(--green); }
.pph-icon.red { background: rgba(234,67,53,0.1); color: var(--red); }
.pph-title { font-size: 15px; font-weight: 600; color: var(--text-primary); }
.pph-price { font-size: 13px; color: var(--text-secondary); margin-top: 2px; }

/* ===== CTA ===== */
.cta-section { padding: 80px 0 120px; }
.cta-card {
  background: var(--dark-bg);
  border-radius: var(--radius-xl);
  padding: 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(60px);
}
.cta-orb-1 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(66,133,244,0.2), transparent);
  top: -100px; left: -100px;
}
.cta-orb-2 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(155,114,207,0.2), transparent);
  bottom: -100px; right: -100px;
}
.cta-content { position: relative; z-index: 2; }
.cta-headline {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  letter-spacing: -2.5px;
  color: var(--white);
  margin-bottom: 20px;
  line-height: 1.05;
}
.cta-sub { font-size: 18px; color: rgba(255,255,255,0.55); max-width: 520px; margin: 0 auto 40px; line-height: 1.75; }
.cta-btns { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* ===== FOOTER ===== */
.footer {
  background: var(--white);
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}
.footer-wordmark {
  position: absolute;
  top: -20px; left: 50%;
  transform: translateX(-50%);
  font-size: clamp(100px, 18vw, 220px);
  font-weight: 900;
  letter-spacing: -8px;
  color: var(--light-grey);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  z-index: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  position: relative;
  z-index: 1;
  padding-bottom: 60px;
}
.footer-brand { display: flex; flex-direction: column; gap: 16px; }
.footer-logo { margin-bottom: 4px; }
.footer-tagline { font-size: 14px; color: var(--text-secondary); line-height: 1.7; max-width: 280px; }
.social-links { display: flex; gap: 8px; margin-top: 4px; }
.social-link {
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary);
  transition: var(--transition);
}
.social-link svg { width: 15px; height: 15px; }
.social-link:hover { background: var(--text-primary); border-color: var(--text-primary); color: var(--white); transform: translateY(-3px); }
.footer-col-title { font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-primary); margin-bottom: 20px; }
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a { font-size: 14px; color: var(--text-secondary); transition: var(--transition); display: inline-block; }
.footer-links a:hover { color: var(--text-primary); transform: translateX(4px); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative; z-index: 1;
  font-size: 13px;
  color: var(--text-secondary);
  flex-wrap: wrap; gap: 12px;
}
.footer-legal { display: flex; gap: 24px; }
.footer-legal a { color: var(--text-secondary); font-size: 13px; transition: var(--transition); }
.footer-legal a:hover { color: var(--text-primary); }

/* ===== REVEAL ANIMATIONS ===== */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeSlideLeft {
  from { opacity: 0; transform: translateX(28px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeSlideRight {
  from { opacity: 0; transform: translateX(-28px); }
  to { opacity: 1; transform: translateX(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.75s cubic-bezier(0.4,0,0.2,1), transform 0.75s cubic-bezier(0.4,0,0.2,1);
}
.reveal.from-left { transform: translateX(-36px); }
.reveal.from-right { transform: translateX(36px); }
.reveal.visible { opacity: 1; transform: translate(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ===== INNER PAGES ===== */
.page-hero {
  padding: 160px 32px 80px;
  background: var(--off-white);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(66,133,244,0.07), transparent 60%);
  pointer-events: none;
}
.page-hero-content { position: relative; z-index: 1; }
.page-hero h1 {
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 800;
  letter-spacing: -2.5px;
  line-height: 1.08;
  margin-bottom: 20px;
}
.page-hero p { font-size: 18px; color: var(--text-secondary); max-width: 540px; margin: 0 auto; line-height: 1.75; }

/* ===== PRICING CARDS ===== */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.pricing-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px; transition: var(--transition); }
.pricing-card.featured { background: var(--dark-bg); border-color: transparent; color: var(--white); transform: scale(1.04); box-shadow: var(--shadow-lg); position: relative; }
.pricing-card:not(.featured):hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.plan-badge { display: inline-flex; padding: 5px 14px; border-radius: 100px; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; background: linear-gradient(135deg, var(--blue), var(--purple)); color: white; margin-bottom: 20px; }
.plan-name { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.plan-price { display: flex; align-items: baseline; gap: 4px; margin-bottom: 8px; }
.price-currency { font-size: 20px; font-weight: 600; color: var(--text-secondary); }
.pricing-card.featured .price-currency { color: rgba(255,255,255,0.5); }
.price-amount { font-size: 52px; font-weight: 800; letter-spacing: -2px; line-height: 1; }
.price-period { font-size: 14px; color: var(--text-secondary); }
.pricing-card.featured .price-period { color: rgba(255,255,255,0.45); }
.plan-desc { font-size: 14px; color: var(--text-secondary); margin-bottom: 28px; line-height: 1.6; }
.pricing-card.featured .plan-desc { color: rgba(255,255,255,0.55); }
.plan-features { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.plan-feature { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-secondary); }
.pricing-card.featured .plan-feature { color: rgba(255,255,255,0.65); }
.plan-feature-check { width: 18px; height: 18px; border-radius: 50%; background: rgba(52,168,83,0.15); color: var(--green); display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; flex-shrink: 0; }

/* ===== CONTACT ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 80px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 28px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.ci-icon { width: 44px; height: 44px; border-radius: var(--radius-sm); background: var(--light-grey); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ci-icon svg { width: 18px; height: 18px; }
.ci-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--text-secondary); margin-bottom: 4px; }
.ci-value { font-size: 15px; font-weight: 500; color: var(--text-primary); }
.form-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 48px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.form-label { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.form-input, .form-select, .form-textarea {
  padding: 14px 18px;
  font-size: 15px;
  font-family: inherit;
  background: var(--off-white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  transition: var(--transition);
  outline: none;
  width: 100%;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--blue);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(66,133,244,0.1);
}
.form-textarea { resize: vertical; min-height: 120px; }

/* ===== SERVICE DETAIL CARDS (inner pages) ===== */
.service-detail-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 60px;
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  transition: var(--transition);
}
.service-detail-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.service-detail-card.alt { background: var(--off-white); }
.sdcard-text { display: flex; flex-direction: column; }
.service-features-list { display: flex; flex-direction: column; gap: 12px; }
.service-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--text-secondary);
}
.service-feature::before {
  content: '✓';
  width: 22px; height: 22px;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: white; font-weight: 700; flex-shrink: 0;
}

/* ===== SCROLL TYPEWRITER CURSOR ===== */
.typewriter-cursor {
  display: inline-block;
  width: 3px;
  height: 0.82em;
  background: var(--blue);
  margin-left: 3px;
  vertical-align: middle;
  animation: cursorBlink 0.75s step-end infinite;
  border-radius: 2px;
  flex-shrink: 0;
}
/* White cursor for dark backgrounds */
.light .typewriter-cursor,
.cta-headline .typewriter-cursor,
.dark-section .typewriter-cursor {
  background: rgba(255,255,255,0.85);
}
@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
/* Prevent layout collapse when visible:hidden */
[data-scroll-type] {
  min-height: 1.2em;
}

@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .pricing-card.featured { transform: scale(1); }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .pricing-preview-grid { grid-template-columns: 1fr; }
  .nav-dropdown { width: 600px; }
  .dropdown-inner { grid-template-columns: 1fr 1fr; }
  .dropdown-promo { display: none; }
  .featured-service-row { gap: 40px; padding: 36px; }
}

@media (max-width: 768px) {
  .section-split, .section-split.reverse { grid-template-columns: 1fr; direction: ltr; gap: 48px; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-actions .btn { display: none; }
  .hamburger { display: flex; }
  .hero-stats { padding: 16px 20px; }
  .stat-item { padding: 0 16px; }
  .cta-card { padding: 56px 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-wordmark { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .service-detail-card { grid-template-columns: 1fr; padding: 36px 28px; gap: 32px; }
  .featured-service-row { grid-template-columns: 1fr; direction: ltr !important; padding: 28px; gap: 28px; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px 24px;
    gap: 4px;
    z-index: 999;
    box-shadow: var(--shadow-md);
  }
  .nav-dropdown { 
    display: block !important; 
    position: static;
    transform: none;
    width: 100% !important; /* Constrain to viewport */
    max-width: 100%;
    opacity: 1 !important; /* Force visibility */
    visibility: visible !important; /* Force visibility */
    box-shadow: none;
    border: none;
    padding: 0;
    pointer-events: all;
  }
  
  /* Hide the desktop grid on mobile */
  .dropdown-inner { display: none !important; }

  /* Mobile Nested Services Menu */
  .mobile-services-list {
    display: none;
    flex-direction: column;
    padding-left: 20px;
    gap: 8px;
    margin-top: 8px;
    border-left: 2px solid var(--border);
  }
  .mobile-services-list.open { display: flex; }
  .mobile-service-link {
    font-size: 14px;
    color: var(--text-secondary);
    padding: 8px 0;
    text-decoration: none;
    transition: color 0.2s;
  }
  .mobile-service-link:active { color: var(--blue); }
}

@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; width: 100%; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .stat-divider { display: none; }
  .hero-stats { gap: 4px; }
  .hero-visual-card { 
    display: block; 
    margin-top: 24px; 
    margin-bottom: 24px; 
  }
}
