/* ==========================================================================
   SMALL GEAR AI AGENCY - ULTRA PREMIUM FUTURISTIC DESIGN SYSTEM
   ========================================================================== */

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

:root {
  /* Core Colors */
  --bg-primary: #000000;
  --bg-secondary: #05030A;
  --bg-gradient: linear-gradient(135deg, #000000 0%, #0A041A 50%, #02091D 100%);
  
  /* Glassmorphism Surfaces */
  --glass-bg: rgba(16, 13, 28, 0.55);
  --glass-bg-hover: rgba(26, 20, 46, 0.75);
  --glass-border: rgba(255, 255, 255, 0.07);
  --glass-border-glow: rgba(0, 242, 254, 0.55);
  
  /* Accents & Neon Glows */
  --neon-blue: #00F2FE;
  --electric-purple: #9D4EDD;
  --soft-cyan: #00FFFF;
  --vibrant-magenta: #FF007F;
  --gradient-neon: linear-gradient(90deg, var(--neon-blue), var(--electric-purple));
  --gradient-accent: linear-gradient(135deg, var(--electric-purple) 0%, var(--soft-cyan) 100%);
  
  /* Typography & Neutral Palette */
  --text-main: #FFFFFF;
  --text-muted: #9E9AA7;
  --text-dim: #656172;
  --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Dimensions & Spacing */
  --max-width: 1280px;
  --nav-height: 84px;
  --section-padding: 120px 24px;
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --transition: all 0.38s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-primary);

  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.65;
  overflow-x: hidden;
  selection-background-color: var(--electric-purple);
  selection-color: #FFFFFF;
}

::selection {
  background: var(--electric-purple);
  color: #FFFFFF;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

p {
  color: var(--text-muted);
  font-size: 1.05rem;
  font-weight: 400;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

ul {
  list-style: none;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.section {
  padding: var(--section-padding);
  position: relative;
}

/* Background Glowing Orbs */
.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
  animation: floatOrb 15s ease-in-out infinite alternate;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--electric-purple), transparent 70%);
  top: 10%;
  left: -150px;
}

.orb-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--neon-blue), transparent 70%);
  top: 35%;
  right: -200px;
  animation-delay: -5s;
}

.orb-3 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, var(--vibrant-magenta), transparent 70%);
  bottom: 10%;
  left: 20%;
  animation-delay: -9s;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(50px, 30px) scale(1.1); }
  100% { transform: translate(-30px, -40px) scale(0.95); }
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  max-width: 100vw;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  z-index: 1000;
  transition: var(--transition);
  background: transparent;
  border-bottom: 1px solid transparent;
  overflow: hidden;
  box-sizing: border-box;
}

.navbar.scrolled {
  background: rgba(8, 6, 18, 0.82);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  height: 72px;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 100%;
  padding: 0 24px;
  box-sizing: border-box;
  overflow: hidden;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.logo-img {
  height: 38px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(0, 242, 254, 0.4));
  transition: transform 0.3s ease;
}

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

.logo-icon::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, transparent 40%, rgba(255, 255, 255, 0.8) 50%, transparent 60%);
  animation: logoShine 4s infinite;
}

@keyframes logoShine {
  0% { transform: translateX(-150%) skewX(-30deg); }
  20%, 100% { transform: translateX(150%) skewX(-30deg); }
}

.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
}
/* Early mobile nav hiding — must be placed here to override base flex display */
@media (max-width: 640px) {
  .navbar {
    max-width: 100vw !important;
    /* NO overflow:hidden here — it was clipping the hamburger button */
  }
  .nav-container {
    max-width: 100% !important;
    padding: 0 14px !important;
    box-sizing: border-box !important;
    overflow: visible !important; /* allow all children to render */
    flex-wrap: nowrap !important;
  }
  /* Brand logo stays on left and doesn't shrink */
  .brand-logo {
    flex-shrink: 0 !important;
  }
  .nav-links {
    display: none !important;
  }
  .nav-actions {
    display: none !important;
  }
  /* Push the toggle+hamburger pair to the far right */
  .nav-theme-toggle {
    margin-left: auto !important;
    margin-right: 10px !important;  /* gap between toggle and hamburger */
    flex-shrink: 0 !important;
  }
  .mobile-menu-toggle {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    z-index: 2001 !important;
    padding: 6px !important;
    width: 44px !important;
    height: 44px !important;
    flex-shrink: 0 !important;
    margin-left: 0 !important;
  }
  body.light-theme .mobile-menu-toggle {
    color: #0f172a !important;
  }
  body:not(.light-theme) .mobile-menu-toggle {
    color: #ffffff !important;
  }
  .mobile-menu-toggle svg {
    display: block !important;
    width: 26px !important;
    height: 26px !important;
    fill: none !important;
    pointer-events: none !important;
  }
  .mobile-menu-toggle svg path {
    stroke: currentColor !important;
    stroke-width: 2.5px !important;
  }
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 4px 0;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--text-main);
  text-shadow: 0 0 12px rgba(0, 242, 254, 0.6);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-neon);
  transition: var(--transition);
}

.nav-links a:hover::after, .nav-links a.active::after {
  width: 100%;
}

