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

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

body {
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

#navbar.scrolled {
  background: rgba(250, 250, 245, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

.nav-logo-text {
  color: #166534;
  transition: color 0.3s;
}

#navbar.scrolled .nav-logo-text {
  color: #166534;
}

/* ===== MOBILE MENU ===== */
.mobile-link {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s;
}

#mobileMenu.open .mobile-link {
  opacity: 1;
  transform: translateY(0);
}

#mobileMenu.open {
  opacity: 1;
  pointer-events: all;
}

.menu-line {
  transition: all 0.3s ease;
}

#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) {
  transform: rotate(-45deg) translate(4px, -4px);
  width: 5px;
}

/* ===== HERO GEOMETRIC SHAPES ===== */
.geo-circle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.geo-circle-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(22, 101, 52, 0.06) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  animation: float-slow 8s ease-in-out infinite;
}

.geo-circle-2 {
  width: 200px;
  height: 200px;
  background: rgba(22, 101, 52, 0.05);
  bottom: 15%;
  left: -50px;
  animation: float-slow 6s ease-in-out infinite reverse;
}

.geo-triangle {
  position: absolute;
  width: 0;
  height: 0;
  border-left: 60px solid transparent;
  border-right: 60px solid transparent;
  border-bottom: 104px solid rgba(22, 101, 52, 0.06);
  top: 25%;
  left: 5%;
  animation: spin-slow 20s linear infinite;
  transform-origin: center;
}

.geo-square {
  position: absolute;
  width: 80px;
  height: 80px;
  background: rgba(92, 64, 51, 0.05);
  border-radius: 16px;
  top: 30%;
  right: 3%;
  transform: rotate(45deg);
  animation: float-slow 7s ease-in-out infinite;
}

.geo-dots {
  position: absolute;
  bottom: 20%;
  right: 8%;
  width: 60px;
  height: 60px;
  background-image: radial-gradient(circle, rgba(22, 101, 52, 0.15) 2px, transparent 2px);
  background-size: 12px 12px;
  opacity: 0.6;
}

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

.cta-geo-1 {
  width: 300px;
  height: 300px;
  border: 3px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  top: -80px;
  left: -80px;
}

.cta-geo-2 {
  width: 150px;
  height: 150px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 32px;
  bottom: -40px;
  right: 10%;
  transform: rotate(30deg);
}

.cta-geo-3 {
  width: 100px;
  height: 100px;
  border: 3px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  top: 20%;
  right: 5%;
}

/* ===== ANIMATIONS ===== */
@keyframes float-slow {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

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

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

/* ===== GALLERY ===== */
.gallery-item {
  position: relative;
  cursor: pointer;
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(22, 101, 52, 0.3) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s;
  border-radius: inherit;
}

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

/* ===== SCROLL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  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; }

/* ===== FOOTER PATTERN ===== */
.footer-pattern {
  background-image:
    radial-gradient(circle at 25% 25%, rgba(255,255,255,0.03) 1px, transparent 1px),
    radial-gradient(circle at 75% 75%, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  width: 100%;
  height: 100%;
}

/* ===== SELECTION ===== */
::selection {
  background: rgba(22, 101, 52, 0.2);
  color: #166534;
}
