/* ============================================================
   CLEARSIGHT HOME INSPECTIONS — Master Stylesheet
   Color Psychology: Navy (trust) + Cyan (clarity) + Amber (warmth)
   ============================================================ */

/* --- CSS Custom Properties --- */
:root {
  /* Primary Palette */
  --navy:        #0D1F3C;
  --navy-light:  #162D50;
  --navy-mid:    #1A3550;
  --slate:       #2A3F5F;
  --cyan:        #0EA5E9;
  --cyan-light:  #38BDF8;
  --cyan-glow:   rgba(14, 165, 233, 0.3);
  --amber:       #E8963E;
  --amber-light: #F0A852;
  --amber-glow:  rgba(232, 150, 62, 0.25);

  /* Neutrals */
  --white:       #FFFFFF;
  --off-white:   #F8FAFB;
  --gray-100:    #F1F5F9;
  --gray-200:    #E2E8F0;
  --gray-300:    #CBD5E1;
  --gray-400:    #94A3B8;
  --gray-500:    #64748B;
  --gray-600:    #475569;
  --dark:        #0B1929;
  --text:        #1E293B;
  --text-light:  #94A3B8;

  /* Semantic */
  --success:     #22C55E;
  --danger:      #EF4444;

  /* Typography */
  --font-display: 'Montserrat', sans-serif;
  --font-body:    'Inter', sans-serif;

  /* Spacing */
  --section-pad: clamp(4rem, 8vw, 7rem);
  --container:   1200px;

  /* Transitions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Utility Classes --- */
.text-cyan  { color: var(--cyan); }
.text-amber { color: var(--amber); }
.text-white { color: var(--white); }
.text-gray  { color: var(--gray-500); }

.bg-navy    { background: var(--navy); }
.bg-dark    { background: var(--dark); }
.bg-off     { background: var(--off-white); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: all 0.4s var(--ease-out-expo);
}

.nav.scrolled {
  background: rgba(13, 31, 60, 0.97);
  backdrop-filter: blur(12px);
  padding: 0.75rem 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--white);
  letter-spacing: -0.02em;
}

.nav__logo-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav__logo-icon svg {
  width: 100%;
  height: 100%;
}

.nav__logo span {
  color: var(--cyan);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__links a {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
  position: relative;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--cyan);
  transition: width 0.3s var(--ease-out-expo);
}

.nav__links a:hover {
  color: var(--white);
}

.nav__links a:hover::after,
.nav__links a.active::after {
  width: 100%;
}

.nav__links a.active {
  color: var(--white);
}

.nav__cta {
  background: var(--amber);
  color: var(--white) !important;
  padding: 0.625rem 1.5rem;
  border-radius: 6px;
  font-weight: 700 !important;
  letter-spacing: 0.02em !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 2px 12px var(--amber-glow);
}

.nav__cta::after {
  display: none !important;
}

.nav__cta:hover {
  background: var(--amber-light) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--amber-glow);
}

/* Mobile Menu Toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.nav__toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s ease;
  transform-origin: center;
}

.nav__toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav__toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav__toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  overflow: hidden;
}

/* Animated background grid */
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(14, 165, 233, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 165, 233, 0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridShift 20s linear infinite;
}

@keyframes gridShift {
  0%   { transform: translate(0, 0); }
  100% { transform: translate(60px, 60px); }
}

/* Radial glow */
.hero__glow {
  position: absolute;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--cyan-glow) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.5;
  pointer-events: none;
}

/* Floating particles */
.hero__particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--cyan);
  border-radius: 50%;
  opacity: 0;
  animation: particleFloat 6s infinite ease-in-out;
}

@keyframes particleFloat {
  0%, 100% { opacity: 0; transform: translateY(0) scale(0.5); }
  50%      { opacity: 0.6; transform: translateY(-100px) scale(1); }
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 0 1.5rem;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(14, 165, 233, 0.1);
  border: 1px solid rgba(14, 165, 233, 0.25);
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--cyan-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 2rem;
  opacity: 0;
}

