/* ==========================================================================
   CSS Variables & Theme Configuration
   Theme: Quantum Growth
   ========================================================================== */
:root {
  /* Colors */
  --c-white: #ffffff;
  --c-bg-light: #f8fafc;
  --c-bg-dark: #0b0f19;
  --c-bg-panel: #111827;

  --c-primary-light: #0ea5e9; /* Sky Blue */
  --c-primary-dark: #6366f1; /* Indigo */
  --c-accent: #22c55e; /* Success Green */

  --c-text-main: #1e293b;
  --c-text-muted: #64748b;
  --c-text-light: #f1f5f9;

  --c-border: #e2e8f0;
  --c-border-dark: #1e293b;

  /* Gradients */
  --grad-primary: linear-gradient(
    135deg,
    var(--c-primary-light),
    var(--c-primary-dark)
  );
  --grad-hover: linear-gradient(
    135deg,
    var(--c-primary-dark),
    var(--c-primary-light)
  );
  --grad-bg: linear-gradient(180deg, var(--c-bg-light) 0%, var(--c-white) 100%);
  --grad-dark: linear-gradient(180deg, var(--c-bg-dark) 0%, #000000 100%);

  /* Typography */
  --font-main: "Poppins", sans-serif;

  /* Shadows */
  --shadow-sm:
    0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-md:
    0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
  --shadow-lg:
    0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 20px rgba(14, 165, 233, 0.3);
  --shadow-glow-accent: 0 0 20px rgba(34, 197, 94, 0.4);

  /* Transitions */
  --trans-fast: 0.2s ease-in-out;
  --trans-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --trans-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  color: var(--c-text-main);
  background-color: var(--c-bg-light);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

body.dark-mode-elements {
  background: var(--c-bg-dark);
  color: var(--c-text-light);
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--trans-fast);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--c-text-main);
  margin-bottom: 1rem;
}

.dark-bg h1,
.dark-bg h2,
.dark-bg h3,
.dark-bg p {
  color: var(--c-text-light);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: -1px;
}
h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.5px;
}
h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}
p {
  color: var(--c-text-muted);
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
}

.text-gradient {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

/* ==========================================================================
   Global Components & Utilities
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--trans-normal);
  border: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary {
  background: var(--grad-primary);
  color: var(--c-white) !important;
  box-shadow: var(--shadow-md);
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--grad-hover);
  z-index: -1;
  opacity: 0;
  transition: opacity var(--trans-normal);
}

.btn-primary:hover {
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-outline {
  background: transparent;
  color: var(--c-text-main);
  border: 2px solid var(--c-border);
}

.btn-outline:hover {
  border-color: var(--c-primary-light);
  color: var(--c-primary-light);
}

.section-padding {
  padding: 100px 0;
}

.text-center {
  text-align: center;
}
.mb-2 {
  margin-bottom: 2rem;
}
.mb-4 {
  margin-bottom: 4rem;
}

/* Custom Cursor */
.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(14, 165, 233, 0.15) 0%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9999;
  mix-blend-mode: screen;
  transition:
    width 0.3s,
    height 0.3s;
}

/* ==========================================================================
   Preloader
   ========================================================================== */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--c-bg-dark);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease;
}

.preloader.hidden {
  opacity: 0;
  pointer-events: none;
}

.loader-bars {
  display: flex;
  gap: 8px;
}

.loader-bars span {
  display: block;
  width: 8px;
  height: 30px;
  background: var(--c-primary-light);
  animation: loader 1.2s infinite ease-in-out;
}

.loader-bars span:nth-child(2) {
  animation-delay: 0.1s;
  background: var(--c-primary-dark);
}
.loader-bars span:nth-child(3) {
  animation-delay: 0.2s;
  background: var(--c-accent);
}

@keyframes loader {
  0%,
  40%,
  100% {
    transform: scaleY(0.4);
  }
  20% {
    transform: scaleY(1);
  }
}

/* ==========================================================================
   Header & Navigation (STRICT CONSISTENCY)
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: all var(--trans-normal);
}

.header.scrolled {
  padding: 15px 0;
  background: rgba(11, 15, 25, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: var(--shadow-sm);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-link img {
  height: 60px;
  filter: brightness(0) invert(1) drop-shadow(0 0 5px rgba(255, 255, 255, 0.2));
}

.nav-list {
  display: flex;
  gap: 2.5rem;
}

.nav-link {
  color: var(
    --c-text-light
  ); /* Always light text in header due to dark theme */
  font-weight: 500;
  font-size: 1rem;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--grad-primary);
  transition: width var(--trans-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 24px;
  position: relative;
  z-index: 1001;
}

