/* ==========================================================================
   1. DESIGN SYSTEM, VARIABLE STYLES, & PRESETS
   ========================================================================== */
@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap");

:root {
  --bg-dark: #030014;
  --bg-card: rgba(10, 6, 32, 0.7);
  --bg-card-hover: rgba(18, 12, 58, 0.85);
  --primary: #6d28d9;
  --primary-glow: rgba(109, 40, 217, 0.35);
  --secondary: #06b6d4;
  --secondary-glow: rgba(6, 182, 212, 0.35);
  --accent: #ec4899;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(109, 40, 217, 0.2);
  --font-heading: "Space Grotesk", sans-serif;
  --font-body: "Plus Jakarta Sans", sans-serif;
  --transition-spring: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  background-color: var(--bg-dark);
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  perspective: 1000px;
}

/* Base Headings & Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--text-main);
  font-weight: 700;
  letter-spacing: -0.02em;
}

p {
  color: var(--text-muted);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

img {
  max-width: 100%;
  display: block;
}

/* Selection & Scrollbars */
::selection {
  background: var(--primary);
  color: #fff;
}

::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--secondary);
}

/* Custom Cursor */
.custom-cursor {
  width: 20px;
  height: 20px;
  border: 2px solid var(--secondary);
  border-radius: 50%;
  position: fixed;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9999;
  transition:
    width 0.2s,
    height 0.2s,
    background-color 0.2s;
  mix-blend-mode: difference;
}
.custom-cursor-dot {
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
  position: fixed;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9999;
}

/* Noise & Texture Overlays */
.noise-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.02'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 999;
}

/* Global Aurora Glows */
.aurora-container {
  position: fixed;
  width: 100vw;
  height: 100vh;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: -2;
  overflow: hidden;
}
.aurora-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.15;
  mix-blend-mode: screen;
}
.aurora-1 {
  width: 600px;
  height: 600px;
  background: var(--primary);
  top: -10%;
  left: -10%;
  animation: drift 25s infinite alternate ease-in-out;
}
.aurora-2 {
  width: 500px;
  height: 500px;
  background: var(--secondary);
  bottom: -10%;
  right: -10%;
  animation: drift 20s infinite alternate-reverse ease-in-out;
}

@keyframes drift {
  0% {
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
  100% {
    transform: translate(100px, 80px) rotate(360deg) scale(1.2);
  }
}

/* Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  width: 0%;
  z-index: 1000;
}

/* Preloader styles */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #000;
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.8s ease;
}
.preloader-inner {
  text-align: center;
}
.preloader-logo {
  width: 100px;
  height: auto;
  margin-bottom: 2rem;
  animation: pulseGlow 2s infinite alternate;
}
.preloader-bar {
  width: 200px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  margin: 0 auto;
}
.preloader-progress {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: width 0.1s linear;
}

@keyframes pulseGlow {
  from {
    filter: drop-shadow(0 0 5px var(--primary-glow));
  }
  to {
    filter: drop-shadow(0 0 20px var(--secondary));
  }
}

/* ==========================================================================
      2. HEADER, FOOTER, & LAYOUT UTILITIES
      ========================================================================== */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header Redesign */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(3, 0, 20, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-smooth);
}
.header.scrolled {
  background: rgba(3, 0, 20, 0.9);
  padding: 0.5rem 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}
.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.logo {
  height: 48px;
  width: auto;
  transition: var(--transition-spring);
  filter: invert(1) drop-shadow(0 0 8px var(--primary-glow));
}
.logo-link:hover .logo {
  transform: scale(1.08) rotate(2deg);
}

.nav {
  display: flex;
  align-items: center;
}
.nav-list {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}
.nav-link {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  padding: 0.5rem 0;
}
.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: var(--transition-smooth);
}
.nav-link:hover {
  color: var(--secondary);
}
.nav-link:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Dynamic Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.75rem;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: var(--transition-spring);
  position: relative;
  overflow: hidden;
  z-index: 1;
}
.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: 0.5s;
  z-index: -1;
}
.btn:hover::before {
  left: 100%;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), #8b5cf6);
  color: #fff;
  box-shadow: 0 4px 15px var(--primary-glow);
  border: none;
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px var(--primary-glow);
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: #fff;
  backdrop-filter: blur(5px);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--secondary);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px var(--secondary-glow);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
  padding: 0.5rem;
}
.mobile-toggle .bar {
  width: 25px;
  height: 2px;
  background: #fff;
  transition: var(--transition-smooth);
}

