/* Core Variables & Design Token Matrix */
:root {
  --bg-dark: #030712;
  --card-bg: #0b0f19;
  --accent-cyan: #06b6d4;
  --accent-purple: #a855f7;
  --text-white: #f9fafb;
  --text-gray: #9ca3af;
  --border-glow: rgba(6, 182, 212, 0.15);
  --border-glow-heavy: rgba(168, 85, 247, 0.3);
  --font-sans: "Inter", sans-serif;
  --font-display: "Poppins", sans-serif;
}

/* Base Level Resets & Smoothings */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
  user-select: none;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-white);
  font-family: var(--font-sans);
  overflow-x: hidden;
  position: relative;
  line-height: 1.6;
}

/* Data Fabric Immersive Canvas Layer */
#dataFabricCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  opacity: 0.85;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Custom Interactive Cursor Elements */
.custom-cursor {
  width: 8px;
  height: 8px;
  background-color: var(--accent-cyan);
  border-radius: 50%;
  position: fixed;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 10000;
  transition:
    width 0.15s,
    height 0.15s;
}

.custom-cursor-glow {
  width: 32px;
  height: 32px;
  border: 1.5px solid var(--accent-purple);
  border-radius: 50%;
  position: fixed;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.08s ease-out;
}

/* Audio Atmospheric Control */
.audio-control {
  position: fixed;
  bottom: 24px;
  left: 24px;
  background-color: rgba(11, 15, 25, 0.8);
  border: 1px solid var(--border-glow);
  padding: 8px 16px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  z-index: 999;
  font-size: 13px;
  color: var(--accent-cyan);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.audio-control:hover {
  border-color: var(--accent-purple);
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.2);
}

/* Dynamic Cinematic Preloader */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--bg-dark);
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 1s cubic-bezier(0.85, 0, 0.15, 1);
}

.preloader-content {
  text-align: center;
  width: 100%;
  max-width: 350px;
}

.preloader-logo-container {
  position: relative;
  margin-bottom: 30px;
}

.preloader-logo {
  height: 60px;
  filter: invert(1) drop-shadow(0 0 10px var(--accent-cyan));
  animation: pulseLogo 2s infinite ease-in-out;
}

.preloader-bar {
  width: 100%;
  height: 2px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 12px;
}

.preloader-progress {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
  transition: width 0.1s linear;
}

.preloader-status {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-gray);
}

/* Standardized Typography Styles */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  color: var(--text-white);
  font-weight: 700;
}

.text-center {
  text-align: center;
}
.accent-eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--accent-cyan);
  display: block;
  margin-bottom: 12px;
  font-weight: 600;
}

.section-title {
  font-size: 38px;
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.section-subtitle {
  color: var(--text-gray);
  max-width: 600px;
  margin: 0 auto 50px auto;
  font-size: 16px;
}

/* Master Header Assembly */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(3, 7, 18, 0.7);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-glow);
  transition: padding 0.3s;
  padding: 16px 0;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo img, .logo a img {
  height: 60px !important;
  filter: invert(1);
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--text-white);
  letter-spacing: -0.5px;
  font-size: 18px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-link {
  color: var(--text-gray);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
  padding: 6px 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-cyan);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background-color: var(--accent-cyan);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Button & Micro-Interactions System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-cyan), #0891b2);
  color: var(--bg-dark);
  border: none;
  box-shadow: 0 4px 14px rgba(6, 182, 212, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.45);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.03);
  color: var(--text-white);
  border: 1px solid var(--border-glow);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.07);
  border-color: var(--accent-purple);
  transform: translateY(-2px);
}

.btn-large {
  padding: 16px 32px;
  font-size: 16px;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 12px;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-white);
  font-size: 20px;
  cursor: pointer;
}

