/* ═══════════════════════════════════════════════════════════════════════════
   OCEÂNICA LITORAL — DESCUPINIZAÇÃO PROFISSIONAL
   Styles & Motion Tokens
   ═══════════════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════
   MOTION TOKENS (from Motion Design Guide)
   ═══════════════════════════════════════════════════ */
:root {
  /* Duration Scale */
  --duration-instant: 50ms;
  --duration-fast: 100ms;
  --duration-normal: 200ms;
  --duration-slow: 350ms;
  --duration-slower: 500ms;
  --duration-slowest: 800ms;
  --duration-ultra: 1200ms;

  /* Easing Functions - Professional Curves */
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --ease-elastic: cubic-bezier(0.68, -0.6, 0.32, 1.6);
  --ease-smooth: cubic-bezier(0.45, 0, 0.55, 1);
  --ease-dramatic: cubic-bezier(0.86, 0, 0.07, 1);

  /* Color Palette - Oceânica Litoral */
  --color-bg: #0a0a0c;
  --color-bg-alt: #111115;
  --color-bg-card: #16161a;
  --color-surface: #1c1c22;
  --color-border: #2a2a35;
  --color-text: #f0f0f5;
  --color-text-muted: #8888a0;
  --color-primary: #007bff;
  --color-primary-glow: #339dff;
  --color-primary-dark: #0056b3;
  --color-accent: #198754;
  --color-accent-glow: #25a267;
  --color-danger: #ef4444;
  --color-success: #22c55e;
  --color-warning: #f59e0b;
  --color-termite: #8B6914;
  --color-wood: #8B5E3C;
  --color-wood-damaged: #5c3a1e;

  /* Typography */
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --section-padding: clamp(60px, 10vw, 120px);
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px rgba(0, 123, 255, 0.3);
}

/* ═══════════════════════════════════════════════════
   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);
  background: var(--color-bg);
  color: var(--color-text);
  overflow-x: hidden;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px);
}

/* ═══════════════════════════════════════════════════
   CUSTOM CURSOR (desktop only)
   ═══════════════════════════════════════════════════ */
@media (hover: hover) and (pointer: fine) {
  .custom-cursor {
    width: 10px;
    height: 10px;
    background: var(--color-primary);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 99999;
    mix-blend-mode: difference;
    transition: transform 0.15s var(--ease-out);
  }

  .custom-cursor.hovering {
    transform: scale(4);
    background: var(--color-accent);
  }

  .cursor-follower {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(0, 123, 255, 0.4);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 99998;
    transition: width 0.3s var(--ease-spring), height 0.3s var(--ease-spring);
  }

  .cursor-follower.hovering {
    width: 60px;
    height: 60px;
    border-color: var(--color-primary);
  }
}

/* ═══════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: background 0.4s var(--ease-out), backdrop-filter 0.4s var(--ease-out);
}

.nav.scrolled {
  background: rgba(10, 10, 12, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.3s var(--ease-spring);
}

.nav-logo:hover {
  transform: scale(1.05);
}

.nav-logo svg {
  width: 28px;
  height: 28px;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color var(--duration-normal) ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width 0.4s var(--ease-out-expo);
}

.nav-links a:hover {
  color: var(--color-text);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  background: var(--color-primary);
  color: #fff;
  padding: 10px 24px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.85rem;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.nav-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.nav-cta:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 30px rgba(0, 123, 255, 0.4);
}

.nav-cta:hover::before {
  left: 100%;
}

/* Mobile nav */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all 0.3s var(--ease-spring);
  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;
  transform: scaleX(0);
}

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

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 10, 12, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--color-border);
  }
  .nav-links.open {
    display: flex;
    animation: slideDown 0.4s var(--ease-out-expo);
  }
  @keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }
}

/* ═══════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero-bg-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 80% 60% at 20% 80%, rgba(0, 123, 255, 0.08), transparent),
    radial-gradient(ellipse 50% 40% at 80% 20%, rgba(25, 135, 84, 0.05), transparent);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(0, 123, 255, 0.1);
  border: 1px solid rgba(0, 123, 255, 0.25);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-primary-glow);
  margin-bottom: 24px;
  opacity: 0;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--color-primary);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero-title .line {
  display: block;
  overflow: hidden;
}

.hero-title .line-inner {
  display: block;
  opacity: 0;
  transform: translateY(100%);
}

.hero-title .highlight {
  color: var(--color-primary);
  position: relative;
  display: inline-block;
}

.hero-title .highlight::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 100%;
  height: 8px;
  background: rgba(0, 123, 255, 0.2);
  border-radius: 4px;
  z-index: -1;
  transform: scaleX(0);
  transform-origin: left;
}

/* Split text chars for animation */
.hero-title .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(50px) rotateX(-90deg);
  transform-origin: bottom;
}

.hero-description {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--color-text-muted);
  max-width: 560px;
  margin-bottom: 40px;
  line-height: 1.7;
  opacity: 0;
  transform: translateY(30px);
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(30px);
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  padding: 16px 36px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 50px rgba(0, 123, 255, 0.5);
}

.btn-primary:hover::before { opacity: 1; }

.btn-secondary {
  padding: 16px 36px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-text);
  border: 1px solid var(--color-border);
  transition: all 0.3s var(--ease-spring);
}

