/* ── Base & Utilities ── */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
}

/* ── Floating card animations ── */
.floating-card-1 {
  animation: float1 6s ease-in-out infinite;
}
.floating-card-2 {
  animation: float2 7s ease-in-out infinite;
}
.floating-card-3 {
  animation: float3 5.5s ease-in-out infinite;
}
.floating-card-4 {
  animation: float4 6.5s ease-in-out infinite;
}

@keyframes float1 {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(1deg); }
}
@keyframes float2 {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(-1deg); }
}
@keyframes float3 {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-18px) rotate(1.5deg); }
}
@keyframes float4 {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(-1deg); }
}

/* ── Scroll reveal ── */
.scroll-reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* ── Navbar scroll state ── */
.nav-scrolled {
  background: rgba(253, 242, 255, 0.92) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(123, 45, 142, 0.08), 0 4px 24px rgba(123, 45, 142, 0.06);
}

.nav-scrolled #navbar a:not(.bg-plum-700) {
  color: #5C1F6B !important;
}

/* ── Mobile menu transitions ── */
#mobile-menu {
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Custom scrollbar ── */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #FAE3FF;
}
::-webkit-scrollbar-thumb {
  background: #D96FFF;
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #C048E8;
}

/* ── Selection ── */
::selection {
  background: #F5C6FF;
  color: #3D1348;
}
