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

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

body {
  overflow-x: hidden;
}

::selection {
  background: rgba(212, 160, 23, 0.3);
  color: #f5f0f7;
}

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

#navbar.scrolled {
  background: rgba(8, 6, 11, 0.92);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(212, 160, 23, 0.1);
}

/* ===== MOBILE MENU ===== */
#mobileMenu {
  max-height: 0;
}

#mobileMenu.open {
  max-height: 400px;
}

.mobile-link {
  display: block;
  padding: 0.5rem 0;
}

/* ===== FLOATING CARDS ===== */
.floating-card {
  animation: float var(--float-dur, 4s) ease-in-out infinite;
}

.floating-card:nth-child(1) { --float-dur: 4s; animation-delay: 0s; }
.floating-card:nth-child(2) { --float-dur: 5s; animation-delay: -1s; }
.floating-card:nth-child(3) { --float-dur: 4.5s; animation-delay: -2s; }
.floating-card:nth-child(4) { --float-dur: 5.5s; animation-delay: -0.5s; }

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

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .floating-card {
    animation: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ===== FORM ===== */
select option {
  background: #1e1124;
  color: #d6c4e0;
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #08060b;
}
::-webkit-scrollbar-thumb {
  background: #442b4f;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #663d74;
}
