/* Base styles & custom properties */
:root {
  --color-plum-50: #F9F5FC;
  --color-plum-500: #5B2C6F;
  --color-plum-600: #4A2358;
  --color-plum-800: #2D1636;
  --color-plum-900: #1F0F25;
  --color-amber-400: #F0B86E;
  --color-amber-500: #D49A3E;
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

/* Scroll reveal — progressive enhancement */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

/* Reduced motion preference */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
  }
}

/* Navbar scroll state */
#navbar.scrolled {
  background: rgba(31, 15, 37, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.25);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--color-plum-900);
}
::-webkit-scrollbar-thumb {
  background: var(--color-plum-600);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-plum-500);
}

/* Input autofill style */
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 30px white inset !important;
}

/* Selection color */
::selection {
  background: var(--color-plum-500);
  color: #fff;
}