/* ==========================================================================
   BUTTON SYSTEM
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  border: none;
  white-space: nowrap;
}

.btn-glow {
  background: var(--gradient-neon);
  color: #000000;
  font-weight: 700;
  box-shadow: 0 0 25px rgba(0, 242, 254, 0.45), 0 0 5px rgba(157, 78, 221, 0.6);
}

.btn-glow:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 0 38px rgba(0, 242, 254, 0.75), 0 0 15px rgba(157, 78, 221, 0.8);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-main);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--neon-blue);
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.25);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
}

/* ==========================================================================
   HERO SECTION (SPLIT SCREEN - 2-COLUMN)
   ========================================================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1.15fr;
  gap: 20px;
  align-items: center;
  width: 100%;
}

.hero-content {
  z-index: 10;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 50px;
  background: rgba(157, 78, 221, 0.12);
  border: 1px solid rgba(157, 78, 221, 0.35);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--soft-cyan);
  margin-bottom: 24px;
  box-shadow: 0 0 15px rgba(157, 78, 221, 0.2);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--soft-cyan);
  box-shadow: 0 0 8px var(--soft-cyan);
  animation: pulseDot 1.5s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.hero-title {
  font-size: 3.6rem;
  letter-spacing: -1.5px;
  margin-bottom: 22px;
  background: linear-gradient(135deg, #FFFFFF 0%, #E2DEED 70%, #908C9F 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-title span {
  background: var(--gradient-neon);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 25px rgba(0, 242, 254, 0.3));
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 580px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 20px;
  margin-bottom: 60px;
}

.trust-section {
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.trust-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.trust-logos {
  display: flex;
  align-items: center;
  gap: 36px;
  opacity: 0.7;
}

.trust-logo-item {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 2px;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 6px;
  filter: grayscale(100%) opacity(0.8);
  transition: var(--transition);
}

.trust-logo-item:hover {
  filter: grayscale(0%) opacity(1);
  color: var(--neon-blue);
  text-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
}

/* HERO RIGHT SIDE - SEAMLESS 3D SPLINE ROBOT CONTAINER */
.hero-visual-reserved {
  position: relative;
  width: 100%;
  height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  box-shadow: none;
  overflow: hidden;
  pointer-events: auto;
}

/* ==========================================================================
   SECTION HEADERS
   ========================================================================== */
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px auto;
}

.section-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--neon-blue);
  margin-bottom: 12px;
  text-shadow: 0 0 10px rgba(0, 242, 254, 0.4);
}

.section-title {
  font-size: 2.8rem;
  margin-bottom: 20px;
  color: var(--text-main);
}

.section-description {
  font-size: 1.15rem;
  color: var(--text-muted);
}

/* ==========================================================================
   3D BOXES HOVER SPLINE SECTION (Hero to Services Transition Expanse)
   ========================================================================== */
.boxes-hover-spline-section {
  position: relative;
  width: 100%;
  padding: 20px 0;
  overflow: hidden;
  z-index: 2;
}

.boxes-hover-spline-container {
  position: relative;
  width: 100%;
  height: 650px; /* Expanded height to ensure "For You" and bottom text render 100% unclipped */
  background: transparent;
  overflow: hidden;
  mix-blend-mode: screen;
  /* Radial mask seamlessly fades canvas edges without clipping inner text elements */
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 1) 75%, rgba(0, 0, 0, 0) 100%);
  mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 1) 75%, rgba(0, 0, 0, 0) 100%);
}

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */
.services-spline-container {
  position: relative;
  width: 100%;
  height: 380px;
  background: transparent;
  overflow: hidden;
  pointer-events: none; /* Let clicks/scroll pass through to prevent scroll trapping */
  border: none;
  box-shadow: none;
  border-radius: 0;
  z-index: 1; /* Placed in the background under translucent cards */
  mix-blend-mode: screen; /* Blends away the grey Spline canvas, leaving only pure neon loops */
  /* CSS mask to seamlessly fade the Spline canvas edges into our solid background */
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 1) 35%, rgba(0, 0, 0, 0) 80%);
  mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 1) 35%, rgba(0, 0, 0, 0) 80%);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px 95px; /* Increased column gap to 95px for horizontal breathing room */
  position: relative;
  z-index: 2;
}

@media (min-width: 1081px) {
  .services-grid {
    grid-template-rows: auto auto auto;
    align-items: start;
  }
  
  /* Staggered Column Placements (Pinterest Masonry style) */
  #service-automation { grid-column: 1; grid-row: 1; }
  #service-marketing { grid-column: 2; grid-row: 1; }
  #service-content { grid-column: 3; grid-row: 1; }

  #service-webdev { 
    grid-column: 1; 
    grid-row: 2; 
    margin-top: -30px;
  }
  .services-spline-container { 
    grid-column: 2; 
    grid-row: 2; 
    height: 400px; /* Minimized height */
    width: 170%; /* Massive width to completely prevent WebGL boundary clipping across the 95px gap */
    margin-left: -30%; /* Shifted container to the right while keeping left boundary far beyond the clip zone */
    margin-top: -30px; /* Reduced vertical overlap */
    margin-bottom: -30px;
  }
  #service-funnels { 
    grid-column: 3; 
    grid-row: 2; 
    margin-top: -30px;
  }

  #service-branding { 
    grid-column: 2; 
    grid-row: 3; 
    margin-top: 40px;
  }

  /* Move the entire left and right columns outwards & downwards to isolate the centerpiece */
  #service-automation, #service-webdev {
    transform: translate(-30px, 110px);
  }
  #service-automation:hover, #service-webdev:hover {
    transform: translate(-30px, 102px) scale(1.02);
  }
  
  #service-content, #service-funnels {
    transform: translate(30px, 110px);
  }
  #service-content:hover, #service-funnels:hover {
    transform: translate(30px, 102px) scale(1.02);
  }
}