/* 3D Immersive Hero Construction */
.hero-3d-section {
  height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.3d-perspective-container {
  width: 100%;
  perspective: 1200px;
  position: relative;
}

.grid-floor {
  position: absolute;
  bottom: -150px;
  left: 50%;
  transform: translateX(-50%) rotateX(60deg);
  width: 200%;
  height: 500px;
  background-image:
    linear-gradient(rgba(6, 182, 212, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6, 182, 212, 0.15) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: 1;
  mask-image: radial-gradient(ellipse at center, black, transparent 75%);
}

.hero-content-wrapper {
  position: relative;
  z-index: 10;
  text-align: center;
}

.hero-3d-text-layer {
  transform-style: preserve-3d;
  margin-bottom: 24px;
}

.extruded-text {
  font-size: 84px;
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -2px;
  background: linear-gradient(180deg, #ffffff 30%, #475569 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  line-height: 1;
  transform: translateZ(50px);
}

.extruded-subtitle {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 8px;
  color: var(--accent-cyan);
  margin-top: 10px;
  text-transform: uppercase;
}

.hero-lead-text {
  font-size: 18px;
  color: var(--text-gray);
  max-width: 650px;
  margin: 0 auto 40px auto;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-gray);
  z-index: 10;
}

.mouse-scroll {
  width: 20px;
  height: 32px;
  border: 2px solid var(--text-gray);
  border-radius: 12px;
  position: relative;
}

.mouse-scroll::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background-color: var(--accent-cyan);
  border-radius: 2px;
  animation: scrollWheel 1.6s infinite ease-in-out;
}

/* Floating Shapes Engine Elements */
.floating-geometric-shape {
  position: absolute;
  border: 1px solid rgba(168, 85, 247, 0.2);
  background-color: rgba(11, 15, 25, 0.4);
  backdrop-filter: blur(4px);
  border-radius: 4px;
  transform-style: preserve-3d;
  pointer-events: none;
  z-index: 2;
}

/* Infinite Results Ticker */
.results-marquee-container {
  background-color: var(--card-bg);
  border-top: 1px solid var(--border-glow);
  border-bottom: 1px solid var(--border-glow);
  padding: 16px 0;
  overflow: hidden;
}

.marquee-track {
  display: flex;
  white-space: nowrap;
  animation: marqueeMove 30s linear infinite;
  gap: 60px;
}

.marquee-item {
  font-size: 14px;
  text-transform: uppercase;
  font-family: var(--font-display);
  letter-spacing: 1px;
  font-weight: 600;
}

.highlight-cyan {
  color: var(--accent-cyan);
}
.highlight-purple {
  color: var(--accent-purple);
}

/* Interactive Services Deck (CSS 3D Flip) */
.services-section {
  padding: 120px 0;
}

.industry-selector-wrapper {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
}

.industry-tab {
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glow);
  padding: 8px 20px;
  border-radius: 20px;
  color: var(--text-gray);
  font-size: 13px;
  font-family: var(--font-sans);
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s;
}

.industry-tab.active,
.industry-tab:hover {
  border-color: var(--accent-cyan);
  color: var(--text-white);
  background-color: rgba(6, 182, 212, 0.08);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-card-3d {
  perspective: 1000px;
  height: 380px;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card-3d:hover .card-inner,
.service-card-3d.flipped .card-inner {
  transform: rotateY(180deg);
}

.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 12px;
  border: 1px solid var(--border-glow);
  padding: 40px;
  display: flex;
  flex-direction: column;
}

.card-front {
  background-color: var(--card-bg);
  justify-content: flex-start;
}

.card-back {
  background-color: #0d1527;
  transform: rotateY(180deg);
  justify-content: center;
}

.card-glow-element {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    800px circle at var(--x, 0px) var(--y, 0px),
    rgba(6, 182, 212, 0.06),
    transparent 40%
  );
  border-radius: 12px;
  pointer-events: none;
}

.service-icon-container {
  width: 60px;
  height: 60px;
  background-color: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  color: var(--accent-cyan);
  margin-bottom: 30px;
}

.card-front h3 {
  font-size: 20px;
  margin-bottom: 16px;
  font-weight: 600;
}

.card-front p {
  color: var(--text-gray);
  font-size: 14px;
}

.flip-hint {
  margin-top: auto;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  gap: 6px;
}

.card-back h4 {
  font-size: 18px;
  margin-bottom: 20px;
  color: var(--accent-purple);
}

