/* Base & Utilities */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

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

/* Navbar */
.nav-title-color {
  color: #064e3b;
}

.navbar-scrolled .nav-title-color {
  color: #064e3b;
}

.navbar-hero .nav-title-color {
  color: #ecfdf5;
}

.navbar-scrolled .nav-link {
  color: #4b5563;
}

.navbar-hero .nav-link {
  color: #d1fae5;
}

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

#navbar.navbar-scrolled {
  background: rgba(254, 253, 248, 0.92);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

#navbar.navbar-hero {
  background: transparent;
}

/* Scroll Reveal */
.scroll-reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.scroll-reveal.revealed:nth-child(2) { transition-delay: 0.08s; }
.scroll-reveal.revealed:nth-child(3) { transition-delay: 0.16s; }
.scroll-reveal.revealed:nth-child(4) { transition-delay: 0.24s; }
.scroll-reveal.revealed:nth-child(5) { transition-delay: 0.32s; }
.scroll-reveal.revealed:nth-child(6) { transition-delay: 0.40s; }

/* Hero Fade */
.hero-fade {
  opacity: 0;
  transform: translateY(24px);
  animation: heroFadeIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-fade:nth-child(1) { animation-delay: 0.2s; }
.hero-fade:nth-child(2) { animation-delay: 0.4s; }
.hero-fade:nth-child(3) { animation-delay: 0.6s; }
.hero-fade:nth-child(4) { animation-delay: 0.8s; }

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

/* Mobile Menu */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
  opacity: 0;
}

#mobile-menu.open {
  max-height: 500px;
  opacity: 1;
}

/* Form focus styles */
input:focus, select:focus, textarea:focus {
  border-color: #6ee7b7 !important;
  box-shadow: 0 0 0 3px rgba(110, 231, 183, 0.2) !important;
}

/* Custom selection */
::selection {
  background: #a7f3d0;
  color: #064e3b;
}

/* Subtle gradient for cream background sections */
.bg-cream-50 {
  background-color: #fefdf8;
}

/* Smooth image loading */
img {
  opacity: 1;
  transition: opacity 0.3s ease;
}

/* Button hover lift effect */
button, a {
  transition: all 0.2s ease;
}

/* Prevent content jump from scrollbar */
:root {
  scrollbar-width: thin;
  scrollbar-color: #a7f3d0 transparent;
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

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

::-webkit-scrollbar-thumb:hover {
  background: #6ee7b7;
}