.btn-secondary:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: rgba(0, 123, 255, 0.05);
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 60px;
  margin-bottom: 80px;
  padding-top: 40px;
  border-top: 1px solid var(--color-border);
  opacity: 0;
}

.hero-stat {
  text-align: left;
}

.hero-stat-value {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--color-primary);
}

.hero-stat-label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 4px;
}

/* Animated termite SVG in hero */
.hero-visual {
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  width: 45%;
  max-width: 600px;
  opacity: 0;
}

@media (max-width: 1024px) {
  .hero-visual { display: none; }
}

/* ═══════════════════════════════════════════════════
   SECTION COMMON
   ═══════════════════════════════════════════════════ */
.section {
  padding: var(--section-padding) 0;
  position: relative;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  margin-bottom: 16px;
  opacity: 0;
}

.section-label::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 1px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease-out-expo);
}

.section-label.is-visible::before {
  transform: scaleX(1);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  opacity: 0;
}

/* Split words for animation */
.section-title .word {
  display: inline-block;
  overflow: hidden;
  margin-right: 0.25em;
}

.section-title .word-inner {
  display: inline-block;
  transform: translateY(100%);
}

.section-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--color-text-muted);
  max-width: 600px;
  line-height: 1.7;
  opacity: 0;
}

/* ═══════════════════════════════════════════════════
   TERMITE LIFECYCLE SECTION
   ═══════════════════════════════════════════════════ */
.lifecycle {
  background: var(--color-bg-alt);
  overflow: hidden;
  padding-top: 100px;
}

.lifecycle-header {
  text-align: center;
  margin-bottom: 80px;
}

.lifecycle-header .section-subtitle {
  margin: 0 auto;
}

.lifecycle-timeline {
  display: flex;
  align-items: stretch;
  gap: 0;
  position: relative;
  padding: 40px 0;
}

.lifecycle-timeline::before {
  content: '';
  position: absolute;
  top: 80px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-border);
  z-index: 0;
}

/* Animated progress line */
.lifecycle-progress {
  position: absolute;
  top: 80px;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  width: 0;
  z-index: 1;
  border-radius: 2px;
  box-shadow: 0 0 20px var(--color-primary);
}

.lifecycle-stage {
  flex: 1;
  text-align: center;
  position: relative;
  padding: 0 12px;
  opacity: 0;
  transform: translateY(30px) scale(0.9);
  z-index: 3;
}

.stage-icon-wrapper {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--color-bg);
  border: 2px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  position: relative;
  z-index: 2;
  transition: all 0.5s var(--ease-spring);
}

.lifecycle-stage:hover .stage-icon-wrapper {
  border-color: var(--color-primary);
  box-shadow: 0 0 40px rgba(0, 123, 255, 0.3);
  transform: scale(1.1) translateY(-5px);
}

.lifecycle-stage:hover .stage-icon-wrapper svg {
  transform: scale(1.1);
}

.stage-icon-wrapper svg {
  width: 56px;
  height: 56px;
  transition: transform 0.4s var(--ease-spring);
}

.stage-number {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 28px;
  height: 28px;
  background: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  z-index: 3;
  transform: scale(0);
}

.stage-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--color-text);
  position: relative;
  z-index: 5;
}

.stage-desc {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  position: relative;
  z-index: 5;
}

.stage-time {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-accent);
  background: rgba(25, 135, 84, 0.1);
  padding: 4px 12px;
  border-radius: 100px;
  transform: scale(0);
  position: relative;
  z-index: 5;
}

/* Termite walking across timeline */
.termite-walker {
  position: absolute;
  bottom: -30px;
  left: 0;
  z-index: 10;
  pointer-events: none;
}

.termite-walker svg {
  filter: drop-shadow(0 3px 6px rgba(0,0,0,0.4));
}

/* ═══════════════════════════════════════════════════
   REALISTIC TERMITE MICRO-ANIMATIONS
   Based on MOTION_DESIGN_PRO.md principles
   ═══════════════════════════════════════════════════ */

/* SVG sizing for detailed termites */
.termite-svg {
  width: 80px;
  height: 80px;
  transition: transform 0.4s var(--ease-spring);
}

.termite-queen {
  width: 90px;
  height: 90px;
}

/* Antenna twitch animation - natural insect behavior */
@keyframes antennaTwitchL {
  0%, 100% { transform: rotate(0deg); }
  20% { transform: rotate(-8deg); }
  40% { transform: rotate(4deg); }
  60% { transform: rotate(-5deg); }
  80% { transform: rotate(2deg); }
}

@keyframes antennaTwitchR {
  0%, 100% { transform: rotate(0deg); }
  15% { transform: rotate(6deg); }
  35% { transform: rotate(-4deg); }
  55% { transform: rotate(8deg); }
  75% { transform: rotate(-3deg); }
}

.termite-svg .antenna-l {
  transform-origin: 100% 100%;
  animation: antennaTwitchL 2.5s ease-in-out infinite;
}

.termite-svg .antenna-r {
  transform-origin: 100% 100%;
  animation: antennaTwitchR 2.8s ease-in-out infinite;
  animation-delay: 0.3s;
}

/* Leg movement cycles - subtle walking motion */
@keyframes legCycle1 {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(8deg); }
}

@keyframes legCycle2 {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(-8deg); }
}

.termite-svg .leg-f1,
.termite-svg .leg-m1,
.termite-svg .leg-r1 {
  transform-origin: top;
  animation: legCycle1 0.6s ease-in-out infinite;
}

