/* ── Floating Card Animation ── */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.floating-card {
  animation: float 4s ease-in-out infinite;
}

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

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

/* ── Scroll Reveal (progressive enhancement) ── */
@media (prefers-reduced-motion: no-preference) {
  .scroll-reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  .scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Default visible state for no-JS */
.scroll-reveal {
  opacity: 1;
  transform: translateY(0);
}

/* ── Navbar transition ── */
#navbar.scrolled {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

/* ── Mobile menu transitions ── */
#mobileMenu.open {
  opacity: 1;
  pointer-events: all;
}

/* ── Smooth focus outlines ── */
*:focus-visible {
  outline: 2px solid #0d9488;
  outline-offset: 2px;
}

/* ── Selection color ── */
::selection {
  background: #99f6e4;
  color: #134e4a;
}
