/* ==========================================================================
   CODENEXA TECHNOLOGIES - 3D Animated Web Platform
   High-performance Cyberpunk Dark Theme with Three.js 3D Engine & Glassmorphism
   ========================================================================== */

:root {
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Rich Obsidian Midnight Backgrounds (Deep, High-Contrast & Razor-Sharp) */
  --bg-darkest: #030712;
  --bg-deep: #060b18;
  --bg-card: rgba(8, 15, 30, 0.82);
  --bg-card-hover: rgba(13, 23, 46, 0.92);
  --bg-glass: rgba(5, 10, 22, 0.75);

  /* Gold & Amber Borders (Sharp & Glowing) */
  --border-subtle: rgba(245, 158, 11, 0.35);
  --border-highlight: rgba(251, 191, 36, 0.65);
  --border-active: #f59e0b;

  /* Brilliant High-Contrast Typography */
  --text-main: #ffffff;
  --text-dim: #e2e8f0;
  --text-muted: #94a3b8;
  --text-glow: #ffffff;

  /* Radiant Gold & Sunfire Accents */
  --accent-cyan: #f59e0b;
  --accent-teal: #fbbf24;
  --accent-emerald: #10b981;
  --accent-blue: #38bdf8;
  --accent-purple: #f59e0b;

  /* Punchy, Non-Dull Luminous Glows */
  --glow-cyan-sm: 0 0 15px rgba(245, 158, 11, 0.5);
  --glow-cyan-md: 0 0 32px rgba(245, 158, 11, 0.7);
  --glow-cyan-lg: 0 0 55px rgba(245, 158, 11, 0.85);
  --glow-pill: 0 0 25px rgba(245, 158, 11, 0.65);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ==========================================================================
   THEME PRESETS (Switched via data-theme on <html>)
   ========================================================================== */

/* 1. Cyber Cyan (Original Neon Cyan / Teal) */
[data-theme="cyber-cyan"] {
  --bg-darkest: #030712;
  --bg-deep: #060d1a;
  --bg-card: rgba(9, 21, 37, 0.75);
  --bg-card-hover: rgba(14, 32, 56, 0.85);
  --bg-glass: rgba(6, 13, 26, 0.65);

  --border-subtle: rgba(26, 61, 99, 0.4);
  --border-highlight: rgba(245, 158, 11, 0.35);
  --border-active: #f59e0b;

  --text-main: #f1f5f9;
  --text-dim: #94a3b8;
  --text-muted: #64748b;

  --accent-cyan: #f59e0b;
  --accent-teal: #d97706;
  --accent-purple: #a855f7;

  --glow-cyan-sm: 0 0 15px rgba(245, 158, 11, 0.35);
  --glow-cyan-md: 0 0 30px rgba(245, 158, 11, 0.45);
  --glow-cyan-lg: 0 0 50px rgba(245, 158, 11, 0.6);
  --glow-pill: 0 0 20px rgba(245, 158, 11, 0.3);
}

/* 2. Obsidian Violet & Electric Indigo (Active Default) */
[data-theme="obsidian-violet"] {
  --bg-darkest: #07050f;
  --bg-deep: #0d0a1c;
  --bg-card: rgba(18, 13, 36, 0.78);
  --bg-card-hover: rgba(26, 19, 52, 0.88);
  --bg-glass: rgba(10, 7, 22, 0.7);

  --border-subtle: rgba(139, 92, 246, 0.28);
  --border-highlight: rgba(192, 132, 252, 0.4);
  --border-active: #c084fc;

  --text-main: #f3f0ff;
  --text-dim: #a78bfa;
  --text-muted: #7c6f9f;

  --accent-cyan: #c084fc;
  --accent-teal: #818cf8;
  --accent-purple: #c084fc;

  --glow-cyan-sm: 0 0 15px rgba(168, 85, 247, 0.35);
  --glow-cyan-md: 0 0 30px rgba(168, 85, 247, 0.5);
  --glow-cyan-lg: 0 0 50px rgba(168, 85, 247, 0.65);
  --glow-pill: 0 0 20px rgba(168, 85, 247, 0.4);
}

/* 3. Electric Emerald & Cyber Mint */
[data-theme="electric-emerald"] {
  --bg-darkest: #02120b;
  --bg-deep: #051e13;
  --bg-card: rgba(6, 31, 20, 0.78);
  --bg-card-hover: rgba(9, 44, 29, 0.88);
  --bg-glass: rgba(3, 20, 12, 0.7);

  --border-subtle: rgba(16, 185, 129, 0.28);
  --border-highlight: rgba(52, 211, 153, 0.4);
  --border-active: #10b981;

  --text-main: #ecfdf5;
  --text-dim: #6ee7b7;
  --text-muted: #4b826b;

  --accent-cyan: #10b981;
  --accent-teal: #06b6d4;
  --accent-purple: #34d399;

  --glow-cyan-sm: 0 0 15px rgba(16, 185, 129, 0.35);
  --glow-cyan-md: 0 0 30px rgba(16, 185, 129, 0.5);
  --glow-cyan-lg: 0 0 50px rgba(16, 185, 129, 0.65);
  --glow-pill: 0 0 20px rgba(16, 185, 129, 0.4);
}

/* 4. Midnight Gold & Obsidian Matrix */
[data-theme="midnight-gold"] {
  --bg-darkest: #030712;
  --bg-deep: #060b18;
  --bg-card: rgba(8, 15, 30, 0.82);
  --bg-card-hover: rgba(13, 23, 46, 0.92);
  --bg-glass: rgba(5, 10, 22, 0.75);

  --border-subtle: rgba(245, 158, 11, 0.35);
  --border-highlight: rgba(251, 191, 36, 0.65);
  --border-active: #f59e0b;

  --text-main: #ffffff;
  --text-dim: #e2e8f0;
  --text-muted: #94a3b8;

  --accent-cyan: #f59e0b;
  --accent-teal: #fbbf24;
  --accent-purple: #f59e0b;

  --glow-cyan-sm: 0 0 15px rgba(245, 158, 11, 0.5);
  --glow-cyan-md: 0 0 32px rgba(245, 158, 11, 0.7);
  --glow-cyan-lg: 0 0 55px rgba(245, 158, 11, 0.85);
  --glow-pill: 0 0 25px rgba(245, 158, 11, 0.65);
}

/* Base reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  color-scheme: dark;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-darkest);
  color: var(--text-main);
  overflow-x: hidden;
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  selection-background-color: var(--accent-cyan);
  selection-color: var(--bg-darkest);
}

::selection {
  background-color: var(--accent-cyan);
  color: var(--bg-darkest);
}

/* ==========================================================================
   Background 3D WebGL Canvas
   ========================================================================== */
#webgl-canvas-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

#webgl-canvas {
  width: 100%;
  height: 100%;
  display: block;
  outline: none;
}