.termite-svg .leg-f2,
.termite-svg .leg-m2,
.termite-svg .leg-r2 {
  transform-origin: top;
  animation: legCycle2 0.6s ease-in-out infinite;
  animation-delay: 0.3s;
}

/* Body breathing pulse - organic feel */
@keyframes bodyBreathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.015); }
}

.termite-svg .segment-abdomen {
  transform-origin: center;
  animation: bodyBreathe 3s ease-in-out infinite;
}

/* Mandible movement for workers/soldiers */
@keyframes mandibleClamp {
  0%, 70%, 100% { transform: rotate(0deg); }
  80% { transform: rotate(8deg); }
  90% { transform: rotate(-8deg); }
}

.termite-worker .mandible-top {
  transform-origin: right center;
  animation: mandibleClamp 4s ease-in-out infinite;
}

.termite-worker .mandible-bottom {
  transform-origin: right center;
  animation: mandibleClamp 4s ease-in-out infinite reverse;
}

/* Soldier aggressive mandible snap */
@keyframes soldierSnap {
  0%, 85%, 100% { transform: rotate(0deg); }
  90% { transform: rotate(15deg); }
  95% { transform: rotate(-15deg); }
}

.termite-soldier .mandible-top {
  transform-origin: right center;
  animation: soldierSnap 5s ease-in-out infinite;
}

.termite-soldier .mandible-bottom {
  transform-origin: right center;
  animation: soldierSnap 5s ease-in-out infinite reverse;
  animation-delay: 0.05s;
}

/* Egg cluster pulse - life forming */
@keyframes eggPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.85; }
}

.termite-eggs .egg-1 { animation: eggPulse 2.5s ease-in-out infinite; }
.termite-eggs .egg-2 { animation: eggPulse 2.8s ease-in-out infinite 0.4s; }
.termite-eggs .egg-3 { animation: eggPulse 2.6s ease-in-out infinite 0.8s; }
.termite-eggs .egg-4 { animation: eggPulse 3s ease-in-out infinite 1.2s; }
.termite-eggs .egg-5 { animation: eggPulse 2.7s ease-in-out infinite 0.6s; }

/* Nymph subtle wiggle - young insect behavior */
@keyframes nymphWiggle {
  0%, 100% { transform: translateX(0) rotate(0deg); }
  25% { transform: translateX(-1px) rotate(-1deg); }
  75% { transform: translateX(1px) rotate(1deg); }
}

.termite-nymph .termite-body {
  animation: nymphWiggle 1.8s ease-in-out infinite;
}

/* Queen abdomen pulse - laying eggs */
@keyframes queenPulse {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(1.03); }
}

.termite-queen .queen-abdomen {
  transform-origin: center;
}

/* Wing shimmer for reproductives */
@keyframes wingShimmer {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 0.35; }
}

.termite-queen .wing {
  animation: wingShimmer 3s ease-in-out infinite;
}

.termite-queen .wing-r {
  animation-delay: 0.5s;
}

/* Crown glow for queen */
@keyframes crownGlow {
  0%, 100% { filter: drop-shadow(0 0 3px rgba(251, 191, 36, 0.3)); }
  50% { filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.6)); }
}

.termite-queen .crown {
  animation: crownGlow 2s ease-in-out infinite;
}

/* Hover states - increased activity */
.lifecycle-stage:hover .termite-svg .antenna-l,
.lifecycle-stage:hover .termite-svg .antenna-r {
  animation-duration: 0.8s;
}

.lifecycle-stage:hover .termite-svg .leg-f1,
.lifecycle-stage:hover .termite-svg .leg-f2,
.lifecycle-stage:hover .termite-svg .leg-m1,
.lifecycle-stage:hover .termite-svg .leg-m2,
.lifecycle-stage:hover .termite-svg .leg-r1,
.lifecycle-stage:hover .termite-svg .leg-r2 {
  animation-duration: 0.25s;
}

.lifecycle-stage:hover .termite-worker .mandible-top,
.lifecycle-stage:hover .termite-worker .mandible-bottom {
  animation-duration: 1s;
}

.lifecycle-stage:hover .termite-soldier .mandible-top,
.lifecycle-stage:hover .termite-soldier .mandible-bottom {
  animation-duration: 0.8s;
}

/* Stage-specific icon wrapper adjustments for larger SVGs */
.lifecycle-stage .stage-icon-wrapper {
  width: 100px;
  height: 100px;
}

.lifecycle-stage[data-stage="queen"] .stage-icon-wrapper {
  width: 110px;
  height: 110px;
}

@media (max-width: 768px) {
  .lifecycle-timeline {
    flex-direction: column;
    gap: 40px;
    align-items: center;
  }
  .lifecycle-timeline::before {
    top: 0;
    bottom: 0;
    left: 50%;
    right: auto;
    width: 2px;
    height: 100%;
    transform: translateX(-50%);
  }
  .lifecycle-progress {
    width: 3px !important;
    height: 0;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
  }
}

/* ═══════════════════════════════════════════════════
   DAMAGE SECTION
   ═══════════════════════════════════════════════════ */
.damage {
  overflow: hidden;
}

.damage-header {
  text-align: center;
  margin-bottom: 60px;
}

.damage-header .section-subtitle {
  margin: 0 auto;
}

.damage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 60px;
}

