/* Google Fonts moved to HTML <head> for performance */
:root {
  --bg-pure: #0F1115;
  --bg-soft: #161A1F;
  
  /* Harmonized Slate Typography */
  --text-dark: #FFFFFF; /* Pristine White — headings */
  --text-muted: #8A9AAE; /* Muted Silver — body copy */
  --text-light: #E0E6ED;
  --accent: #3A6A8F;
  
  --font-main: 'Inter', sans-serif;
  --font-heading: 'Outfit', sans-serif;
  
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Background Canvas & Orbs */
#bg-canvas {
  position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
  z-index: -1; overflow: hidden; pointer-events: none;
  background: var(--bg-pure);
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(150px);
  opacity: 0.9;
  transition: transform 0.1s linear;
}
.orb-1 { display: none; width: 1200px; height: 1200px; background: rgba(58, 106, 143, 0.15); top: -20%; left: -10%; }
.orb-2 { display: none; width: 1000px; height: 1000px; background: rgba(15, 17, 21, 0.3); top: 30%; right: -10%; }
.orb-3 { display: none; width: 1400px; height: 1400px; background: rgba(58, 106, 143, 0.08); bottom: -30%; left: 10%; }

/* Narrative Scroll Thread */
#scroll-track {
  position: fixed; top: 0; left: 0; width: 4px; height: 100vh;
  background: transparent; z-index: 1000; pointer-events: none;
}
#scroll-progress {
  width: 100%; background: linear-gradient(180deg, #1a3a52, #3A6A8F);
  height: 0%; transition: height 0.1s linear;
}