/* Background atmospheric gradient overlay */
.cyber-grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  background: 
    radial-gradient(circle at 50% 15%, rgba(245, 158, 11, 0.08) 0%, transparent 60%),
    radial-gradient(circle at 85% 65%, rgba(168, 85, 247, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 15% 80%, rgba(16, 185, 129, 0.04) 0%, transparent 50%),
    linear-gradient(180deg, rgba(3, 7, 18, 0.2) 0%, rgba(3, 7, 18, 0.7) 70%, var(--bg-darkest) 100%);
}

.content-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
}

/* ==========================================================================
   Typography & Shared Utilities
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
  position: relative;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-cyan);
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.9rem;
  backdrop-filter: blur(8px);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #ffffff;
  margin-bottom: 0.8rem;
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.7);
}

.section-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  color: var(--text-dim);
  max-width: 680px;
  margin: 0 auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 600;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-smooth);
  border: 1px solid transparent;
  outline: none;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  vertical-align: middle;
  line-height: 1.25;
}

.btn-primary {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
  color: #030712;
  box-shadow: 0 4px 22px rgba(245, 158, 11, 0.45);
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.25);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 35px rgba(245, 158, 11, 0.7);
  background: linear-gradient(135deg, #fde047 0%, #fbbf24 50%, #f59e0b 100%);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 30px rgba(245, 158, 11, 0.58);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 30px rgba(245, 158, 11, 0.55);
}

.btn-secondary {
  background: rgba(13, 27, 46, 0.8);
  color: var(--text-main);
  border: 1px solid rgba(245, 158, 11, 0.3);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(245, 158, 11, 0.12);
  border-color: var(--accent-cyan);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.2);
}

.btn-sm {
  padding: 0.5rem 1.2rem;
  font-size: 0.875rem;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  transition: all var(--transition-smooth);
  padding: 1.25rem 0;
}

.site-header.scrolled {
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(245, 158, 11, 0.15);
  padding: 0.8rem 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Brand Logo */