.hero__badge svg {
  width: 16px;
  height: 16px;
  fill: var(--cyan);
}

.hero__title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.05;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}

.hero__title .highlight {
  color: var(--cyan);
  position: relative;
  display: inline-block;
}

.hero__title .highlight::after {
  content: '';
  position: absolute;
  bottom: 0.05em;
  left: 0;
  width: 100%;
  height: 0.12em;
  background: var(--cyan);
  opacity: 0.25;
  border-radius: 2px;
}

.hero__sub {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--gray-400);
  max-width: 640px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
  opacity: 0;
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.875rem 2rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease-out-expo);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.btn--primary {
  background: var(--amber);
  color: var(--white);
  box-shadow: 0 4px 20px var(--amber-glow);
}

.btn--primary:hover {
  background: var(--amber-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--amber-glow);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.25);
}

.btn--outline:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  transform: translateY(-2px);
}

.btn svg {
  width: 18px;
  height: 18px;
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--gray-500);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeInUp 1s 2s forwards;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--cyan), transparent);
  animation: scrollPulse 2s infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50%      { opacity: 1; transform: scaleY(1); }
}

@keyframes fadeInUp {
  to { opacity: 1; }
}

/* ============================================================
   TRUST STRIP
   ============================================================ */
.trust-strip {
  background: var(--dark);
  border-top: 1px solid rgba(14, 165, 233, 0.15);
  border-bottom: 1px solid rgba(14, 165, 233, 0.15);
  padding: 1.5rem 0;
}

.trust-strip__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.trust-strip__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  opacity: 0;
}

.trust-strip__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(14, 165, 233, 0.1);
  border-radius: 10px;
  flex-shrink: 0;
}

.trust-strip__icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--cyan);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trust-strip__text {
  line-height: 1.3;
}

.trust-strip__number {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--white);
}

.trust-strip__label {
  font-size: 0.8rem;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ============================================================
   SECTION: ABOUT
   ============================================================ */
.about {
  padding: var(--section-pad) 0;
  background: var(--white);
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about__image-wrap {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}

.about__image-placeholder {
  width: 100%;
  aspect-ratio: 4 / 5;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--gray-400);
  font-size: 0.875rem;
  position: relative;
  overflow: hidden;
}

.about__image-placeholder svg {
  width: 80px;
  height: 80px;
  stroke: var(--cyan);
  fill: none;
  stroke-width: 1.5;
  opacity: 0.5;
}

/* Decorative corner accents */
.about__image-wrap::before,
.about__image-wrap::after {
  content: '';
  position: absolute;
  width: 60px;
  height: 60px;
  border: 3px solid var(--cyan);
  z-index: 2;
  pointer-events: none;
}

.about__image-wrap::before {
  top: -8px;
  left: -8px;
  border-right: none;
  border-bottom: none;
}

.about__image-wrap::after {
  bottom: -8px;
  right: -8px;
  border-left: none;
  border-top: none;
}

.about__experience-badge {
  position: absolute;
  bottom: 1.5rem;
  right: -1rem;
  background: var(--amber);
  color: var(--white);
  padding: 1rem 1.5rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  z-index: 3;
}

.about__experience-badge .number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.about__experience-badge .label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.9;
}

.about__tag {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
}

.about__title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin-bottom: 1.5rem;
  line-height: 1.15;
}

.about__text {
  color: var(--gray-600);
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
}

.about__text strong {
  color: var(--navy);
  font-weight: 600;
}

.about__highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 2rem;
}

.about__highlight {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--navy);
}

.about__highlight svg {
  width: 20px;
  height: 20px;
  fill: var(--success);
  flex-shrink: 0;
}

/* ============================================================
   SECTION: SERVICES — Interactive House
   ============================================================ */
.services {
  padding: var(--section-pad) 0;
  background: var(--off-white);
}

.services__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 4rem;
}

.services__tag {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
}

.services__title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin-bottom: 1rem;
}

.services__subtitle {
  color: var(--gray-500);
  font-size: 1.05rem;
}

