/* ==========================================================================
   1. CORE VARIABLES & THEME SETUP
   ========================================================================== */
:root {
  --bg-black: #080605;
  --bg-dark: #0f0d0c;
  --bg-card: #181412;
  --bg-card-hover: #221c19;

  --primary: #ff5722;
  --primary-rgb: 255, 87, 34;
  --secondary: #ffb300;
  --secondary-rgb: 255, 179, 0;
  --accent: #ff3d00;
  --accent-rgb: 255, 61, 0;

  --gradient-warm: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--secondary) 100%
  );
  --gradient-dark: linear-gradient(
    180deg,
    var(--bg-black) 0%,
    var(--bg-dark) 100%
  );
  --gradient-glow: radial-gradient(
    circle,
    rgba(255, 87, 34, 0.15) 0%,
    transparent 70%
  );

  --text-white: #ffffff;
  --text-light: #f5f4f4;
  --text-muted: #a59e9a;
  --text-dark: #1c1816;

  --font-heading: "Poppins", sans-serif;
  --font-body: "Poppins", sans-serif;

  --border-color: rgba(255, 87, 34, 0.1);
  --border-hover: rgba(255, 179, 0, 0.3);

  --spring-ease: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --transition-smooth: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   2. RESET & BASE ELEMENTS
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  background-color: var(--bg-black);
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-black);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-black);
}
::-webkit-scrollbar-thumb {
  background: var(--gradient-warm);
  border-radius: 4px;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Container */
.container {
  width: 100%;
  max-width: 1320px;
  margin-right: auto;
  margin-left: auto;
  padding-right: 24px;
  padding-left: 24px;
}

/* ==========================================================================
   3. TYPOGRAPHY & GRADIENTS
   ========================================================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-white);
  letter-spacing: -0.02em;
}

.text-gradient {
  background: var(--gradient-warm);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.text-muted {
  color: var(--text-muted);
}

/* ==========================================================================
   4. LAYOUT COMPONENTS
   ========================================================================== */
.section-padding {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

@media (max-width: 768px) {
  .section-padding {
    padding: 80px 0;
  }
}

/* ==========================================================================
   5. PRELOADER & NATIVE TRANSITIONS
   ========================================================================== */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-black);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition:
    opacity 0.8s ease,
    visibility 0.8s ease;
}

.preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}

.preloader-logo {
  width: 240px;
  margin-bottom: 24px;
  transform: scale(0.8);
  animation: pulseLogo 2s infinite ease-in-out;
}

.preloader-logo img {
  width: 100%;
  height: auto;
}

.preloader-bar {
  width: 200px;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.preloader-bar::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: var(--gradient-warm);
  animation: barFill 3.5s forwards cubic-bezier(0.1, 0.8, 0.3, 1);
}

@keyframes pulseLogo {
  0%,
  100% {
    transform: scale(0.9);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
  }
}

@keyframes barFill {
  to {
    width: 100%;
  }
}

/* ==========================================================================
   6. HEADER & COMPREHENSIVE NAVIGATION
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(8, 6, 5, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-smooth);
}

.header.scrolled {
  background: rgba(8, 6, 5, 0.95);
  padding: 12px 0;
  border-bottom-color: rgba(255, 87, 34, 0.2);
}

.header-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo img {
  height: 50px;
  width: auto;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-light);
  position: relative;
  padding: 8px 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-warm);
  transition: var(--transition-smooth);
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Toggle Menu Button */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
  padding: 4px;
  z-index: 1100;
}

.menu-toggle .bar {
  width: 28px;
  height: 2px;
  background-color: var(--text-white);
  transition: var(--transition-smooth);
}

@media (max-width: 991px) {
  .menu-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--bg-black);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: var(--transition-smooth);
    z-index: 1050;
  }

  .nav.active {
    right: 0;
  }

  .nav-list {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }

  .nav-link {
    font-size: 1.5rem;
  }
}

/* ==========================================================================
   7. BUTTONS & PRIMED STATES
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary {
  background: var(--gradient-warm);
  color: var(--text-white);
  border: none;
  box-shadow: 0 4px 15px rgba(255, 87, 34, 0.3);
}

.btn-primary::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.6s;
  z-index: -1;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 87, 34, 0.5);
}

.btn-secondary {
  background: transparent;
  color: var(--text-white);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background: var(--gradient-warm);
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 87, 34, 0.3);
}

/* ==========================================================================
   8. 3D SCENE BACKGROUNDS & DUST ORBS
   ========================================================================== */
.scene-3d-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

