/* ========== CUSTOM STYLES ========== */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Hero animations */
.hero-anim {
  opacity: 0;
  transform: translateY(24px);
  animation: heroFadeIn 0.8s ease forwards;
}

.hero-anim:nth-child(1) { animation-delay: 0.1s; }
.hero-anim:nth-child(2) { animation-delay: 0.3s; }
.hero-anim:nth-child(3) { animation-delay: 0.5s; }
.hero-anim:nth-child(4) { animation-delay: 0.7s; }

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

/* Scroll reveal — progressive enhancement */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

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

/* Gold gradient text utility */
.text-gold-gradient {
  background: linear-gradient(135deg, #D4AF5A 0%, #C8A44E 50%, #B8943E 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Navbar transition states */
.nav-scrolled {
  background: rgba(11, 17, 25, 0.92) !important;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(200, 164, 78, 0.1) !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-transparent {
  background: transparent !important;
  border-bottom: 1px solid transparent !important;
}

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

/* Hamburger animation */
.menu-active #bar1 {
  transform: translateY(6px) rotate(45deg);
}
.menu-active #bar2 {
  opacity: 0;
  transform: scaleX(0);
}
.menu-active #bar3 {
  transform: translateY(-6px) rotate(-45deg);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0B1119;
}
::-webkit-scrollbar-thumb {
  background: #1e2d3d;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #2a3f55;
}

/* Selection color */
::selection {
  background: rgba(200, 164, 78, 0.3);
  color: #f1f5f9;
}

/* Input autofill styling */
input:-webkit-autofill,
textarea:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 30px #0f172a inset !important;
  -webkit-text-fill-color: #f1f5f9 !important;
  caret-color: #f1f5f9;
}