.service-card {
  background: rgba(6, 4, 14, 0.02); /* Extremely transparent background */
  backdrop-filter: blur(2px); /* Very low blur so WebGL shapes remain sharp and highly visible */
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 40px 32px;
  position: relative;
  z-index: 2; /* Keep cards in foreground */
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-8px) scale(1.02);
  background: rgba(14, 10, 26, 0.6);
  border-color: rgba(0, 242, 254, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(157, 78, 221, 0.15);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-neon);
  opacity: 0;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-8px) scale(1.02);
  background: var(--glass-bg-hover);
  border-color: rgba(0, 242, 254, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(157, 78, 221, 0.15);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  color: var(--neon-blue);
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.2);
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: var(--gradient-neon);
  color: #000;
  box-shadow: 0 0 30px rgba(0, 242, 254, 0.6);
  transform: scale(1.1) rotate(-5deg);
}

.service-icon svg {
  width: 32px;
  height: 32px;
  stroke-width: 2;
}

.service-title {
  font-size: 1.45rem;
  margin-bottom: 16px;
  color: var(--text-main);
}

.service-desc {
  font-size: 0.98rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  flex-grow: 1;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--neon-blue);
  margin-top: auto;
}

.service-link:hover {
  gap: 14px;
  text-shadow: 0 0 10px rgba(0, 242, 254, 0.6);
}

/* ==========================================================================
   PROCESS / VERTICAL SCROLL TIMELINE SECTION
   ========================================================================== */
.process-container {
  position: relative;
  max-width: 820px;
  margin: 60px auto 0 auto;
  padding: 40px 0;
}

.timeline-track {
  position: absolute;
  left: 36px;
  top: 0;
  bottom: 0;
  width: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  overflow: hidden;
  z-index: 1;
}

.timeline-progress {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(180deg, var(--neon-blue) 0%, var(--electric-purple) 50%, var(--vibrant-magenta) 100%);
  transition: height 0.15s ease-out;
  box-shadow: 0 0 15px var(--neon-blue);
}

.timeline-step {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 36px;
  margin-bottom: 60px;
  position: relative;
  z-index: 2; /* Render steps above the timeline track line */
  opacity: 0.28;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-step:last-child {
  margin-bottom: 0;
}

.timeline-step.active {
  opacity: 1;
  transform: translateY(0);
}

.timeline-dot-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  z-index: 2;
}

.timeline-dot {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #05030a; /* Solid dark background to hide the line track */
  position: relative;
  z-index: 3; /* Stack the dot above the line track */
  border: 2px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 0 rgba(0, 242, 254, 0);
}

.timeline-step.active .timeline-dot {
  border-color: var(--neon-blue);
  color: var(--neon-blue);
  background: #05030a; /* Maintain solid background */
  box-shadow: 0 0 25px rgba(0, 242, 254, 0.45);
  text-shadow: 0 0 12px rgba(0, 242, 254, 0.6);
  transform: scale(1.08);
}

.timeline-content {
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 36px 40px;
  transition: var(--transition);
}

.timeline-step.active .timeline-content {
  border-color: rgba(157, 78, 221, 0.38);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.55), 0 0 25px rgba(157, 78, 221, 0.12);
}

.step-title {
  font-size: 1.45rem;
  margin-bottom: 12px;
  color: #FFFFFF;
}

.step-desc {
  font-size: 1.02rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ==========================================================================
   PORTFOLIO SHOWCASE SECTION
   ========================================================================== */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.project-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-10px);
  border-color: rgba(0, 242, 254, 0.5);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7), 0 0 40px rgba(0, 242, 254, 0.2);
}

.project-img-wrapper {
  width: 100%;
  height: 240px;
  overflow: hidden;
  position: relative;
}

.project-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .project-img-wrapper img {
  transform: scale(1.12);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(0deg, rgba(8, 6, 18, 0.95) 0%, rgba(8, 6, 18, 0.2) 60%, transparent 100%);
}

.project-metric {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  border: 1px solid var(--electric-purple);
  color: var(--soft-cyan);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 6px;
  box-shadow: 0 0 12px rgba(157, 78, 221, 0.4);
}

.project-info {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-tags {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.project-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--neon-blue);
  background: rgba(0, 242, 254, 0.1);
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.project-title {
  font-size: 1.35rem;
  margin-bottom: 10px;
  color: #FFFFFF;
}

.project-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* ==========================================================================
   WHY CHOOSE US / BENEFITS SECTION
   ========================================================================== */
.benefits-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px 60px;
  align-items: start; /* Align stats grid with the top of benefits content */
}