.bar {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--c-text-light);
  transition: all var(--trans-fast);
}

.bar-top {
  top: 0;
}
.bar-middle {
  top: 50%;
  transform: translateY(-50%);
}
.bar-bottom {
  bottom: 0;
}

.mobile-toggle.active .bar-top {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}
.mobile-toggle.active .bar-middle {
  opacity: 0;
}
.mobile-toggle.active .bar-bottom {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}

/* Mobile Menu */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  background: var(--c-bg-dark);
  z-index: 999;
  padding: 100px 40px;
  transition: right var(--trans-normal);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
  border-left: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-nav.active {
  right: 0;
}

.mobile-nav ul {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.mobile-nav a {
  color: var(--c-white);
  font-size: 1.5rem;
  font-weight: 600;
}

/* ==========================================================================
   Hero Section (Dashboard 3D style)
   ========================================================================== */
.hero {
  background: var(--c-bg-dark);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 100px 0;
}

/* Background Grid & Glows */
.hero-bg-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: 0;
}

.hero-glow-1 {
  position: absolute;
  top: -10%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: var(--c-primary-dark);
  filter: blur(150px);
  opacity: 0.3;
  border-radius: 50%;
  z-index: 0;
}

.hero-glow-2 {
  position: absolute;
  bottom: -10%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: var(--c-primary-light);
  filter: blur(150px);
  opacity: 0.2;
  border-radius: 50%;
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content h1 {
  color: var(--c-white);
  margin-bottom: 1.5rem;
}
.hero-content p {
  color: var(--c-text-light);
  opacity: 0.8;
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
}

.hero-tags {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.tag {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--c-white);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.875rem;
  backdrop-filter: blur(5px);
}

/* 3D Dashboard Element */
.hero-visual {
  perspective: 1000px;
  position: relative;
}

.dashboard-3d {
  background: rgba(17, 24, 39, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 24px;
  backdrop-filter: blur(20px);
  transform: rotateY(-15deg) rotateX(5deg);
  box-shadow:
    -20px 20px 50px rgba(0, 0, 0, 0.5),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  transition: transform 0.5s ease;
  animation: float 6s ease-in-out infinite;
}

.hero-visual:hover .dashboard-3d {
  transform: rotateY(0deg) rotateX(0deg);
}

@keyframes float {
  0% {
    transform: rotateY(-15deg) rotateX(5deg) translateY(0px);
  }
  50% {
    transform: rotateY(-15deg) rotateX(5deg) translateY(-20px);
  }
  100% {
    transform: rotateY(-15deg) rotateX(5deg) translateY(0px);
  }
}

.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 16px;
}

.dash-title {
  color: var(--c-white);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.dash-title i {
  color: var(--c-primary-light);
}

.dash-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.metric-card {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.metric-card span {
  display: block;
  color: var(--c-text-muted);
  font-size: 0.875rem;
  margin-bottom: 8px;
}
.metric-card strong {
  display: block;
  color: var(--c-white);
  font-size: 1.5rem;
}
.metric-trend {
  color: var(--c-accent);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
}

/* CSS Chart */
.dash-chart {
  height: 150px;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding-top: 20px;
}

.chart-bar {
  flex: 1;
  background: var(--grad-primary);
  border-radius: 4px 4px 0 0;
  animation: growBar 1.5s ease-out forwards;
  transform-origin: bottom;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.chart-bar:hover {
  opacity: 1;
}

@keyframes growBar {
  from {
    transform: scaleY(0);
  }
  to {
    transform: scaleY(1);
  }
}

/* ==========================================================================
   Stats Section (Animated Counters)
   ========================================================================== */
.stats-section {
  background: var(--c-white);
  position: relative;
  z-index: 2;
  margin-top: -50px;
  padding: 0 24px;
}

.stats-wrapper {
  background: var(--c-white);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 40px;
  border: 1px solid var(--c-border);
}

.stat-item {
  text-align: center;
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: var(--c-border);
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--c-primary-dark);
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 8px;
}

.stat-number span {
  display: inline-block;
}
.stat-label {
  color: var(--c-text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.875rem;
}

/* ==========================================================================
   Services Section (Hover Glow Cards)
   ========================================================================== */
.services {
  background: var(--c-bg-light);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 60px;
}

.service-card {
  background: var(--c-white);
  border-radius: 16px;
  padding: 40px 30px;
  box-shadow: var(--shadow-sm);
  transition: all var(--trans-normal);
  position: relative;
  border: 1px solid var(--c-border);
  overflow: hidden;
  z-index: 1;
}

/* Hover Glow Effect */
.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--grad-primary);
  z-index: -1;
  opacity: 0;
  transition: opacity var(--trans-normal);
}

.service-icon {
  width: 60px;
  height: 60px;
  background: rgba(14, 165, 233, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--c-primary-dark);
  margin-bottom: 24px;
  transition: all var(--trans-normal);
}

.service-card h3 {
  color: var(--c-text-main);
  transition: color var(--trans-normal);
}
.service-card p {
  color: var(--c-text-muted);
  transition: color var(--trans-normal);
  margin-bottom: 24px;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--c-primary-dark);
  font-weight: 600;
  transition: all var(--trans-normal);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.service-card:hover::before {
  opacity: 1;
}
.service-card:hover h3,
.service-card:hover p,
.service-card:hover .service-link {
  color: var(--c-white);
}
.service-card:hover .service-icon {
  background: rgba(255, 255, 255, 0.2);
  color: var(--c-white);
}

/* ==========================================================================
   Industry Solutions (Tabs/Grid)
   ========================================================================== */
.industries {
  background: var(--c-white);
}

.industry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.industry-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  height: 300px;
  display: flex;
  align-items: flex-end;
  padding: 30px;
  cursor: pointer;
}

.industry-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform var(--trans-slow);
  z-index: 0;
}
/* Abstract backgrounds for tech feel instead of raw images */
.ind-1 {
  background: linear-gradient(45deg, #0f172a, #1e293b);
}
.ind-2 {
  background: linear-gradient(45deg, #1e1b4b, #312e81);
}
.ind-3 {
  background: linear-gradient(45deg, #064e3b, #065f46);
}

.industry-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.2));
  z-index: 1;
}

