/* ========== BASE & RESET ========== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: #0A0312;
  color: #E8DFF2;
}

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

/* ========== AMBIENT GLOWS ========== */
.ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.4;
  pointer-events: none;
}

.ambient-glow--tl {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(125, 79, 168, 0.15) 0%, transparent 70%);
  top: -200px;
  left: -200px;
}

.ambient-glow--br {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(212, 168, 67, 0.08) 0%, transparent 70%);
  bottom: -150px;
  right: -100px;
}

.ambient-glow--cr {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(125, 79, 168, 0.1) 0%, transparent 70%);
  top: 33%;
  right: -50px;
}

/* ========== NAVBAR ========== */
#navbar {
  background: transparent;
  transition: background-color 0.5s ease, box-shadow 0.5s ease, backdrop-filter 0.5s ease;
}

#navbar.scrolled {
  background: rgba(10, 3, 18, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(180, 159, 212, 0.08);
}

.nav-link {
  position: relative;
}

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

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

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

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

.mobile-nav-link {
  position: relative;
}

.menu-line {
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

#menu-toggle[aria-expanded="true"] .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

#menu-toggle[aria-expanded="true"] .menu-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

#menu-toggle[aria-expanded="true"] .menu-line:nth-child(3) {
  width: 1.5rem;
  transform: rotate(-45deg) translate(4px, -4px);
}

/* ========== BUTTONS ========== */
.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  background: linear-gradient(135deg, #F5C842 0%, #D4A843 50%, #B8923A 100%);
  color: #1A0A2E;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(212, 168, 67, 0.2);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(212, 168, 67, 0.3);
  background: linear-gradient(135deg, #F5C842 0%, #E8B82E 50%, #D4A843 100%);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  background: transparent;
  color: #E8DFF2;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 0.5rem;
  border: 1px solid rgba(180, 159, 212, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  border-color: rgba(212, 168, 67, 0.6);
  color: #F5C842;
  background: rgba(212, 168, 67, 0.05);
  transform: translateY(-2px);
}

/* ========== FLOATING CARDS ========== */
.floating-card {
  animation: float 6s ease-in-out infinite;
}

.floating-card--1 {
  animation-delay: 0s;
}

.floating-card--2 {
  animation-delay: -2s;
}

.floating-card--3 {
  animation-delay: -4s;
}

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

/* ========== SCROLL INDICATOR ========== */
.scroll-dot {
  animation: scroll-dot 2s ease-in-out infinite;
}

@keyframes scroll-dot {
  0% { top: 0; opacity: 1; }
  50% { top: 100%; opacity: 0; transform: translateY(-8px); }
  100% { top: 0; opacity: 1; transform: translateY(0); }
}

/* ========== REVEAL ANIMATIONS ========== */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal[data-reveal-delay="1"] { transition-delay: 0.1s; }
.reveal[data-reveal-delay="2"] { transition-delay: 0.2s; }
.reveal[data-reveal-delay="3"] { transition-delay: 0.3s; }

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

/* ========== GOLD LINE ACCENTS ========== */
.gold-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, #D4A843, transparent);
}

/* ========== IMAGE HOVER ========== */
img {
  max-width: 100%;
  height: auto;
}

/* ========== FORM STYLES ========== */
input:focus,
textarea:focus {
  box-shadow: 0 0 0 3px rgba(212, 168, 67, 0.1);
}

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

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

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #4E2D6D, #2A1838);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #633A8A, #3A224F);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .floating-card {
    display: none;
  }

  #hero {
    min-height: auto;
    padding-top: 8rem;
    padding-bottom: 4rem;
  }

  h1 {
    font-size: 2.75rem !important;
    line-height: 1.15 !important;
  }

  .font-display {
    font-weight: 400;
  }
}

@media (max-width: 640px) {
  .max-w-7xl {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}
