/* ─── GLOBAL ─────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  overflow-x: hidden;
}

::selection {
  background: #047857;
  color: #fefdf8;
}

/* ─── NAVBAR ─────────────────────────────────────────────────── */
#navbar {
  background: rgba(254, 253, 248, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(4, 120, 87, 0.08);
}

#navbar.scrolled {
  box-shadow: 0 4px 30px rgba(4, 120, 87, 0.08);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 2px;
  background: #047857;
  border-radius: 1px;
  transition: transform 0.2s ease;
}

.nav-link:hover::after {
  transform: translateX(-50%) scaleX(1);
}

/* ─── MOBILE MENU ────────────────────────────────────────────── */
.mobile-nav-link {
  display: block;
}

/* ─── HERO GEOMETRIC SHAPES ──────────────────────────────────── */
.geo-shape {
  position: absolute;
  opacity: 0.12;
  pointer-events: none;
}

.geo-circle-1 {
  width: 420px;
  height: 420px;
  border-radius: 50%;
  border: 3px solid rgba(251, 191, 36, 0.5);
  top: -80px;
  right: -100px;
  animation: float 8s ease-in-out infinite;
}

.geo-circle-2 {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(110, 231, 183, 0.3);
  bottom: 15%;
  left: 5%;
  animation: float 6s ease-in-out infinite reverse;
}

.geo-circle-3 {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 2px solid rgba(254, 253, 248, 0.3);
  top: 30%;
  left: 10%;
  animation: float 10s ease-in-out infinite;
}

.geo-square-1 {
  width: 100px;
  height: 100px;
  background: rgba(251, 191, 36, 0.25);
  border-radius: 20px;
  top: 20%;
  right: 15%;
  transform: rotate(45deg);
  animation: spin-slow 20s linear infinite;
}

.geo-square-2 {
  width: 60px;
  height: 60px;
  background: rgba(110, 231, 183, 0.35);
  border-radius: 12px;
  bottom: 25%;
  right: 8%;
  transform: rotate(20deg);
  animation: spin-slow 15s linear infinite reverse;
}

.geo-triangle-1 {
  width: 0;
  height: 0;
  border-left: 50px solid transparent;
  border-right: 50px solid transparent;
  border-bottom: 86px solid rgba(251, 191, 36, 0.2);
  top: 60%;
  left: 8%;
  transform: rotate(-15deg);
  animation: float 7s ease-in-out infinite;
}

.geo-dots {
  background-image: radial-gradient(rgba(254, 253, 248, 0.3) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
  width: 200px;
  height: 200px;
  bottom: 10%;
  right: 25%;
}

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

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ─── SERVICE CARDS ──────────────────────────────────────────── */
.service-card {
  will-change: transform;
}

/* ─── TESTIMONIAL CARDS ──────────────────────────────────────── */
.testimonial-card {
  will-change: transform;
}

/* ─── SCROLL REVEAL (progressive enhancement) ───────────────── */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }

  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }

  .reveal-delay-1 { transition-delay: 0.1s; }
  .reveal-delay-2 { transition-delay: 0.2s; }
  .reveal-delay-3 { transition-delay: 0.3s; }
  .reveal-delay-4 { transition-delay: 0.4s; }
  .reveal-delay-5 { transition-delay: 0.5s; }
  .reveal-delay-6 { transition-delay: 0.6s; }
}

/* ─── FORM STYLES ────────────────────────────────────────────── */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23047857' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}

/* ─── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 640px) {
  .geo-circle-1 {
    width: 250px;
    height: 250px;
  }

  .geo-circle-2 {
    width: 120px;
    height: 120px;
  }

  .geo-square-1 {
    width: 60px;
    height: 60px;
  }

  .geo-square-2 {
    display: none;
  }

  .geo-triangle-1 {
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-bottom: 52px solid rgba(251, 191, 36, 0.2);
  }
}