.benefits-content h3 {
  font-size: 2.4rem;
  margin-bottom: 24px;
}

.benefits-content p {
  margin-bottom: 36px;
  font-size: 1.1rem;
}

.benefits-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.benefit-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: var(--transition);
}

.benefit-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--neon-blue);
  transform: translateY(-4px);
  box-shadow: 0 0 25px rgba(0, 242, 254, 0.15);
}

.benefit-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--gradient-accent);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-weight: 700;
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.3);
}

.benefit-title {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: #FFF;
}

.benefit-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Stats Container on Right */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 15px; /* Slight offset from top alignment */
}

.stat-box {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.stat-box:hover {
  border-color: var(--vibrant-magenta);
  box-shadow: 0 0 35px rgba(255, 0, 127, 0.2);
  transform: scale(1.03);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  font-weight: 800;
  background: var(--gradient-neon);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
  line-height: 1;
}

.stat-label {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.why-us-right-col {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* WHY CHOOSE US - SEAMLESS 3D WEB DIAGRAM ELEMENT */
.why-us-spline-container {
  position: relative;
  width: 100%;
  height: 420px; /* Expanded to a wide horizontal rectangular viewport */
  margin-top: 40px;
  margin-bottom: 30px;
  background: transparent;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: screen; /* Blends dark canvas texture out, rendering loops raw */
  /* CSS mask to seamlessly fade the Spline canvas edges into our solid background */
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 1) 30%, rgba(0, 0, 0, 0) 78%);
  mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 1) 30%, rgba(0, 0, 0, 0) 78%);
}

/* Row-aligned Benefits Cards at the bottom */
.benefits-list-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* Arranged in one single row spanning full container width */
  gap: 24px;
  margin-top: 20px;
}

/* ==========================================================================
   TESTIMONIALS SECTION
   ========================================================================== */
/* TESTIMONIALS - 2-COLUMN HERO + EXPANDED GRID */

#testimonials {
  overflow: visible;
}

/* Allow the testimonials section container to bleed right */
#testimonials .container {
  overflow: visible;
}

/* Split hero: left testimonials + right Spline */
.testimonials-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin: 40px 0 60px 0;
  min-height: 520px;
}

/* LEFT: stacked testimonial quote cards */
.testimonials-hero-left {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.testi-hero-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 28px 30px;
  backdrop-filter: blur(12px);
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.testi-hero-card:hover {
  border-color: rgba(0, 229, 255, 0.25);
  transform: translateY(-3px);
}

.testi-hero-card .stars {
  color: #00e5ff;
  font-size: 14px;
  letter-spacing: 3px;
  margin-bottom: 12px;
}

.testi-hero-card .quote-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 20px;
  font-style: italic;
}

/* RIGHT: Spline element container — bleeds past the right edge */
.testimonials-hero-right {
  position: relative;
  height: 520px;
  overflow: visible;
  /* Extend rightward past the container boundary */
  margin-right: -120px;
}

.testimonials-spline-title {
  position: absolute;
  top: 0;
  left: 0;
  right: -60px;   /* Extra bleed to the right */
  bottom: 0;
  overflow: visible;
  mix-blend-mode: screen;
}

.testimonials-spline-title iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* 3-column grid for 6 bottom testimonial cards */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 0;
}

@media (max-width: 900px) {
  .testimonials-hero {
    grid-template-columns: 1fr;
  }
  .testimonials-hero-right {
    height: 360px;
  }
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}



.testimonial-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 36px 30px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 242, 254, 0.35);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 25px rgba(0, 242, 254, 0.1);
}

.stars {
  color: var(--neon-blue);
  font-size: 1.1rem;
  margin-bottom: 20px;
  letter-spacing: 4px;
  text-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
}

.quote-text {
  font-size: 1.05rem;
  color: #E2DEED;
  line-height: 1.7;
  margin-bottom: 28px;
  font-style: italic;
}

.client-author {
  display: flex;
  align-items: center;
  gap: 16px;
}

.client-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--gradient-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  color: #000;
  font-size: 1.2rem;
  box-shadow: 0 0 15px rgba(157, 78, 221, 0.4);
}

.client-info h4 {
  font-size: 1.05rem;
  color: #FFFFFF;
}

.client-info p {
  font-size: 0.85rem;
  color: var(--neon-blue);
}

/* ==========================================================================
   CALL TO ACTION STRIP
   ========================================================================== */
.cta-section {
  padding: 100px 24px;
  margin: 60px 0;
}

.cta-container {
  max-width: 1100px;
  margin: 0 auto;
  background: linear-gradient(135deg, rgba(20, 10, 40, 0.85) 0%, rgba(5, 20, 50, 0.85) 100%);
  border: 1px solid rgba(0, 242, 254, 0.35);
  border-radius: var(--radius-lg);
  padding: 70px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 60px rgba(0, 242, 254, 0.15);
}