/* Brand Logo Image */
.brand-logo-img {
  height: 44px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 10px rgba(245, 158, 11, 0.25));
  transition: transform var(--transition-bounce), filter var(--transition-smooth);
}

.brand-logo-wrap:hover .brand-logo-img {
  transform: scale(1.04);
  filter: drop-shadow(0 4px 18px rgba(245, 158, 11, 0.45));
}

.footer-logo-img {
  height: 46px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  display: block;
  margin-bottom: 0.8rem;
  filter: drop-shadow(0 2px 8px rgba(245, 158, 11, 0.2));
}

.brand-logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
  color: #ffffff;
}

.brand-icon {
  width: 44px;
  height: 44px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.5));
  transition: transform var(--transition-bounce);
}

.brand-logo-wrap:hover .brand-icon {
  transform: rotate(15deg) scale(1.08);
}

.brand-text-block {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  line-height: 1.2;
  color: #ffffff;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.brand-title span,
.brand-title .brand-title-accent {
  color: #f59e0b;
}

.brand-tagline {
  font-size: 0.7rem;
  color: #fcd34d;
  letter-spacing: 0.5px;
  font-weight: 500;
  white-space: nowrap;
}

/* Desktop Navigation Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  background: rgba(8, 20, 36, 0.6);
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(26, 61, 99, 0.4);
  backdrop-filter: blur(12px);
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-dim);
  text-decoration: none;
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  position: relative;
  white-space: nowrap;
}

.nav-link:hover {
  color: #ffffff;
}

/* Cyan Glowing Active Pill (from sample image) */
.nav-link.active {
  color: #0a0804;
  background: #f59e0b;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.6);
  font-weight: 700;
}

/* Header Action */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

/* Theme Switcher Dropdown */
.theme-switcher-dropdown {
  position: relative;
}

.theme-switcher-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(18, 13, 36, 0.7);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-full);
  font-family: var(--font-main);
  font-size: 0.825rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  backdrop-filter: blur(10px);
}

.theme-switcher-btn:hover {
  border-color: var(--accent-cyan);
  background: rgba(255, 255, 255, 0.08);
}

.theme-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
}

.theme-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: rgba(10, 7, 22, 0.96);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.5rem;
  display: none;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 175px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(16px);
  z-index: 120;
}

.theme-dropdown-menu.show {
  display: flex;
  animation: menuSlideDown 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.theme-opt-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: transparent;
  border: none;
  color: var(--text-dim);
  padding: 0.55rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.825rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: all var(--transition-fast);
}

.theme-opt-btn:hover,
.theme-opt-btn.active {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.dot-swatch {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  color: #ffffff;
  cursor: pointer;
  padding: 0.5rem;
}

/* ==========================================================================
   Sticky Left Ribbon (+ FREE QUOTE - from sample image)
   ========================================================================== */
.sticky-quote-tab {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  background: rgba(6, 17, 33, 0.9);
  border: 1px solid var(--accent-cyan);
  border-left: none;
  padding: 1rem 0.45rem;
  border-radius: 0 10px 10px 0;
  cursor: pointer;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.25);
  transition: all var(--transition-smooth);
}