.industry-content {
  position: relative;
  z-index: 2;
  width: 100%;
}
.industry-content h3 {
  color: var(--c-white);
  margin-bottom: 8px;
  transform: translateY(20px);
  transition: transform var(--trans-normal);
}
.industry-content p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--trans-normal);
  margin: 0;
}

.industry-item:hover .industry-bg {
  transform: scale(1.1);
}
.industry-item:hover .industry-content h3 {
  transform: translateY(0);
  color: var(--c-primary-light);
}
.industry-item:hover .industry-content p {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.1s;
}

/* ==========================================================================
   Sample Campaign Reports (Scroll Reveal)
   ========================================================================== */
.reports-section {
  background: var(--c-bg-dark);
  color: var(--c-white);
  overflow: hidden;
}

.reports-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.report-visual {
  background: var(--c-bg-panel);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  position: relative;
}

/* Animated Line Chart CSS */
.line-chart-container {
  position: relative;
  height: 200px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 40px;
}

.svg-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.chart-path {
  fill: none;
  stroke: var(--c-primary-light);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  transition: stroke-dashoffset 2s ease-in-out;
}

.reports-section.in-view .chart-path {
  stroke-dashoffset: 0;
}

.chart-point {
  fill: var(--c-bg-panel);
  stroke: var(--c-accent);
  stroke-width: 3;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.reports-section.in-view .chart-point {
  opacity: 1;
}
.chart-point:nth-child(2) {
  transition-delay: 0.4s;
}
.chart-point:nth-child(3) {
  transition-delay: 0.8s;
}
.chart-point:nth-child(4) {
  transition-delay: 1.2s;
}
.chart-point:nth-child(5) {
  transition-delay: 1.6s;
}

/* ==========================================================================
   Service Calculator (Interactive)
   ========================================================================== */
.calculator-section {
  background: var(--grad-bg);
}

.calc-wrapper {
  background: var(--c-white);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  padding: 60px;
  max-width: 900px;
  margin: 0 auto;
  border: 1px solid var(--c-border);
}

.calc-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 60px;
}

.calc-group {
  margin-bottom: 30px;
}
.calc-group label {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--c-text-main);
}
.calc-value {
  color: var(--c-primary-dark);
}

