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

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

/* Selection color */
::selection {
  background-color: rgba(212, 168, 83, 0.3);
  color: #fdfcf8;
}

/* === HERO ANIMATIONS === */
/* These animate in on load — above the fold content gets animated via JS */
.hero-anim {
  opacity: 0;
  transform: translateY(24px);
}

/* === SCROLL REVEAL === */
/* Default state is visible (progressive enhancement) */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

/* When JS is enabled and prefers-reduced-motion is off, use hidden initial state */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(32px);
  }
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === NAV SCROLLED STATE === */
#nav.scrolled {
  background: rgba(3, 8, 5, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(212, 168, 83, 0.08);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

/* === MOBILE MENU === */
#mobile-menu.open {
  transform: translateY(0) !important;
  opacity: 1 !important;
  pointer-events: all !important;
}

.mobile-link {
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(212, 168, 83, 0.08);
}

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

/* Menu toggle animation */
.menu-toggle-active .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle-active .menu-line:nth-child(2) {
  opacity: 0;
}
.menu-toggle-active .menu-line:nth-child(3) {
  width: 1.5rem;
  transform: rotate(-45deg) translate(5px, -5px);
}

/* === GLOW EFFECTS === */
.glow-cream {
  box-shadow: 0 0 40px rgba(212, 168, 83, 0.15);
}

/* === FOCUS VISIBLE === */
:focus-visible {
  outline: 2px solid rgba(212, 168, 83, 0.6);
  outline-offset: 2px;
}

/* === CUSTOM SCROLLBAR === */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #030805;
}
::-webkit-scrollbar-thumb {
  background: rgba(212, 168, 83, 0.2);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(212, 168, 83, 0.4);
}

/* === FORM STYLES === */
select option {
  background: #060e0a;
  color: #faf5e8;
}

/* === RESPONSIVE ADJUSTMENTS === */
@media (max-width: 768px) {
  .hero-anim {
    opacity: 1;
    transform: translateY(0);
  }
}
