/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */
@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600&display=swap");

:root {
  /* Color Palette */
  --bg-dark: #030303;
  --bg-panel: #0a0a0a;
  --bg-glass: rgba(15, 15, 15, 0.6);
  --text-main: #ffffff;
  --text-muted: #888888;

  /* Neon Accents derived from a modern tech palette */
  --accent-cyan: #00f0ff;
  --accent-cyan-glow: rgba(0, 240, 255, 0.3);
  --accent-purple: #7000ff;
  --accent-purple-glow: rgba(112, 0, 255, 0.3);
  --border-color: rgba(255, 255, 255, 0.08);

  /* Typography */
  --font-heading: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;

  /* Spacing & Layout */
  --container-w: 1400px;
  --section-pad: 120px 0;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;

  /* Transitions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --transition-fast: 0.3s var(--ease-out-expo);
  --transition-slow: 0.8s var(--ease-out-expo);
}

/* ==========================================================================
      RESET & GLOBAL
      ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: initial; /* Handled by JS for smoothness */
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  cursor: none; /* Custom cursor */
}

/* Noise Overlay */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
  opacity: 0.03;
  z-index: 9999;
  pointer-events: none;
}

::selection {
  background: var(--accent-cyan);
  color: var(--bg-dark);
}

a {
  text-decoration: none;
  color: inherit;
  cursor: none; /* Let custom cursor handle hover state */
}

ul {
  list-style: none;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 40px;
}

/* ==========================================================================
      TYPOGRAPHY
      ========================================================================== */
h1,
h2,
h3,
h4,
h5,
h6,
.heading-font {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.title-huge {
  font-size: clamp(4rem, 8vw, 10rem);
  line-height: 0.9;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.2);
  position: relative;
}
.title-huge span {
  color: var(--text-main);
  -webkit-text-stroke: 0;
}

h2 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  margin-bottom: 2rem;
}
h3 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  margin-bottom: 1rem;
}
p {
  color: var(--text-muted);
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}

.text-gradient {
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ==========================================================================
      CUSTOM CURSOR
      ========================================================================== */
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--accent-cyan);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 10000;
  transition:
    width 0.2s,
    height 0.2s,
    background 0.2s;
}
.cursor-outline {
  position: fixed;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  border: 1px solid var(--accent-cyan-glow);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9999;
  transition:
    width 0.2s,
    height 0.2s,
    border-color 0.2s;
}
/* Cursor Hover States */
.cursor-hover .cursor-dot {
  width: 0;
  height: 0;
}
.cursor-hover .cursor-outline {
  width: 60px;
  height: 60px;
  background: var(--bg-glass);
  backdrop-filter: blur(4px);
  border-color: var(--accent-cyan);
  mix-blend-mode: exclusion;
}

/* ==========================================================================
      PRELOADER
      ========================================================================== */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-dark);
  z-index: 10001;
  display: flex;
  justify-content: center;
  align-items: center;
  transition:
    opacity 1s var(--ease-out-expo),
    visibility 1s;
}
.preloader.hidden {
  opacity: 0;
  visibility: hidden;
}
.loader-text {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  position: relative;
  overflow: hidden;
}
.loader-text::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-dark);
  animation: revealText 1.5s var(--ease-out-expo) forwards;
  border-left: 2px solid var(--accent-cyan);
}
@keyframes revealText {
  0% {
    width: 100%;
  }
  100% {
    width: 0%;
  }
}

/* ==========================================================================
      UI COMPONENTS (Buttons, Forms, Badges)
      ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 100px;
  position: relative;
  overflow: hidden;
  transition: var(--transition-fast);
  border: 1px solid transparent;
  z-index: 1;
}
.btn-primary {
  background: var(--text-main);
  color: var(--bg-dark);
}
.btn-primary::before {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--accent-cyan);
  transition: top 0.4s var(--ease-out-expo);
  z-index: -1;
}
.btn-primary:hover::before {
  top: 0;
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border-color: var(--border-color);
}
.btn-outline:hover {
  border-color: var(--accent-purple);
  background: rgba(112, 0, 255, 0.1);
}

/* Forms */
.form-group {
  position: relative;
  margin-bottom: 2rem;
}
.form-control {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 1.1rem;
  transition: var(--transition-fast);
}
.form-control:focus {
  outline: none;
  border-color: var(--accent-cyan);
}
.form-label {
  position: absolute;
  top: 1rem;
  left: 0;
  color: var(--text-muted);
  pointer-events: none;
  transition: 0.3s ease;
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}
.form-control:focus ~ .form-label,
.form-control:not(:placeholder-shown) ~ .form-label {
  top: -1rem;
  font-size: 0.75rem;
  color: var(--accent-cyan);
}
textarea.form-control {
  resize: none;
  height: 120px;
}