.services__house-wrap {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.services__house-svg {
  width: 100%;
  height: auto;
}

/* Inspection point hotspots */
.hotspot {
  position: absolute;
  width: 32px;
  height: 32px;
  transform: translate(-50%, -50%);
  cursor: pointer;
  z-index: 10;
}

.hotspot__pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--cyan);
  opacity: 0.3;
  animation: hotspotPulse 2s infinite;
}

@keyframes hotspotPulse {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50%      { transform: scale(1.8); opacity: 0; }
}

.hotspot__dot {
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: var(--cyan);
  border: 2px solid var(--white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.hotspot:hover .hotspot__dot {
  background: var(--amber);
  transform: scale(1.2);
}

.hotspot__tooltip {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--navy);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  white-space: nowrap;
  font-size: 0.85rem;
  font-weight: 600;
  pointer-events: none;
  opacity: 0;
  transition: all 0.3s var(--ease-out-expo);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hotspot__tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--navy);
}

.hotspot:hover .hotspot__tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Service Detail Panel */
.services__detail {
  position: relative;
  max-width: 800px;
  margin: 3rem auto 0;
  min-height: 140px;
}

.service-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--white);
  border-radius: 12px;
  padding: 2rem;
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--gray-200);
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s var(--ease-out-expo);
  pointer-events: none;
}

.service-card.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.service-card__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(14, 165, 233, 0.08);
  border-radius: 12px;
  flex-shrink: 0;
}

.service-card__icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--cyan);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card__title {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.service-card__text {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.7;
}

/* Service grid below house */
.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 900px;
  margin: 3rem auto 0;
}

.services__grid-item {
  text-align: center;
  padding: 1.5rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--gray-200);
  background: var(--white);
  cursor: pointer;
  transition: all 0.3s var(--ease-out-expo);
}

.services__grid-item:hover,
.services__grid-item.active {
  border-color: var(--cyan);
  box-shadow: 0 4px 20px var(--cyan-glow);
  transform: translateY(-4px);
}

.services__grid-item svg {
  width: 32px;
  height: 32px;
  stroke: var(--cyan);
  fill: none;
  stroke-width: 1.5;
  margin: 0 auto 0.75rem;
}

.services__grid-item.active svg {
  stroke: var(--amber);
}

.services__grid-item h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* ============================================================
   SECTION: PROCESS
   ============================================================ */
.process {
  padding: var(--section-pad) 0;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

.process__header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 4rem;
}

.process__tag {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
}

.process__title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  color: var(--white);
  margin-bottom: 1rem;
}

.process__subtitle {
  color: var(--gray-400);
  font-size: 1.05rem;
}

.process__timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
}

/* Connection line */
.process__timeline::before {
  content: '';
  position: absolute;
  top: 40px;
  left: calc(12.5% + 1rem);
  right: calc(12.5% + 1rem);
  height: 2px;
  background: linear-gradient(90deg,
    var(--cyan) 0%,
    var(--cyan) var(--progress, 0%),
    rgba(14, 165, 233, 0.15) var(--progress, 0%),
    rgba(14, 165, 233, 0.15) 100%
  );
  transition: --progress 0.6s ease;
}

.process__step {
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
}