.sticky-quote-tab:hover {
  background: rgba(245, 158, 11, 0.15);
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.5);
  transform: translateY(-50%) translateX(4px);
}

.sticky-quote-tab span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding-top: calc(5rem + 1vh);
  padding-bottom: 2.2rem;
  text-align: center;
  box-sizing: border-box;
}

.hero-content {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  position: relative;
  z-index: 5;
  background: radial-gradient(ellipse 70% 60% at 50% 40%, rgba(3, 7, 18, 0.65) 0%, rgba(3, 7, 18, 0.25) 60%, transparent 85%);
  padding: 1.25rem 1.25rem;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-badge-wrap {
  margin-bottom: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero-brand-title {
  font-size: clamp(2rem, 5.2vw, 4.4rem);
  font-weight: 900;
  letter-spacing: 3px;
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  text-align: center;
  white-space: nowrap;
  transition: all var(--transition-smooth);
}

.hero-brand-title .title-white {
  color: #ffffff;
  text-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.95),
    0 2px 4px rgba(0, 0, 0, 0.95),
    0 0 25px rgba(255, 255, 255, 0.35);
}

.hero-brand-title .title-gold {
  background: linear-gradient(135deg, #fef08a 0%, #fbbf24 40%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 25px rgba(245, 158, 11, 0.7));
}

@media (max-width: 680px) {
  .hero-brand-title {
    font-size: clamp(1.6rem, 7vw, 2.5rem);
    white-space: normal;
    line-height: 1.25;
  }
}

.hero-brand-title:hover {
  text-shadow: 
    0 6px 24px rgba(0, 0, 0, 0.95),
    var(--glow-cyan-md);
}

.hero-description {
  font-size: clamp(1rem, 1.8vw, 1.22rem);
  font-weight: 400;
  color: var(--text-dim);
  max-width: 720px;
  margin: 0 auto 1.8rem;
  line-height: 1.6;
  text-align: center;
  text-wrap: balance;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  width: 100%;
}

/* 3D Scene Controls HUD */
.scene-controls-hud {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(10, 24, 43, 0.6);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: var(--radius-full);
  padding: 0.4rem 0.9rem;
  backdrop-filter: blur(10px);
  margin-bottom: 2.5rem;
}

.hud-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.hud-label::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 0.4; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.3); }
}

.hud-btn {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: var(--accent-cyan);
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.75rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.hud-btn:hover, .hud-btn.active {
  background: var(--accent-cyan);
  color: #030712;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

/* Hero Stats Counter */
.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  background: rgba(9, 21, 37, 0.55);
  border: 1px solid rgba(26, 61, 99, 0.45);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.6rem;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -0.625rem;
  top: 15%;
  height: 70%;
  width: 1px;
  background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.12) 50%, transparent 100%);
}

.stat-number {
  font-size: clamp(1.6rem, 2.8vw, 2.1rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
  background: linear-gradient(180deg, #ffffff 0%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 0.35rem;
  text-align: center;
  white-space: nowrap;
}

/* ==========================================================================
   Services Section ("What We Do" - from sample image)
   ========================================================================== */
.services-section {
  padding: 7rem 0 6rem;
  position: relative;
}

.services-carousel-track {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.6rem;
  perspective: 1200px;
}

/* 3D Glassmorphism Service Cards */
.service-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.2rem 1.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform 0.2s ease-out, border-color var(--transition-smooth), box-shadow var(--transition-smooth);
  cursor: pointer;
  transform-style: preserve-3d;
  overflow: hidden;
}

/* Spotlight cursor glow overlay on cards */
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(245, 158, 11, 0.15) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition-smooth);
  pointer-events: none;
  z-index: 1;
}

.service-card:hover::before {
  opacity: 1;
}

.service-card:hover {
  border-color: rgba(245, 158, 11, 0.6);
  box-shadow: 0 15px 35px -5px rgba(245, 158, 11, 0.25);
}

