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

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

body {
  overflow-x: hidden;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0f0f1a;
}
::-webkit-scrollbar-thumb {
  background: #4a203f;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #5e284f;
}

/* Selection */
::selection {
  background: rgba(251, 191, 36, 0.3);
  color: #fbbf24;
}

/* Nav scroll state */
.nav-scrolled {
  background: rgba(15, 15, 26, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(74, 32, 63, 0.5);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-not-scrolled {
  background: transparent;
  border-bottom: 1px solid transparent;
}

/* Floating animations */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

@keyframes float-delayed {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

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

.animate-float-delayed {
  animation: float-delayed 5s ease-in-out infinite;
  animation-delay: 1s;
}

/* Scroll reveal */
.scroll-reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .scroll-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }

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

  .scroll-reveal:nth-child(2) { transition-delay: 0.1s; }
  .scroll-reveal:nth-child(3) { transition-delay: 0.2s; }
  .scroll-reveal:nth-child(4) { transition-delay: 0.3s; }
  .scroll-reveal:nth-child(5) { transition-delay: 0.4s; }
  .scroll-reveal:nth-child(6) { transition-delay: 0.5s; }
}

/* Gold shimmer line animation */
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* Mobile menu */
#mobile-menu {
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Select styling */
select option {
  background: #1a1a2e;
  color: #d9bfd9;
}

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

/* Responsive adjustments */
@media (max-width: 640px) {
  .font-display {
    font-size: clamp(1.75rem, 8vw, 2.5rem);
  }
}
