/* ========== BASE & RESET ========== */
*, *::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: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

#navbar.scrolled {
  background: rgba(255, 251, 245, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(5, 150, 105, 0.08);
  padding: 0;
}

#navbar.scrolled .font-display.font-bold.text-emerald-900 {
  color: #064e3b;
}

#navbar.scrolled a:not([class*="bg-emerald"]):not([class*="text-white"]) {
  color: #374151;
}

#navbar.scrolled a:not([class*="bg-emerald"]):not([class*="text-white"]):hover {
  color: #059669;
}

/* ========== MOBILE MENU ========== */
.menu-line {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

#menu-btn.active .menu-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

#menu-btn.active .menu-line:nth-child(2) {
  opacity: 0;
}

#menu-btn.active .menu-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
  width: 20px;
}

.mobile-link {
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 233, 192, 0.5);
}

.mobile-link:last-of-type {
  border-bottom: none;
}

/* ========== FLOATING CARDS ========== */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

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

.floating-card-1 {
  animation: float 4s ease-in-out infinite;
}

.floating-card-2 {
  animation: float-delayed 3.5s ease-in-out infinite;
}

.floating-card-3 {
  animation: float 5s ease-in-out infinite;
  animation-delay: 1s;
}

/* ========== SERVICE CARDS ========== */
.service-card {
  border: 1px solid rgba(5, 150, 105, 0.06);
}

.service-card:hover {
  border-color: rgba(5, 150, 105, 0.15);
}

/* ========== SCROLL REVEAL ========== */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
  }

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

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

/* ========== CUSTOM SCROLLBAR ========== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #FFFBF5;
}

::-webkit-scrollbar-thumb {
  background: #a7f3d0;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #34d399;
}
