/* ── Custom base styles ── */
html {
  scroll-behavior: smooth;
}

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

/* ── Selection color ── */
::selection {
  background: #FFCAB8;
  color: #1F1F1F;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #F7F7F7;
}
::-webkit-scrollbar-thumb {
  background: #D4D4D4;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #A8A8A8;
}

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

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

/* ── Floating card pulse ── */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ── Nav scroll state ── */
.nav-scrolled {
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  #mobile-menu { animation: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