/* CSS 3D Grid Floor Receding */
.grid-floor-3d {
  position: absolute;
  bottom: -10%;
  left: -50%;
  width: 200%;
  height: 100%;
  background-image:
    linear-gradient(rgba(255, 87, 34, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 87, 34, 0.08) 1px, transparent 1px);
  background-size: 50px 50px;
  transform: perspective(600px) rotateX(70deg);
  transform-origin: bottom center;
  mask-image: linear-gradient(
    to top,
    rgba(0, 0, 0, 1) 10%,
    rgba(0, 0, 0, 0) 80%
  );
  animation: gridScroll 20s linear infinite;
}

@keyframes gridScroll {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 0 1000px;
  }
}

/* Aurora background */
.aurora-bg {
  position: absolute;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  background:
    radial-gradient(
      circle at 20% 30%,
      rgba(255, 87, 34, 0.15) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(255, 179, 0, 0.15) 0%,
      transparent 50%
    );
  filter: blur(80px);
  z-index: -1;
}

/* Floating dynamic geometric entities */
.entity-3d {
  position: absolute;
  width: 60px;
  height: 60px;
  background: linear-gradient(
    135deg,
    rgba(255, 87, 34, 0.3),
    rgba(255, 179, 0, 0.1)
  );
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  transform-style: preserve-3d;
  animation: rotateEntity 12s infinite linear;
  pointer-events: none;
}

@keyframes rotateEntity {
  0% {
    transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg) translateY(0);
  }
  50% {
    transform: rotateX(180deg) rotateY(180deg) rotateZ(90deg) translateY(-20px);
  }
  100% {
    transform: rotateX(360deg) rotateY(360deg) rotateZ(180deg) translateY(0);
  }
}

/* ==========================================================================
   9. HERO SECTION (PERSPECTIVE LAYERED)
   ========================================================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 140px;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 10;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 87, 34, 0.1);
  border: 1px solid rgba(255, 87, 34, 0.2);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 24px;
}

.hero-title {
  font-size: 4.5rem;
  line-height: 1.1;
  margin-bottom: 24px;
  perspective: 1000px;
}

.hero-title span {
  display: inline-block;
  transform-style: preserve-3d;
}

.hero-description {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 40px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Mobile responsive adjustments */
@media (max-width: 991px) {
  .hero-title {
    font-size: 3.2rem;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2.5rem;
  }
}

/* ==========================================================================
   10. RESULTS TICKER (INFINITE SCROLL)
   ========================================================================== */
.results-ticker {
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 24px 0;
  overflow: hidden;
  position: relative;
  white-space: nowrap;
}

.ticker-track {
  display: inline-flex;
  align-items: center;
  animation: tickerLoop 30s linear infinite;
  gap: 40px;
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text-white);
}

.ticker-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary);
}

@keyframes tickerLoop {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

/* ==========================================================================
   11. SERVICES (3D CARDS & FLIPS)
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 60px;
  perspective: 1000px;
}

/* Card 3D Flip Structure */
.service-card-wrapper {
  height: 380px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.8s var(--spring-ease);
  cursor: pointer;
}

.service-card-wrapper:hover {
  transform: rotateY(180deg);
}

.service-card-front,
.service-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  backface-visibility: hidden;
  padding: 40px;
  display: flex;
  flex-direction: column;
}

.service-card-front {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
}

.service-card-back {
  background: linear-gradient(135deg, var(--bg-card) 0%, #201714 100%);
  border: 1px solid var(--primary);
  transform: rotateY(180deg);
  justify-content: center;
  align-items: center;
  text-align: center;
}

.service-icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 24px;
}

.service-title {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.service-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.service-card-back h3 {
  margin-bottom: 16px;
}

.service-card-back p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* ==========================================================================
   12. INDUSTRY-SPECIFIC SERVICES (DYNAMIC SYSTEM)
   ========================================================================== */
.industry-filter-wrapper {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--gradient-warm);
  border-color: transparent;
  color: var(--text-white);
  transform: scale(1.05);
}

.industry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  transition: var(--transition-smooth);
}

.industry-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 30px;
  transition: var(--transition-smooth);
  display: block;
}

.industry-card:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
}

/* ==========================================================================
   13. KPI DASHBOARD (NEON VISUALIZATION)
   ========================================================================== */
.kpi-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

@media (max-width: 991px) {
  .kpi-layout {
    grid-template-columns: 1fr;
  }
}

.kpi-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.kpi-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 30px;
  border-radius: 16px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.kpi-stat-card::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: var(--gradient-glow);
  z-index: 1;
  pointer-events: none;
}

.kpi-number {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 8px;
  position: relative;
  z-index: 2;
}

.kpi-label {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  z-index: 2;
}

/* Chart Canvas Wrapper */
.kpi-chart-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  position: relative;
}