.damage-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: all 0.5s var(--ease-out);
  opacity: 0;
  transform: translateY(40px);
}

.damage-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-danger), var(--color-warning));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease-out-expo);
}

/* Glow effect on hover */
.damage-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(239, 68, 68, 0.08), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.damage-card:hover {
  border-color: rgba(239, 68, 68, 0.3);
  transform: translateY(-8px);
  box-shadow: 0 24px 70px rgba(0,0,0,0.4);
}

.damage-card:hover::before {
  transform: scaleX(1);
}

.damage-card:hover::after {
  opacity: 1;
}

.damage-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
  transition: transform 0.4s var(--ease-spring);
}

.damage-card:hover .damage-icon {
  transform: scale(1.15) rotate(-5deg);
}

.damage-icon.structural { background: rgba(239, 68, 68, 0.1); }
.damage-icon.financial { background: rgba(245, 158, 11, 0.1); }
.damage-icon.health { background: rgba(168, 85, 247, 0.1); }

.damage-card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.damage-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.damage-percentage {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-danger);
  margin-top: 16px;
  display: block;
}

/* Damage progression visual */
.damage-visual {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 24px;
  padding: 40px;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(40px);
}

.damage-visual-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 32px;
  text-align: center;
}

.wood-damage-container {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
}

.wood-piece {
  width: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 12px;
  position: relative;
  text-align: center;
  opacity: 0;
  transform: translateY(30px) scale(0.9);
}

.wood-surface {
  width: 160px;
  height: 200px;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease-spring);
}

.wood-piece:hover .wood-surface {
  transform: scale(1.02);
}

.wood-piece-label {
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 12px;
  display: block;
}

.wood-piece-sublabel {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  margin-top: 4px;
}

/* Stage labels above each wood piece */
.stage-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-primary);
  margin-bottom: 10px;
  padding: 4px 12px;
  background: rgba(0, 123, 255, 0.1);
  border-radius: 20px;
  border: 1px solid rgba(0, 123, 255, 0.3);
}

/* Famoso Pozinho detail text */
.sawdust-detail {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  font-style: italic;
  color: #d4a054;
  margin-top: 2px;
  opacity: 0.9;
}

/* Structural damage warning for stage 4 */
.structural-damage-warning {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
  padding: 10px 8px;
  background: linear-gradient(135deg, rgba(220, 53, 69, 0.2), rgba(139, 0, 0, 0.3));
  border: 2px solid rgba(220, 53, 69, 0.7);
  border-radius: 8px;
  animation: danger-pulse 1.5s ease-in-out infinite;
}

.structural-danger-icon {
  font-size: 1.3rem;
  animation: shake-danger 0.5s ease-in-out infinite;
}

.structural-danger-text {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #ff4757;
  text-shadow: 0 0 10px rgba(255, 71, 87, 0.5);
}

@keyframes danger-pulse {
  0%, 100% { 
    box-shadow: 0 0 5px rgba(220, 53, 69, 0.3);
    border-color: rgba(220, 53, 69, 0.7);
  }
  50% { 
    box-shadow: 0 0 20px rgba(220, 53, 69, 0.6);
    border-color: rgba(255, 71, 87, 1);
  }
}

@keyframes shake-danger {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-5deg); }
  75% { transform: rotate(5deg); }
}

/* Wood SVG tunnels animation */
.tunnel-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.tunnel-path {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
}

/* Wood textures */
.wood-healthy {
  background: 
    repeating-linear-gradient(
      85deg,
      #8B5E3C 0px, #8B5E3C 2px,
      #9B6E4C 2px, #9B6E4C 6px,
      #A67B5B 6px, #A67B5B 8px,
      #8B5E3C 8px, #8B5E3C 12px
    );
  border: 2px solid rgba(139, 94, 60, 0.4);
}

.wood-early {
  background: 
    repeating-linear-gradient(
      85deg,
      #7B4E2C 0px, #7B4E2C 2px,
      #8B5E3C 2px, #8B5E3C 6px,
      #6B3E1C 6px, #6B3E1C 8px,
      #7B4E2C 8px, #7B4E2C 12px
    );
  border: 2px solid rgba(107, 62, 28, 0.6);
}

.wood-advanced {
  background: 
    repeating-linear-gradient(
      85deg,
      #5C3A1E 0px, #5C3A1E 2px,
      #4a2e15 2px, #4a2e15 6px,
      #3d240f 6px, #3d240f 8px,
      #5C3A1E 8px, #5C3A1E 12px
    );
  border: 2px solid rgba(92, 58, 30, 0.8);
}

.wood-destroyed {
  background: 
    repeating-linear-gradient(
      85deg,
      #3d240f 0px, #3d240f 2px,
      #2d1a0a 2px, #2d1a0a 5px,
      #1a0f05 5px, #1a0f05 8px,
      #3d240f 8px, #3d240f 11px
    );
  border: 2px solid rgba(61, 36, 15, 1);
  animation: shake-subtle 0.1s ease-in-out infinite;
  animation-play-state: paused;
}

.wood-destroyed:hover {
  animation-play-state: running;
}

@keyframes shake-subtle {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-1px); }
  75% { transform: translateX(1px); }
}

/* ═══════════════════════════════════════════════════
   SAWDUST (POZINHO) PARTICLE EFFECT
   ═══════════════════════════════════════════════════ */