/* Mobile Nav Overlay */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background: rgba(3, 0, 20, 0.98);
  backdrop-filter: blur(20px);
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.6s cubic-bezier(0.77, 0, 0.175, 1);
}
.mobile-nav.active {
  right: 0;
}
.mobile-nav ul {
  list-style: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.mobile-nav ul a {
  font-size: 2rem;
  font-family: var(--font-heading);
  font-weight: 700;
}

/* Mega Footer Redesign */
.footer {
  background: #02000c;
  border-top: 1px solid var(--border-color);
  padding: 5rem 0 2.5rem;
  position: relative;
  overflow: hidden;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 4rem;
  margin-bottom: 4rem;
}
.footer-logo {
  height: 54px;
  filter: invert(1);
  margin-bottom: 1.5rem;
}
.footer-about-text {
  margin-bottom: 1.5rem;
}
.social-links {
  display: flex;
  gap: 1rem;
}
.social-link {
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition-spring);
}
.social-link:hover {
  background: var(--primary);
  transform: scale(1.15) translateY(-5px);
  border-color: var(--secondary);
  color: #fff;
}
.footer-col-title {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}
.footer-col-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--secondary);
}
.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.footer-links a:hover {
  color: var(--secondary);
  padding-left: 5px;
}
.contact-info {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-info li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.contact-info i {
  color: var(--secondary);
  margin-top: 0.3rem;
}
.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.9rem;
}

/* ==========================================================================
      3. HERO & 3D SYSTEM (INDEX ONLY)
      ========================================================================== */
.hero-wrapper {
  height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  perspective: 2000px;
}
/* Receding Perspective Grid Floor */
.grid-floor {
  position: absolute;
  width: 200%;
  height: 200%;
  top: 40%;
  left: -50%;
  background-image:
    linear-gradient(rgba(109, 40, 217, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(109, 40, 217, 0.07) 1px, transparent 1px);
  background-size: 50px 50px;
  transform: rotateX(75deg);
  transform-origin: top center;
  z-index: -1;
  animation: grid-scroll 20s linear infinite;
}
@keyframes grid-scroll {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 0 1000px;
  }
}

.hero-content {
  max-width: 800px;
  z-index: 2;
  transform-style: preserve-3d;
}
.hero-tagline {
  font-family: var(--font-heading);
  color: var(--secondary);
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: inline-block;
}
.hero-headline {
  font-size: 4.5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  position: relative;
  transform-style: preserve-3d;
  transform: translateZ(50px);
}
.hero-headline span {
  background: linear-gradient(135deg, #fff 30%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-desc {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  max-width: 600px;
  transform: translateZ(30px);
}
.hero-btns {
  display: flex;
  gap: 1.5rem;
  transform: translateZ(10px);
}

/* Floating 3D Geometric Entities */
.shape-mesh {
  position: absolute;
  width: 60px;
  height: 60px;
  border: 2px solid var(--secondary);
  opacity: 0.15;
  z-index: 1;
  animation: orbit3d 15s infinite linear;
}
.shape-1 {
  top: 20%;
  right: 15%;
  border-radius: 50%;
}
.shape-2 {
  bottom: 25%;
  left: 10%;
  transform: rotate(45deg);
}

@keyframes orbit3d {
  0% {
    transform: rotate3d(1, 1, 1, 0deg) translateY(0px);
  }
  50% {
    transform: rotate3d(1, 1, 1, 180deg) translateY(-20px);
  }
  100% {
    transform: rotate3d(1, 1, 1, 360deg) translateY(0px);
  }
}

/* Results Infinite Ticker Marquee */
.results-ticker {
  background: #06021d;
  border-y: 1px solid var(--border-color);
  padding: 1.5rem 0;
  overflow: hidden;
  position: relative;
  z-index: 5;
}
.ticker-wrap {
  display: flex;
  width: 100%;
}
.ticker-row {
  display: flex;
  gap: 4rem;
  white-space: nowrap;
  animation: marquee 25s linear infinite;
}
.ticker-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
}
.ticker-item span {
  color: var(--secondary);
}
.ticker-item i {
  color: var(--accent);
}
@keyframes marquee {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

/* ==========================================================================
      4. DETAILED SECTIONS & INTERACTIVE COMPONENT STRUCTURES
      ========================================================================== */
.section {
  padding: 8rem 0;
  position: relative;
}
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 5rem;
}
.section-title {
  font-size: 3rem;
  margin-bottom: 1rem;
}
.section-subtitle {
  color: var(--text-muted);
}

