/* ===== BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { overflow-x: hidden; }
img { max-width: 100%; height: auto; }

/* ===== NAV ===== */
#nav { transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease; }
#nav.scrolled {
  background: rgba(255, 251, 245, 0.95);
  backdrop-blur-lg;
  box-shadow: 0 1px 20px rgba(123, 45, 91, 0.08);
}
.nav-link { position: relative; }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #D4A017;
  transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }

/* Mobile menu */
#mobileMenu.open { opacity: 1 !important; pointer-events: all !important; }
#mobileMenu.closed { opacity: 0 !important; pointer-events: none !important; }
.mobile-link { transition: color 0.3s ease, transform 0.3s ease; }
.mobile-link:hover { transform: translateY(-2px); }

/* Hamburger animation */
.menu-line { transition: all 0.3s ease; }
#menuBtn.active .menu-line:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
#menuBtn.active .menu-line:nth-child(2) { opacity: 0; }
#menuBtn.active .menu-line:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); width: 1.5rem; }

/* ===== FLOATING CARDS ===== */
@keyframes floatSlow {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}
@keyframes floatMedium {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-18px); }
}
@keyframes floatFast {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-24px); }
}
.animate-float-slow { animation: floatSlow 6s ease-in-out infinite; }
.animate-float-medium { animation: floatMedium 4.5s ease-in-out infinite; }
.animate-float-fast { animation: floatFast 3.5s ease-in-out infinite; }

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #fef3c7; }
::-webkit-scrollbar-thumb { background: #7B2D5B; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #5c1f44; }

/* ===== SELECTION ===== */
::selection { background: #fbcfe8; color: #3d132d; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .font-serif { font-size: clamp(1.75rem, 5vw, 2.5rem); }
}