.wood-with-sawdust {
  position: relative;
  overflow: visible;
}

.sawdust-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  overflow: visible;
}

.sawdust-particle {
  position: absolute;
  top: 100%;
  left: var(--x-start, 50%);
  width: 3px;
  height: 3px;
  background: linear-gradient(135deg, #d4a054, #b8860b);
  border-radius: 50%;
  opacity: 0;
  animation: sawdustFall 3s ease-in infinite;
  animation-delay: var(--delay, 0s);
  box-shadow: 0 0 2px rgba(184, 134, 11, 0.5);
}

.sawdust-particle.sawdust-large {
  width: 4px;
  height: 4px;
  animation-duration: 3.5s;
}

@keyframes sawdustFall {
  0% {
    opacity: 0;
    transform: translateY(0) translateX(0) rotate(0deg);
  }
  10% {
    opacity: 0.8;
  }
  100% {
    opacity: 0;
    transform: translateY(60px) translateX(var(--x-drift, 10px)) rotate(360deg);
  }
}

.sawdust-indicator {
  display: block;
  margin-top: 8px;
  font-size: 0.7rem;
  color: #fbbf24;
  font-weight: 600;
  animation: pulse-indicator 2s ease-in-out infinite;
}

@keyframes pulse-indicator {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ═══════════════════════════════════════════════════
   SWARMING SEASON SECTION (ÉPOCA DE REVOADAS)
   ═══════════════════════════════════════════════════ */
.swarming {
  background: linear-gradient(
    180deg,
    var(--color-bg) 0%,
    rgba(20, 15, 10, 1) 50%,
    var(--color-bg) 100%
  );
  position: relative;
  overflow: hidden;
}

.swarming::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at 50% 30%, rgba(251, 191, 36, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.swarming-header {
  text-align: center;
  margin-bottom: 60px;
}

.swarming-header .section-label,
.swarming-header .section-title,
.swarming-header .section-subtitle {
  opacity: 0;
  transform: translateY(30px);
}

.swarming-header .section-subtitle {
  margin: 0 auto;
  max-width: 600px;
}

/* Swarming Visual Scene */
.swarming-visual {
  position: relative;
  height: 320px;
  margin: 40px auto 60px;
  max-width: 800px;
  perspective: 1000px;
  opacity: 0;
  transform: translateY(40px);
}

.swarming-scene {
  position: relative;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    #0a0806 0%,
    #1a1208 60%,
    #2a1a0a 100%
  );
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(139, 105, 20, 0.2);
}

/* Window Frame */
.window-frame {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 160px;
  border: 8px solid #3d2914;
  border-radius: 4px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  background: #2d1a0a;
  box-shadow: 
    0 0 20px rgba(0,0,0,0.5),
    inset 0 0 30px rgba(0,0,0,0.3);
}

.window-pane {
  background: linear-gradient(
    135deg,
    rgba(30, 40, 60, 0.9) 0%,
    rgba(20, 30, 50, 0.95) 100%
  );
  border: 2px solid #5c3a1e;
  border-radius: 2px;
}

/* Light Source */
.light-source {
  position: absolute;
  top: 15%;
  right: 20%;
  z-index: 5;
}

.light-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  background: radial-gradient(
    circle,
    rgba(255, 220, 100, 0.4) 0%,
    rgba(255, 200, 80, 0.2) 30%,
    rgba(255, 180, 60, 0.1) 50%,
    transparent 70%
  );
  border-radius: 50%;
  animation: lightPulse 3s ease-in-out infinite;
}

@keyframes lightPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.8; }
}

.light-icon {
  font-size: 2.5rem;
  filter: drop-shadow(0 0 10px rgba(255, 200, 80, 0.8));
  display: block;
  animation: lightSwing 4s ease-in-out infinite;
}

@keyframes lightSwing {
  0%, 100% { transform: rotate(-3deg); }
  50% { transform: rotate(3deg); }
}

/* Flying Alados (Winged Termites) */
.alados-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.alado {
  position: absolute;
  width: 40px;
  height: 30px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
  opacity: 0.9;
}

/* Wing flapping animation */
.alado-wing-l, .alado-wing-r {
  transform-origin: center;
  animation: wingFlap 0.15s ease-in-out infinite alternate;
}

.alado-wing-r {
  animation-delay: 0.075s;
}

@keyframes wingFlap {
  0% { transform: rotate(-15deg) scaleY(1); }
  100% { transform: rotate(-25deg) scaleY(0.7); }
}

/* Individual alado flight paths */
.alado-1 {
  animation: flyPath1 8s ease-in-out infinite;
}
.alado-2 {
  animation: flyPath2 10s ease-in-out infinite;
  animation-delay: 1s;
}
.alado-3 {
  animation: flyPath3 7s ease-in-out infinite;
  animation-delay: 2s;
}
.alado-4 {
  animation: flyPath4 9s ease-in-out infinite;
  animation-delay: 0.5s;
}
.alado-5 {
  animation: flyPath5 11s ease-in-out infinite;
  animation-delay: 3s;
}
.alado-6 {
  animation: flyPath6 8.5s ease-in-out infinite;
  animation-delay: 1.5s;
}

