/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; -webkit-font-smoothing: antialiased; }

/* ── Reveal on scroll (progressive enhancement) ── */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
  }
  .reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Custom scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #1A1A2E; }
::-webkit-scrollbar-thumb { background: #3D3D5C; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #E8645A; }

/* ── Selection ── */
::selection { background: #E8645A; color: #1A1A2E; }

/* ── Focus ── */
:focus-visible { outline: 2px solid #E8645A; outline-offset: 2px; }

/* ── Mobile menu animation ── */
#mobileMenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
#mobileMenu.open {
  max-height: 300px;
}

/* ── Smooth anchor offset ── */
section[id] { scroll-margin-top: 80px; }

/* ── Image loading placeholder ── */
img { background-color: #2D2D44; }