/* Reset & Global */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; width: 100%; }
body {
  font-family: var(--font-main);
  background-color: var(--bg-pure);
  color: var(--text-dark);
  line-height: 1.6;
  width: 100%;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { font-family: var(--font-main); cursor: pointer; border: none; outline: none; background: transparent; }

/* Navigation */
.navbar {
  position: fixed;
  top: 0; width: 100%;
  background: transparent;
  z-index: 100;
  padding: 2rem 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.6s var(--ease-expo);
}
.navbar.scrolled { 
  padding: 1.25rem 4rem;
}
.nav-brand {
  font-size: 1.25rem;
  font-weight: 600;
  color: #FFFFFF;
  letter-spacing: -0.02em;
}
.nav-links { display: flex; gap: 3rem; align-items: center; }
.nav-link {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  position: relative;
  transition: color 0.4s var(--ease-expo);
}
.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: #3A6A8F;
  transition: width 0.4s var(--ease-expo);
}
.nav-link:hover { color: #FFFFFF; }
.nav-link:hover::after { width: 100%; }

/* Animated Logo */
.brand-container {
  display: flex;
  align-items: center;
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #FFFFFF;
  position: relative;
  transition: letter-spacing 0.4s var(--ease-expo);
}
.brand-container:hover {
  letter-spacing: 6px;
}
.brand-o {
  position: relative;
  width: 1.4rem;
  height: 1.4rem;
  margin: 0 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.brand-o svg {
  position: absolute;
  width: 150%;
  height: 150%;
  overflow: visible;
}
@keyframes spin { 100% { transform: rotate(360deg); } }
@keyframes spin-reverse { 100% { transform: rotate(-360deg); } }
.brand-o .ring-1 {
  animation: spin 8s linear infinite;
  transform-origin: center;
}
.brand-o .ring-2 {
  animation: spin-reverse 4s linear infinite;
  transform-origin: center;
}
.brand-o:after {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  background: #3A6A8F;
  border-radius: 50%;
  box-shadow: 0 0 10px #3A6A8F;
  transition: all 0.3s ease;
}
.brand-container:hover .brand-o:after {
  transform: scale(1.5);
  box-shadow: 0 0 20px #3A6A8F, 0 0 40px #3A6A8F;
}


/* Buttons */
.btn-primary {
  color: #FFFFFF;
  padding: 1.25rem 2.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: 40px;
  background: linear-gradient(135deg, #3A6A8F, #2a5070);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 30px rgba(58, 106, 143, 0.15), inset 0 1px 0 rgba(255,255,255,0.1);
  transition: all 0.6s var(--ease-expo);
  overflow: hidden;
  position: relative;
}
.btn-primary::before {
  content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.6s var(--ease-expo);
}
.btn-primary:hover { 
  transform: translateY(-2px) scale(1.02); 
  background: linear-gradient(135deg, #3A6A8F, #3A6A8F);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 10px 40px rgba(58, 106, 143, 0.3), inset 0 1px 0 rgba(255,255,255,0.2);
}
.btn-primary:hover::before { left: 100%; }

.btn-primary:hover::after {
  transform: translateX(4px);
  opacity: 1;
}

.btn-secondary {
  color: #FFFFFF;
  padding: 1.25rem 2.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: 40px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(58, 106, 143, 0.3);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2), inset 0 0 20px rgba(255,255,255,0.03);
  transition: all 0.6s var(--ease-expo);
}
.btn-secondary:hover { 
  transform: translateY(-2px) scale(1.02); 
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(58, 106, 143, 0.5);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), inset 0 0 20px rgba(255,255,255,0.05);
}

/* Sections & Differentiators */
.section { 
  padding: 8rem 4rem; 
  position: relative; 
  background-color: transparent; 
}
h2 {
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: -0.03em;
}
.gradient-text {
  background: linear-gradient(135deg, #FFFFFF 40%, #3A6A8F 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
/* Frosted glass section for stark visual contrast */
.section.soft { 
  background: rgba(22, 26, 31, 0.6);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.2);
}
.section.soft::before {
  content: '';
  position: absolute;
  inset: 0;
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  z-index: -1;
  pointer-events: none;
}
/* Pure section drops back to the underlying canvas */
.section.pure { 
  background-color: transparent; 
}
.container { max-width: 1200px; margin: 0 auto; }

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: center;
  padding: 0 4rem;
  background: transparent;
}
.hero-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-title {
  white-space: nowrap;
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 800;
  font-family: var(--font-heading);
  line-height: 1.1;
  margin-bottom: 2rem;
  text-align: center;
  letter-spacing: -0.04em;
  color: #D8E2ED; /* Softer off-white */
}
.hero-desc {
  font-size: 1.5rem; 
  color: var(--text-muted);
  max-width: 700px; 
  margin: 0 0 3rem 0; 
  line-height: 1.6; 
  font-weight: 500;
}

/* Typography Scale */
h2 {
  font-size: 3.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
}
h3 {
  font-size: 2rem;
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

/* Minimalist Split */
.split-layout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8rem;
}
.split-text {
  display: flex;
  flex-direction: column;
}
.split-layout .bento-grid {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.split-layout .bento-grid > div {
  flex: 1;
  display: flex;
}
.split-layout .bento-grid .bento-card {
  width: 100%;
}
.sticky-col { position: relative; height: 100%; }
.sticky-inner { position: -webkit-sticky; position: sticky; top: 12rem; align-self: flex-start; }

/* Soft Image Reveals */
.img-reveal-wrapper {
  position: relative; width: 100%; display: block;
}
.img-reveal-wrapper img {
  width: 100%; height: 100%; object-fit: cover;
}

/* SVG Blueprint */
.blueprint-svg {
  overflow: visible;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}
.draw-path {
  stroke: #3A6A8F;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  transition: stroke-dashoffset 0.1s linear;
}
.draw-node {
  fill: #161A1F;
  stroke: #3A6A8F;
  stroke-width: 1.5;
  opacity: 0;
  transform-origin: center;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Services (Airy Stacking) */
  .service-sticky-wrap {
    display: flex; flex-direction: column; gap: 3rem;
  }
  .service-module {
    padding: 3rem; 
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.03);
    display: flex; flex-direction: column; gap: 1rem;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
  }
  .service-module:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35), inset 0 2px 20px rgba(255, 255, 255, 0.03);
    border-color: rgba(58, 106, 143, 0.3);
  }
  .service-meta {
    font-size: 0.85rem; font-weight: 600; color: var(--text-muted); letter-spacing: 1px; text-transform: uppercase;
  }
  .service-module p { font-size: 1.15rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 1.5rem; }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem; }
