/* ===== RESET & 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; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }

/* ===== NAV ===== */
.nav-link { position: relative; }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #E8A838;
  transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }

#nav.scrolled {
  background: rgba(255,255,255,0.92);
  backdrop-blur-xl;
  box-shadow: 0 1px 20px rgba(107,63,160,0.08);
}
#nav.scrolled .font-display { color: #361F54; }

/* ===== MOBILE MENU ===== */
#mobile-menu {
  animation: slideDown 0.3s ease;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
.mobile-link { display: block; }

/* ===== REVEAL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }

/* ===== FLOAT ANIMATIONS ===== */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}
@keyframes floatDelay {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
}
.animate-float { animation: float 6s ease-in-out infinite; }
.animate-float-delay { animation: floatDelay 5s ease-in-out infinite 1s; }

/* ===== SCROLL LINE ===== */
@keyframes scrollLine {
  0% { opacity: 0; transform: scaleY(0); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { opacity: 0; transform: scaleY(0); transform-origin: bottom; }
}
.animate-scroll-line {
  animation: scrollLine 2s ease-in-out infinite;
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #F5F0FA; }
::-webkit-scrollbar-thumb { background: #D4C0E0; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #B895CC; }

/* ===== SELECTION ===== */
::selection { background: #D4C0E0; color: #361F54; }

/* ===== RESPONSIVE ===== */
@media (max-width: 767px) {
  .font-display { font-size: 2rem; }
  #top h1 { font-size: 2.5rem; }
}
