*, *::before, *::after {
  box-sizing: border-box;
}

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

body {
  overflow-x: hidden;
}

/* Scroll reveal animations — progressive enhancement, only applied via JS */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  }

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #020617;
}

::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

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

/* Image aspect ratios */
img {
  max-width: 100%;
  height: auto;
}

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

/* Mobile menu transitions */
#mobile-menu {
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

#mobile-menu.closed {
  opacity: 0;
  pointer-events: none;
}

/* Hamburger animation */
#mobile-menu-btn.active #menu-line-1 {
  transform: rotate(45deg) translate(5px, 5px);
}

#mobile-menu-btn.active #menu-line-2 {
  opacity: 0;
}

#mobile-menu-btn.active #menu-line-3 {
  width: 100%;
}

/* Gold shimmer effect for hero headline */
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.text-gold-shimmer {
  background: linear-gradient(90deg, #d4a853 0%, #f0d48a 50%, #d4a853 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s linear infinite;
}

/* Floating animation for decorative elements */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.float-slow {
  animation: float 6s ease-in-out infinite;
}

.float-medium {
  animation: float 4s ease-in-out infinite;
}

/* Pulse for CTA buttons */
@keyframes pulse-gold {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212, 168, 83, 0.4); }
  50% { box-shadow: 0 0 0 12px rgba(212, 168, 83, 0); }
}

.btn-pulse:hover {
  animation: pulse-gold 1.5s ease-in-out infinite;
}