.pricing-card {
  padding: 4rem; background: linear-gradient(135deg, rgba(22, 26, 31, 0.8), rgba(22, 26, 31, 0.4));
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.25), inset 0 2px 20px rgba(255,255,255,0.02);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}
.pricing-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at top left, rgba(58, 106, 143, 0.1), transparent 70%);
  pointer-events: none;
}
.pricing-card:hover { 
  transform: translateY(-8px) scale(1.02); 
  box-shadow: 0 30px 60px rgba(0,0,0,0.4), inset 0 2px 20px rgba(255,255,255,0.03);
  border-color: rgba(58, 106, 143, 0.3);
}
.pricing-card.featured { background: #3A6A8F; color: #FFFFFF; }
.pricing-card.featured h3, .pricing-card.featured .price { color: #FFFFFF; }
.pricing-card.featured p, .pricing-card.featured ul { color: rgba(255,255,255,0.7); }
.price { font-size: 3.5rem; font-family: var(--font-heading); font-weight: 400; letter-spacing: 0em; margin-bottom: 0.5rem; color: #FFFFFF; }

/* Generic Reveals */
.fade-up { opacity: 0; transform: translateY(40px) scale(0.98); filter: blur(4px); transition: opacity 1.2s var(--ease-expo), transform 1.2s var(--ease-expo), filter 1.2s var(--ease-expo); }
.fade-up.revealed { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }

/* Text Scramble & Gradient Shine */
.text-gradient-animate {
  background: linear-gradient(90deg, var(--text-dark) 0%, #3A6A8F 20%, #3A6A8F 30%, var(--text-dark) 50%, #3A6A8F 70%, #3A6A8F 80%, var(--text-dark) 100%);
  background-size: 200% auto;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  animation: shine 4s linear infinite;
  display: inline-block;
}
@keyframes shine {
  to { background-position: 200% center; }
}

/* Highlight Sweep Animation */
.highlight-sweep {
  position: relative;
  display: inline-block;
  color: var(--text-dark);
  z-index: 1;
}
.highlight-sweep::after {
  content: '';
  position: absolute;
  left: -5px;
  bottom: 0.1em;
  height: 0.4em; /* Classic thick marker behind bottom half of text */
  width: 0;
  background-color: rgba(58, 106, 143, 0.3); /* Subtle brand blue */
  z-index: -1;
  transition: width 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 2px;
}
.highlight-sweep.swept::after {
  width: calc(100% + 10px);
}
.highlight-gradient.gradient-active {
  background: linear-gradient(90deg, #3A6A8F 0%, #5A9ABF 50%, #3A6A8F 100%);
  background-size: 200% auto;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  animation: shine 3s linear infinite;
  text-shadow: 0 0 20px rgba(58, 106, 143, 0.4);
}

/* Footer */
.footer {
  background-color: rgba(15, 17, 21, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: var(--text-muted);
  padding: 8rem 4rem 4rem;
  position: relative;
  z-index: 1;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 4rem; margin-bottom: 6rem; }
.footer-brand { font-size: 1.5rem; font-weight: 600; color: #FFFFFF; margin-bottom: 1rem; letter-spacing: -0.02em; }

/* Responsive Mobile Tweaks */
@media (max-width: 768px) {
  
  .hero-trusted-logos { margin-top: 2rem; }
  .hero-logo-row { gap: 1.5rem; flex-wrap: wrap; justify-content: center; }
  .hero-logo-row img { height: 32px; }

  .section { padding: 4rem 2rem; }
  .hero { padding: 0 2rem; }
  .split-layout { grid-template-columns: 1fr; gap: 3rem; }
  .sticky-col { position: relative; top: 0; height: auto; padding-right: 0; }
  .nav-links { 
    display: none; 
    flex-direction: column; 
    position: absolute; 
    top: 100%; 
    left: 0; 
    width: 100%; 
    background: rgba(15, 17, 21, 0.95); 
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 2rem; 
    border-bottom: 1px solid rgba(255,255,255,0.05); 
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  }
  .nav-links.show-mobile { display: flex !important; }
  .mobile-menu-btn { display: block !important; }
}

/* Responsive */
@media (max-width: 1024px) {
  .split-layout { grid-template-columns: 1fr; gap: 4rem; }
  .sticky-col { position: relative; top: 0; }
  .section { padding: 8rem 2rem; }
  .pricing-grid { grid-template-columns: 1fr; }
}

#page-home, #page-service { display: none; }
#page-home.active, #page-service.active { display: block; }

/* ── INTERACTIVE DESIGN FEATURES ── */

/* 1. Global Spotlight */
.spotlight-wrapper {
  position: relative;
  overflow: clip;
}
.spotlight-glow {
  pointer-events: none;
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(58, 106, 143, 0.12) 0%, rgba(0,0,0,0) 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  transition: opacity 0.3s ease;
  opacity: 0;
}
.spotlight-wrapper:hover .spotlight-glow {
  opacity: 1;
}

/* 2. 3D Bento Box Grid */
.bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}
.bento-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 2.5rem;
  transition: transform 0.1s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  transform-style: preserve-3d;
  will-change: transform;
}
.bento-card:hover {
  border-color: rgba(58, 106, 143, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* 3. Terminal Typing Window */
.terminal-window {
  background: linear-gradient(135deg, rgba(5, 13, 21, 0.95), rgba(0, 0, 0, 0.85));
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-radius: 16px;
  border: 1px solid rgba(58, 106, 143, 0.2);
  padding: 1.5rem;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9rem;
  color: #3A6A8F;
  box-shadow: 0 30px 60px rgba(5,13,21,0.3), inset 0 1px 0 rgba(255,255,255,0.05);
  position: relative;
  overflow: hidden;
  margin-top: 3rem;
}
.terminal-header {
  display: flex; gap: 6px; margin-bottom: 1rem;
}
.terminal-dot {
  width: 10px; height: 10px; border-radius: 50%; background: #333;
}
.terminal-dot.r { background: #ff5f56; }
.terminal-dot.y { background: #ffbd2e; }
.terminal-dot.g { background: #27c93f; }

/* 4. Magnetic CTA */
.magnetic-wrapper {
  display: inline-block;
  padding: 2rem;
  margin: -2rem; /* increase hover area */
}
.magnetic-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #3A6A8F;
  color: #FFFFFF;
  padding: 1.25rem 2.5rem;
  border-radius: 50px;
  font-weight: 500;
  font-size: 1.1rem;
  text-decoration: none;
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}
.magnetic-btn:hover {
  background: #3A6A8F;
}

/* --- CLIENT LOGO GRID --- */
.logo-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 5rem;
  padding: 1rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.client-logo {
  height: 90px; /* Make logos much larger so details are clearly shown */
  width: auto;
  max-width: 250px;
  object-fit: contain;
  transition: all 0.3s ease;
}

/* EDB Global (JPG with white bg) */
img[src*="edb_global"] {
  filter: brightness(0) invert(1) opacity(0.7); /* White logo on dark background */
}

/* Sift Atelier (PNG with fine details) */
img[src*="sift_atelier"] {
  filter: brightness(0) invert(1) opacity(0.6); /* White logo on dark background */
  height: 120px; /* Scaled up as requested */
}

/* Supa Deurali (PNG with 3D elements) */
img[src*="supa_deurali"] {
  filter: grayscale(100%) brightness(2) opacity(0.7); /* Brightened for dark bg */
}

.client-logo:hover {
  transform: scale(1.05);
}

/* --- STRIKE REVEAL ANIMATION --- */
.strike-reveal-container {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.75rem;
  white-space: nowrap;
}

.strike-text {
  position: relative;
  display: inline-block;
  color: var(--text-dark); /* Stronger shade */
  opacity: 0.8;
}
.strike-text::after {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 0;
  height: 6px;
  background-color: #3A6A8F;
  transition: width 0.8s cubic-bezier(0.8, 0, 0.2, 1);
  transform: translateY(-50%);
  border-radius: 3px;
}
.strike-text.is-struck::after,
.strike-reveal-container.revealed .strike-text::after {
  width: 100%;
}

.reveal-text {
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.8s cubic-bezier(0.8, 0, 0.2, 1);
  transition-delay: 0.6s; /* Wait for strike to almost finish */
  color: var(--text-dark);
}
.reveal-text.is-revealed,
.strike-reveal-container.revealed .reveal-text {
  opacity: 1;
  transform: translateX(0);
}
/* Chatbot Widget */
.chatbot-fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  height: 54px;
  border-radius: 27px;
  background: linear-gradient(135deg, #3A6A8F, #2a5070);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 24px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  z-index: 9999;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, filter 0.4s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  will-change: transform;
}

.chatbot-fab::before {
  content: '';
  position: absolute;
  top: -2px; left: -2px; right: -2px; bottom: -2px;
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(58, 106, 143, 0.5), rgba(94, 92, 230, 0.5));
  z-index: -1;
  animation: pulse-ring 2.5s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95) translateZ(0); opacity: 0.8; }
  70% { transform: scale(1.15) translateZ(0); opacity: 0; }
  100% { transform: scale(0.95) translateZ(0); opacity: 0; }
}

.fab-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fab-text {
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
}

.chatbot-fab:hover {
  transform: scale(1.05) translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  filter: brightness(1.15);
}

.chatbot-window {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 380px;
  height: 600px;
  background: rgba(15, 17, 21, 0.9) !important;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 28px;
  box-shadow: 0 16px 60px rgba(0, 0, 0, 0.4) !important;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px) scale(0.95);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: visible !important;
}
.chatbot-window.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

/* Hide FAB when active */
body:has(.chatbot-window.active) .chatbot-fab {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: scale(0.8) !important;
}

.chatbot-avatar-container {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10001;
  pointer-events: auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.15);
  transition: transform 0.3s ease;
  overflow: visible;
}
.chatbot-avatar-container:hover {
  transform: scale(1.05);
}
.chatbot-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.chatbot-avatar-status {
  position: absolute;
  bottom: 5px;
  right: 5px;
  width: 14px;
  height: 14px;
  background: #2ecc71;
  border-radius: 50%;
  border: 2px solid #0F1115;
  box-shadow: 0 0 10px rgba(46, 204, 113, 0.6);
}

.chatbot-header {
  display: none !important;
}
.bot-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3A6A8F, #2a5070);
  position: relative;
}
.bot-avatar::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  background: #2ecc71;
  border-radius: 50%;
  border: 2px solid #0F1115;
}
.chatbot-close {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.3s ease;
}
.chatbot-close:hover {
  color: var(--text-dark);
}

.chatbot-messages {
  flex: 1;
  padding: 1.5rem 1.5rem;
  margin-bottom: 90px; /* Space for the avatar & input at the bottom */
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  pointer-events: auto;
}
.chatbot-messages > :first-child {
  margin-top: auto;
}
.chat-msg {
  display: flex;
  flex-direction: column;
  max-width: 85%;
  pointer-events: auto;
}
.chat-msg.bot {
  align-self: flex-start;
}
.chat-msg.user {
  align-self: flex-end;
}
.msg-bubble {
  padding: 0.85rem 1.25rem;
  border-radius: 18px;
  font-size: 0.9rem;
  line-height: 1.4;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  white-space: pre-wrap;
}
.chat-msg.bot .msg-bubble {
  background: rgba(22, 26, 31, 0.95) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: #E0E6ED;
  border: 1px solid rgba(58, 106, 143, 0.2);
  border-bottom-left-radius: 4px;
}
.chat-msg.user .msg-bubble {
  background: linear-gradient(135deg, #3A6A8F, #2a5070) !important;
  color: white;
  border-bottom-right-radius: 4px;
  box-shadow: 0 8px 32px rgba(58, 106, 143, 0.15);
}

.chatbot-input-area {
  position: absolute;
  bottom: 15px;
  right: 95px;
  width: 270px;
  background: rgba(22, 26, 31, 0.9) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(58, 106, 143, 0.2) !important;
  border-radius: 30px;
  padding: 6px 6px 6px 15px !important;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  pointer-events: auto;
}
#chatbot-input {
  flex: 1;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  font-family: var(--font-main);
  font-size: 0.9rem;
  outline: none;
  color: #E0E6ED;
}
#chatbot-input:focus {
  border-color: transparent !important;
  box-shadow: none !important;
}
.chatbot-toggle {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 65px;
  height: 65px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  transition: transform 0.3s ease, background 0.3s ease;
  animation: pulse-glow 3s infinite;
}
.chatbot-toggle svg {
  stroke: var(--text-dark);
}
.chatbot-toggle:hover {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.2);
}

