*, *::before, *::after {
  box-sizing: border-box;
}

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

body {
  overflow-x: hidden;
}

/* Navbar scroll state */
nav.scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(107, 47, 91, 0.08);
}

nav.scrolled .nav-link {
  color: #6B2F5B;
}

nav.scrolled .nav-link:hover {
  color: #944a94;
}

nav.scrolled .font-serif {
  color: #3a1731;
}

nav.scrolled .font-sans {
  color: #bf91bf;
}

nav.scrolled .w-9 {
  background-color: #6B2F5B;
}

nav.scrolled svg path {
  fill: white;
}

/* Mobile menu */
#mobile-menu {
  animation: slideDown 0.3s ease forwards;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.mobile-link {
  display: block;
  padding: 8px 0;
  border-bottom: 1px solid rgba(107, 47, 91, 0.06);
}

.mobile-link:last-child {
  border-bottom: none;
}

/* Scroll reveal */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
  .hover\:scale-105:hover {
    transform: none;
  }
}

/* Form focus styles */
input:focus, select:focus, textarea:focus {
  outline: none;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f5eff5;
}
::-webkit-scrollbar-thumb {
  background: #d4b5d4;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #bf91bf;
}