@keyframes flyPath1 {
  0% { top: 80%; left: 10%; transform: rotate(0deg) scale(0.8); }
  25% { top: 40%; left: 50%; transform: rotate(-20deg) scale(1); }
  50% { top: 20%; left: 70%; transform: rotate(15deg) scale(0.9); }
  75% { top: 50%; left: 40%; transform: rotate(-10deg) scale(1.1); }
  100% { top: 80%; left: 10%; transform: rotate(0deg) scale(0.8); }
}

@keyframes flyPath2 {
  0% { top: 70%; left: 80%; transform: rotate(10deg) scale(0.7); }
  33% { top: 25%; left: 60%; transform: rotate(-25deg) scale(1); }
  66% { top: 35%; left: 30%; transform: rotate(20deg) scale(0.85); }
  100% { top: 70%; left: 80%; transform: rotate(10deg) scale(0.7); }
}

@keyframes flyPath3 {
  0% { top: 90%; left: 50%; transform: rotate(-5deg) scale(0.6); }
  50% { top: 15%; left: 65%; transform: rotate(30deg) scale(1.1); }
  100% { top: 90%; left: 50%; transform: rotate(-5deg) scale(0.6); }
}

@keyframes flyPath4 {
  0% { top: 60%; left: 20%; transform: rotate(15deg) scale(0.9); }
  40% { top: 30%; left: 55%; transform: rotate(-15deg) scale(1); }
  70% { top: 45%; left: 75%; transform: rotate(10deg) scale(0.8); }
  100% { top: 60%; left: 20%; transform: rotate(15deg) scale(0.9); }
}

@keyframes flyPath5 {
  0% { top: 85%; left: 70%; transform: rotate(-10deg) scale(0.65); }
  30% { top: 40%; left: 80%; transform: rotate(25deg) scale(0.95); }
  60% { top: 20%; left: 55%; transform: rotate(-20deg) scale(1.05); }
  100% { top: 85%; left: 70%; transform: rotate(-10deg) scale(0.65); }
}

@keyframes flyPath6 {
  0% { top: 75%; left: 40%; transform: rotate(5deg) scale(0.75); }
  35% { top: 35%; left: 25%; transform: rotate(-30deg) scale(1); }
  65% { top: 25%; left: 60%; transform: rotate(20deg) scale(0.9); }
  100% { top: 75%; left: 40%; transform: rotate(5deg) scale(0.75); }
}

/* Calendar Section */
.swarming-calendar {
  margin: 60px 0;
  padding: 40px;
  background: rgba(30, 20, 10, 0.5);
  border-radius: 20px;
  border: 1px solid rgba(139, 105, 20, 0.2);
}

.calendar-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  text-align: center;
  margin-bottom: 30px;
  color: var(--color-text);
}

.calendar-months {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 8px;
  align-items: end;
}

.month-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.month-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
}

.month-bar {
  width: 100%;
  height: calc(var(--intensity) * 1.2);
  min-height: 8px;
  max-height: 120px;
  border-radius: 4px 4px 0 0;
  transition: all 0.4s var(--ease-spring);
}

.month-item.low .month-bar {
  background: linear-gradient(180deg, #22c55e, #16a34a);
}

.month-item.medium .month-bar {
  background: linear-gradient(180deg, #fbbf24, #f59e0b);
}

.month-item.high .month-bar {
  background: linear-gradient(180deg, #f97316, #ea580c);
}

.month-item.critical .month-bar {
  background: linear-gradient(180deg, #ef4444, #dc2626);
  animation: criticalPulse 1.5s ease-in-out infinite;
}

@keyframes criticalPulse {
  0%, 100% { box-shadow: 0 0 10px rgba(239, 68, 68, 0.3); }
  50% { box-shadow: 0 0 20px rgba(239, 68, 68, 0.6); }
}

.month-risk {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.month-item.low .month-risk { color: #22c55e; }
.month-item.medium .month-risk { color: #fbbf24; }
.month-item.high .month-risk { color: #f97316; }
.month-item.critical .month-risk { color: #ef4444; }

/* Info Cards Grid */
.swarming-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin: 60px 0;
}

.swarming-card {
  background: rgba(30, 20, 10, 0.6);
  border: 1px solid rgba(139, 105, 20, 0.25);
  border-radius: 16px;
  padding: 28px;
  text-align: center;
  transition: all 0.4s var(--ease-spring);
}

.swarming-card:hover {
  transform: translateY(-5px);
  border-color: rgba(251, 191, 36, 0.4);
  box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.swarming-card-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
  display: block;
}

.swarming-card h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 12px;
  color: var(--color-text);
}

.swarming-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.swarming-card strong {
  color: #fbbf24;
}

/* Warning Section */
.swarming-warning {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(220, 38, 38, 0.05) 100%);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 20px;
  padding: 40px;
  margin: 40px 0;
  text-align: center;
}

.warning-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}

.warning-icon {
  font-size: 2rem;
}

.warning-header h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: #fca5a5;
}

.warning-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 30px;
}

.warning-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(0,0,0,0.2);
  border-radius: 10px;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  text-align: left;
}

.warning-check {
  color: #ef4444;
  font-weight: 700;
  flex-shrink: 0;
}

.swarming-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  font-weight: 600;
  border-radius: 100px;
  text-decoration: none;
  transition: all 0.3s var(--ease-spring);
  box-shadow: 0 4px 20px rgba(239, 68, 68, 0.3);
}

.swarming-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(239, 68, 68, 0.5);
}

/* Tips Section */
.swarming-tips {
  margin-top: 60px;
}