.chart-bars-wrap {
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  height: 250px;
  margin-top: 30px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.chart-bar-outer {
  width: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.chart-bar-inner {
  width: 100%;
  background: var(--gradient-warm);
  border-radius: 6px 6px 0 0;
  height: 0;
  transition: height 1.5s var(--spring-ease);
  box-shadow: 0 0 15px rgba(255, 87, 34, 0.4);
}

.chart-bar-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   14. PROCESS & STRATEGY FLOW
   ========================================================================== */
.process-timeline {
  position: relative;
  max-width: 900px;
  margin: 60px auto 0 auto;
}

.process-timeline::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: linear-gradient(
    to bottom,
    var(--primary) 0%,
    rgba(255, 179, 0, 0.1) 100%
  );
}

.process-item {
  display: flex;
  justify-content: flex-end;
  padding-right: 50%;
  position: relative;
  margin-bottom: 60px;
}

.process-item:nth-child(even) {
  justify-content: flex-start;
  padding-right: 0;
  padding-left: 50%;
}

.process-node {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--bg-black);
  border: 3px solid var(--primary);
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--text-white);
  box-shadow: 0 0 15px var(--primary);
}

.process-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 30px;
  border-radius: 16px;
  width: 85%;
  margin-right: 40px;
  transition: var(--transition-smooth);
}

.process-item:nth-child(even) .process-card {
  margin-right: 0;
  margin-left: 40px;
}

.process-card:hover {
  border-color: var(--secondary);
  transform: translateY(-5px);
}

@media (max-width: 768px) {
  .process-timeline::before {
    left: 30px;
  }
  .process-item {
    justify-content: flex-start;
    padding-left: 80px;
    padding-right: 0;
  }
  .process-item:nth-child(even) {
    padding-left: 80px;
  }
  .process-node {
    left: 30px;
  }
  .process-card {
    width: 100%;
    margin-right: 0 !important;
    margin-left: 0 !important;
  }
}

/* ==========================================================================
   15. TESTIMONIALS (SPRING DECK)
   ========================================================================== */
.testimonials-deck-container {
  position: relative;
  height: 450px;
  max-width: 600px;
  margin: 60px auto 0 auto;
  perspective: 1000px;
}

.testimonial-stack-card {
  position: absolute;
  width: 100%;
  height: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 50px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition:
    transform 0.6s cubic-bezier(0.25, 1, 0.5, 1),
    opacity 0.6s ease;
  cursor: grab;
}

.testimonial-stack-card:active {
  cursor: grabbing;
}

.testimonial-quote {
  font-size: 1.15rem;
  font-style: italic;
  color: var(--text-light);
}

.testimonial-author-block {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 30px;
}

.testimonial-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gradient-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--text-dark);
}

.testimonial-author-info h4 {
  font-size: 1.1rem;
}

.testimonial-author-info p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Deck Controls */
.deck-controls {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
}

.control-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.control-btn:hover {
  background: var(--gradient-warm);
  border-color: transparent;
  transform: scale(1.1);
}

/* ==========================================================================
   16. BEFORE & AFTER SPLIT COMPARER
   ========================================================================== */
.before-after-wrapper {
  position: relative;
  width: 100%;
  max-width: 800px;
  height: 450px;
  margin: 60px auto 0 auto;
  overflow: hidden;
  border-radius: 16px;
  border: 2px solid var(--border-color);
}

.comparison-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  pointer-events: none;
}

/* Styled HTML Mockups inside comparer */
.mockup-frame {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px;
  text-align: center;
}

.mockup-frame.before {
  background: #141110;
  color: #666;
}

.mockup-frame.after {
  background: var(--bg-card);
}

.after-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.after-metric-box {
  background: rgba(255, 87, 34, 0.1);
  border: 1px solid var(--primary);
  padding: 16px;
  border-radius: 8px;
}

.comparison-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.resize-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  overflow: hidden;
}

/* Comparative Slider handle */
.slider-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: var(--primary);
  cursor: ew-resize;
  z-index: 10;
}

.slider-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

/* ==========================================================================
   17. INTERACTIVE ROI CALCULATOR
   ========================================================================== */
.roi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 50px;
  max-width: 900px;
  margin: 60px auto 0 auto;
}

.roi-layout-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
}

@media (max-width: 768px) {
  .roi-layout-grid {
    grid-template-columns: 1fr;
  }
}

.roi-input-group {
  margin-bottom: 30px;
}

.roi-label-flex {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}

.roi-value-display {
  color: var(--primary);
  font-weight: 700;
}

.roi-range {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
}

.roi-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  box-shadow: 0 0 10px var(--primary);
}

