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

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

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

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

#navbar.scrolled {
  background: rgba(253, 248, 240, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 20px rgba(5, 150, 105, 0.08);
}

/* ===== HERO ANIMATIONS ===== */
.hero-badge {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease forwards 0.3s;
}

.hero-title {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s ease forwards 0.5s;
}

.hero-subtitle {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease forwards 0.7s;
}

.hero-ctas {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease forwards 0.9s;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero Blobs */
.hero-blob {
  animation: blobFloat 8s ease-in-out infinite;
}

.blob-1 {
  animation-delay: 0s;
}

.blob-2 {
  animation-delay: -3s;
}

.blob-3 {
  animation-delay: -5s;
}

@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -20px) scale(1.05); }
  50% { transform: translate(-20px, 20px) scale(0.95); }
  75% { transform: translate(15px, 10px) scale(1.02); }
}

/* ===== SCROLL REVEAL ===== */
.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

  .reveal-left {
    opacity: 0;
    transform: translateX(-40px);
  }

  .reveal-right {
    opacity: 0;
    transform: translateX(40px);
  }

  .reveal-up.visible,
  .reveal-left.visible,
  .reveal-right.visible {
    opacity: 1;
    transform: none;
  }
}

/* ===== MENU TABS ===== */
.menu-tab {
  background: transparent;
  color: #6b7280;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.menu-tab.active {
  background: white;
  color: #059669;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.15);
}

.menu-tab:hover:not(.active) {
  color: #059669;
  background: rgba(255, 255, 255, 0.5);
}

/* ===== MOBILE MENU ===== */
#mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-link {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

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

#mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }
#mobile-menu.open .mobile-link:nth-child(5) { transition-delay: 0.3s; }

/* ===== IMAGE HOVER ===== */
.rounded-3xl.overflow-hidden img {
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ===== FORM ===== */
#contact-form input:focus,
#contact-form select:focus,
#contact-form textarea:focus {
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

/* ===== CUSTOM SELECTION ===== */
::selection {
  background: #d1fae5;
  color: #064e3b;
}