.performance-metric-list {
  list-style: none;
  margin-bottom: 30px;
}

.performance-metric-list li {
  font-size: 14px;
  color: var(--text-white);
  margin-bottom: 12px;
  position: relative;
  padding-left: 20px;
}

.performance-metric-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent-cyan);
}

/* Industry-Specific Adaptive Display Area */
.industry-spotlight-section {
  padding: 80px 0;
  background-color: rgba(255, 255, 255, 0.01);
  border-top: 1px solid var(--border-glow);
  border-bottom: 1px solid var(--border-glow);
}

.industry-grid-block {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
}

.industry-visual-side {
  height: 350px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.node-visualizer {
  position: relative;
  width: 250px;
  height: 250px;
}

.node-center {
  width: 60px;
  height: 60px;
  background-color: var(--accent-cyan);
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 30px var(--accent-cyan);
  z-index: 5;
}

.node-satellite {
  width: 24px;
  height: 24px;
  background-color: var(--accent-purple);
  border-radius: 50%;
  position: absolute;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 15px var(--accent-purple);
  z-index: 4;
}

.sat-1 {
  top: 20%;
  left: 20%;
  animation: orbit1 6s infinite linear;
}
.sat-2 {
  top: 80%;
  left: 30%;
  animation: orbit2 8s infinite linear;
}
.sat-3 {
  top: 40%;
  left: 80%;
  animation: orbit3 10s infinite linear;
}

.industry-text-side h3 {
  font-size: 28px;
  margin-bottom: 20px;
  line-height: 1.3;
}

.large-body {
  font-size: 16px;
  color: var(--text-gray);
  margin-bottom: 30px;
}

.industry-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.feat-item {
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.feat-item i {
  color: var(--accent-cyan);
}

/* KPI Dashboard Section Components */
.kpi-dashboard-section {
  padding: 120px 0;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.kpi-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-glow);
  border-radius: 12px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.kpi-icon {
  font-size: 28px;
  color: var(--accent-cyan);
}

.kpi-info {
  flex-grow: 1;
}

.kpi-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-gray);
  display: block;
  margin-bottom: 8px;
}

.kpi-value {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
}

.mini-chart-container {
  height: 60px;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  padding-top: 15px;
}

.bar-chart-css {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 100%;
}

.css-bar {
  flex-grow: 1;
  background: linear-gradient(180deg, var(--accent-cyan), transparent);
  border-radius: 2px;
}

.donut-chart-css {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: conic-gradient(
    var(--accent-purple) 85%,
    rgba(255, 255, 255, 0.05) 0
  );
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.donut-chart-css::after {
  content: "";
  position: absolute;
  width: 33px;
  height: 33px;
  background-color: var(--card-bg);
  border-radius: 50%;
}

.donut-text {
  position: relative;
  z-index: 2;
  font-size: 11px;
  font-weight: 700;
}

.line-chart-css {
  height: 100%;
}

.sparkline {
  width: 100%;
  height: 100%;
}

/* Process Timeline (Morphing SVG Connections) */
.process-section {
  padding: 120px 0;
  overflow: hidden;
}

.process-timeline-container {
  position: relative;
  margin-top: 80px;
}

.process-connector-svg {
  position: absolute;
  top: 35px;
  left: 0;
  width: 100%;
  height: 50px;
  z-index: 1;
}

.background-path {
  fill: none;
  stroke: rgba(255, 255, 255, 0.03);
  stroke-width: 4px;
}

.active-progress-path {
  fill: none;
  stroke: var(--accent-cyan);
  stroke-width: 4px;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
}

.process-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  position: relative;
  z-index: 2;
}

.process-step {
  text-align: center;
}

.step-num-bubble {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: var(--card-bg);
  border: 2px solid var(--border-glow);
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--accent-cyan);
  margin: 0 auto 30px auto;
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.1);
  transition: all 0.3s;
}

.process-step:hover .step-num-bubble {
  border-color: var(--accent-purple);
  box-shadow: 0 0 25px rgba(168, 85, 247, 0.3);
  transform: scale(1.1);
}