.roi-output-container {
  background: rgba(255, 87, 34, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.roi-result-num {
  font-size: 3rem;
  font-weight: 800;
  color: var(--secondary);
  margin: 12px 0;
}

/* ==========================================================================
   18. CAMPAIGN GOAL MATCHER (INTELLIGENT DECISION TREE)
   ========================================================================== */
.matcher-container {
  max-width: 700px;
  margin: 60px auto 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 40px;
  border-radius: 20px;
}

.matcher-progress-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}

.matcher-progress-fill {
  height: 100%;
  width: 33%;
  background: var(--gradient-warm);
  transition: var(--transition-smooth);
}

.matcher-step {
  display: none;
}

.matcher-step.active {
  display: block;
  animation: fadeInStep 0.5s ease forwards;
}

@keyframes fadeInStep {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.matcher-options-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 24px;
}

.matcher-option-btn {
  background: var(--bg-black);
  border: 1px solid var(--border-color);
  color: var(--text-light);
  padding: 20px;
  border-radius: 12px;
  text-align: left;
  cursor: pointer;
  transition: var(--transition-smooth);
  font-weight: 500;
}

.matcher-option-btn:hover {
  border-color: var(--primary);
  background: rgba(255, 87, 34, 0.05);
}

.matcher-option-btn.selected {
  border-color: var(--secondary);
  background: rgba(255, 179, 0, 0.1);
}

.matcher-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
}

/* ==========================================================================
   19. CONTACT FORM SECTION
   ========================================================================== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
}

@media (max-width: 991px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

.contact-info-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-details-list {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.contact-detail-item i {
  font-size: 1.5rem;
  color: var(--primary);
  margin-top: 4px;
}

.contact-detail-item h3 {
  font-size: 1.15rem;
  margin-bottom: 4px;
}

.contact-detail-item p,
.contact-detail-item a {
  color: var(--text-muted);
}

.contact-form-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 50px;
  border-radius: 20px;
}

.form-group {
  margin-bottom: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 576px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-white);
}

input,
select,
textarea {
  width: 100%;
  background: var(--bg-black);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 14px 18px;
  color: var(--text-white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(255, 87, 34, 0.2);
}

/* ==========================================================================
   20. LEGAL LAYOUT PATTERNS
   ========================================================================== */
.page-header-section {
  padding: 180px 0 100px 0;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  text-align: center;
  position: relative;
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h2 {
  font-size: 1.8rem;
  margin: 40px 0 20px 0;
  color: var(--primary);
}

.legal-content p {
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.8;
}

/* ==========================================================================
   21. AI CHAT WIDGET
   ========================================================================== */
.live-chat-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
}

.chat-trigger {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gradient-warm);
  color: var(--text-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(255, 87, 34, 0.4);
  transition: var(--transition-smooth);
}

.chat-trigger:hover {
  transform: scale(1.1);
}

.chat-window {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 360px;
  height: 500px;
  background: var(--bg-card);
  border: 1px solid var(--primary);
  border-radius: 16px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.chat-window.active {
  display: flex;
  animation: chatOpen 0.4s var(--spring-ease);
}

@keyframes chatOpen {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.chat-header {
  background: var(--gradient-warm);
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-body {
  flex-1: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: calc(100% - 130px);
}

.chat-message {
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.9rem;
  max-width: 85%;
}

.chat-message.system {
  background: rgba(255, 255, 255, 0.05);
  align-self: flex-start;
}

.chat-message.user {
  background: var(--primary);
  color: var(--text-white);
  align-self: flex-end;
}

.chat-footer {
  padding: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  gap: 10px;
}

/* ==========================================================================
   22. SUCCESS MODALS & NOTIFICATIONS
   ========================================================================== */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(8, 6, 5, 0.9);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}

.popup-overlay.active {
  display: flex;
}

.popup-content {
  background: var(--bg-card);
  border: 1px solid var(--primary);
  padding: 50px;
  border-radius: 20px;
  text-align: center;
  max-width: 450px;
  width: 90%;
  animation: modalIn 0.5s var(--spring-ease);
}

@keyframes modalIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.popup-icon {
  font-size: 4rem;
  color: var(--secondary);
  margin-bottom: 24px;
}

/* ==========================================================================
   23. COMPREHENSIVE REUSABLE FOOTER
   ========================================================================== */
.footer {
  background: var(--bg-black);
  border-top: 1px solid var(--border-color);
  padding: 80px 0 30px 0;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 60px;
}

@media (max-width: 991px) {
  .footer-main {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 576px) {
  .footer-main {
    grid-template-columns: 1fr;
  }
}

.footer-about .footer-logo {
  display: inline-block;
  margin-bottom: 24px;
}

.footer-about .footer-logo img {
  height: 50px;
  width: auto;
}

.footer-about p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-links h4,
.footer-contact h4 {
  font-size: 1.15rem;
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 8px;
}

.footer-links h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--gradient-warm);
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--primary);
  padding-left: 6px;
}

.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-contact-info p {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-contact-info i {
  color: var(--primary);
  margin-top: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.footer-social a:hover {
  color: var(--text-white);
  background: var(--gradient-warm);
  border-color: transparent;
  transform: translateY(-3px);
}