.cta-container::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(0, 242, 254, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.cta-title {
  font-size: 3rem;
  margin-bottom: 20px;
  color: #FFFFFF;
  position: relative;
  z-index: 2;
}

.cta-desc {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto 40px auto;
  position: relative;
  z-index: 2;
}

.cta-btn-wrapper {
  position: relative;
  z-index: 2;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background: #030206;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 80px 24px 40px 24px;
}

.footer-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 60px;
  margin-bottom: 60px;
}

.footer-brand p {
  margin-top: 16px;
  max-width: 320px;
  color: var(--text-dim);
}

.footer-col h5 {
  font-size: 1.1rem;
  color: #FFFFFF;
  margin-bottom: 22px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-col a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-col a:hover {
  color: var(--neon-blue);
  padding-left: 6px;
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-dim);
  font-size: 0.9rem;
}

.social-icons {
  display: flex;
  gap: 16px;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFF;
  transition: var(--transition);
}

.social-icon:hover {
  background: var(--gradient-neon);
  color: #000;
  border-color: transparent;
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.6);
  transform: translateY(-3px);
}

/* ==========================================================================
   SCROLL REVEAL ANIMATIONS
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1080px) {
  .services-grid, .portfolio-grid, .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .benefits-list-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .services-spline-container {
    height: 280px;
    margin: -10px auto 36px auto;
  }
  .why-us-spline-container {
    height: 300px;
    margin-top: 20px;
  }
  .testimonials-spline-title {
    height: 260px;
    margin-bottom: 36px;
  }
  .benefits-list-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .process-container {
    padding: 20px 0;
  }
  .timeline-track {
    left: 24px;
  }
  .timeline-step {
    grid-template-columns: 48px 1fr;
    gap: 24px;
    margin-bottom: 44px;
  }
  .timeline-dot {
    width: 48px;
    height: 48px;
    font-size: 1.05rem;
  }
  .timeline-content {
    padding: 24px 28px;
  }
}

@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .trust-logos {
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
  }
  .hero-visual-reserved {
    height: 480px;
  }
  .benefits-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 80px 18px;
  }
  .hero-title {
    font-size: 2.5rem;
  }
  .services-grid, .portfolio-grid, .testimonials-grid, .process-timeline, .stats-grid, .benefits-list {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none; /* simple mobile stack or hide */
  }
  .cta-container {
    padding: 40px 24px;
  }
  .cta-title {
    font-size: 2.2rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}

/* ==========================================================================
   LIGHT THEME DESIGN SYSTEM (Inspired by official portfolio)
   ========================================================================== */
body.light-theme {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-gradient: none;
  
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-bg-hover: rgba(255, 255, 255, 0.95);
  --glass-border: rgba(15, 23, 42, 0.08);
  --glass-border-glow: rgba(37, 99, 235, 0.55);
  
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #64748b;
  
  --neon-blue: #2563eb;
  --electric-purple: #7c3aed;
  --soft-cyan: #0ea5e9;
  --vibrant-magenta: #ec4899;
}

/* Disable transition animations during initial page load to prevent theme flashes */
.preload, .preload * {
  transition: none !important;
  -webkit-transition: none !important;
  -moz-transition: none !important;
  -ms-transition: none !important;
  -o-transition: none !important;
}

/* Silky-smooth theme transition (ease-out-expo curve) across all elements */
body, .navbar, .project-card, .service-card, .benefit-item, .testimonial-card, .cta-container, 
p, h1, h2, h3, h4, h5, h6, span, a, iframe, button, .timeline-track, .timeline-dot, .vertical-theme-toggle {
  transition: background-color 1.0s cubic-bezier(0.16, 1, 0.3, 1),
              color 1.0s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 1.0s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 1.0s cubic-bezier(0.16, 1, 0.3, 1),
              filter 1.0s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 1.0s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Fix Hero Title Gradient invisibility in light mode */
body.light-theme .hero-title {
  background: none !important;
  -webkit-background-clip: initial !important;
  -webkit-text-fill-color: initial !important;
  color: var(--text-main) !important;
}

/* Fix Testimonials and Quotes invisibility in light mode */
body.light-theme .quote-text,
body.light-theme .testi-hero-card .quote-text {
  color: var(--text-main) !important;
}

/* Invert all Spline 3D WebGL scenes except Nexbot (.robo-light-filter) and Boxes Hover (.no-invert) */
body.light-theme iframe[src*="spline.design"]:not(.robo-light-filter):not(.no-invert) {
  filter: invert(1) hue-rotate(180deg) !important;
  mix-blend-mode: multiply !important;
}

/* For Nexbot and Boxes Hover, do not apply invert or multiply, keep them black/original */
body.light-theme iframe.no-invert,
body.light-theme iframe.robo-light-filter:not(.robo-light-filter) {
  filter: none !important;
  mix-blend-mode: normal !important;
}

body.light-theme iframe.robo-light-filter {
  filter: url(#light-mode-robo-filter) !important;
  mix-blend-mode: multiply !important;
}

/* Clean transparent backdrops for light theme robot container */
body.light-theme .hero-visual-reserved {
  background: radial-gradient(circle, rgba(37, 99, 235, 0.09) 0%, rgba(124, 58, 237, 0.05) 55%, transparent 75%) !important;
  border-radius: 50% !important;
  border: none !important;
  box-shadow: none !important;
}

/* Keep the Boxes Hover section solid black only even in White Mode */
body.light-theme .boxes-hover-spline-section {
  background: #000000 !important; /* solid black band across the page */
}

body.light-theme .boxes-hover-spline-container {
  background: transparent !important; /* remove light gradient from behind boxes hover */
}

/* SVG Triangle Divider styling for Boxes Hover Section in Light Mode */
.boxes-triangle-divider {
  display: none; /* hidden in dark mode */
}

body.light-theme .boxes-triangle-divider {
  display: block !important;
  position: absolute;
  bottom: -1px; /* slightly overlap to prevent seam lines */
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  z-index: 10;
  pointer-events: none;
}

body.light-theme .boxes-triangle-divider svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 100px; /* increased to 100px for a very steep, dramatic diagonal triangle slope */
}

body.light-theme .boxes-triangle-divider path {
  fill: var(--bg-primary) !important; /* matches next section background */
}

/* Induce glowing, subtle background gradients behind inverted 3D containers in Light Mode */
body.light-theme .services-spline-container {
  background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, rgba(124, 58, 237, 0.05) 50%, transparent 70%) !important;
}