.process__step-number {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(14, 165, 233, 0.1);
  border: 2px solid rgba(14, 165, 233, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  position: relative;
  transition: all 0.4s ease;
}

.process__step.active .process__step-number {
  background: var(--cyan);
  border-color: var(--cyan);
  box-shadow: 0 0 30px var(--cyan-glow);
}

.process__step-number svg {
  width: 32px;
  height: 32px;
  stroke: var(--cyan);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.4s ease;
}

.process__step.active .process__step-number svg {
  stroke: var(--white);
}

.process__step h3 {
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.process__step p {
  color: var(--gray-400);
  font-size: 0.925rem;
  line-height: 1.6;
}

/* ============================================================
   SECTION: TECHNOLOGY — Thermal Slider
   ============================================================ */
.technology {
  padding: var(--section-pad) 0;
  background: var(--white);
}

.technology__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.technology__tag {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
}

.technology__title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin-bottom: 1.5rem;
}

.technology__text {
  color: var(--gray-600);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.technology__tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.technology__tool {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--off-white);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  border: 1px solid var(--gray-200);
}

.technology__tool svg {
  width: 16px;
  height: 16px;
  stroke: var(--cyan);
  fill: none;
  stroke-width: 2;
}

/* Thermal Slider */
.thermal-slider {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
  aspect-ratio: 4 / 3;
  cursor: ew-resize;
  user-select: none;
}

.thermal-slider__before,
.thermal-slider__after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thermal-slider__after {
  clip-path: inset(0 0 0 50%);
}

/* Generated thermal visualizations */
.thermal-slider__before {
  background: linear-gradient(135deg, #8B7355 0%, #A0937A 20%, #B8A88A 40%, #9B8B6E 60%, #7A6B55 80%, #6B5C48 100%);
}

.thermal-slider__after {
  background: linear-gradient(135deg,
    #1a0a3e 0%, #2d1b69 10%, #1e0f4e 15%,
    #0d47a1 20%, #1565c0 25%, #0d47a1 30%,
    #2e7d32 35%, #4caf50 40%, #66bb6a 45%,
    #ffeb3b 50%, #ffc107 55%, #ff9800 60%,
    #f44336 65%, #e53935 70%, #d32f2f 75%,
    #ff6f00 80%, #e65100 85%, #bf360c 90%,
    #ff1744 95%, #d50000 100%
  );
}

/* Labels */
.thermal-slider__label {
  position: absolute;
  top: 1rem;
  padding: 0.35rem 0.75rem;
  background: rgba(0, 0, 0, 0.7);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 4px;
  z-index: 5;
  pointer-events: none;
}

.thermal-slider__label--before {
  left: 1rem;
}

.thermal-slider__label--after {
  right: 1rem;
}

/* Slider control */
.thermal-slider__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: var(--white);
  z-index: 10;
  transform: translateX(-50%);
  pointer-events: none;
}

.thermal-slider__handle::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  pointer-events: auto;
  cursor: ew-resize;
}

.thermal-slider__handle::after {
  content: '◀ ▶';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.65rem;
  color: var(--navy);
  letter-spacing: 2px;
  pointer-events: none;
}

/* ============================================================
   SECTION: SERVICE AREA
   ============================================================ */
.area {
  padding: var(--section-pad) 0;
  background: var(--off-white);
}

.area__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.area__tag {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
}

.area__title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin-bottom: 1.5rem;
}

.area__text {
  color: var(--gray-600);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  line-height: 1.8;
}

.area__regions {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.area__region {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 10px;
  border: 1px solid var(--gray-200);
  transition: all 0.3s ease;
}

.area__region:hover {
  border-color: var(--cyan);
  box-shadow: 0 4px 15px var(--cyan-glow);
}

.area__region h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.area__region h4 svg {
  width: 18px;
  height: 18px;
  fill: var(--cyan);
}

.area__region p {
  color: var(--gray-500);
  font-size: 0.9rem;
  line-height: 1.6;
}

.area__region .note {
  color: var(--amber);
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 0.5rem;
}

/* Map placeholder */
.area__map {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  background: var(--navy);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.area__map-inner {
  position: relative;
  width: 80%;
  height: 80%;
}

/* Stylized Utah state outline */
.area__map svg {
  width: 100%;
  height: 100%;
}

/* Pulsing HQ marker */
.area__hq-marker {
  position: absolute;
  width: 16px;
  height: 16px;
  transform: translate(-50%, -50%);
}

.area__hq-marker::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--amber);
  animation: hotspotPulse 2s infinite;
}

.area__hq-marker::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--amber);
  border: 2px solid var(--white);
}

/* ============================================================
   SECTION: TESTIMONIALS
   ============================================================ */
.testimonials {
  padding: var(--section-pad) 0;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

.testimonials::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--cyan-glow) 0%, transparent 70%);
  opacity: 0.3;
}

.testimonials__header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 4rem;
}

.testimonials__tag {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
}

