/* ===== BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: #34d399;
  color: #064e3b;
}

/* ===== NAVBAR ===== */
#navbar {
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

#navbar.scrolled {
  background: rgba(254, 253, 248, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(6, 95, 70, 0.08);
}

.nav-link {
  position: relative;
}

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

.nav-link:hover::after {
  width: 60%;
}

/* ===== MOBILE MENU ===== */
#mobile-menu {
  animation: slideDown 0.25s ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.mobile-link {
  display: block;
}

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

.geo-circle-1 {
  width: 420px;
  height: 420px;
  border: 2px solid rgba(217, 249, 157, 0.12);
  border-radius: 50%;
  top: -80px;
  right: -100px;
  animation: float-slow 18s ease-in-out infinite;
}

.geo-circle-2 {
  width: 200px;
  height: 200px;
  background: rgba(217, 249, 157, 0.06);
  border-radius: 50%;
  bottom: 20%;
  left: 5%;
  animation: float-slow 14s ease-in-out infinite reverse;
}

.geo-circle-3 {
  width: 120px;
  height: 120px;
  border: 2px solid rgba(217, 249, 157, 0.15);
  border-radius: 50%;
  top: 30%;
  left: 10%;
  animation: float-slow 12s ease-in-out infinite;
}

.geo-square-1 {
  width: 100px;
  height: 100px;
  background: rgba(217, 249, 157, 0.08);
  border-radius: 20px;
  top: 18%;
  right: 12%;
  transform: rotate(45deg);
  animation: float-slow 16s ease-in-out infinite;
}

.geo-square-2 {
  width: 60px;
  height: 60px;
  background: rgba(217, 249, 157, 0.1);
  border-radius: 12px;
  bottom: 25%;
  right: 25%;
  transform: rotate(20deg);
  animation: float-slow 10s ease-in-out infinite reverse;
}

.geo-triangle-1 {
  width: 0;
  height: 0;
  border-left: 50px solid transparent;
  border-right: 50px solid transparent;
  border-bottom: 86px solid rgba(217, 249, 157, 0.07);
  top: 40%;
  right: 5%;
  animation: float-slow 15s ease-in-out infinite;
}

.geo-dot {
  width: 12px;
  height: 12px;
  background: rgba(217, 249, 157, 0.3);
  border-radius: 50%;
}

.geo-dot-1 { top: 15%; left: 20%; }
.geo-dot-2 { top: 60%; left: 8%; width: 8px; height: 8px; }
.geo-dot-3 { bottom: 30%; right: 15%; width: 16px; height: 16px; }
.geo-dot-4 { top: 45%; right: 30%; width: 6px; height: 6px; }
.geo-dot-5 { bottom: 15%; left: 30%; width: 10px; height: 10px; }

.geo-line {
  width: 120px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(217, 249, 157, 0.2), transparent);
}

.geo-line-1 {
  top: 25%;
  left: -20px;
  transform: rotate(-15deg);
}

.geo-line-2 {
  bottom: 35%;
  right: -10px;
  transform: rotate(10deg);
  width: 80px;
}

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

.geo-square-1 { --rotate: 45deg; }
.geo-square-2 { --rotate: 20deg; }
.geo-triangle-1 { --rotate: 0deg; }

/* ===== SERVICE CARDS ===== */
.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #059669, #34d399);
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

/* ===== AREA BADGES ===== */
.area-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background: white;
  border: 1.5px solid #d1fae5;
  color: #065f46;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: default;
}

.area-badge:hover {
  background: #059669;
  border-color: #059669;
  color: #d9f99d;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

/* ===== 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='%23065f46' 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;
}

/* ===== SCROLL REVEAL (progressive enhancement) ===== */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s 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; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
  .geo-circle-1 { width: 250px; height: 250px; }
  .geo-circle-2 { width: 120px; height: 120px; }
  .geo-circle-3 { width: 80px; height: 80px; }
  .geo-square-1 { width: 60px; height: 60px; }
  .geo-square-2 { display: none; }
  .geo-triangle-1 { border-left-width: 30px; border-right-width: 30px; border-bottom-width: 52px; }
}
