/* ── Base & Utilities ── */
html { scroll-behavior: smooth; }

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: #7e22ce;
  color: #fff;
}

/* ── Floating Cards Animation ── */
.floating-card {
  animation: float 6s ease-in-out infinite;
}

.floating-card:nth-child(2) {
  animation-delay: -2s;
}

.floating-card:nth-child(3) {
  animation-delay: -4s;
}

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

/* ── Mobile Menu ── */
.mobile-link {
  transition: color 0.2s ease;
}

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  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);
}

/* ── Menu Hover ── */
#menu .space-y-4 > div:hover .text-plum-800 {
  color: #7e22ce;
  transition: color 0.2s ease;
}

/* ── Gallery Images ── */
#gallery img {
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Focus States ── */
input:focus, textarea:focus {
  outline: none;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .floating-card {
    display: none;
  }
}
