/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

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

/* ===== NAVBAR ===== */
#navbar {
  background: rgba(254, 253, 248, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(22, 101, 52, 0.08);
}

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

/* ===== MOBILE MENU ===== */
.menu-line {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#menuBtn.active .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}
#menuBtn.active .menu-line:nth-child(2) {
  opacity: 0;
}
#menuBtn.active .menu-line:nth-child(3) {
  width: 5px;
  transform: rotate(-45deg) translate(4px, -4px);
}

.mobile-link {
  display: block;
  color: #0f1a0f;
  border-bottom: 1px solid rgba(22, 101, 52, 0.08);
}
.mobile-link:last-child {
  border-bottom: none;
}

/* ===== HERO ===== */
#hero {
  background: linear-gradient(135deg, #052e16 0%, #14532d 40%, #166534 100%);
}

/* ===== 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, #16a34a, #4ade80);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ===== GALLERY ===== */
.gallery-item {
  position: relative;
  overflow: hidden;
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5, 46, 22, 0.4) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.gallery-item:hover::after {
  opacity: 1;
}

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

  .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; }
}

/* ===== FORM ===== */
input:focus, select:focus, textarea:focus {
  outline: none;
}

/* ===== GEOMETRIC DECORATIONS ===== */
.geo-shape-1 {
  position: absolute;
  width: 120px;
  height: 120px;
  border: 2px solid rgba(74, 222, 128, 0.15);
  border-radius: 20px;
  transform: rotate(45deg);
  pointer-events: none;
}

.geo-shape-2 {
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid rgba(74, 222, 128, 0.1);
  pointer-events: none;
}

/* ===== UTILITY ===== */
.text-gradient {
  background: linear-gradient(135deg, #16a34a, #4ade80);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