/* Custom Range Slider */
input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  background: transparent;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 24px;
  width: 24px;
  border-radius: 50%;
  background: var(--c-primary-dark);
  cursor: pointer;
  margin-top: -10px;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
  border: 3px solid var(--c-white);
}
input[type="range"]::-webkit-slider-runnable-track {
  width: 100%;
  height: 6px;
  cursor: pointer;
  background: var(--c-border);
  border-radius: 3px;
}

.calc-result {
  background: var(--c-bg-dark);
  border-radius: 16px;
  padding: 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.calc-result::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--grad-primary);
}

.calc-result h4 {
  color: var(--c-text-light);
  margin-bottom: 10px;
}
.roi-value {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--c-accent);
  line-height: 1;
  margin-bottom: 15px;
}
.roi-text {
  color: var(--c-text-muted);
  font-size: 0.9rem;
}

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonials {
  background: var(--c-white);
}

.testi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.testi-card {
  background: var(--c-bg-light);
  padding: 40px;
  border-radius: 16px;
  border: 1px solid var(--c-border);
  position: relative;
}

.quote-icon {
  position: absolute;
  top: 30px;
  right: 30px;
  font-size: 3rem;
  color: rgba(14, 165, 233, 0.1);
}

.stars {
  color: #f59e0b;
  margin-bottom: 20px;
  font-size: 1.2rem;
}
.testi-text {
  font-style: italic;
  color: var(--c-text-main);
  margin-bottom: 30px;
  font-size: 1.1rem;
}

.client-info {
  display: flex;
  align-items: center;
  gap: 15px;
}
.client-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--grad-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
}
.client-details h4 {
  margin: 0;
  font-size: 1rem;
}
.client-details span {
  color: var(--c-text-muted);
  font-size: 0.85rem;
}

/* ==========================================================================
   Contact / CTA Section
   ========================================================================== */
.cta-section {
  background: var(--c-bg-dark);
  position: relative;
  padding: 120px 0;
  text-align: center;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  background: radial-gradient(
    circle,
    rgba(99, 102, 241, 0.2) 0%,
    transparent 70%
  );
  z-index: 0;
  pointer-events: none;
}

.cta-section .container {
  position: relative;
  z-index: 1;
}
.cta-section h2 {
  color: var(--c-white);
  font-size: 3.5rem;
  margin-bottom: 20px;
}
.cta-section p {
  color: var(--c-text-light);
  opacity: 0.8;
  max-width: 600px;
  margin: 0 auto 40px;
  font-size: 1.2rem;
}

/* ==========================================================================
   Live Chat Support Floating UI
   ========================================================================== */
.live-chat-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: var(--grad-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-white);
  font-size: 24px;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  z-index: 9999;
  transition: transform var(--trans-fast);
  animation: pulse 2s infinite;
}

.live-chat-btn:hover {
  transform: scale(1.1);
  animation: none;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(14, 165, 233, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(14, 165, 233, 0);
  }
}