.swarming-tips h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  text-align: center;
  margin-bottom: 40px;
  color: var(--color-text);
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.tip-item {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: rgba(30, 20, 10, 0.4);
  border-radius: 16px;
  border: 1px solid rgba(139, 105, 20, 0.15);
  transition: all 0.3s ease;
}

.tip-item:hover {
  border-color: rgba(139, 105, 20, 0.35);
  background: rgba(40, 30, 15, 0.5);
}

.tip-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  border-radius: 50%;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.tip-content h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  margin-bottom: 6px;
  color: var(--color-text);
}

.tip-content p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .swarming-visual {
    height: 240px;
    margin: 20px auto 40px;
  }
  
  .window-frame {
    width: 140px;
    height: 100px;
  }
  
  .light-icon {
    font-size: 1.8rem;
  }
  
  .alado {
    width: 28px;
    height: 21px;
  }
  
  .calendar-months {
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
  }
  
  .month-name {
    font-size: 0.65rem;
  }
  
  .month-risk {
    display: none;
  }
  
  .swarming-warning {
    padding: 24px;
  }
  
  .warning-list {
    grid-template-columns: 1fr;
  }
  
  .swarming-calendar {
    padding: 24px;
  }
}

/* ═══════════════════════════════════════════════════
   STATS COUNTER SECTION
   ═══════════════════════════════════════════════════ */
.stats {
  background: linear-gradient(180deg, var(--color-bg-alt) 0%, var(--color-bg) 100%);
  text-align: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-top: 48px;
}

.stat-item {
  padding: 32px 16px;
  border-radius: 20px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  transition: all 0.4s var(--ease-spring);
  opacity: 0;
  transform: translateY(30px) scale(0.95);
}

.stat-item:hover {
  border-color: var(--color-primary);
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--shadow-glow);
}

.stat-icon {
  font-size: 2rem;
  margin-bottom: 12px;
  display: block;
  transition: transform 0.4s var(--ease-spring);
}

.stat-item:hover .stat-icon {
  transform: scale(1.2) rotate(10deg);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--color-primary);
  display: block;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 4px;
}

/* ═══════════════════════════════════════════════════
   SERVICES SECTION
   ═══════════════════════════════════════════════════ */
.services {
  background: var(--color-bg-alt);
}

.services-header {
  text-align: center;
  margin-bottom: 60px;
}

.services-header .section-subtitle {
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 24px;
  padding: 40px 32px;
  position: relative;
  overflow: hidden;
  transition: all 0.5s var(--ease-out);
  transform-style: preserve-3d;
  perspective: 1000px;
  opacity: 0;
  transform: translateY(40px);
}

.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(0, 123, 255, 0.08), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
}

.service-card:hover {
  border-color: rgba(0, 123, 255, 0.4);
  box-shadow: 0 30px 80px rgba(0,0,0,0.4);
}

.service-card:hover::after { opacity: 1; }

.service-number {
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 800;
  color: rgba(0, 123, 255, 0.08);
  position: absolute;
  top: 16px;
  right: 24px;
  transition: color 0.4s, transform 0.4s var(--ease-spring);
}

.service-card:hover .service-number {
  color: rgba(0, 123, 255, 0.15);
  transform: scale(1.1);
}

.service-icon {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: rgba(0, 123, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 1.8rem;
  transition: all 0.4s var(--ease-spring);
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(-5deg);
  background: rgba(0, 123, 255, 0.2);
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

.service-features {
  list-style: none;
  margin-top: 20px;
  position: relative;
  z-index: 1;
}

.service-features li {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  padding: 6px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transform: translateX(-10px);
}

.service-features li::before {
  content: '✓';
  color: var(--color-success);
  font-weight: 700;
  font-size: 0.8rem;
}

/* ═══════════════════════════════════════════════════
   PROCESS SECTION (How it works)
   ═══════════════════════════════════════════════════ */
.process {
  position: relative;
}

.process-header {
  text-align: center;
  margin-bottom: 80px;
}

.process-header .section-subtitle {
  margin: 0 auto;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--color-border);
  z-index: 0;
}

/* Animated progress line */
.process-progress {
  position: absolute;
  top: 40px;
  left: 10%;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  z-index: 1;
  width: 0;
  border-radius: 2px;
  box-shadow: 0 0 15px var(--color-primary);
}

.process-step {
  text-align: center;
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translateY(30px);
}

.step-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--color-bg-card);
  border: 2px solid var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.5rem;
  transition: all 0.5s var(--ease-spring);
  position: relative;
  overflow: hidden;
}

/* Ripple effect on hover */
.step-circle::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-primary);
  border-radius: 50%;
  transform: scale(0);
  transition: transform 0.5s var(--ease-out);
  z-index: -1;
}

.process-step:hover .step-circle {
  transform: scale(1.15);
  box-shadow: 0 0 50px rgba(0, 123, 255, 0.4);
}

.process-step:hover .step-circle::after {
  transform: scale(1);
}

.process-step h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.process-step p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

@media (max-width: 768px) {
  .process-steps {
    grid-template-columns: 1fr 1fr;
  }
  .process-steps::before, .process-progress { display: none; }
}

