/* ===== BASE ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; overflow-x: hidden; }

/* ===== NAV SCROLL STATE ===== */
#site-header.scrolled {
  background: rgba(254, 253, 248, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}

/* ===== MOBILE MENU ===== */
#mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
#mobile-menu.open .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}
#mobile-menu.open .menu-line:nth-child(2) {
  opacity: 0;
}
#mobile-menu.open .menu-line:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
  width: 1.25rem;
}

/* ===== HERO BLOBS ===== */
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: blobFloat 8s ease-in-out infinite;
}
.blob-1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #f97066 0%, transparent 70%);
  top: -100px;
  right: -100px;
  animation-delay: 0s;
}
.blob-2 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, #fecaca 0%, transparent 70%);
  bottom: 10%;
  left: 5%;
  animation-delay: -3s;
}
.blob-3 {
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, #fde68a 0%, transparent 70%);
  top: 40%;
  right: 20%;
  animation-delay: -5s;
}

@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* ===== REVEAL ANIMATIONS ===== */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

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

/* ===== BACK TO TOP ===== */
#back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

/* ===== FORM FOCUS STYLES ===== */
input:focus, select:focus, textarea:focus {
  outline: none;
}

/* ===== SELECTION ===== */
::selection {
  background: #f97066;
  color: white;
}
