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

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

body {
  min-height: 100vh;
}

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

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

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

.circle-2 {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(217, 249, 157, 0.08);
  bottom: 15%;
  right: 8%;
  animation: float-medium 14s ease-in-out infinite reverse;
}

.circle-3 {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255, 254, 245, 0.06);
  top: 25%;
  right: 15%;
  animation: float-fast 10s ease-in-out infinite;
}

.square-1 {
  width: 120px;
  height: 120px;
  border: 2px solid rgba(217, 249, 157, 0.12);
  border-radius: 20px;
  top: 30%;
  left: 5%;
  transform: rotate(45deg);
  animation: spin-slow 30s linear infinite;
}

.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);
  bottom: 25%;
  left: 15%;
  animation: float-medium 16s ease-in-out infinite;
}

.dot-grid {
  width: 100px;
  height: 100px;
  background-image: radial-gradient(circle, rgba(217, 249, 157, 0.25) 1.5px, transparent 1.5px);
  background-size: 12px 12px;
  bottom: 10%;
  right: 30%;
  animation: float-slow 18s ease-in-out infinite reverse;
}

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

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

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

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

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

#navbar.scrolled {
  background: rgba(255, 254, 245, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(4, 120, 87, 0.08);
  padding-top: 0;
  padding-bottom: 0;
}

#navbar.scrolled .font-serif {
  color: #064E3B !important;
}

#navbar.scrolled a:not([class*="bg-"]) {
  color: #047857 !important;
}

/* ===== MOBILE MENU ===== */
.mobile-link {
  transition: color 0.2s, transform 0.2s;
}

.mobile-link:hover {
  color: #10B981;
  transform: scale(1.05);
}

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

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

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

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ===== FOCUS STYLES ===== */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid #10B981;
  outline-offset: 2px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .geo-shape {
    display: none;
  }

  #hero h1 {
    font-size: 2.5rem;
  }

  #hero h1 br {
    display: none;
  }

  #hero h1 span {
    display: block;
  }
}

@media (max-width: 480px) {
  #hero h1 {
    font-size: 2rem;
  }
}