/* Section Badge */
.section-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 100px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 2rem;
  color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.05);
}

/* ==========================================================================
      HEADER (STRICTLY CONSISTENT ACROSS PAGES)
      ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 0;
  z-index: 1000;
  transition: var(--transition-fast);
  border-bottom: 1px solid transparent;
}
.header.scrolled {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--border-color);
  padding: 15px 0;
}
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-logo img {
  height: 50px;
  filter: brightness(0) invert(1); /* Ensure white on dark bg if logo is dark */
  transition: transform 0.3s ease;
}
.nav-logo:hover img {
  transform: scale(1.05);
}

.nav-menu {
  display: flex;
  gap: 3rem;
}
.nav-link {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  position: relative;
  padding: 0.5rem 0;
  color: var(--text-main);
  opacity: 0.8;
  transition: opacity 0.3s;
}
.nav-link:hover,
.nav-link.active {
  opacity: 1;
}
.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent-cyan);
  transition: width 0.3s var(--ease-out-expo);
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}
.hamburger span {
  width: 30px;
  height: 2px;
  background: var(--text-main);
  transition: 0.3s;
}

/* ==========================================================================
      FOOTER (STRICTLY CONSISTENT ACROSS PAGES)
      ========================================================================== */
.footer {
  background: var(--bg-panel);
  border-top: 1px solid var(--border-color);
  padding: 100px 0 40px;
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle at center,
    var(--accent-purple-glow) 0%,
    transparent 50%
  );
  opacity: 0.1;
  pointer-events: none;
}
.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 4rem;
  margin-bottom: 4rem;
}
.footer-logo img {
  height: 60px;
  margin-bottom: 1.5rem;
  filter: brightness(0) invert(1);
}
.footer-about p {
  max-width: 300px;
  font-size: 1rem;
}

.footer h3 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: var(--text-main);
}
.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.footer-links a {
  color: var(--text-muted);
  transition: var(--transition-fast);
  display: inline-block;
}
.footer-links a:hover {
  color: var(--accent-cyan);
  transform: translateX(5px);
}
.footer-contact ul {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.footer-contact li {
  display: flex;
  gap: 1rem;
  color: var(--text-muted);
  align-items: flex-start;
}
.footer-contact svg {
  width: 20px;
  height: 20px;
  fill: var(--accent-purple);
  flex-shrink: 0;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.footer-legal {
  display: flex;
  gap: 1.5rem;
}
.footer-legal a:hover {
  color: var(--text-main);
}

/* ==========================================================================
      PAGE: INDEX (HOME) - COMPLEX SECTIONS
      ========================================================================== */

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 80px;
  overflow: hidden;
}
.hero-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
}
.hero-btns {
  display: flex;
  gap: 1.5rem;
  margin-top: 3rem;
}
/* 3D Abstract Element CSS */
.hero-visual {
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  width: 600px;
  height: 600px;
  perspective: 1000px;
  z-index: 1;
}
.cube-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  animation: rotateCube 20s infinite linear;
}
.cube-face {
  position: absolute;
  width: 300px;
  height: 300px;
  left: 150px;
  top: 150px;
  border: 2px solid var(--accent-cyan);
  background: rgba(0, 240, 255, 0.02);
  box-shadow: 0 0 50px var(--accent-cyan-glow) inset;
  backdrop-filter: blur(10px);
}
.face-front {
  transform: translateZ(150px);
}
.face-back {
  transform: rotateY(180deg) translateZ(150px);
  border-color: var(--accent-purple);
}
.face-right {
  transform: rotateY(90deg) translateZ(150px);
}
.face-left {
  transform: rotateY(-90deg) translateZ(150px);
  border-color: var(--accent-purple);
}
.face-top {
  transform: rotateX(90deg) translateZ(150px);
}
.face-bottom {
  transform: rotateX(-90deg) translateZ(150px);
  border-color: var(--accent-purple);
}

@keyframes rotateCube {
  0% {
    transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg);
  }
  100% {
    transform: rotateX(360deg) rotateY(360deg) rotateZ(180deg);
  }
}

