/* Custom styles — overrides and enhancements beyond Tailwind */

:root {
  --color-plum-50: #faf0f8;
  --color-plum-100: #f5e0f0;
  --color-plum-200: #ebbfd9;
  --color-plum-500: #a64478;
  --color-plum-600: #8c3362;
  --color-plum-700: #732751;
  --color-plum-800: #5f2143;
  --color-plum-900: #501d39;
  --color-plum-950: #2a0d1c;
  --color-amber-300: #fcd34d;
  --color-amber-400: #fbbf24;
  --color-amber-500: #f59e0b;
}

* {
  scroll-behavior: smooth;
}

html {
  scroll-padding-top: 80px;
}

body {
  overflow-x: hidden;
}

/* Scroll reveal base — always visible, JS adds animation */
.scroll-reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }

  .scroll-reveal:not(.revealed) {
    opacity: 0;
    transform: translateY(24px);
  }
}

/* Navbar scroll state */
nav.scrolled {
  background: rgba(250, 240, 248, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(140, 51, 98, 0.08);
}

/* Mobile menu animation */
.menu-line {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

#menu-btn.active .menu-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

#menu-btn.active .menu-line:nth-child(2) {
  opacity: 0;
}

#menu-btn.active .menu-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
  width: 1.25rem;
  margin-right: 0;
}

/* Selection color */
::selection {
  background: rgba(140, 51, 98, 0.15);
  color: var(--color-plum-900);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-plum-50);
}

::-webkit-scrollbar-thumb {
  background: var(--color-plum-200);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-plum-300);
}

/* Focus visible */
:focus-visible {
  outline: 2px solid var(--color-plum-500);
  outline-offset: 2px;
}

/* Select styling */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%238c3362' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}
