/* ==========================================================================
   MASTER DESIGN SYSTEM & ADVANCED CSS 3D ENGINE
   ========================================================================== */

:root {
  --bg-dark: #07070e;
  --bg-card: rgba(13, 13, 29, 0.7);
  --bg-card-hover: rgba(20, 20, 45, 0.85);
  --accent-primary: #6366f1;
  --accent-primary-rgb: 99, 102, 241;
  --accent-secondary: #a855f7;
  --accent-secondary-rgb: 168, 85, 247;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border-glow: rgba(99, 102, 241, 0.2);
  --border-glow-active: rgba(168, 85, 247, 0.5);
  --font-family: "Poppins", sans-serif;
  --spring-transition: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  cursor: none; /* Controlled by custom trailing cursor */
}

html {
  scroll-behavior: auto; /* Handled by custom momentum scroll script */
  scrollbar-width: thin;
  scrollbar-color: var(--accent-primary) var(--bg-dark);
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-family);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Custom Interactive Cursor */
.custom-cursor {
  width: 8px;
  height: 8px;
  background-color: var(--accent-secondary);
  border-radius: 50%;
  position: fixed;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
  transition:
    width 0.2s,
    height 0.2s;
}

.custom-cursor-follower {
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--accent-primary);
  border-radius: 50%;
  position: fixed;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9998;
  transition:
    transform 0.08s ease-out,
    border-color 0.3s;
}

/* Background Atmospheric Elements */
.glow-spotlight {
  position: fixed;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(99, 102, 241, 0.15) 0%,
    rgba(0, 0, 0, 0) 70%
  );
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
}

/* Cinematic Preloader */
.cinematic-preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #000;
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.preloader-track {
  width: 250px;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  margin-top: 20px;
  position: relative;
  overflow: hidden;
  border-radius: 1px;
}

.preloader-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(
    90deg,
    var(--accent-primary),
    var(--accent-secondary)
  );
  position: absolute;
  top: 0;
  left: 0;
  animation: load 3.5s forwards cubic-bezier(0.65, 0.05, 0.36, 1);
}

@keyframes load {
  0% {
    width: 0%;
  }
  50% {
    width: 60%;
  }
  100% {
    width: 100%;
  }
}

/* Header & Navigation Styles */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(7, 7, 14, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 15px 0;
}

.container {
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link img {
  height: 45px;
  filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.4));
  transition: transform 0.4s var(--spring-transition);
}

.logo-link img:hover {
  transform: scale(1.1) rotate(2deg);
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition:
    color 0.3s,
    transform 0.3s;
  position: relative;
  display: inline-block;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-main);
  transform: translateY(-2px);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--accent-primary),
    var(--accent-secondary)
  );
  transition: width 0.3s var(--spring-transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.btn {
  background: linear-gradient(
    135deg,
    var(--accent-primary),
    var(--accent-secondary)
  );
  color: var(--text-main);
  padding: 12px 28px;
  border-radius: 50px;
  border: none;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
  transition: all 0.4s var(--spring-transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    var(--accent-secondary),
    var(--accent-primary)
  );
  transition: left 0.4s ease;
  z-index: -1;
}

.btn:hover::before {
  left: 0;
}

.btn:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 30px rgba(168, 85, 247, 0.5);
}

/* Header Scroll Progress Bar */
.scroll-indicator {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--accent-primary),
    var(--accent-secondary)
  );
  width: 0%;
  z-index: 1001;
}

/* CSS 3D Rooms Scaffold */
.scene-3d-wrapper {
  perspective: 1000px;
  height: 100vh;
  width: 100vw;
  position: sticky;
  top: 0;
  overflow: hidden;
}

/* SECTION 1: 3D Immersive Hero */
.hero-3d-scene {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: radial-gradient(
    circle at center,
    rgba(13, 13, 29, 0.8) 0%,
    var(--bg-dark) 100%
  );
  transform-style: preserve-3d;
}

.grid-floor-3d {
  position: absolute;
  width: 200%;
  height: 200%;
  bottom: -50%;
  left: -50%;
  background-image:
    linear-gradient(rgba(99, 102, 241, 0.08) 2px, transparent 2px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.08) 2px, transparent 2px);
  background-size: 50px 50px;
  transform: rotateX(75deg);
  transform-origin: center bottom;
  pointer-events: none;
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 0 1000px;
  }
}