/* Infinite Marquee */
.marquee-section {
  padding: 2rem 0;
  background: var(--accent-cyan);
  color: var(--bg-dark);
  transform: rotate(-2deg) scale(1.05);
  overflow: hidden;
  position: relative;
  z-index: 10;
}
.marquee-content {
  display: flex;
  white-space: nowrap;
  animation: marquee 20s linear infinite;
}
.marquee-content span {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0 2rem;
  display: flex;
  align-items: center;
}
.marquee-content span::after {
  content: "✦";
  margin-left: 4rem;
  font-size: 2rem;
}
@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Services (Arsenal) Grid */
.services-section {
  padding: var(--section-pad);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 4rem;
}
.service-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  padding: 4rem 3rem;
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
  transition: var(--transition-slow);
  transform-style: preserve-3d;
}
.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at top right,
    var(--accent-cyan-glow),
    transparent 70%
  );
  opacity: 0;
  transition: 0.5s;
  z-index: 0;
}
.service-card:nth-child(even)::before {
  background: radial-gradient(
    circle at top left,
    var(--accent-purple-glow),
    transparent 70%
  );
}
.service-card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: var(--accent-cyan);
}
.service-card:hover::before {
  opacity: 1;
}
.service-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}
.service-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--text-main);
  stroke-width: 1.5;
  stroke-linecap: round;
}
.service-card:hover .service-icon svg {
  stroke: var(--accent-cyan);
}
.service-card h3,
.service-card p,
.service-card ul {
  position: relative;
  z-index: 1;
}
.service-features {
  margin-top: 1.5rem;
}
.service-features li {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.8rem;
  font-size: 1rem;
  color: var(--text-main);
}
.service-features li::before {
  content: "→";
  color: var(--accent-cyan);
  font-family: var(--font-heading);
}

/* Interactive Calculator Section */
.calculator-section {
  padding: var(--section-pad);
  background: var(--bg-panel);
}
.calc-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  background: var(--bg-dark);
  padding: 4rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
}
.calc-controls {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}
.range-group {
  position: relative;
}
.range-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-family: var(--font-heading);
}
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(--accent-cyan);
  cursor: pointer;
  margin-top: -10px;
  box-shadow: 0 0 20px var(--accent-cyan-glow);
}
input[type="range"]::-webkit-slider-runnable-track {
  width: 100%;
  height: 4px;
  cursor: pointer;
  background: var(--border-color);
  border-radius: 2px;
}
.calc-result {
  text-align: center;
  padding: 4rem;
  background: radial-gradient(circle, var(--bg-panel), var(--bg-dark));
  border-radius: var(--radius-md);
  border: 1px dashed var(--accent-purple);
}
.result-value {
  font-size: 5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--accent-cyan);
  line-height: 1;
  margin: 1rem 0;
}

/* Industry/Verticals (Horizontal Scroll Feel) */
.industry-section {
  padding: var(--section-pad);
  overflow: hidden;
}
.industry-track {
  display: flex;
  gap: 2rem;
  margin-top: 4rem;
  padding-bottom: 2rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.industry-track::-webkit-scrollbar {
  display: none;
}
.industry-card {
  min-width: 400px;
  padding: 3rem;
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  flex-shrink: 0;
}
.industry-card h3 {
  font-size: 2rem;
  color: var(--text-main);
}
.industry-card span.number {
  font-family: var(--font-heading);
  font-size: 4rem;
  color: transparent;
  -webkit-text-stroke: 1px var(--border-color);
  position: absolute;
  right: 20px;
  top: 10px;
  opacity: 0.5;
}

/* Interactive Sample Reports (Bar Chart CSS) */
.reports-section {
  padding: var(--section-pad);
  background: var(--bg-panel);
}
.chart-container {
  height: 400px;
  display: flex;
  align-items: flex-end;
  gap: 2%;
  margin-top: 4rem;
  border-bottom: 2px solid var(--border-color);
  border-left: 2px solid var(--border-color);
  padding: 0 2rem;
  position: relative;
}
.chart-bar-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
}
.chart-bar {
  width: 100%;
  background: linear-gradient(to top, var(--accent-purple), var(--accent-cyan));
  border-radius: 4px 4px 0 0;
  height: 0; /* Animated via JS */
  transition: height 1.5s var(--ease-out-expo);
  position: relative;
}
.chart-bar:hover {
  filter: brightness(1.2);
}
.chart-label {
  margin-top: 1rem;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  color: var(--text-muted);
}
.chart-tooltip {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text-main);
  color: var(--bg-dark);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-weight: bold;
  opacity: 0;
  transition: 0.3s;
  pointer-events: none;
}
.chart-bar:hover .chart-tooltip {
  opacity: 1;
  top: -50px;
}