/* Active Highlighted Card (Matches "School & College Portals" in screenshot) */
.service-card.card-featured,
.service-card.active {
  border: 1.5px solid var(--accent-cyan);
  box-shadow: 
    0 0 35px rgba(245, 158, 11, 0.35),
    inset 0 0 20px rgba(245, 158, 11, 0.1);
  background: rgba(10, 25, 47, 0.85);
}

.service-card-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: 100%;
  transform: translateZ(30px);
}

/* Icon Container (matching rounded teal/cyan box in screenshot) */
.service-icon-box {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: rgba(8, 145, 178, 0.15);
  border: 1.5px solid rgba(245, 158, 11, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  margin-bottom: 1.6rem;
  transition: all var(--transition-bounce);
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.2);
}

.service-card:hover .service-icon-box,
.service-card.card-featured .service-icon-box {
  transform: scale(1.1) translateY(-4px);
  background: rgba(245, 158, 11, 0.22);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.5);
}

.service-icon-box svg {
  width: 34px;
  height: 34px;
  stroke: var(--accent-cyan);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.service-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1rem;
  letter-spacing: -0.2px;
}

.service-description {
  font-size: 0.925rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.service-features-list {
  list-style: none;
  width: 100%;
  text-align: left;
  margin-bottom: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(26, 61, 99, 0.4);
}

.service-features-list li {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.service-features-list li::before {
  content: '✓';
  color: var(--accent-cyan);
  font-weight: bold;
}

.service-cta-btn {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-cyan);
  background: transparent;
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 0.45rem 1.25rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.service-card:hover .service-cta-btn {
  background: var(--accent-cyan);
  color: #030712;
  border-color: var(--accent-cyan);
}

/* ==========================================================================
   Interactive Tech Matrix & 3D Badges
   ========================================================================== */
.tech-matrix-section {
  padding: 6rem 0;
  position: relative;
}

.tech-filter-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.tech-filter-btn {
  background: rgba(13, 27, 46, 0.6);
  border: 1px solid rgba(26, 61, 99, 0.4);
  color: var(--text-dim);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.tech-filter-btn:hover,
.tech-filter-btn.active {
  background: rgba(245, 158, 11, 0.15);
  border-color: var(--accent-cyan);
  color: #ffffff;
}

.tech-badges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1.2rem;
}

.tech-badge-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all var(--transition-smooth);
  backdrop-filter: blur(10px);
}

.tech-badge-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-cyan);
  box-shadow: 0 10px 25px rgba(245, 158, 11, 0.2);
}

.tech-badge-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tech-badge-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.2rem;
}

.tech-badge-category {
  font-size: 0.72rem;
  color: var(--accent-cyan);
  font-family: var(--font-mono);
}

/* ==========================================================================
   Portfolio Showcase Section
   ========================================================================== */
.portfolio-section {
  padding: 6rem 0;
  position: relative;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
}

.portfolio-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(12px);
  transition: all var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.portfolio-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 25px rgba(245, 158, 11, 0.2);
}

.portfolio-preview-box {
  width: 100%;
  height: 220px;
  position: relative;
  background: linear-gradient(135deg, #091a30 0%, #030a16 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(26, 61, 99, 0.4);
}

.portfolio-preview-graphic {
  width: 80%;
  height: 75%;
  border-radius: 8px;
  background: rgba(14, 34, 61, 0.8);
  border: 1px solid rgba(245, 158, 11, 0.3);
  display: flex;
  flex-direction: column;
  padding: 0.6rem;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  transition: transform var(--transition-smooth);
}

.portfolio-card:hover .portfolio-preview-graphic {
  transform: scale(1.04);
}

.mockup-header-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 0.6rem;
}

.mockup-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #ef4444;
}
.mockup-dot:nth-child(2) { background-color: #f59e0b; }
.mockup-dot:nth-child(3) { background-color: #10b981; }

.mockup-screen-content {
  flex-grow: 1;
  background: rgba(4, 11, 22, 0.9);
  border-radius: 4px;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.mockup-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-cyan);
  background: rgba(245, 158, 11, 0.1);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}

.portfolio-info {
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.portfolio-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
}

.portfolio-category {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-cyan);
  text-transform: uppercase;
}