.testimonials__title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  color: var(--white);
  margin-bottom: 1rem;
}

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 2rem;
  backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  border-color: rgba(14, 165, 233, 0.3);
  transform: translateY(-4px);
}

.testimonial-card__stars {
  display: flex;
  gap: 2px;
  margin-bottom: 1rem;
}

.testimonial-card__stars svg {
  width: 18px;
  height: 18px;
  fill: var(--amber);
}

.testimonial-card__text {
  color: var(--gray-300);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--slate));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--white);
  font-size: 1rem;
}

.testimonial-card__name {
  font-weight: 600;
  color: var(--white);
  font-size: 0.925rem;
}

.testimonial-card__role {
  font-size: 0.8rem;
  color: var(--gray-400);
}

/* ============================================================
   SECTION: CTA / CONTACT
   ============================================================ */
.cta {
  padding: var(--section-pad) 0;
  background: var(--white);
  position: relative;
}

.cta__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.cta__tag {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
}

.cta__title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin-bottom: 1.5rem;
}

.cta__text {
  color: var(--gray-600);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  line-height: 1.8;
}

.cta__contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cta__contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1rem;
  font-weight: 500;
}

.cta__contact-item svg {
  width: 20px;
  height: 20px;
  stroke: var(--cyan);
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
}

.cta__contact-item a {
  color: var(--navy);
  font-weight: 600;
  transition: color 0.3s ease;
}

.cta__contact-item a:hover {
  color: var(--cyan);
}

/* Contact Form */
.cta__form {
  background: var(--off-white);
  border-radius: 12px;
  padding: 2.5rem;
  border: 1px solid var(--gray-200);
}

.cta__form h3 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.375rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px var(--cyan-glow);
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.btn--full {
  width: 100%;
  justify-content: center;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--dark);
  padding: 4rem 0 2rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer__brand {
  max-width: 300px;
}

.footer__logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--white);
  margin-bottom: 1rem;
}

.footer__logo span {
  color: var(--cyan);
}

