/* ── Base & Animations ── */
html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

/* ── Hero Blobs ── */
.hero-blob {
  animation: blobFloat 8s ease-in-out infinite;
}

.blob-1 { animation-delay: 0s; }
.blob-2 { animation-delay: -3s; }
.blob-3 { 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, 15px) scale(0.95); }
}

/* ── Floating Fish ── */
.float-slow { animation: floatFish 6s ease-in-out infinite; }
.float-medium { animation: floatFish 4s ease-in-out infinite; animation-delay: -1s; }
.float-fast { animation: floatFish 3s ease-in-out infinite; animation-delay: -2s; }

@keyframes floatFish {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50% { transform: translateY(-15px) rotate(5deg); }
}

/* ── Fade In Up ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in-up {
  animation: fadeInUp 0.7s ease-out forwards;
  opacity: 0;
}

.animation-delay-200 { animation-delay: 200ms; }
.animation-delay-400 { animation-delay: 400ms; }
.animation-delay-600 { animation-delay: 600ms; }

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ── Scroll Gallery ── */
@keyframes scrollGallery {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.animate-scroll {
  animation: scrollGallery 30s linear infinite;
}

.animate-scroll:hover {
  animation-play-state: paused;
}

/* ── Navbar ── */
#navbar {
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
  background: rgba(253, 251, 245, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(192, 96, 58, 0.08);
}

/* ── Mobile Menu ── */
#mobileMenu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-link {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

#mobileMenu.open .mobile-link {
  opacity: 1;
  transform: translateY(0);
}

#mobileMenu.open .mobile-link:nth-child(1) { transition-delay: 100ms; }
#mobileMenu.open .mobile-link:nth-child(2) { transition-delay: 150ms; }
#mobileMenu.open .mobile-link:nth-child(3) { transition-delay: 200ms; }
#mobileMenu.open .mobile-link:nth-child(4) { transition-delay: 250ms; }
#mobileMenu.open .mobile-link:nth-child(5) { transition-delay: 300ms; }

/* ── Menu Lines ── */
#menuBtn.open .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}
#menuBtn.open .menu-line:nth-child(2) {
  opacity: 0;
}
#menuBtn.open .menu-line:nth-child(3) {
  width: 6px;
  transform: rotate(-45deg) translate(4px, -4px);
}

/* ── Custom Scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #fdfbf7; }
::-webkit-scrollbar-thumb { background: #e2c78e; border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: #c0603a; }
