/* ===== Scroll Reveal (progressive enhancement) ===== */
@media (prefers-reduced-motion: no-preference) {
  .scroll-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);
  }
  .scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Navbar transition ===== */
#navbar.scrolled {
  background: rgba(254, 253, 251, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(148, 31, 54, 0.08), 0 8px 32px rgba(148, 31, 54, 0.06);
}

/* ===== Smooth scrolling ===== */
html {
  scroll-behavior: smooth;
}

/* ===== Selection color ===== */
::selection {
  background: rgba(148, 31, 54, 0.15);
  color: #65192d;
}

/* ===== Custom scrollbar ===== */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #fdf2f4;
}
::-webkit-scrollbar-thumb {
  background: #f4a3b8;
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #ec6b8e;
}

/* ===== Focus visible ===== */
*:focus-visible {
  outline: 2px solid #941f36;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ===== Subtle gradient text utility ===== */
.gradient-text {
  background: linear-gradient(135deg, #941f36, #d44566);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  .scroll-reveal {
    opacity: 1;
    transform: none;
  }
  html {
    scroll-behavior: auto;
  }
  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
