/* Glass theme extras — works with Tailwind */
html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@keyframes mesh-shift {
  0%,
  100% {
    opacity: 1;
    transform: scale(1) translate(0, 0);
  }
  50% {
    opacity: 0.85;
    transform: scale(1.05) translate(-2%, 2%);
  }
}

@keyframes float-soft {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-12px) scale(1.02);
  }
}

.hero-gradient-mesh {
  background: linear-gradient(
      135deg,
      rgba(167, 243, 208, 0.35) 0%,
      rgba(236, 253, 245, 0.9) 42%,
      rgba(255, 255, 255, 0.95) 58%,
      rgba(167, 243, 208, 0.25) 100%
    ),
    linear-gradient(225deg, rgba(6, 95, 70, 0.06), transparent 45%);
  background-size: 200% 200%;
  animation: mesh-shift 14s ease-in-out infinite;
}

.hero-blob {
  animation: float-soft 8s ease-in-out infinite;
}

.hero-blob-delay {
  animation-delay: -4s;
}

/* Modal */
#modalOverlay {
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.35s;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#modalOverlay.modal-open {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.cm-star.on {
  filter: grayscale(0);
  opacity: 1;
}

/* Toast */
#toast.toast-show {
  display: block;
  animation: toast-in 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Lang menu open state */
.lang-menu-open {
  display: flex !important;
}
