/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }

/* ── Scroll animations ── */
.scroll-animate {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .scroll-animate.is-hidden {
    opacity: 0;
    transform: translateY(24px);
  }
  .scroll-animate.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Gallery scroll ── */
@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;
}

/* ── Navbar blur on scroll ── */
.navbar-scrolled {
  background: rgba(6, 11, 24, 0.92) !important;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
  box-shadow: 0 1px 0 rgba(148, 163, 184, 0.05);
}

/* ── Custom scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #060b18; }
::-webkit-scrollbar-thumb { background: #1e293b; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #334155; }

/* ── Selection ── */
::selection { background: rgba(20, 184, 166, 0.3); color: #f1f5f9; }
