/* Base & Typography */
html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

::selection {
  background-color: rgba(212, 168, 75, 0.3);
  color: #f1f5f9;
}

/* Hero fade-up animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-up {
  animation: fadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Scroll reveal base states — always visible by default (no JS required) */
.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Progressive enhancement: only animate when JS enables and user prefers motion */
@media (prefers-reduced-motion: no-preference) {
  .reveal-up {
    opacity: 0;
    transform: translateY(40px);
  }

  .reveal-left {
    opacity: 0;
    transform: translateX(-40px);
  }

  .reveal-right {
    opacity: 0;
    transform: translateX(40px);
  }

  .reveal-up.revealed,
  .reveal-left.revealed,
  .reveal-right.revealed {
    opacity: 1;
    transform: translate(0, 0);
  }
}

/* Navbar scroll state */
nav.scrolled {
  background-color: rgba(10, 15, 26, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(212, 168, 75, 0.1);
}

nav.scrolled a {
  color: #f1f5f9;
}

/* Gold line accent */
.gold-line {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #d4a84b, transparent);
}

/* Subtle texture overlay on dark sections */
.bg-slate-950::before,
.bg-slate-900::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(ellipse at 20% 50%, rgba(13, 148, 136, 0.03) 0%, transparent 60%),
                    radial-gradient(ellipse at 80% 20%, rgba(212, 168, 75, 0.03) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

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

/* Smooth image loading */
img {
  loading: lazy;
}

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

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

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

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