@media (max-width: 480px) {
  .process-steps {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════════════
   TESTIMONIALS
   ═══════════════════════════════════════════════════ */
.testimonials {
  background: var(--color-bg-alt);
}

.testimonials-header {
  text-align: center;
  margin-bottom: 48px;
}

.testimonials-header .section-label,
.testimonials-header .section-title {
  opacity: 0;
  transform: translateY(30px);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.testimonial-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 32px;
  transition: all 0.4s var(--ease-spring);
  opacity: 0;
  transform: translateY(30px) rotateX(10deg);
  transform-origin: bottom;
}

.testimonial-card:hover {
  border-color: rgba(0, 123, 255, 0.3);
  transform: translateY(-5px) rotateX(0);
  box-shadow: var(--shadow-lg);
}

.testimonial-stars {
  color: var(--color-accent);
  font-size: 0.9rem;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.testimonial-text {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  transition: transform 0.3s var(--ease-spring);
}

.testimonial-card:hover .testimonial-avatar {
  transform: scale(1.1);
}

.testimonial-name {
  font-weight: 600;
  font-size: 0.9rem;
}

.testimonial-role {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* ═══════════════════════════════════════════════════
   CTA SECTION
   ═══════════════════════════════════════════════════ */
.cta-section {
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 70% at 50% 50%, rgba(0, 123, 255, 0.15), transparent);
  z-index: 0;
}

/* Animated particles in CTA */
.cta-particles {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.cta-content .section-label,
.cta-content .section-title,
.cta-content .section-subtitle {
  opacity: 0;
  transform: translateY(30px);
}

.cta-content .section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

.cta-content .section-subtitle {
  margin: 0 auto 40px;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
}

.cta-guarantee {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  opacity: 0;
  transform: translateY(20px);
}

.cta-guarantee svg {
  width: 18px;
  height: 18px;
  color: var(--color-success);
}

/* ═══════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════ */
.footer {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  padding: 60px 0 32px;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-top: 16px;
  line-height: 1.6;
  max-width: 300px;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
}

/* Services list in 2 columns */
.footer-services ul {
  column-count: 2;
  column-gap: 20px;
}

.footer-col ul li {
  margin-bottom: 6px;
  font-size: 0.8rem;
}

.footer-col ul a {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  transition: color 0.3s ease, transform 0.3s ease;
  display: inline-block;
}

.footer-col ul a:hover {
  color: var(--color-primary);
  transform: translateX(4px);
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

@media (max-width: 768px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  .hero-stats {
    gap: 24px;
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-services ul { column-count: 1; }
}

/* ═══════════════════════════════════════════════════
   ANIMATED TERMITE COLONY (Canvas Overlay)
   ═══════════════════════════════════════════════════ */
#termite-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.4;
}

/* ═══════════════════════════════════════════════════
   SCROLL PROGRESS BAR
   ═══════════════════════════════════════════════════ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  z-index: 10001;
  transform-origin: left;
  transform: scaleX(0);
}

/* ═══════════════════════════════════════════════════
   ANIMATIONS KEYFRAMES
   ═══════════════════════════════════════════════════ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.8; }
}

@keyframes shimmer {
  from { background-position: -200% center; }
  to { background-position: 200% center; }
}

@keyframes gnaw {
  0%, 100% { transform: scale(1); }
  25% { transform: scale(0.98) rotate(-1deg); }
  75% { transform: scale(1.02) rotate(1deg); }
}

@keyframes termite-crawl {
  0% { transform: translateX(0) rotate(0deg); }
  25% { transform: translateX(3px) rotate(3deg); }
  50% { transform: translateX(0) rotate(0deg); }
  75% { transform: translateX(-3px) rotate(-3deg); }
  100% { transform: translateX(0) rotate(0deg); }
}

@keyframes bounce-in {
  0% { transform: scale(0); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

@keyframes slide-in-left {
  from { opacity: 0; transform: translateX(-60px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slide-in-right {
  from { opacity: 0; transform: translateX(60px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes rotate-in {
  from { opacity: 0; transform: rotate(-180deg) scale(0); }
  to { opacity: 1; transform: rotate(0) scale(1); }
}

@keyframes draw-line {
  from { stroke-dashoffset: var(--line-length, 200); }
  to { stroke-dashoffset: 0; }
}

/* ═══════════════════════════════════════════════════
   ACCESSIBILITY: REDUCED MOTION
   ═══════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .scroll-progress { display: none; }
  #termite-canvas { display: none; }
  
  /* Keep essential opacity but disable transforms */
  .hero-title .line-inner,
  .hero-description,
  .hero-actions,
  .hero-stats,
  .lifecycle-stage,
  .damage-card,
  .stat-item,
  .service-card,
  .process-step,
  .testimonial-card {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ═══════════════════════════════════════════════════
   FLOATING PARTICLES 
   ═══════════════════════════════════════════════════ */
.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--color-primary);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}

/* ═══════════════════════════════════════════════════
   LOADING OVERLAY
   ═══════════════════════════════════════════════════ */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: var(--color-bg);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s var(--ease-out-expo), visibility 0.6s;
}

.loading-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader {
  width: 60px;
  height: 60px;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ═══════════════════════════════════════════════════
   MAGNETIC BUTTON EFFECT
   ═══════════════════════════════════════════════════ */
.magnetic-wrap {
  display: inline-block;
  position: relative;
}

/* ═══════════════════════════════════════════════════
   TEXT SCRAMBLE EFFECT
   ═══════════════════════════════════════════════════ */
.scramble-char {
  display: inline-block;
  color: var(--color-primary);
  opacity: 0.6;
}
