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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

/* === NAVBAR === */
#navbar {
  background: transparent;
}

#navbar.scrolled {
  background: rgba(6, 78, 59, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

/* === HERO ANIMATIONS === */
.hero-sub {
  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-desc {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease forwards 0.7s;
}

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

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

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

.reveal-up {
  transform: translateY(40px);
}

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

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

.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* === MOBILE MENU === */
.mobile-menu-open {
  overflow: hidden;
}

#mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

#mobile-menu.open .mobile-link {
  animation: mobileLinkIn 0.4s ease forwards;
  opacity: 0;
}

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

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

.mobile-link {
  transform: translateY(10px);
}

/* === MENU BUTTON ANIMATION === */
#menu-btn.active #bar1 {
  transform: rotate(45deg) translate(5px, 5px);
}

#menu-btn.active #bar2 {
  opacity: 0;
}

#menu-btn.active #bar3 {
  transform: rotate(-45deg) translate(5px, -5px);
  width: 1.5rem;
}

/* === FOCUS STYLES === */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid rgba(6, 78, 59, 0.6);
  outline-offset: 2px;
  border-radius: 4px;
}

/* === SELECTION === */
::selection {
  background: rgba(6, 78, 59, 0.2);
  color: #064E3B;
}

/* === REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
  .reveal-up,
  .reveal-left,
  .reveal-right {
    opacity: 1;
    transform: none;
  }
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .font-serif {
    line-height: 1.1;
  }
}