/* Services Grid Layout */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 2.5rem;
}
/* 3D Double Sided Flip Card Structure */
.flip-card {
  background: transparent;
  height: 420px;
  perspective: 1000px;
}
.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-style: preserve-3d;
}
.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}
.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(8px);
}
.card-front {
  background: var(--bg-card);
}
.card-back {
  background: linear-gradient(135deg, #090527 0%, #170d47 100%);
  transform: rotateY(180deg);
}
.card-icon {
  font-size: 3rem;
  color: var(--secondary);
  margin-bottom: 2rem;
  transition: var(--transition-spring);
}
.flip-card:hover .card-icon {
  transform: scale(1.15) translateZ(30px);
}
.card-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* Industry Specific Redirection System */
.industry-selector-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 3rem;
}
.industry-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}
.industry-tab {
  padding: 1rem 2rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 30px;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition-smooth);
}
.industry-tab.active {
    color: #fff;
  background: var(--primary);
  border-color: var(--secondary);
  box-shadow: 0 4px 15px var(--primary-glow);
}
.industry-content-container {
  position: relative;
  height: 350px;
}
.industry-pane {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}
.industry-pane.active {
  opacity: 1;
  visibility: visible;
}
.industry-pane-title {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

/* Dynamic KPI Panel Dashboard */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 3rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.kpi-stat-wrapper {
  font-size: 4rem;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--secondary);
  line-height: 1;
  margin-bottom: 1rem;
}
.kpi-bar-container {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 1.5rem;
}
.kpi-bar-active {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: width 2s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Morphing Process Pipeline */
.process-line-wrapper {
  position: relative;
  padding: 4rem 0;
}
.process-line-wrapper::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  z-index: 1;
  transform: translateY(-50%);
}
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
  z-index: 2;
}
.process-step {
  background: rgba(10, 6, 32, 1);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2.5rem 1.5rem;
  text-align: center;
  transition: var(--transition-spring);
}
.process-step:hover {
  transform: translateY(-10px);
  border-color: var(--secondary);
  box-shadow: 0 10px 30px var(--primary-glow);
}
.process-num {
  width: 50px;
  height: 50px;
  background: var(--primary);
  border: 2px solid var(--secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 auto 1.5rem;
}

/* Dynamic ROI Interactive Calculator */
.roi-card {
  background: rgba(10, 6, 32, 0.7);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 4rem;
  max-width: 1000px;
  margin: 0 auto;
}
.roi-flex {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}
.roi-form-group {
  margin-bottom: 2rem;
}
.roi-form-group label {
  display: block;
  font-family: var(--font-heading);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}
.roi-slider {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  border-radius: 4px;
}
.roi-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--secondary);
  cursor: pointer;
  box-shadow: 0 0 10px var(--secondary);
  transition: 0.1s;
}
.roi-metrics-panel {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2.5rem;
  text-align: center;
}
.roi-result-num {
  font-size: 3.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--secondary);
  margin: 1rem 0;
}

/* Campaign Goal Matcher Questionnaire */
.quiz-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 4rem;
  max-width: 800px;
  margin: 0 auto;
}
.quiz-step {
  display: none;
}
.quiz-step.active {
  display: block;
  animation: fadeIn 0.5s ease;
}
.quiz-title {
  font-size: 1.8rem;
  margin-bottom: 2rem;
}
.quiz-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}
.quiz-option {
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  transition: var(--transition-smooth);
}
.quiz-option:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--secondary);
}
.quiz-option.selected {
  background: var(--primary);
  border-color: var(--secondary);
}
.quiz-controls {
  display: flex;
  justify-content: space-between;
  margin-top: 3rem;
}

/* 3D Testimonials Stack Grid */
.testimonials-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.testimonial-stack-container {
  position: relative;
  height: 400px;
}
.testimonial-card {
  position: absolute;
  width: 100%;
  background: rgba(10, 6, 32, 1);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 3rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition:
    transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    opacity 0.6s ease;
}
.testimonial-quote {
  font-size: 1.2rem;
  font-style: italic;
  margin-bottom: 2rem;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary);
}

/* Before/After Drag Slider Overlay */
.ba-container {
  width: 100%;
  height: 500px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border-color);
}
.ba-img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
}
.ba-before {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    url("https://images.unsplash.com/photo-1551836022-d5d88e9218df?q=80&w=1200&auto=format&fit=crop");
}
.ba-after {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)),
    url("https://images.unsplash.com/photo-1460925895917-afdab827c52f?q=80&w=1200&auto=format&fit=crop");
  width: 50%;
  z-index: 2;
}
.ba-slider-bar {
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  height: 100%;
  background: var(--secondary);
  cursor: ew-resize;
  z-index: 3;
  transform: translateX(-50%);
}
.ba-handle {
  width: 40px;
  height: 40px;
  background: var(--secondary);
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px var(--secondary);
}