.hero-main-content {
  text-align: center;
  z-index: 10;
  transform: translateZ(100px);
  max-width: 900px;
}

.hero-extruded-title {
  font-size: 5rem;
  font-weight: 800;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--text-main) 30%, var(--text-muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
  margin-bottom: 25px;
  text-shadow:
    1px 1px 0px #4f46e5,
    2px 2px 0px #4338ca,
    3px 3px 0px #3730a3,
    4px 4px 15px rgba(0, 0, 0, 0.6);
}

.hero-subtitle {
  font-size: 1.3rem;
  color: var(--text-muted);
  margin-bottom: 40px;
}

/* Floating 3D Orbs / Canvas */
#generative-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* SECTION 2: Infinite Results Ticker */
.ticker-section {
  background: #090916;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 25px 0;
  overflow: hidden;
  position: relative;
  z-index: 10;
}

.ticker-wrap {
  display: flex;
  width: 100%;
}

.ticker-track {
  display: flex;
  white-space: nowrap;
  animation: ticker 30s linear infinite;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  font-size: 1.2rem;
  font-weight: 700;
  margin-right: 50px;
  color: var(--text-main);
  text-transform: uppercase;
}

.ticker-item i {
  color: var(--accent-secondary);
  margin-right: 15px;
}

@keyframes ticker {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Generic Section Layout */
.section-padding {
  padding: 120px 0;
  position: relative;
  z-index: 2;
}

.section-padding .container {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
}

.section-title-wrap {
  text-align: center;
  margin-bottom: 80px;
}

.section-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 15px;
  background: linear-gradient(135deg, var(--text-main), var(--accent-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* SECTION 3: 3D Cards Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  width: 100%;
}

.service-card-3d-container {
  perspective: 1000px;
  height: 380px;
  min-width: 0;
  position: relative;
}

.service-card-3d {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.8s var(--spring-transition);
}

.service-card-3d-container:hover .service-card-3d {
  transform: rotateY(180deg);
}

.service-front,
.service-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 20px;
  padding: 40px;
  border: 1px solid var(--border-glow);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.service-front {
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-icon-wrap {
  width: 70px;
  height: 70px;
  background: rgba(99, 102, 241, 0.1);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.service-icon-wrap i {
  font-size: 2rem;
  color: var(--accent-primary);
}

.service-front h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-top: 20px;
  line-height: 1.3;
  overflow-wrap: break-word;
  hyphens: auto;
}

.service-back {
  background: radial-gradient(circle at center, #11112b 0%, #07070e 100%);
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.service-back p {
  color: var(--text-muted);
  margin-bottom: 30px;
}

/* SECTION 4: Industry-Specific Services tabber */
.industry-tab-wrapper {
  margin-top: 40px;
}

.tabs-nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 50px;
}

.tab-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  color: var(--text-muted);
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s;
}

.tab-btn.active,
.tab-btn:hover {
  background: linear-gradient(
    135deg,
    var(--accent-primary),
    var(--accent-secondary)
  );
  border-color: transparent;
  color: var(--text-main);
  box-shadow: 0 5px 20px rgba(168, 85, 247, 0.3);
}

.tab-pane {
  display: none;
  animation: tabFadeIn 0.6s var(--spring-transition);
}

.tab-pane.active {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

@keyframes tabFadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tab-content-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: 20px;
  padding: 40px;
  transition: transform 0.4s var(--spring-transition);
}

.tab-content-card:hover {
  transform: scale(1.03) rotateZ(1deg);
  border-color: var(--accent-secondary);
}

/* SECTION 5: Campaign Goal Matcher Questionnaire */
.goal-matcher-box {
  background: linear-gradient(
    180deg,
    var(--bg-card) 0%,
    rgba(7, 7, 14, 0.9) 100%
  );
  border: 1px solid var(--border-glow);
  max-width: 800px;
  margin: 0 auto;
  border-radius: 24px;
  padding: 50px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

.step-card {
  display: none;
}

.step-card.active {
  display: block;
  animation: slideStep 0.5s ease;
}

@keyframes slideStep {
  from {
    transform: translateX(30px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.goal-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 30px 0;
}

.option-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glow);
  border-radius: 15px;
  padding: 25px;
  text-align: left;
  transition: all 0.3s;
}

.option-btn:hover {
  background: rgba(99, 102, 241, 0.05);
  border-color: var(--accent-secondary);
  transform: translateY(-3px);
}

.option-btn.selected {
  background: rgba(168, 85, 247, 0.1);
  border-color: var(--accent-secondary);
}

.goal-controls {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
}

/* SECTION 6: KPI / Results Dashboard */
.dashboard-widget {
  background: #090918;
  border-radius: 30px;
  border: 1px solid var(--border-glow);
  padding: 50px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-bottom: 50px;
}

.stat-item-box {
  text-align: center;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.03);
  padding: 30px;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}

.stat-num-ticker {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(
    135deg,
    var(--text-main),
    var(--accent-secondary)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
}

.chart-visual-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}

.dashboard-bar-chart {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glow);
  border-radius: 20px;
  padding: 40px;
  height: 350px;
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
}

.bar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
}

.bar-fill {
  width: 45px;
  background: linear-gradient(
    to top,
    var(--accent-primary),
    var(--accent-secondary)
  );
  border-radius: 8px 8px 0 0;
  transition: height 1.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.4);
}

