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

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

body {
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
}

/* ===== REVEAL ANIMATIONS (progressive enhancement) ===== */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .reveal[data-revealed="false"] {
    opacity: 0;
    transform: translateY(24px);
  }
}

/* Fallback: always visible if JS is disabled */
.reveal {
  opacity: 1;
  transform: none;
}

/* ===== MOBILE NAV ===== */
#mobileMenu.open .nav-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
#mobileMenu.open .nav-line:nth-child(2) {
  opacity: 0;
}
#mobileMenu.open .nav-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
  width: 1.25rem;
}

/* ===== SUBTLE HERO BLOB ANIMATION ===== */
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(12px, -18px) scale(1.04); }
  66% { transform: translate(-8px, 10px) scale(0.97); }
}

#hero .absolute.rounded-full {
  animation: float 12s ease-in-out infinite;
}

#hero > div:first-child > div:nth-child(3) {
  animation-delay: -4s;
}

/* ===== FOCUS STYLES ===== */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid #a855f7;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ===== SELECTION ===== */
::selection {
  background-color: #e9d5ff;
  color: #581c87;
}