.portfolio-year {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.portfolio-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.portfolio-desc {
  font-size: 0.875rem;
  color: var(--text-dim);
  margin-bottom: 1.2rem;
  flex-grow: 1;
}

.portfolio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.portfolio-tag {
  font-size: 0.72rem;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.2);
  color: var(--text-dim);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}

/* ==========================================================================
   Development Process Workflow
   ========================================================================== */
.process-section {
  padding: 6rem 0;
  position: relative;
}

.process-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
}

.process-step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  position: relative;
  backdrop-filter: blur(10px);
  transition: all var(--transition-smooth);
}

.process-step-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-cyan);
  box-shadow: 0 10px 30px rgba(245, 158, 11, 0.2);
}

.step-number {
  font-family: var(--font-mono);
  font-size: 2.2rem;
  font-weight: 900;
  color: rgba(245, 158, 11, 0.35);
  margin-bottom: 0.8rem;
  line-height: 1;
}

.step-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.6rem;
}

.step-desc {
  font-size: 0.875rem;
  color: var(--text-dim);
  line-height: 1.5;
}

/* ==========================================================================
   Contact & Quote Section
   ========================================================================== */
.contact-section {
  padding: 7rem 0 6rem;
  position: relative;
}

.contact-layout-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 3rem;
  align-items: start;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.contact-detail-card {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  backdrop-filter: blur(10px);
}

.contact-icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  flex-shrink: 0;
}

.contact-icon-circle svg {
  width: 22px;
  height: 22px;
  stroke: var(--accent-cyan);
  stroke-width: 2;
  fill: none;
}

.contact-detail-text h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.contact-detail-text p,
.contact-detail-text a {
  font-size: 0.9rem;
  color: var(--text-dim);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.contact-detail-text a:hover {
  color: var(--accent-cyan);
}

/* Form */
.contact-form-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  backdrop-filter: blur(14px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.form-group {
  margin-bottom: 1.3rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  background: rgba(4, 11, 22, 0.8);
  border: 1px solid rgba(26, 61, 99, 0.6);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.1rem;
  color: #ffffff;
  font-family: var(--font-main);
  font-size: 0.95rem;
  outline: none;
  transition: all var(--transition-fast);
}

.form-control:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.25);
  background: rgba(6, 17, 33, 0.95);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

/* ==========================================================================
   Floating Action Dock (Bottom-Right - from sample image)
   ========================================================================== */
.floating-actions-dock {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 95;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.floating-action-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: all var(--transition-bounce);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  position: relative;
  text-decoration: none;
}

.floating-action-btn:hover {
  transform: scale(1.15) translateY(-3px);
}

/* Sparkle / AI Assistant Button (Rainbow/purple glow from image) */
.btn-sparkle {
  background: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 50%, #f59e0b 100%);
  box-shadow: 0 0 25px rgba(139, 92, 246, 0.6);
}

.btn-sparkle svg {
  width: 26px;
  height: 26px;
  color: #ffffff;
}

/* Phone Quick Action (Teal button with phone icon) */
.btn-phone {
  background: #d97706;
  box-shadow: 0 0 20px rgba(8, 145, 178, 0.5);
}

.btn-phone svg {
  width: 24px;
  height: 24px;
  stroke: #ffffff;
  fill: none;
  stroke-width: 2;
}

/* Chat / WhatsApp Action (Teal button with chat bubble) */
.btn-chat {
  background: #06b6d4;
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.5);
}

.btn-chat svg {
  width: 24px;
  height: 24px;
  stroke: #ffffff;
  fill: none;
  stroke-width: 2;
}

/* Tooltip on floating buttons */
.floating-action-btn::after {
  content: attr(data-tooltip);
  position: absolute;
  right: 65px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(3, 7, 18, 0.9);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition-fast);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.floating-action-btn:hover::after {
  opacity: 1;
}

