/* ── Base & Utilities ── */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
}

::selection {
  background: #99f6e4;
  color: #042f2e;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

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

#navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

#navbar.scrolled .nav-logo-text {
  color: #1e293b;
}

#navbar.scrolled .nav-link {
  color: #475569;
}

#navbar.scrolled .nav-link:hover {
  color: #0d9488;
}

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

.blob-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #0f766e 0%, transparent 70%);
  top: -10%;
  right: -5%;
  animation-delay: 0s;
}

.blob-2 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, #134e4a 0%, transparent 70%);
  bottom: 5%;
  left: 5%;
  animation-delay: -3s;
}

.blob-3 {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, #5eead4 0%, transparent 70%);
  top: 40%;
  right: 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 ── */
.scroll-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);
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Reduced motion: disable transitions */
@media (prefers-reduced-motion: reduce) {
  .scroll-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
  .blob {
    animation: none;
  }
  .group-hover\:scale-105:hover img {
    transform: none;
  }
}

/* ── Mobile Menu Transitions ── */
#mobileMenu {
  transition: max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
}

#mobileMenu.open {
  max-height: 500px;
  opacity: 1;
}

#mobileMenu.closed {
  max-height: 0;
  opacity: 0;
}

/* ── Custom Scrollbar ── */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}

/* ── Focus Styles ── */
:focus-visible {
  outline: 2px solid #14b8a6;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ── Responsive Adjustments ── */
@media (max-width: 767px) {
  #hero {
    min-height: auto;
    padding-top: 8rem;
    padding-bottom: 4rem;
  }
}