/* ==========================================================================
      5. CONTACT & LEAD CONVERSION PANELS
      ========================================================================== */
.contact-section-page {
  padding: 6rem 0;
}
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
}
.contact-info-col {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 4rem;
}
.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 3rem;
}
.contact-method {
  display: flex;
  gap: 1.5rem;
}
.method-icon {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--secondary);
}
.contact-form-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 4rem;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.form-group label {
  font-weight: 500;
}
.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1rem;
  color: #fff;
  font-family: inherit;
  transition: var(--transition-smooth);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--secondary);
  outline: none;
  box-shadow: 0 0 10px var(--secondary-glow);
}

/* Popups & Modals */
.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(3, 0, 20, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
}
.popup:target {
  opacity: 1;
  visibility: visible;
}
.popup-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 4rem;
  max-width: 500px;
  text-align: center;
}

/* ==========================================================================
      6. AI INTERACTIVE CHATBOT SYSTEM
      ========================================================================== */
.ai-chat-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
}
.ai-chat-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 10px 25px var(--primary-glow);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
  transition: var(--transition-spring);
}
.ai-chat-btn:hover {
  transform: scale(1.1) rotate(10deg);
}
.ai-chat-window {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 380px;
  height: 500px;
  background: rgba(10, 6, 32, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.9) translateY(20px);
  transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.ai-chat-window.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1) translateY(0);
}
.ai-chat-header {
  background: rgba(255, 255, 255, 0.03);
  padding: 1.25rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ai-chat-body {
  flex: 1;
  padding: 1.25rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.ai-message {
  padding: 0.85rem 1.15rem;
  border-radius: 12px;
  max-width: 80%;
  font-size: 0.9rem;
}
.ai-message.bot {
  background: rgba(255, 255, 255, 0.05);
  align-self: flex-start;
}
.ai-message.user {
  background: var(--primary);
  align-self: flex-end;
}
.ai-chat-footer {
  padding: 1rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 0.5rem;
}
.ai-chat-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: #fff;
  outline: none;
}
.ai-chat-send {
  background: var(--secondary);
  border: none;
  border-radius: 8px;
  width: 42px;
  height: 42px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

/* ==========================================================================
      7. FRAMER MOTION REPLICA ANIMATION MATRIX
      ========================================================================== */
.animate-on-scroll {
  opacity: 0;
  transition:
    opacity 0.8s cubic-bezier(0.25, 0.8, 0.25, 1),
    transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.animate-on-scroll.slide-in-up {
  transform: translateY(50px);
}
.animate-on-scroll.slide-in-down {
  transform: translateY(-50px);
}
.animate-on-scroll.slide-in-left {
  transform: translateX(-50px);
}
.animate-on-scroll.slide-in-right {
  transform: translateX(50px);
}
.animate-on-scroll.zoom-in {
  transform: scale(0.9);
}

.animate-on-scroll.active {
  opacity: 1;
  transform: none;
}

/* Fade In Utility Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
      8. MEDIA QUERIES (320px, 768px, 1024px, 1440px)
      ========================================================================== */
@media (max-width: 1200px) {
  .container {
    max-width: 960px;
  }
  .hero-headline {
    font-size: 3.5rem;
  }
  .footer-top {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
}

@media (max-width: 991px) {
  .container {
    max-width: 720px;
  }
  .header-actions .btn {
    display: none;
  }
  .mobile-toggle {
    display: flex;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
  .industry-pane {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .industry-content-container {
    height: auto;
  }
  .testimonials-wrapper {
    grid-template-columns: 1fr;
  }
  .roi-flex {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .container {
    max-width: 100%;
    padding: 0 1.5rem;
  }
  .hero-headline {
    font-size: 2.5rem;
  }
  .hero-btns {
    flex-direction: column;
  }
  .section-title {
    font-size: 2.2rem;
  }
  .contact-wrapper {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .process-steps {
    grid-template-columns: 1fr;
  }
  .process-line-wrapper::before {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-headline {
    font-size: 2rem;
  }
  .industry-tabs {
    flex-direction: column;
  }
  .industry-tab {
    text-align: center;
  }
}