.process-step h4 {
  font-size: 20px;
  margin-bottom: 12px;
}

.process-step p {
  color: var(--text-gray);
  font-size: 14px;
  max-width: 280px;
  margin: 0 auto;
}

/* Before & After Image Slider Components */
.slider-section {
  padding: 120px 0;
}

.comparison-outer {
  max-width: 900px;
  margin: 0 auto;
}

.comparison-container {
  position: relative;
  width: 100%;
  height: 480px;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--border-glow);
}

.compare-side {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.compare-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.before-side {
  z-index: 1;
}

.after-side {
  z-index: 2;
  width: 50%; /* Modified by drag interaction */
}

.compare-label-tag {
  position: absolute;
  top: 20px;
  background-color: rgba(3, 7, 18, 0.85);
  border: 1px solid var(--border-glow);
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  z-index: 10;
}

.before-side .compare-label-tag {
  left: 20px;
}
.after-side .compare-label-tag {
  right: 20px;
}

.compare-overlay-content {
  position: absolute;
  bottom: 30px;
  left: 30px;
  z-index: 10;
  max-width: 280px;
}

.compare-overlay-content.align-right {
  left: auto;
  right: 30px;
  text-align: right;
}

.compare-overlay-content h3 {
  font-size: 18px;
  margin-bottom: 12px;
}

.stats-mini-list {
  list-style: none;
}

.stats-mini-list li {
  font-size: 13px;
  color: var(--text-gray);
  margin-bottom: 4px;
}

.slider-handle {
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  height: 100%;
  background-color: var(--accent-cyan);
  z-index: 15;
  cursor: ew-resize;
  transform: translateX(-50%);
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  background-color: var(--accent-cyan);
  color: var(--bg-dark);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 12px;
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.4);
}

.arrow-left {
  left: -36px;
}
.arrow-right {
  right: -36px;
}

/* Interactive Testimonial Cards Deck */
.testimonials-section {
  padding: 120px 0;
}

.testimonials-stack-outer {
  max-width: 650px;
  margin: 0 auto;
  text-align: center;
}

.testimonials-deck {
  position: relative;
  height: 300px;
  margin-bottom: 40px;
}

.testimonial-card-element {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--card-bg);
  border: 1px solid var(--border-glow);
  border-radius: 12px;
  padding: 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  z-index: calc(5 - var(--card-index));
  transform: scale(calc(1 - (var(--card-index) * 0.05)))
    translateY(calc(var(--card-index) * 15px));
  opacity: calc(1 - (var(--card-index) * 0.35));
  pointer-events: none;
}

.testimonial-card-element.active-card {
  pointer-events: auto;
}

.quote-mark {
  font-size: 64px;
  color: var(--accent-cyan);
  opacity: 0.15;
  line-height: 1;
  height: 30px;
  margin-bottom: -10px;
}

.testimonial-body {
  font-size: 16px;
  color: var(--text-white);
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author h4 {
  font-size: 15px;
  color: var(--accent-cyan);
}

.testimonial-author span {
  font-size: 12px;
  color: var(--text-gray);
}

.deck-controls {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 12px;
}

.deck-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glow);
  color: var(--text-white);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s;
}

.deck-btn:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.deck-instructions {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-gray);
}

/* ROI Calculator & Questionnaire Block Elements */
.interactive-analysis-section {
  padding: 120px 0;
}

.analysis-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 50px;
}

.analysis-box {
  background-color: var(--card-bg);
  border: 1px solid var(--border-glow);
  border-radius: 12px;
  padding: 40px;
}

.widget-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.widget-header i {
  font-size: 24px;
  color: var(--accent-cyan);
}

.widget-header h3 {
  font-size: 22px;
}

.widget-desc {
  font-size: 14px;
  color: var(--text-gray);
  margin-bottom: 30px;
}

.calculator-inputs {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 40px;
}

.input-range-group label {
  font-size: 13px;
  color: var(--text-gray);
}

.range-labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.range-val-bubble {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-cyan);
}

