/* Base & Utilities */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

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

/* Navbar scroll state */
#navbar.scrolled {
  background: rgba(254, 252, 247, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(61, 31, 14, 0.08);
}

/* Blob decorations */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: blobFloat 8s ease-in-out infinite;
}

.blob-1 {
  width: 400px;
  height: 400px;
  background: #f3bba8;
  top: 10%;
  left: -5%;
  animation-delay: 0s;
}

.blob-2 {
  width: 300px;
  height: 300px;
  background: #edc96a;
  top: 40%;
  right: -3%;
  animation-delay: -3s;
}

.blob-3 {
  width: 250px;
  height: 250px;
  background: #f9ddd2;
  bottom: 10%;
  left: 30%;
  animation-delay: -5s;
}

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

/* Scroll reveal animations — progressive enhancement */
.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal-up {
    opacity: 0;
    transform: translateY(30px);
  }
  .reveal-left {
    opacity: 0;
    transform: translateX(-30px);
  }
  .reveal-right {
    opacity: 0;
    transform: translateX(30px);
  }
  .reveal-up.visible,
  .reveal-left.visible,
  .reveal-right.visible {
    opacity: 1;
    transform: none;
  }
}

/* Mobile menu */
#mobileMenu.open {
  display: flex;
}

.mobile-link {
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f5e09a;
}

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

/* Smooth focus styles */
input:focus,
textarea:focus,
button:focus {
  outline: none;
}

/* Selection color */
::selection {
  background: #f3bba8;
  color: #3d1f0e;
}