.footer__desc {
  color: var(--gray-400);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.footer__social {
  display: flex;
  gap: 0.75rem;
}

.footer__social a {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.footer__social a:hover {
  background: var(--cyan);
  transform: translateY(-2px);
}

.footer__social svg {
  width: 18px;
  height: 18px;
  fill: var(--gray-400);
}

.footer__social a:hover svg {
  fill: var(--white);
}

.footer__col h4 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
}

.footer__col ul li {
  margin-bottom: 0.625rem;
}

.footer__col ul li a {
  color: var(--gray-400);
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer__col ul li a:hover {
  color: var(--cyan);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__copy {
  color: var(--gray-500);
  font-size: 0.85rem;
}

.footer__badges {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.footer__badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gray-400);
  font-size: 0.8rem;
  font-weight: 600;
}

.footer__badge svg {
  width: 20px;
  height: 20px;
  stroke: var(--cyan);
  fill: none;
  stroke-width: 2;
}

/* ============================================================
   ANIMATIONS — GSAP-driven reveal classes
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
}

.reveal-right {
  opacity: 0;
  transform: translateX(60px);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
}

/* Stagger delay utility (for JS) */
[data-stagger] > * {
  opacity: 0;
  transform: translateY(20px);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .about__grid,
  .technology__grid,
  .area__grid,
  .cta__grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .process__timeline {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .process__timeline::before {
    display: none;
  }

  .testimonials__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .services__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .nav__links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--navy);
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    gap: 1.5rem;
    transition: right 0.4s var(--ease-out-expo);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
  }

  .nav__links.open {
    right: 0;
  }

  .nav__toggle {
    display: flex;
  }

  .hero__title {
    font-size: clamp(2rem, 7vw, 3rem);
  }

  .trust-strip__inner {
    gap: 1.5rem;
  }

  .about__highlights {
    grid-template-columns: 1fr;
  }

  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process__timeline {
    grid-template-columns: 1fr;
    max-width: 300px;
    margin: 0 auto;
  }

  .testimonials__grid {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .service-card {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .trust-strip__inner {
    flex-direction: column;
    gap: 1.25rem;
  }

  .hero__actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================================
   ANIMATED BACKGROUND — Multi-layer atmospheric system
   Layer 1: Canvas constellation network (JS-rendered)
   Layer 2: CSS floating shapes (orbs, diamonds, rings, lines, crosses)
   Layer 3: Gradient aurora sweeps
   Layer 4: Section-specific atmospheric overlays
   ============================================================ */

/* --- Master container --- */
.animated-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Ensure page content sits above background */
.nav { z-index: 1000; }
.hero,
.trust-strip,
.about,
.services,
.process,
.technology,
.area,
.testimonials,
.cta,
.footer,
section,
footer {
  position: relative;
  z-index: 1;
}

/* --- Layer 1: Constellation canvas --- */
.animated-bg__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* --- Layer 2: CSS floating shapes --- */
.animated-bg__shape {
  position: absolute;
  will-change: transform, opacity;
}

/* Orbs — soft glowing circles with multi-stop gradients */
.animated-bg__circle {
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%,
    rgba(14, 165, 233, 0.06) 0%,
    rgba(14, 165, 233, 0.03) 40%,
    transparent 70%
  );
  opacity: 0;
  animation: bgOrb linear infinite;
}

/* Diamonds — rotating wireframe geometry */
.animated-bg__diamond {
  background: none;
  border: 1px solid rgba(14, 165, 233, 0.07);
  opacity: 0;
  animation: bgDiamond linear infinite;
}

/* Inner diamond creates double-border depth */
.animated-bg__diamond::before {
  content: '';
  position: absolute;
  inset: 20%;
  border: 1px solid rgba(14, 165, 233, 0.04);
  transform: rotate(15deg);
}

/* Rings — hollow circles that pulse and orbit */
.animated-bg__ring {
  border-radius: 50%;
  border: 1px solid rgba(14, 165, 233, 0.05);
  background: none;
  opacity: 0;
  animation: bgRing linear infinite;
}

.animated-bg__ring::before {
  content: '';
  position: absolute;
  inset: 25%;
  border-radius: 50%;
  border: 1px solid rgba(232, 150, 62, 0.04);
  animation: bgRingSpin 15s linear infinite reverse;
}

/* Lines — gradient bars that sweep across */
.animated-bg__line {
  height: 1px !important;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(14, 165, 233, 0.06) 20%,
    rgba(14, 165, 233, 0.12) 50%,
    rgba(14, 165, 233, 0.06) 80%,
    transparent 100%
  );
  opacity: 0;
  animation: bgLine linear infinite;
}

/* Crosses — rotating plus markers */
.animated-bg__cross {
  background: none;
  opacity: 0;
  animation: bgCross linear infinite;
}

.animated-bg__cross::before,
.animated-bg__cross::after {
  content: '';
  position: absolute;
  background: rgba(14, 165, 233, 0.07);
  border-radius: 1px;
}

.animated-bg__cross::before {
  width: 100%;
  height: 1px;
  top: 50%;
  left: 0;
}

.animated-bg__cross::after {
  width: 1px;
  height: 100%;
  left: 50%;
  top: 0;
}

/* Hex — hexagonal outlines */
.animated-bg__hex {
  background: none;
  opacity: 0;
  animation: bgHex linear infinite;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  border: none;
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(14, 165, 233, 0.06);
}

/* Dot cluster — tiny scattered points */
.animated-bg__dots {
  opacity: 0;
  animation: bgDots linear infinite;
}

.animated-bg__dots::before,
.animated-bg__dots::after {
  content: '';
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: rgba(14, 165, 233, 0.15);
}

.animated-bg__dots::before {
  top: 20%;
  left: 30%;
  box-shadow:
    8px 12px 0 rgba(14, 165, 233, 0.1),
    -5px 18px 0 rgba(14, 165, 233, 0.08),
    15px -8px 0 rgba(14, 165, 233, 0.12),
    -12px -5px 0 rgba(232, 150, 62, 0.08),
    20px 5px 0 rgba(14, 165, 233, 0.06);
}

.animated-bg__dots::after {
  bottom: 25%;
  right: 20%;
  box-shadow:
    -8px -12px 0 rgba(14, 165, 233, 0.1),
    5px -18px 0 rgba(14, 165, 233, 0.08),
    -15px 8px 0 rgba(232, 150, 62, 0.06);
}

/* --- Layer 3: Aurora gradient sweeps --- */
.animated-bg__aurora {
  position: absolute;
  width: 200%;
  height: 200%;
  top: -50%;
  left: -50%;
  background: conic-gradient(
    from 0deg at 50% 50%,
    transparent 0deg,
    rgba(14, 165, 233, 0.015) 40deg,
    transparent 80deg,
    rgba(232, 150, 62, 0.01) 160deg,
    transparent 200deg,
    rgba(14, 165, 233, 0.012) 280deg,
    transparent 320deg,
    rgba(14, 165, 233, 0.008) 350deg,
    transparent 360deg
  );
  animation: auroraRotate 90s linear infinite;
  pointer-events: none;
}

.animated-bg__aurora--secondary {
  animation-duration: 120s;
  animation-direction: reverse;
  opacity: 0.7;
  background: conic-gradient(
    from 180deg at 45% 55%,
    transparent 0deg,
    rgba(232, 150, 62, 0.01) 60deg,
    transparent 120deg,
    rgba(14, 165, 233, 0.01) 200deg,
    transparent 260deg,
    rgba(232, 150, 62, 0.008) 340deg,
    transparent 360deg
  );
}

/* --- Layer 4: Scan line (tech aesthetic) --- */
.animated-bg__scanline {
  position: absolute;
  width: 100%;
  height: 2px;
  left: 0;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(14, 165, 233, 0.03) 15%,
    rgba(14, 165, 233, 0.08) 50%,
    rgba(14, 165, 233, 0.03) 85%,
    transparent 100%
  );
  animation: scanLine 12s linear infinite;
  pointer-events: none;
}

/* Vignette overlay for depth */
.animated-bg__vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(11, 25, 41, 0.15) 100%);
  pointer-events: none;
}