/* Custom Range Input Track Stylings */
input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: var(--accent-cyan);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
  transition: transform 0.1s;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.calculator-results {
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  padding-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.res-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.res-lbl {
  font-size: 13px;
  color: var(--text-gray);
}

.res-val {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
}

/* Campaign Goal Matcher Panel Styles */
.wizard-steps-container {
  position: relative;
  min-height: 250px;
}

.wizard-step-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.wizard-step-panel.active-panel {
  opacity: 1;
  pointer-events: auto;
  position: relative;
}

.question-text {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 24px;
}

.wizard-options-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-wizard-option {
  text-align: left;
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-white);
  padding: 16px;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.3s;
}

.btn-wizard-option:hover {
  border-color: var(--accent-cyan);
  background-color: rgba(6, 182, 212, 0.04);
}

.recommendation-card {
  background-color: rgba(6, 182, 212, 0.02);
  border: 1px dashed rgba(6, 182, 212, 0.2);
  border-radius: 8px;
  padding: 24px;
}

.recommendation-badge {
  display: inline-block;
  background-color: rgba(6, 182, 212, 0.1);
  color: var(--accent-cyan);
  font-size: 10px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 4px 8px;
  border-radius: 4px;
  margin-bottom: 16px;
}

.recommendation-card h4 {
  font-size: 18px;
  margin-bottom: 10px;
}

.recommendation-card p {
  font-size: 13px;
  color: var(--text-gray);
  margin-bottom: 24px;
}

.rec-cta-group {
  display: flex;
  gap: 12px;
}

/* Section 10: Infinite 3D Vortex CTA Layouts */
.cta-vortex-section {
  position: relative;
  padding: 140px 0;
  overflow: hidden;
  background-color: #010308;
  z-index: 1;
}

.vortex-background {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 140%;
  height: 140%;
  background-image:
    radial-gradient(circle at center, transparent 20%, #010308 80%),
    repeating-radial-gradient(
      circle at center,
      rgba(168, 85, 247, 0.1) 0px,
      rgba(168, 85, 247, 0.1) 2px,
      transparent 4px,
      transparent 20px
    );
  z-index: -1;
  animation: vortexRotate 20s infinite linear;
}

.relative-content {
  position: relative;
  z-index: 10;
}

.vortex-title {
  font-size: 48px;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.vortex-subtitle {
  color: var(--text-gray);
  max-width: 600px;
  margin: 0 auto 40px auto;
  font-size: 18px;
}

.vortex-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
}

/* Master Footer Configurations */
.main-footer {
  background-color: #010308;
  border-top: 1px solid var(--border-glow);
  padding: 80px 0 40px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand p {
  color: var(--text-gray);
  font-size: 13px;
  margin-top: 20px;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent-cyan);
  margin-bottom: 24px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a,
.footer-links span {
  color: var(--text-gray);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--accent-cyan);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  padding-top: 30px;
  text-align: center;
  font-size: 12px;
  color: var(--text-gray);
}

/* AI Assistant & Chat Window Components */
.ai-chat-bubble {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: var(--accent-cyan);
  color: var(--bg-dark);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(6, 182, 212, 0.4);
  z-index: 999;
}

.chat-pulse-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid var(--accent-cyan);
  animation: bubblePulse 2s infinite ease-out;
}

.ai-chat-panel {
  position: fixed;
  bottom: 96px;
  right: 24px;
  width: 360px;
  height: 480px;
  background-color: var(--card-bg);
  border: 1px solid var(--border-glow);
  border-radius: 12px;
  display: none;
  flex-direction: column;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

.ai-chat-header {
  padding: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.01);
}

.header-bot-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-bot-info i {
  font-size: 20px;
  color: var(--accent-cyan);
}

.header-bot-info h4 {
  font-size: 14px;
}

.status-indicator {
  font-size: 10px;
  color: var(--text-gray);
  display: block;
}

.close-chat-btn {
  background: none;
  border: none;
  color: var(--text-gray);
  cursor: pointer;
  font-size: 16px;
}

