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

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

body {
  min-height: 100vh;
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }

/* Header scroll state */
#header.scrolled {
  background: rgba(249, 245, 252, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(91, 44, 111, 0.08);
  box-shadow: 0 1px 20px rgba(91, 44, 111, 0.06);
}

/* Nav links */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #F5B041;
  transition: width 0.25s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Mobile link */
.mobile-link {
  display: block;
  border-bottom: 1px solid rgba(91, 44, 111, 0.08);
}

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

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

::-webkit-scrollbar-track {
  background: #F9F5FC;
}

::-webkit-scrollbar-thumb {
  background: #D4B5EC;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #BA8DDF;
}

/* Selection */
::selection {
  background: #D4B5EC;
  color: #3D1645;
}

/* Header height */
#header {
  height: 72px;
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #F5B041;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Image loading placeholder */
img {
  background: linear-gradient(135deg, #E8D7F5 0%, #FFF3D6 100%);
}
