/* ─── Custom Properties ─── */
:root {
  --gold: #C8960C;
  --gold-light: #fbbf24;
  --plum-dark: #0f060f;
  --plum-deep: #1a0a1a;
  --plum-mid: #3B1538;
  --plum-light: #5e1e5e;
}

/* ─── Base ─── */
html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  overflow-x: hidden;
}

::selection {
  background: rgba(200, 150, 12, 0.3);
  color: #f5f0f7;
}

/* ─── Navigation ─── */
#nav {
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#nav.scrolled {
  background: rgba(15, 6, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(200, 150, 12, 0.1);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transition: width 0.3s ease;
  border-radius: 1px;
}

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

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

.mobile-link {
  position: relative;
}

.mobile-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.mobile-link:hover::after {
  width: 80%;
}

/* ─── Hero Gradient ─── */
.hero-gradient {
  background:
    radial-gradient(ellipse 80% 60% at 20% 80%, rgba(94, 30, 94, 0.6) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(200, 150, 12, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse 100% 80% at 50% 50%, rgba(59, 21, 56, 0.9) 0%, rgba(15, 6, 15, 1) 70%),
    linear-gradient(180deg, #1a0a1a 0%, #0f060f 100%);
}

.hero-orb {
  animation: orbFloat 8s ease-in-out infinite;
}

.hero-orb-1 {
  background: radial-gradient(circle, rgba(126, 48, 126, 0.8) 0%, transparent 70%);
  animation-delay: 0s;
}

.hero-orb-2 {
  background: radial-gradient(circle, rgba(200, 150, 12, 0.6) 0%, transparent 70%);
  animation-delay: -3s;
}

.hero-orb-3 {
  background: radial-gradient(circle, rgba(94, 30, 94, 0.5) 0%, transparent 70%);
  animation-delay: -5s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 15px) scale(0.95); }
}

/* ─── Scroll Dot ─── */
.scroll-dot {
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { top: 0; opacity: 1; }
  50% { top: calc(100% - 12px); opacity: 0.4; }
}

/* ─── Buttons ─── */
.btn-gold {
  background: linear-gradient(135deg, #fcd34d 0%, #C8960C 50%, #a07808 100%);
  color: #1a0a1a;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-gold::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.btn-gold:hover {
  transform: translateY(-2px);
}

.btn-outline {
  border: 1.5px solid rgba(200, 150, 12, 0.4);
  color: #fcd34d;
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}

.btn-outline:hover {
  border-color: rgba(200, 150, 12, 0.8);
  transform: translateY(-2px);
}

/* ─── Site Cards ─── */
.site-card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.site-card.revealed {
  opacity: 1;
  transform: translateY(0);
}

.site-card:hover {
  transform: translateY(-4px);
}

.site-card.revealed:hover {
  transform: translateY(-4px);
}

/* ─── Input Fields ─── */
.input-field {
  background: rgba(26, 10, 26, 0.6);
  border: 1px solid rgba(94, 30, 94, 0.5);
  border-radius: 12px;
  padding: 12px 16px;
  color: #f5f0f7;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  outline: none;
}

.input-field::placeholder {
  color: rgba(180, 140, 180, 0.5);
}

.input-field:focus {
  border-color: rgba(200, 150, 12, 0.6);
  box-shadow: 0 0 0 3px rgba(200, 150, 12, 0.1);
  background: rgba(26, 10, 26, 0.8);
}

.input-field option {
  background: #1a0a1a;
  color: #f5f0f7;
}

/* ─── Reveal Animations ─── */
.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 0;
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up { transform: translateY(40px); }
.reveal-left { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }

.revealed {
  opacity: 1;
  transform: translate(0, 0);
}

/* ─── Hero Content Animation ─── */
#hero .hero-badge {
  animation: fadeSlideDown 0.8s 0.2s both cubic-bezier(0.16, 1, 0.3, 1);
}

#hero h1 {
  animation: fadeSlideUp 0.8s 0.4s both cubic-bezier(0.16, 1, 0.3, 1);
}

#hero p {
  animation: fadeSlideUp 0.8s 0.6s both cubic-bezier(0.16, 1, 0.3, 1);
}

#hero > div > div:last-child {
  animation: fadeSlideUp 0.8s 0.8s both cubic-bezier(0.16, 1, 0.3, 1);
}

#hero > div > div:last-child > div {
  animation: fadeSlideUp 0.8s 1s both cubic-bezier(0.16, 1, 0.3, 1);
}

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

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── Utility ─── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal-up, .reveal-left, .reveal-right {
    opacity: 1;
    transform: none;
  }
}