.ai-chat-history {
  flex-grow: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-bubble-msg {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
}

.msg-bot {
  background-color: rgba(255, 255, 255, 0.03);
  align-self: flex-start;
}

.msg-user {
  background-color: var(--accent-cyan);
  color: var(--bg-dark);
  align-self: flex-end;
}

.ai-chat-suggestions {
  display: flex;
  gap: 8px;
  padding: 8px 16px;
  overflow-x: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  white-space: nowrap;
}

.chat-suggest-chip {
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glow);
  color: var(--text-white);
  padding: 6px 12px;
  border-radius: 14px;
  font-size: 11px;
  cursor: pointer;
}

.ai-chat-input-area {
  padding: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  display: flex;
  gap: 8px;
}

.ai-chat-input-area input {
  flex-grow: 1;
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glow);
  border-radius: 4px;
  padding: 8px 12px;
  color: var(--text-white);
  font-family: var(--font-sans);
  font-size: 13px;
}

.ai-chat-input-area button {
  background-color: var(--accent-cyan);
  color: var(--bg-dark);
  border: none;
  border-radius: 4px;
  width: 36px;
  height: 36px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

/* Contact Page Form Element Configurations */
.contact-section {
  padding: 80px 0 120px 0;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 50px;
}

.contact-info-box {
  background-color: var(--card-bg);
  border: 1px solid var(--border-glow);
  border-radius: 12px;
  padding: 40px;
  height: fit-content;
}

.info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 30px;
}

.info-item i {
  font-size: 20px;
  color: var(--accent-cyan);
  margin-top: 4px;
}

.info-item h5 {
  font-size: 15px;
  margin-bottom: 4px;
}

.contact-form {
  background-color: var(--card-bg);
  border: 1px solid var(--border-glow);
  border-radius: 12px;
  padding: 40px;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-gray);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glow);
  border-radius: 6px;
  padding: 12px 16px;
  color: var(--text-white);
  font-family: var(--font-sans);
  font-size: 14px;
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.15);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-cyan);
}

/* Legal General Layout Framework */
.legal-page-header {
  background-color: rgba(255, 255, 255, 0.01);
  border-bottom: 1px solid var(--border-glow);
  padding: 140px 0 60px 0;
}

.legal-page-header h1 {
  font-size: 42px;
  letter-spacing: -1px;
}

.legal-content {
  max-width: 800px;
  margin: 60px auto 120px auto;
}

.legal-content p {
  color: var(--text-gray);
  font-size: 15px;
  margin-bottom: 24px;
}

.legal-content h2 {
  font-size: 22px;
  margin: 40px 0 16px 0;
}

/* Standard Animation Framework Keyframes */
@keyframes scrollWheel {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
  }
}

@keyframes orbit1 {
  from {
    transform: rotate(0deg) translateX(100px) rotate(0deg);
  }
  to {
    transform: rotate(360deg) translateX(100px) rotate(-360deg);
  }
}

@keyframes orbit2 {
  from {
    transform: rotate(0deg) translateX(120px) rotate(0deg);
  }
  to {
    transform: rotate(-360deg) translateX(120px) rotate(360deg);
  }
}

@keyframes orbit3 {
  from {
    transform: rotate(0deg) translateX(80px) rotate(0deg);
  }
  to {
    transform: rotate(360deg) translateX(80px) rotate(-360deg);
  }
}

@keyframes bubblePulse {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

@keyframes pulseLogo {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes vortexRotate {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes marqueeMove {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

/* Base Level Visibility and Load States */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1),
    transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* General Layout Responsive Viewports */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .analysis-grid {
    grid-template-columns: 1fr;
  }
  .contact-wrapper {
    grid-template-columns: 1fr;
  }
  .extruded-text {
    font-size: 64px;
  }
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
  .kpi-grid {
    grid-template-columns: 1fr;
  }
  .industry-grid-block {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .nav-menu {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  .mobile-nav-overlay {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-dark);
    z-index: 999;
  }
  .mobile-nav-overlay a {
    color: var(--text-white);
    text-decoration: none;
    font-size: 24px;
    font-family: var(--font-display);
  }
}