@keyframes pulse-glow {
  0% { box-shadow: 0 0 0 0 rgba(58, 106, 143, 0.4); }
  70% { box-shadow: 0 0 0 15px rgba(58, 106, 143, 0); }
  100% { box-shadow: 0 0 0 0 rgba(58, 106, 143, 0); }
}
#chatbot-send {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #3A6A8F;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease, background 0.3s ease;
}
#chatbot-send:hover {
  transform: scale(1.05);
  background: #3A6A8F;
}
.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 1rem 1.25rem;
  background: rgba(22, 26, 31, 0.95) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(58, 106, 143, 0.2);
  border-radius: 18px;
  border-bottom-left-radius: 4px;
  align-self: flex-start;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  pointer-events: auto;
}
.typing-indicator span {
  width: 6px;
  height: 6px;
  background: var(--text-muted);
  border-radius: 50%;
  animation: typing 1.4s infinite both;
}
.typing-indicator span:nth-child(1) { animation-delay: 0s; }
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing {
  0%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-4px); }
}

@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
    width: 100%;
    -webkit-tap-highlight-color: transparent;
  }
  body {
    background: var(--bg-pure) !important;
    transition: none !important;
  }
  
  /* Disable heavy background canvas & filters for mobile performance */
  
  .service-module, .pricing-card {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: #161A1F !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2) !important;
  }
  
  /* Disable fade-up animations on mobile to prevent blank screens and scroll bugs */
  .fade-up {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  
  /* Fix tight margins and paddings */
  .section { padding: 4rem 1rem !important; }
  .hero { padding-top: 8rem !important; min-height: auto !important; }
  .split-layout { gap: 2rem !important; }
  
  /* Scale down massive typography gracefully */
  .hero-title { white-space: normal !important; font-size: clamp(2rem, 8vw, 3rem) !important; line-height: 1.1 !important; letter-spacing: -1px; padding: 0 1rem; }
  h2.fade-up { font-size: clamp(2rem, 8vw, 3rem) !important; line-height: 1.2 !important; margin-bottom: 2rem !important; }
  
  /* Optimize glassmorphic modules for tiny screens */
  .service-module { 
    padding: 1.5rem !important; 
    border-radius: 16px !important; 
    gap: 0.5rem !important;
  }
  .service-module p { font-size: 1rem !important; margin-bottom: 1rem !important; }
  
  /* Ensure grids become strict single columns with reasonable gaps */
  .bento-grid { grid-template-columns: 1fr !important; gap: 1.5rem !important; }
  .pricing-grid { grid-template-columns: 1fr !important; gap: 1.5rem !important; }
  .pricing-card { padding: 2rem !important; }
  
  /* Constrain the terminal */
  .terminal-window { 
    width: 100% !important; 
    max-width: 100% !important; 
    box-sizing: border-box !important; 
    margin: 0 !important;
  }
  
  /* Premium Glassmorphic Mobile Menu */
  .nav-links.show-mobile {
    background: rgba(15, 17, 21, 0.95) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    padding: 2rem 1rem !important;
  }
  
  /* Fix floating button placement on mobile */
  .chatbot-fab, .chatbot-toggle {
    bottom: 1rem !important;
    right: 1rem !important;
    transform: scale(0.9);
  }
  .chatbot-window {
    bottom: 1rem !important;
    right: 1rem !important;
    max-width: calc(100vw - 2rem) !important;
  }
  .chatbot-avatar-container {
    bottom: -5px !important;
    right: -5px !important;
    transform: scale(0.85);
    border-color: rgba(255, 255, 255, 0.15);
  }
}