.bar-label {
  margin-top: 15px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.donut-chart-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glow);
  border-radius: 20px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* SECTION 7: Process Timeline with Morphing SVG Shape */
.process-timeline {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

.process-step {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  margin-bottom: 100px;
  position: relative;
}

.process-step:nth-child(even) .step-text-col {
  order: 2;
}

.step-num-badge {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 60px;
  height: 60px;
  background: linear-gradient(
    135deg,
    var(--accent-primary),
    var(--accent-secondary)
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.5rem;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
}

.step-text-col {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  padding: 40px;
  border-radius: 20px;
}

/* SECTION 8: 3D Testimonials Stack (Deck) */
.testimonials-deck-wrapper {
  height: 500px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.testimonial-3d-card {
  width: 550px;
  height: 320px;
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: 24px;
  padding: 40px;
  position: absolute;
  transition:
    transform 0.6s var(--spring-transition),
    opacity 0.6s;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-head {
  display: flex;
  align-items: center;
  gap: 20px;
}

.testimonial-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid var(--accent-secondary);
}

.testimonial-body {
  font-style: italic;
  font-size: 1.1rem;
  color: var(--text-main);
  margin: 25px 0;
}

/* SECTION 9: Before & After Campaign Analytics Slider */
.ba-comparison-container {
  position: relative;
  width: 100%;
  max-width: 900px;
  height: 500px;
  margin: 0 auto;
  border-radius: 24px;
  overflow: hidden;
  border: 2px solid var(--border-glow);
}

.ba-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.ba-before {
  background-image:
    linear-gradient(rgba(7, 7, 14, 0.3), rgba(7, 7, 14, 0.3)),
    url("https://images.unsplash.com/photo-1551288049-bebda4e38f71?auto=format&fit=crop&q=80&w=1200");
}

.ba-after {
  background-image:
    linear-gradient(rgba(7, 7, 14, 0.1), rgba(7, 7, 14, 0.1)),
    url("https://images.unsplash.com/photo-1460925895917-afdab827c52f?auto=format&fit=crop&q=80&w=1200");
}

.ba-slider-drag-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--text-main);
  left: 50%;
  z-index: 30;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.ba-slider-btn {
  width: 50px;
  height: 50px;
  background: var(--accent-secondary);
  border-radius: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.7);
}

.ba-label-badge {
  position: absolute;
  top: 20px;
  padding: 8px 20px;
  background: rgba(0, 0, 0, 0.8);
  border-radius: 50px;
  font-weight: 700;
  z-index: 40;
}

.ba-before-label {
  left: 20px;
  border: 1.5px solid #ef4444;
  color: #ef4444;
}
.ba-after-label {
  right: 20px;
  border: 1.5px solid #22c55e;
  color: #22c55e;
}

/* SECTION 10: Advanced ROI Estimator Tool */
.roi-calculator-box {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: 24px;
  padding: 50px;
  max-width: 950px;
  margin: 0 auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.roi-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.calc-sliders-column {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.slider-group label {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  margin-bottom: 10px;
}

.range-input-lux {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  outline: none;
}

.range-input-lux::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-secondary);
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.8);
  transition: transform 0.1s;
}