.chat-window {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 350px;
  background: var(--c-white);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  z-index: 9998;
  border: 1px solid var(--c-border);
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.chat-window.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.chat-header {
  background: var(--grad-primary);
  padding: 20px;
  border-radius: 16px 16px 0 0;
  color: var(--c-white);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.chat-header h4 {
  margin: 0;
  font-size: 1.1rem;
}
.close-chat {
  cursor: pointer;
}

.chat-body {
  padding: 20px;
  height: 250px;
  overflow-y: auto;
  background: var(--c-bg-light);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.msg-bot {
  background: var(--c-white);
  padding: 10px 15px;
  border-radius: 0 10px 10px 10px;
  align-self: flex-start;
  border: 1px solid var(--c-border);
  font-size: 0.9rem;
}

.chat-input {
  padding: 15px;
  border-top: 1px solid var(--c-border);
  display: flex;
  gap: 10px;
}
.chat-input input {
  flex: 1;
  border: 1px solid var(--c-border);
  border-radius: 20px;
  padding: 8px 15px;
  outline: none;
}
.chat-input button {
  background: var(--c-primary-light);
  color: white;
  border: none;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  cursor: pointer;
}

/* ==========================================================================
   Footer (STRICT CONSISTENCY)
   ========================================================================== */
.footer {
  background: #050810;
  color: var(--c-text-muted);
  padding-top: 80px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-logo {
  height: 50px;
  margin-bottom: 20px;
  filter: brightness(0) invert(1);
}
.footer-about-text {
  margin-bottom: 24px;
  max-width: 300px;
}

.social-links {
  display: flex;
  gap: 15px;
}
.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-text-light);
  transition: all var(--trans-fast);
}
.social-link:hover {
  background: var(--c-primary-light);
  transform: translateY(-3px);
  color: var(--c-white);
}

.footer-col-title {
  color: var(--c-white);
  font-size: 1.2rem;
  margin-bottom: 24px;
  font-weight: 600;
}
.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-links a {
  transition: color var(--trans-fast);
}
.footer-links a:hover {
  color: var(--c-primary-light);
  padding-left: 5px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-info li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.contact-info i {
  color: var(--c-primary-light);
  margin-top: 5px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px 0;
  text-align: center;
  font-size: 0.9rem;
}

/* ==========================================================================
   Subpages Specific Styles (Legal & Contact)
   ========================================================================== */
.subpage .header {
  background: rgba(11, 15, 25, 0.95);
} /* Solid header on subpages */
.page-header {
  background: var(--c-bg-dark);
  padding: 180px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header h1 {
  color: var(--c-white);
  margin-bottom: 10px;
  font-size: 3rem;
}
.breadcrumbs {
  color: var(--c-text-muted);
  font-size: 0.9rem;
}
.breadcrumbs span {
  color: var(--c-primary-light);
}

.legal-content h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--c-text-main);
  font-size: 1.8rem;
}
.legal-content p {
  margin-bottom: 1rem;
}
.legal-content ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 1.5rem;
  color: var(--c-text-muted);
}

/* Contact Form Overhaul */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 50px;
  background: var(--c-white);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.contact-info-panel {
  background: var(--grad-primary);
  padding: 50px;
  color: var(--c-white);
  position: relative;
}
.contact-info-panel h2 {
  color: var(--c-white);
}
.contact-info-panel p {
  color: rgba(255, 255, 255, 0.8);
}
.method-icon {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 15px;
}
.method-details h3 {
  font-size: 1.2rem;
  color: var(--c-white);
  margin-bottom: 5px;
}
.contact-method {
  margin-bottom: 30px;
}

.contact-form-wrapper {
  padding: 50px;
}
.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-group {
  position: relative;
}
.form-group.full-width {
  grid-column: 1 / -1;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid var(--c-border);
  border-radius: 8px;
  background: var(--c-bg-light);
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--c-primary-light);
}
.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

/* Floating Labels */
.contact-form label {
  position: absolute;
  left: 15px;
  top: 15px;
  color: var(--c-text-muted);
  pointer-events: none;
  transition: 0.2s ease all;
  background: transparent;
  padding: 0 5px;
}
.contact-form input:focus ~ label,
.contact-form input:not(:placeholder-shown) ~ label,
.contact-form textarea:focus ~ label,
.contact-form textarea:not(:placeholder-shown) ~ label {
  top: -10px;
  left: 10px;
  font-size: 0.8rem;
  color: var(--c-primary-light);
  background: var(--c-white);
}

/* ==========================================================================
   Animations & Interactivity Classes
   ========================================================================== */
.animate-on-scroll {
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}
.fade-up {
  transform: translateY(40px);
}
.fade-in {
  transform: scale(0.95);
}
.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Delay classes */
.delay-100 {
  transition-delay: 100ms;
}
.delay-200 {
  transition-delay: 200ms;
}
.delay-300 {
  transition-delay: 300ms;
}

/* ==========================================================================
   Media Queries
   ========================================================================== */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-tags {
    justify-content: center;
  }
  .hero-visual {
    margin-top: 40px;
  }
  .stats-wrapper {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
  .stat-item:nth-child(2)::after {
    display: none;
  }
  .industry-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .reports-container {
    grid-template-columns: 1fr;
  }
  .calc-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-top {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-wrapper {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-list,
  .header-actions .btn {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  h1 {
    font-size: 2.5rem;
  }
  .stats-wrapper {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px;
  }
  .stat-item::after {
    display: none !important;
  }
  .industry-grid {
    grid-template-columns: 1fr;
  }
  .contact-form {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .social-links {
    justify-content: center;
  }
  .contact-info li {
    justify-content: center;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    text-align: center;
  }
}