/* ============================================================
   KEYFRAME ANIMATIONS — Background shapes
   ============================================================ */
@keyframes bgOrb {
  0%   { opacity: 0.15; transform: translate(0, 0) scale(0.9); }
  15%  { opacity: 0.35; transform: translate(15px, -20px) scale(1.02); }
  30%  { opacity: 0.25; transform: translate(-10px, -40px) scale(1.06); }
  50%  { opacity: 0.4;  transform: translate(20px, -55px) scale(0.98); }
  70%  { opacity: 0.3;  transform: translate(-5px, -30px) scale(1.03); }
  85%  { opacity: 0.45; transform: translate(10px, -15px) scale(0.95); }
  100% { opacity: 0.15; transform: translate(0, 0) scale(0.9); }
}

@keyframes bgDiamond {
  0%   { opacity: 0.1;  transform: rotate(45deg) scale(1); }
  20%  { opacity: 0.25; transform: rotate(55deg) scale(1.08); }
  40%  { opacity: 0.15; transform: rotate(70deg) scale(0.95); }
  60%  { opacity: 0.3;  transform: rotate(60deg) scale(1.12); }
  80%  { opacity: 0.2;  transform: rotate(50deg) scale(0.98); }
  100% { opacity: 0.1;  transform: rotate(45deg) scale(1); }
}

@keyframes bgRing {
  0%   { opacity: 0.1;  transform: scale(0.8) rotate(0deg); }
  25%  { opacity: 0.25; transform: scale(1.05) rotate(30deg); }
  50%  { opacity: 0.15; transform: scale(0.95) rotate(60deg); }
  75%  { opacity: 0.3;  transform: scale(1.1) rotate(90deg); }
  100% { opacity: 0.1;  transform: scale(0.8) rotate(120deg); }
}