/* --- INTL TEL INPUT OVERRIDES --- */
.iti { width: 100%; display: block; }
.iti__country-list {
  background: var(--bg-pure) !important;
  border: none !important;
  border-radius: 16px !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3) !important;
  font-family: var(--font-main) !important;
  margin-top: 8px !important;
  white-space: normal !important;
  color: var(--text-dark) !important;
}
.iti__flag-container { padding-left: 1rem; }
.iti__selected-flag { border-radius: 40px 0 0 40px; padding: 0 1rem; background: transparent !important; }
.iti__country:hover, .iti__country.iti__highlight {
  background-color: var(--bg-soft) !important;
}
.iti__selected-dial-code { color: var(--text-muted); margin-left: 4px; }
.iti--allow-dropdown input[type=tel] { padding-left: 6rem !important; }

/* Problem Cards (Emotional highlighting with glass effect) */
.problem-card {
  background: rgba(220, 60, 60, 0.12) !important;
  backdrop-filter: blur(24px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
  border: 1px solid rgba(220, 60, 60, 0.3) !important;
  box-shadow: 0 8px 32px rgba(220, 60, 60, 0.15) !important;
}
.problem-card:hover {
  background: rgba(220, 60, 60, 0.18) !important;
  border-color: rgba(220, 60, 60, 0.5) !important;
  box-shadow: 0 12px 40px rgba(220, 60, 60, 0.25) !important;
}
.problem-card .problem-num {
  color: rgba(220, 60, 60, 0.9) !important;
}


.hero {
  position: relative; /* ensure absolute children are contained */
}


#bg-canvas { display: none !important; }

.hero {
  position: relative;
}

/* This overlay perfectly blends the image into the dark page background */



/* Mask the left side just in case the image still has text, to prevent it from showing under the site's main content */


.page-bg-lines {
  position: fixed;
  top: -5vh;
  left: -5vw;
  width: 110vw;
  height: 110vh;
  background: url('page-bg.png') no-repeat center center;
  background-size: cover;
  z-index: -2;
  opacity: 0.6;
  pointer-events: none;
  will-change: transform, filter;
  animation: ambientAurora 12s infinite ease-in-out;
}

@keyframes ambientAurora {
  0% {
    transform: translate3d(0, 0, 0) scale(1.02);
    filter: hue-rotate(0deg) brightness(1) saturate(1);
  }
  33% {
    transform: translate3d(45px, -25px, 0) scale(1.12);
    filter: hue-rotate(35deg) brightness(1.3) saturate(1.4);
  }
  66% {
    transform: translate3d(-35px, 35px, 0) scale(1.08);
    filter: hue-rotate(-25deg) brightness(0.85) saturate(0.8);
  }
  100% {
    transform: translate3d(0, 0, 0) scale(1.02);
    filter: hue-rotate(0deg) brightness(1) saturate(1);
  }
}
.hero-trusted-logos { margin-top: 3rem; display: flex; flex-direction: column; align-items: center; gap: 1rem; opacity: 0.6; transition: opacity 0.3s ease; }
.hero-trusted-logos:hover { opacity: 1; }
.trusted-text { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); letter-spacing: 2px; text-transform: uppercase; }
.hero-logo-row { display: flex; align-items: center; gap: 4rem; }
.hero-logo-row img { height: 48px; object-fit: contain; filter: grayscale(1) brightness(2) contrast(1.5); opacity: 0.8; }