/* Process Timeline */
.process-section {
  padding: var(--section-pad);
}
.timeline {
  position: relative;
  max-width: 800px;
  margin: 4rem auto 0;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: var(--border-color);
}
.timeline-item {
  width: 50%;
  padding: 2rem 3rem;
  position: relative;
}
.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}
.timeline-item:nth-child(even) {
  left: 50%;
}
.timeline-dot {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg-dark);
  border: 2px solid var(--accent-cyan);
  z-index: 2;
  box-shadow: 0 0 15px var(--accent-cyan-glow);
}
.timeline-item:nth-child(odd) .timeline-dot {
  right: -10px;
}
.timeline-item:nth-child(even) .timeline-dot {
  left: -10px;
}

/* Testimonials */
.testimonials-section {
  padding: var(--section-pad);
  background: var(--bg-panel);
}
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 4rem;
}
.testi-card {
  padding: 3rem;
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  position: relative;
}
.quote-icon {
  font-size: 4rem;
  color: var(--border-color);
  position: absolute;
  top: 1rem;
  right: 2rem;
  line-height: 1;
}
.client-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}
.client-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--accent-purple);
}

/* CTA Section */
.cta-section {
  padding: 150px 0;
  text-align: center;
  background: radial-gradient(
    circle at center,
    rgba(112, 0, 255, 0.1),
    var(--bg-dark)
  );
  position: relative;
}

/* ==========================================================================
      PAGE: CONTACT
      ========================================================================== */
.page-hero {
  padding: 200px 0 100px;
  background: radial-gradient(
    circle at top right,
    var(--bg-panel),
    var(--bg-dark)
  );
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 6rem;
  padding: var(--section-pad);
}
.contact-info-block h3 {
  margin-bottom: 2rem;
  color: var(--accent-cyan);
}
.contact-item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.contact-icon {
  width: 50px;
  height: 50px;
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-icon svg {
  width: 20px;
  height: 20px;
  fill: var(--text-main);
}
.contact-form-block {
  background: var(--bg-panel);
  padding: 4rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

/* ==========================================================================
      PAGES: LEGAL (Privacy, Terms, Disclaimer)
      ========================================================================== */
.legal-content {
  max-width: 900px;
  margin: 0 auto;
  padding: var(--section-pad);
}
.legal-content h2 {
  font-size: 2rem;
  margin: 3rem 0 1rem;
  color: var(--text-main);
}
.legal-content p,
.legal-content ul {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}
.legal-content ul {
  list-style: disc;
  padding-left: 2rem;
  color: var(--text-muted);
}

/* ==========================================================================
      UTILITIES & ANIMATIONS (JS Hooks)
      ========================================================================== */
.reveal-up {
  opacity: 0;
  transform: translateY(50px);
  transition:
    opacity 1s var(--ease-out-expo),
    transform 1s var(--ease-out-expo);
}
.reveal-up.active {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.1s;
}
.delay-2 {
  transition-delay: 0.2s;
}
.delay-3 {
  transition-delay: 0.3s;
}

/* Live Chat Floating */
.chat-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: var(--accent-cyan);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  box-shadow: 0 10px 30px var(--accent-cyan-glow);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.chat-widget:hover {
  transform: scale(1.1);
}
.chat-widget svg {
  width: 30px;
  height: 30px;
  fill: var(--bg-dark);
}

/* ==========================================================================
      MEDIA QUERIES
      ========================================================================== */
@media (max-width: 1024px) {
  .title-huge {
    font-size: 5rem;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .calc-wrapper {
    grid-template-columns: 1fr;
  }
  .testi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  .hero-visual {
    right: -20%;
    opacity: 0.5;
  }
}
@media (max-width: 768px) {
  :root {
    --section-pad: 80px 0;
  }
  .nav-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background: var(--bg-panel);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: 0.5s var(--ease-out-expo);
    z-index: -1;
  }
  .nav-menu.active {
    left: 0;
  }
  .hamburger {
    display: flex;
  }
  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .timeline::before {
    left: 0;
  }
  .timeline-item {
    width: 100%;
    padding-left: 3rem !important;
    text-align: left !important;
    left: 0 !important;
  }
  .timeline-dot {
    left: -10px !important;
    right: auto !important;
  }
  .testi-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .chart-container {
    height: 250px;
  }
  .contact-form-block {
    padding: 2rem;
  }
}