@keyframes bgRingSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes bgLine {
  0%   { opacity: 0.15; transform: translateX(-80px) rotate(-3deg) scaleX(0.8); }
  25%  { opacity: 0.4;  transform: translateX(-20px) rotate(0deg) scaleX(1.1); }
  50%  { opacity: 0.5;  transform: translateX(40px) rotate(3deg) scaleX(1); }
  75%  { opacity: 0.35; transform: translateX(70px) rotate(1deg) scaleX(0.9); }
  100% { opacity: 0.15; transform: translateX(-80px) rotate(-3deg) scaleX(0.8); }
}

@keyframes bgCross {
  0%   { opacity: 0.1;  transform: rotate(0deg) scale(1); }
  33%  { opacity: 0.25; transform: rotate(30deg) scale(1.15); }
  66%  { opacity: 0.15; transform: rotate(15deg) scale(0.9); }
  100% { opacity: 0.1;  transform: rotate(0deg) scale(1); }
}

@keyframes bgHex {
  0%   { opacity: 0.08; transform: rotate(0deg) scale(1); }
  25%  { opacity: 0.2;  transform: rotate(15deg) scale(1.1); }
  50%  { opacity: 0.12; transform: rotate(30deg) scale(0.95); }
  75%  { opacity: 0.22; transform: rotate(20deg) scale(1.05); }
  100% { opacity: 0.08; transform: rotate(0deg) scale(1); }
}

@keyframes bgDots {
  0%   { opacity: 0.2; transform: translate(0, 0); }
  33%  { opacity: 0.5; transform: translate(10px, -15px); }
  66%  { opacity: 0.3; transform: translate(-8px, -25px); }
  100% { opacity: 0.2; transform: translate(0, 0); }
}

@keyframes auroraRotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes scanLine {
  0%   { top: -2px; opacity: 0; }
  5%   { opacity: 1; }
  95%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* ============================================================
   SECTION ATMOSPHERIC OVERLAYS
   Subtle per-section ambient effects
   ============================================================ */

/* Light sections get a faint grid texture */
.about::before,
.services::before,
.technology::before,
.area::before,
.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(14, 165, 233, 0.03) 1px, transparent 0);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* Dark sections get a subtle noise overlay */
.process::after,
.testimonials::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.02'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* Ensure section content stays above overlays */
.about > .container,
.services > .container,
.technology > .container,
.area > .container,
.cta > .container,
.process > .container,
.testimonials > .container {
  position: relative;
  z-index: 1;
}

/* ============================================================
   ENHANCED HERO BACKGROUND LAYERS
   ============================================================ */

/* Secondary moving grid (cross-axis) */
.hero__grid-cross {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(14, 165, 233, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 165, 233, 0.04) 1px, transparent 1px);
  background-size: 120px 120px;
  animation: gridShiftReverse 40s linear infinite;
  opacity: 0.5;
}

@keyframes gridShiftReverse {
  0%   { transform: translate(0, 0) rotate(0.5deg); }
  100% { transform: translate(-120px, 120px) rotate(0.5deg); }
}

/* Hero gradient sweep */
.hero__sweep {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    transparent 0%,
    rgba(14, 165, 233, 0.03) 25%,
    transparent 50%,
    rgba(232, 150, 62, 0.02) 75%,
    transparent 100%
  );
  background-size: 400% 400%;
  animation: heroSweep 15s ease infinite;
  pointer-events: none;
}

@keyframes heroSweep {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Secondary glow (amber, offset) */
.hero__glow-secondary {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 150, 62, 0.08) 0%, transparent 70%);
  top: 70%;
  left: 20%;
  pointer-events: none;
  animation: glowDrift 20s ease-in-out infinite alternate;
}

@keyframes glowDrift {
  0%   { transform: translate(0, 0); opacity: 0.4; }
  100% { transform: translate(80px, -60px); opacity: 0.7; }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .animated-bg { display: none; }
  .particle { animation: none; }
  .hero__grid { animation: none; }
  .hero__grid-cross { animation: none; }
  .hero__sweep { animation: none; }
  .hero__glow-secondary { animation: none; }
  .hotspot__pulse { animation: none; }
  .about::before,
  .services::before,
  .technology::before,
  .area::before,
  .cta::before { display: none; }
}
