/* ===== CUSTOM STYLES ===== */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom selection color */
::selection {
  background-color: rgba(212, 165, 116, 0.3);
  color: #062509;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #d4a574;
  outline-offset: 2px;
}

/* Navbar scroll state */
nav.scrolled {
  background: rgba(3, 19, 5, 0.95) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(212, 165, 116, 0.1);
}

/* Mobile menu open state */
#mobileMenu.open {
  opacity: 1 !important;
  pointer-events: all !important;
}

/* Hamburger animation */
#menuBtn.active #bar1 {
  transform: rotate(45deg) translate(5px, 5px);
}
#menuBtn.active #bar2 {
  opacity: 0;
}
#menuBtn.active #bar3 {
  transform: rotate(-45deg) translate(5px, -5px);
  width: 1.5rem;
}

/* Parallax-like subtle effect on hero image */
#hero .absolute img {
  will-change: transform;
}

/* Image lazy loading fade */
img {
  opacity: 1;
  transition: opacity 0.3s ease;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #062509;
}
::-webkit-scrollbar-thumb {
  background: rgba(212, 165, 116, 0.3);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(212, 165, 116, 0.5);
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Print styles */
@media print {
  nav, #mobileMenu, button, iframe {
    display: none !important;
  }
  body {
    background: white !important;
    color: black !important;
  }
}
