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

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

body {
  margin: 0;
  overflow-x: hidden;
}

::selection {
  background: rgba(212, 168, 85, 0.3);
  color: #fff;
}

img {
  display: block;
  max-width: 100%;
}

/* ===== Scroll Reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal.delay-1 { transition-delay: 100ms; }
.reveal.delay-2 { transition-delay: 200ms; }
.reveal.delay-3 { transition-delay: 300ms; }

/* ===== Hero Animations ===== */
.hero-anim {
  opacity: 0;
  transform: translateY(30px);
  animation: heroReveal 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-anim:nth-child(2) { animation-delay: 0.15s; }
.hero-anim:nth-child(3) { animation-delay: 0.3s; }
.hero-anim:nth-child(4) { animation-delay: 0.45s; }
.hero-anim:nth-child(5) { animation-delay: 0.6s; }

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

.hero-image {
  opacity: 0;
  transform: translateX(40px);
  animation: heroImageReveal 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

@keyframes heroImageReveal {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

#navbar.scrolled {
  background: rgba(13, 5, 20, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0;
}

#navbar.scrolled nav {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

/* ===== Mobile Menu ===== */
#mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

#mobile-menu.open .mobile-link {
  animation: mobileLinkIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  transform: translateY(20px);
}

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

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

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

/* ===== Scroll Gallery ===== */
@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-288px * 5 - 32px)); }
}

.animate-scroll {
  animation: scroll 30s linear infinite;
}

.pause-on-hover:hover .animate-scroll {
  animation-play-state: paused;
}

/* ===== Gold Accent Line ===== */
.gold-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 168, 85, 0.4), transparent);
}

/* ===== Focus Styles ===== */
input:focus, select:focus, textarea:focus {
  outline: none;
}

/* ===== Responsive ===== */
@media (max-width: 767px) {
  .font-display {
    line-height: 1.15;
  }
}
