/* Base & Reset */
*, *::before, *::after {
  box-sizing: border-box;
}

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

body {
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f5f0e8;
}
::-webkit-scrollbar-thumb {
  background: #1a5c3a;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #154a2f;
}

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

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

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #1a5c3a;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Hero Animations */
.hero-subtitle {
  animation: fadeUp 0.8s ease forwards;
  animation-delay: 0.2s;
  opacity: 0;
}

.hero-title {
  animation: fadeUp 0.8s ease forwards;
  animation-delay: 0.4s;
  opacity: 0;
}

.hero-tagline {
  animation: fadeUp 0.8s ease forwards;
  animation-delay: 0.6s;
  opacity: 0;
}

.hero-cta {
  animation: fadeUp 0.8s ease forwards;
  animation-delay: 0.8s;
  opacity: 0;
}

.hero-scroll {
  animation: fadeUp 0.8s ease forwards;
  animation-delay: 1.2s;
  opacity: 0;
}

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

/* Scroll Reveal */
.reveal-section {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Mobile Menu */
#mobile-menu {
  animation: slideDown 0.3s ease forwards;
}

@keyframes slideDown {
  from {
    opacity: 0;
    max-height: 0;
  }
  to {
    opacity: 1;
    max-height: 500px;
  }
}

.mobile-nav-link {
  position: relative;
  display: block;
  padding: 8px 0;
  border-bottom: 1px solid rgba(26, 92, 58, 0.1);
}

.mobile-nav-link:last-child {
  border-bottom: none;
}

/* Button hover effects */
a:hover {
  transition: all 0.3s ease;
}

/* Image lazy load fade */
img[loading="lazy"] {
  transition: opacity 0.5s ease;
}

/* Selection color */
::selection {
  background: #1a5c3a;
  color: #f5f0e8;
}