body.light-theme .why-us-spline-container {
  background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, rgba(124, 58, 237, 0.04) 50%, transparent 70%) !important;
}

body.light-theme .testimonials-spline-title {
  background: radial-gradient(circle, rgba(124, 58, 237, 0.1) 0%, rgba(37, 99, 235, 0.05) 55%, transparent 75%) !important;
}

/* Unified Royal Blue glowing card hover effects in Light Mode */
body.light-theme .project-card:hover,
body.light-theme .service-card:hover,
body.light-theme .testimonial-card:hover {
  border-color: rgba(37, 99, 235, 0.45) !important; /* Royal Blue */
  box-shadow: 0 20px 40px rgba(37, 99, 235, 0.12), 0 0 20px rgba(37, 99, 235, 0.06) !important;
}

/* Scrolled Navbar light mode theme resolution - using a beautiful light blue-white glassmorphic background */
body.light-theme .navbar.scrolled {
  background: rgba(240, 246, 255, 0.85) !important;
  border-bottom: 1px solid rgba(37, 99, 235, 0.12) !important;
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.05) !important;
}

body.light-theme .nav-links a:hover,
body.light-theme .nav-links a.active {
  text-shadow: none !important;
}

/* Footer light mode theme resolution - using a beautiful light blue-white background */
body.light-theme .footer {
  background: #f0f6ff !important;
  border-top: 1px solid rgba(37, 99, 235, 0.12) !important;
}

/* CTA / Contact Container - glowing light blue-to-pink gradient in Light Mode */
body.light-theme .cta-container {
  background: linear-gradient(135deg, rgba(147, 197, 253, 0.25) 0%, rgba(253, 164, 175, 0.25) 100%) !important;
  border: 1px solid rgba(37, 99, 235, 0.2) !important;
  box-shadow: 0 20px 40px rgba(37, 99, 235, 0.05), 0 0 30px rgba(253, 164, 175, 0.1) !important;
}

body.light-theme .cta-container::after {
  background: radial-gradient(circle at center, rgba(37, 99, 235, 0.08) 0%, transparent 60%) !important;
}

body.light-theme .btn-glow {
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3) !important;
}

body.light-theme .btn-glow:hover {
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45) !important;
}

body.light-theme .btn-outline {
  background: rgba(15, 23, 42, 0.04) !important;
  border: 1px solid rgba(15, 23, 42, 0.12) !important;
  color: var(--text-main) !important;
}

body.light-theme .btn-outline:hover {
  background: rgba(15, 23, 42, 0.08) !important;
  border-color: var(--neon-blue) !important;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.15) !important;
}

body.light-theme .project-title,
body.light-theme .step-title,
body.light-theme .benefit-title,
body.light-theme .client-info h4,
body.light-theme .cta-title,
body.light-theme .footer-col h5,
body.light-theme .trust-logo-item {
  color: var(--text-main) !important;
}

body.light-theme .social-icon {
  border-color: var(--glass-border) !important;
  color: var(--text-muted) !important;
}

body.light-theme .social-icon:hover {
  color: #ffffff !important;
}

/* Light mode expanded background glows & auroras */
body.light-theme .bg-orb {
  opacity: 0.85 !important;
  filter: blur(140px) !important;
  mix-blend-mode: normal !important; /* switch to normal for true glowing overlay */
}

body.light-theme .orb-1 {
  width: 75vw !important;
  height: 75vw !important;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.07) 0%, transparent 70%) !important;
}

body.light-theme .orb-2 {
  width: 65vw !important;
  height: 65vw !important;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.07) 0%, transparent 70%) !important;
}

body.light-theme .orb-3 {
  width: 70vw !important;
  height: 70vw !important;
  background: radial-gradient(circle, rgba(244, 63, 94, 0.06) 0%, transparent 70%) !important;
}

/* Body pseudo-elements for 2 additional massive glowing auroras in Light Mode (top/bottom) */
body.light-theme::before {
  content: '' !important;
  position: fixed !important;
  top: -20%;
  left: 15%;
  width: 80vw;
  height: 80vw;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.08) 0%, transparent 70%) !important;
  z-index: -2 !important;
  pointer-events: none !important;
  filter: blur(140px) !important;
  opacity: 1 !important;
}

