/* ===== BASE & RESET ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select, button { font-family: inherit; }

/* ===== FLOATING ANIMATIONS ===== */
@keyframes floatSlow {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}
@keyframes floatMedium {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}
@keyframes floatFast {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-16px); }
}
.float-slow { animation: floatSlow 5s ease-in-out infinite; }
.float-medium { animation: floatMedium 4s ease-in-out infinite; }
.float-fast { animation: floatFast 3.5s ease-in-out infinite; }

/* ===== HEADER SCROLL STATE ===== */
#header {
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}
#header.scrolled {
  background: rgba(255, 251, 245, 0.92);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 20px rgba(91, 44, 111, 0.08);
}
#header.scrolled .nav-link { color: #5B2C6F; }
#header.scrolled .nav-link:hover { background: rgba(91, 44, 111, 0.08); }
#header.scrolled .font-serif { color: #3B0764; }
#header.scrolled .text-plum-600 { color: #7E22CE; }

/* ===== NAV LINKS ===== */
.nav-link {
  position: relative;
  color: rgba(255,255,255,0.85);
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover {
  color: #fff;
  background: rgba(255,255,255,0.1);
}

/* ===== MOBILE MENU ===== */
.mobile-link {
  transition: background 0.2s, padding-left 0.2s;
}
.mobile-link:hover {
  padding-left: 0.75rem;
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s 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; }

/* ===== PRODUCT CARDS ===== */
.group:hover .group-hover\:scale-110 {
  transform: scale(1.1);
}

/* ===== FORM INPUTS ===== */
input:focus, textarea:focus {
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.2);
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #FAF5FF; }
::-webkit-scrollbar-thumb { background: #D8B4FE; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #C084FC; }

/* ===== SELECTION ===== */
::selection { background: rgba(168, 85, 247, 0.2); color: #3B0764; }

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
  .font-serif { line-height: 1.15; }
}