.calc-output-column {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 20px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
}

.roi-projection-box {
  font-size: 3.5rem;
  font-weight: 800;
  color: #22c55e;
  text-shadow: 0 0 20px rgba(34, 197, 94, 0.3);
}

/* SECTION 11: 3D Infinite Vortex Background CTA */
.cta-vortex-section {
  position: relative;
  padding: 140px 0;
  overflow: hidden;
  background: #000;
  border-top: 1px solid var(--border-glow);
}

.vortex-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  perspective: 400px;
  pointer-events: none;
  z-index: 1;
}

.vortex-ring-system {
  width: 100%;
  height: 100%;
  position: absolute;
  transform-style: preserve-3d;
  animation: vortexRotate 25s linear infinite;
}

@keyframes vortexRotate {
  0% {
    transform: translateZ(0px) rotate(0deg);
  }
  100% {
    transform: translateZ(200px) rotate(360deg);
  }
}

.vortex-ring {
  position: absolute;
  width: 500px;
  height: 500px;
  border: 1px solid rgba(168, 85, 247, 0.15);
  border-radius: 50%;
  top: calc(50% - 250px);
  left: calc(50% - 250px);
  transform-style: preserve-3d;
}

.cta-foreground-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

/* AI Smart Chatbot Widget */
.ai-chatbot-system {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1100;
  font-family: var(--font-family);
}

.chat-trigger-bubble {
  width: 60px;
  height: 60px;
  background: linear-gradient(
    135deg,
    var(--accent-primary),
    var(--accent-secondary)
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(168, 85, 247, 0.4);
  font-size: 1.5rem;
  transition: transform 0.3s var(--spring-transition);
}

.chat-trigger-bubble:hover {
  transform: scale(1.1) rotate(5deg);
}

.chat-window-frame {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 380px;
  height: 500px;
  background: #0d0d1d;
  border: 1px solid var(--border-glow);
  border-radius: 24px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
  display: none;
  flex-direction: column;
  overflow: hidden;
  animation: windowReveal 0.4s var(--spring-transition);
}

@keyframes windowReveal {
  from {
    transform: translateY(30px) scale(0.9);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.chat-header-bar {
  background: linear-gradient(135deg, var(--bg-card), rgba(99, 102, 241, 0.2));
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-glow);
}

.chat-messages-area {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.chat-msg {
  max-width: 80%;
  padding: 12px 18px;
  border-radius: 18px;
  font-size: 0.9rem;
}

.chat-msg.incoming {
  background: rgba(255, 255, 255, 0.05);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.chat-msg.outgoing {
  background: var(--accent-primary);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chat-decision-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 15px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.chat-option-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1.5px solid var(--border-glow);
  color: var(--text-main);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.2s;
}

.chat-option-btn:hover {
  background: var(--accent-secondary);
  border-color: transparent;
}

/* Master Footer Elements */
.footer {
  background: #04040a;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 100px 0 40px 0;
  position: relative;
  z-index: 10;
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 50px;
  margin-bottom: 60px;
}

.footer-col-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 25px;
  position: relative;
}

.footer-col-title::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 2.5px;
  background: var(--accent-secondary);
}

.footer-logo {
  height: 40px;
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a,
.footer-col ul li span {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s;
}

.footer-col ul li a:hover {
  color: var(--accent-primary);
}

.footer-col-legal ul li span {
  font-weight: 500;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-link {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.3s;
}

.social-link:hover {
  background: var(--accent-primary);
  color: var(--text-main);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 30px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Responsive Breakpoints Scaffold */
@media (max-width: 1200px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .hero-extruded-title {
    font-size: 3.5rem;
  }
  .tab-pane.active {
    grid-template-columns: 1fr;
  }
  .roi-layout {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: repeat(2, 1fr);
  }
  .chart-visual-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
  .goal-options {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
  .testimonial-3d-card {
    width: 90vw;
    height: auto;
  }
}