/* ==========================================================================
   Interactive Modals (Free Quote & AI Assistant)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(2, 6, 15, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-smooth);
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-dialog {
  background: rgba(8, 20, 36, 0.95);
  border: 1px solid var(--accent-cyan);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 650px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.2rem;
  position: relative;
  box-shadow: 0 20px 60px rgba(245, 158, 11, 0.3);
  transform: scale(0.95) translateY(20px);
  transition: transform var(--transition-bounce);
}

.modal-backdrop.open .modal-dialog {
  transform: scale(1) translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: var(--accent-cyan);
  color: #030712;
}

.service-selector-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin: 1.2rem 0;
}

.service-choice-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(4, 11, 22, 0.8);
  border: 1px solid rgba(26, 61, 99, 0.6);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.85rem;
  transition: all var(--transition-fast);
}

.service-choice-label:hover,
.service-choice-label input:checked + span {
  color: var(--accent-cyan);
}

.service-choice-label:has(input:checked) {
  border-color: var(--accent-cyan);
  background: rgba(245, 158, 11, 0.1);
}

.service-inclusions-box {
  background: rgba(6, 17, 33, 0.7);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-md);
  padding: 1rem 1.2rem;
  margin: 1.2rem 0;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #02050c;
  border-top: 1px solid rgba(26, 61, 99, 0.4);
  padding: 4.5rem 0 2rem;
  position: relative;
  z-index: 10;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand p {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-top: 1rem;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.2rem;
  letter-spacing: 0.5px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent-cyan);
}

.footer-bottom {
  border-top: 1px solid rgba(26, 61, 99, 0.4);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  font-size: 0.825rem;
  color: var(--text-muted);
}

.footer-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
}

.status-dot-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1120px) and (min-width: 769px) {
  .nav-menu {
    gap: 0.25rem;
    padding: 0.25rem 0.4rem;
  }
  .nav-link {
    padding: 0.45rem 0.85rem;
    font-size: 0.78rem;
    letter-spacing: 0.5px;
  }
  .header-actions {
    gap: 0.5rem;
  }
}

@media (max-width: 1024px) {
  .footer-top-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-layout-grid {
    grid-template-columns: 1fr;
  }
  .process-steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .brand-logo-img {
    height: 36px;
    max-width: 170px;
  }
  .footer-logo-img {
    height: 38px;
    max-width: 170px;
  }
  .site-header {
    padding: 0.8rem 0;
  }
  .brand-title {
    font-size: 1.05rem;
  }
  .brand-tagline {
    font-size: 0.65rem;
  }
  .brand-icon {
    width: 36px;
    height: 36px;
  }
  .header-actions .btn-sm {
    padding: 0.4rem 0.85rem;
    font-size: 0.8rem;
  }
  .nav-menu {
    display: none;
  }
  .nav-menu.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: calc(100% + 8px);
    left: 1rem;
    right: 1rem;
    background: rgba(4, 11, 22, 0.98);
    border: 1px solid var(--accent-cyan);
    border-radius: var(--radius-lg);
    padding: 1rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9);
    animation: menuSlideDown 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .nav-link {
    text-align: center;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
  }
  .mobile-menu-btn {
    display: block;
  }
  .hero-section {
    padding-top: 6rem;
    padding-bottom: 2rem;
  }
  .hero-brand-title {
    font-size: clamp(2.2rem, 9vw, 3.6rem);
    letter-spacing: 2px;
    margin-right: -2px;
  }
  .hero-brand-subtitle {
    font-size: clamp(0.95rem, 3.5vw, 1.35rem);
    letter-spacing: 5px;
    margin-right: -5px;
    margin-bottom: 1.1rem;
  }
  .hero-description {
    font-size: 0.95rem;
    line-height: 1.55;
    margin-bottom: 1.6rem;
  }
  .hero-cta-group {
    margin-bottom: 1.8rem;
    gap: 0.9rem;
  }
  .hero-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 1rem;
  }
  .stat-item:not(:last-child)::after {
    display: none;
  }
  .stat-number {
    font-size: 1.5rem;
  }
  .stat-label {
    font-size: 0.75rem;
    white-space: normal;
  }
  .services-section,
  .tech-matrix-section,
  .portfolio-section,
  .process-section,
  .contact-section {
    padding: 4.5rem 0 3.5rem;
  }
  .services-carousel-track {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }
  .service-card {
    padding: 1.8rem 1.4rem;
  }
  .tech-badges-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
  }
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .contact-form-panel {
    padding: 1.6rem 1.2rem;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .form-control {
    font-size: 16px; /* Prevents auto-zoom on iOS Safari */
  }
  .service-selector-grid {
    grid-template-columns: 1fr;
  }
  .process-steps-grid {
    grid-template-columns: 1fr;
  }
  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .sticky-quote-tab {
    display: none;
  }
  .floating-actions-dock {
    bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    right: 1rem;
    gap: 0.6rem;
  }
  .floating-action-btn {
    width: 48px;
    height: 48px;
  }
  .floating-action-btn svg {
    width: 22px;
    height: 22px;
  }
  .modal-dialog {
    padding: 1.5rem 1.1rem;
    width: 95%;
    max-height: 88vh;
  }
  .modal-close-btn {
    top: 0.8rem;
    right: 0.8rem;
  }
  .chat-window {
    height: 350px;
  }
}

