*, *::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: #C89B3C;
  color: #0A1628;
}

/* Gold line animation */
.gold-line {
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #C89B3C, transparent);
  margin: 0 auto 2rem;
  transition: width 1s ease-out;
}

.gold-line.revealed {
  width: 80px;
}

/* Scroll indicator */
.scroll-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
  40% { transform: translateY(8px) translateX(-50%); }
  60% { transform: translateY(4px) translateX(-50%); }
}

/* Nav scroll state */
.nav-scrolled {
  background: rgba(3, 7, 16, 0.95) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.05);
}

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

.mobile-link {
  transition: color 0.3s ease;
}

/* Gallery scroll */
@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.animate-scroll {
  display: flex;
  gap: 1rem;
  animation: scroll 30s linear infinite;
  width: max-content;
}

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

/* Reveal animations - progressive enhancement */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
  }

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

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

::-webkit-scrollbar-track {
  background: #060E1A;
}

::-webkit-scrollbar-thumb {
  background: #283A5E;
  border-radius: 4px;
}

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

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

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