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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  overflow-x: hidden;
}

/* Gold Button */
.gold-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: linear-gradient(135deg, #d4a843 0%, #e6c066 50%, #d4a843 100%);
  color: #0a0708;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 60px;
  border: none;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 4px 20px rgba(212, 168, 67, 0.25), 0 0 0 0 rgba(212, 168, 67, 0);
  position: relative;
  overflow: hidden;
}

.gold-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #e6c066 0%, #f0d48a 50%, #e6c066 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: inherit;
}

.gold-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(212, 168, 67, 0.4), 0 0 0 4px rgba(212, 168, 67, 0.1);
}

.gold-btn:hover::before {
  opacity: 1;
}

.gold-btn span,
.gold-btn svg,
.gold-btn .btn-text {
  position: relative;
  z-index: 1;
}

/* Navigation */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, #d4a843, #e6c066);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link:hover {
  color: #e6c066 !important;
}

/* Navbar scroll state */
nav.scrolled {
  background: rgba(5, 3, 4, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(212, 168, 67, 0.1);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

nav.scrolled .nav-link {
  color: rgba(255, 255, 255, 0.85);
}

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

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

.mobile-link {
  font-family: 'Playfair Display', Georgia, serif;
}

/* Mobile menu icon animation */
#menu-toggle.active #bar1 {
  transform: rotate(45deg) translate(5px, 5px);
}

#menu-toggle.active #bar2 {
  opacity: 0;
  width: 0;
}

#menu-toggle.active #bar3 {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Scroll reveal */
.scroll-reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Scroll indicator animation */
@keyframes scrollIndicator {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(400%); }
}

.animate-scroll-indicator {
  animation: scrollIndicator 1.5s ease-in-out infinite;
}

/* Bounce slow */
@keyframes bounceSlow {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, -8px); }
}

.animate-bounce-slow {
  animation: bounceSlow 2s ease-in-out infinite;
}

/* Gold shimmer on hover for images */
.group:hover .group-hover\:scale-105 {
  transform: scale(1.05);
}

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

::-webkit-scrollbar-track {
  background: #0a0708;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #7B1130, #d4a843);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #a0113f, #e6c066);
}

/* Selection color */
::selection {
  background: rgba(123, 17, 48, 0.6);
  color: #FADADD;
}

/* Focus styles */
:focus-visible {
  outline: 2px solid #d4a843;
  outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .scroll-reveal {
    opacity: 1;
    transform: none;
  }

  .animate-bounce-slow,
  .animate-scroll-indicator {
    animation: none;
  }
}

/* Mobile adjustments */
@media (max-width: 768px) {
  html {
    scroll-padding-top: 70px;
  }

  .gold-btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.8rem;
  }
}