@keyframes menuSlideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 480px) {
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }
  .hero-cta-group .btn {
    width: 100%;
  }
  .tech-filter-nav {
    gap: 0.4rem;
  }
  .tech-filter-btn {
    padding: 0.4rem 0.85rem;
    font-size: 0.75rem;
  }
  .service-inclusions-box {
    flex-direction: column;
    text-align: center;
    gap: 0.6rem;
  }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   AI Assistant & Service Detail Modal Styling
   ========================================================================== */
.chat-window {
  display: flex;
  flex-direction: column;
  height: 440px;
}

.chat-messages {
  flex-grow: 1;
  overflow-y: auto;
  padding: 1rem;
  background: rgba(4, 11, 22, 0.85);
  border: 1px solid rgba(26, 61, 99, 0.5);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.chat-msg {
  max-width: 80%;
  padding: 0.75rem 1.1rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  line-height: 1.5;
  animation: fadeIn 0.25s ease;
}

.chat-msg-ai {
  align-self: flex-start;
  background: rgba(14, 32, 56, 0.9);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #f1f5f9;
  border-bottom-left-radius: 4px;
}

.chat-msg-user {
  align-self: flex-end;
  background: linear-gradient(135deg, #d97706 0%, #0284c7 100%);
  color: #ffffff;
  border-bottom-right-radius: 4px;
}

.typing-msg {
  font-style: italic;
  color: var(--accent-cyan);
  opacity: 0.8;
}

.chat-quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.ai-question-chip {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  color: var(--accent-cyan);
  font-size: 0.75rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.ai-question-chip:hover {
  background: var(--accent-cyan);
  color: #030712;
}

.chat-input-bar {
  display: flex;
  gap: 0.75rem;
}

.chat-input-bar input {
  flex-grow: 1;
  background: rgba(4, 11, 22, 0.9);
  border: 1px solid rgba(26, 61, 99, 0.8);
  border-radius: var(--radius-full);
  padding: 0.75rem 1.25rem;
  color: #ffffff;
  font-size: 0.9rem;
  outline: none;
}

.chat-input-bar input:focus {
  border-color: var(--accent-cyan);
}

.chat-send-btn {
  background: var(--accent-cyan);
  color: #030712;
  border: none;
  border-radius: var(--radius-full);
  padding: 0 1.4rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.chat-send-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.5);
}

.modal-specs-list {
  list-style: none;
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.modal-specs-list li {
  font-size: 0.925rem;
  color: var(--text-dim);
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.spec-check {
  color: var(--accent-cyan);
  font-weight: 800;
}

.modal-stack-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.2rem 0;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
