/* ── Base & Utilities ── */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
}

::selection {
  background: rgba(147, 51, 234, 0.15);
  color: #581c87;
}

/* ── Scroll Reveal (progressive enhancement) ── */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 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; }
}

/* ── Gallery Scroll Animation ── */
@keyframes scroll-gallery {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.animate-scroll {
  display: flex;
  gap: 1rem;
  animation: scroll-gallery 30s linear infinite;
  width: max-content;
}

.animate-scroll:hover {
  animation-play-state: paused;
}

/* ── Mobile Menu ── */
.mobile-link {
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(168, 85, 247, 0.1);
}

.mobile-link:last-child {
  border-bottom: none;
}

/* ── Thin scrollbar for webkit ── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #faf5ff;
}

::-webkit-scrollbar-thumb {
  background: #c084fc;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #9333ea;
}