body.light-theme::after {
  content: '' !important;
  position: fixed !important;
  bottom: -20%;
  right: 15%;
  width: 80vw;
  height: 80vw;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.07) 0%, transparent 70%) !important;
  z-index: -2 !important;
  pointer-events: none !important;
  filter: blur(140px) !important;
  opacity: 1 !important;
}

/* Timeline light theme adjustments */
body.light-theme .timeline-track {
  background: rgba(15, 23, 42, 0.08) !important;
}

body.light-theme .timeline-dot {
  background: var(--bg-secondary) !important;
  border-color: var(--glass-border) !important;
  color: var(--text-main) !important;
}

body.light-theme .timeline-step.active .timeline-dot {
  background: var(--gradient-neon) !important;
  color: #ffffff !important;
}

/* Vertical Theme Toggle Switch Widget - placed just below the Get Started CTA button on the right */
.vertical-theme-toggle {
  position: fixed;
  top: 96px;
  right: 28px;
  width: 32px;
  height: 72px;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  z-index: 1000;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  user-select: none;
}

body.light-theme .vertical-theme-toggle {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.08);
}

.toggle-slider {
  position: absolute;
  top: 4px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gradient-neon);
  box-shadow: 0 2px 10px rgba(0, 242, 254, 0.4);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.6s !important;
  z-index: 1;
}

/* Slide handle positions */
body.light-theme .toggle-slider {
  transform: translateY(38px);
  background: var(--neon-blue);
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.4);
}

.toggle-option {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  z-index: 2;
  transition: color 0.3s;
}

/* Option active colors */
body:not(.light-theme) .dark-opt {
  color: #ffffff !important;
}

body.light-theme .light-opt {
  color: #ffffff !important;
}

/* Ensure navbar active state links don't have text shadows in light mode */
body.light-theme .nav-links a.active {
  color: var(--neon-blue) !important;
  font-weight: 700;
}

/* ==========================================================================
   MOBILE MENU & GENERAL RESPONSIVENESS OVERRIDES
   ========================================================================== */
html, body {
  width: 100%;
  max-width: 100% !important;
  overflow-x: hidden !important; /* Hard block all horizontal scroll leaks */
}

.mobile-menu-toggle {
  display: none; /* hidden on desktop */
}

body.menu-open {
  overflow: hidden !important; /* freeze page scroll when menu drawer is open */
}

@media (max-width: 640px) {
  .container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    box-sizing: border-box !important;
  }

  .mobile-menu-toggle {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    z-index: 2000 !important; /* Ensures it sits above other components */
    padding: 6px !important;
    width: 40px !important;
    height: 40px !important;
    position: relative !important;
  }
  
  /* Fallback raw hex colors to bypass text-main inheritance issues */
  body.light-theme .mobile-menu-toggle {
    color: #0f172a !important;
  }
  body:not(.light-theme) .mobile-menu-toggle {
    color: #ffffff !important;
  }

  .mobile-menu-toggle svg {
    display: block !important;
    width: 24px !important;
    height: 24px !important;
    fill: none !important;
    pointer-events: none !important;
  }
  
  .mobile-menu-toggle svg path {
    stroke: currentColor !important; /* Inherits explicit color set above */
    stroke-width: 2.5px !important;
    display: block !important;
  }

  /* Convert navigation links into a glassmorphic vertical overlay drawer */
  .nav-links {
    display: none !important; /* hidden by default */
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(5, 3, 10, 0.98) !important; /* deep dark glass background */
    backdrop-filter: blur(25px) !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 28px !important;
    z-index: 999 !important;
    padding: 40px !important;
    margin: 0 !important;
    list-style: none !important;
  }

  body.light-theme .nav-links {
    background: rgba(248, 250, 252, 0.98) !important; /* light slate glass background */
  }

  .nav-links.active {
    display: flex !important;
  }

  .nav-links li {
    width: 100%;
    text-align: center;
  }

  .nav-links a {
    font-size: 1.6rem !important;
    font-weight: 600 !important;
    display: block;
    padding: 12px;
    color: var(--text-main) !important;
    transition: color 0.3s, transform 0.3s;
  }

  .nav-links a:hover,
  .nav-links a.active {
    color: var(--neon-blue) !important;
    transform: scale(1.05);
  }

  /* Hide Desktop Nav Action Buttons on mobile to save space */
  .nav-actions {
    display: none !important;
  }

  /* Compact theme toggle switch position on mobile views */
  .vertical-theme-toggle {
    top: 84px !important;
    right: 16px !important;
    transform: scale(0.9) !important;
    z-index: 900 !important; /* sits below overlay menu */
  }
}

/* Testimonials page layout off-screen right-bleed fixes under 860px */
@media (max-width: 860px) {
  .testimonials-hero-right {
    margin-right: 0 !important;
    height: 300px !important;
    overflow: hidden !important;
  }

  .testimonials-spline-title {
    right: 0 !important;
    position: relative !important;
    height: 100% !important;
    width: 100% !important;
  }
}

/* Spline Canvas and Section Heights overrides for mobile viewports */
@media (max-width: 768px) {
  .boxes-hover-spline-section {
    height: 380px !important; /* compact height for boxes spline */
  }

  .boxes-hover-spline-container {
    height: 100% !important;
  }

  .boxes-triangle-divider svg {
    height: 60px !important; /* scale triangle height down */
  }
}

@media (max-width: 480px) {
  .hero-visual-reserved {
    height: 320px !important; /* scale down hero robot canvas size */
  }

  .section-header {
    margin-bottom: 40px !important;
  }

  .section-title {
    font-size: 2.0rem !important;
  }

  .hero-title {
    font-size: 2.1rem !important;
    line-height: 1.3 !important;
  }

  .cta-title {
    font-size: 1.8rem !important;
  }

  .cta-container {
    padding: 40px 20px !important;
  }
  
  .services-spline-container,
  .why-us-spline-container {
    height: 240px !important; /* shrink inner page splines on small screens */
  }

  .testimonials-hero-right {
    height: 220px !important;
  }

  /* Shrink & Wrap Hero Badge on small viewports */
  .badge {
    display: inline-flex !important;
    font-size: 0.7rem !important;
    letter-spacing: 0.5px !important;
    padding: 4px 10px !important;
    white-space: normal !important;
    text-align: center !important;
    max-width: 100% !important;
    margin-left: auto;
    margin-right: auto;
  }

  /* Stack Hero Call-to-Action buttons vertically on small screens */
  .hero-actions {
    flex-direction: column !important;
    gap: 12px !important;
    width: 100% !important;
    margin-bottom: 40px !important;
  }

  .hero-actions .btn {
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
    font-size: 0.95rem !important;
    padding: 14px 24px !important;
  }

  /* Compact Trust Logos Grid spacing */
  .trust-logos {
    gap: 12px 18px !important;
  }

  .trust-logo-item {
    font-size: 0.85rem !important;
    letter-spacing: 1px !important;
  }

  /* Shrink Timeline layout to fit small screens */
  .timeline-step {
    grid-template-columns: 36px 1fr !important;
    gap: 16px !important;
  }

  .timeline-dot {
    width: 36px !important;
    height: 36px !important;
    font-size: 0.9rem !important;
  }

  .timeline-content {
    padding: 16px 20px !important;
  }
}

/* Micro-device refinements for Galaxy Fold and small screens */
@media (max-width: 380px) {
  .brand-logo span {
    font-size: 1.15rem !important;
  }
  
  .logo-img {
    height: 32px !important;
  }

  .hero-title {
    font-size: 1.8rem !important;
  }
}

/* ---- Mobile: toggle pill sits inline in navbar row — HORIZONTAL ---- */
@media (max-width: 640px) {
  /* Safety: hide any stray fixed toggle that's not inside nav */
  .vertical-theme-toggle:not(.nav-theme-toggle) {
    display: none !important;
  }

  /* Horizontal pill inside the navbar row */
  .nav-theme-toggle {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    /* Horizontal dimensions: wide and short */
    width: 62px !important;
    height: 28px !important;
    /* Switch flex to row so icons sit left/right */
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0 4px !important;
    flex-shrink: 0 !important;
    z-index: 2002 !important;
    transform: none !important;
    border-radius: 20px !important;
  }

  /* Slider ball — moves LEFT to RIGHT */
  .nav-theme-toggle .toggle-slider {
    position: absolute !important;
    width: 20px !important;
    height: 20px !important;
    top: 3px !important;
    left: 3px !important;
    transform: translateX(0) !important;   /* dark mode: left side */
  }

  body.light-theme .nav-theme-toggle .toggle-slider {
    transform: translateX(34px) !important; /* light mode: right side */
    background: var(--neon-blue) !important;
  }

  .nav-theme-toggle .toggle-option {
    width: 20px !important;
    height: 20px !important;
    flex-shrink: 0 !important;
  }
}

/* ==========================================================================
   MOBILE-ONLY TOP BANNER
   ========================================================================== */
.mobile-top-banner {
  display: none; /* hidden on desktop */
}

@media (max-width: 640px) {
  .mobile-top-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 8px 16px;
    background: linear-gradient(90deg, rgba(37,99,235,0.18) 0%, rgba(124,58,237,0.18) 100%);
    border-bottom: 1px solid rgba(99, 102, 241, 0.25);
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-muted, #94a3b8);
    letter-spacing: 0.01em;
    text-align: center;
    line-height: 1.4;
    position: relative;
    z-index: 1200;
    box-sizing: border-box;
  }
  body.light-theme .mobile-top-banner {
    background: linear-gradient(90deg, rgba(37,99,235,0.08) 0%, rgba(124,58,237,0.08) 100%);
    border-bottom: 1px solid rgba(37,99,235,0.15);
    color: #475569;
  }
  .mobile-top-banner strong {
    color: var(--neon-blue, #2563eb);
    font-weight: 700;
  }
  .mobile-banner-icon {
    font-size: 0.9rem;
    flex-shrink: 0;
  }
  /* Push the navbar down to account for the banner height on mobile */
  .navbar {
    top: 37px !important; /* approx banner height */
  }
}
