/* ==========================================================================
   KEYFRAMES & AMBIENT ANIMATIONS
   ========================================================================== */

@keyframes pulseGlow {
  0%, 100% { opacity: 0.18; transform: scale(1); }
  50% { opacity: 0.32; transform: scale(1.08); }
}

/* Ambient glow background */
.ambient-glow-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.glow-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 1;
}

.glow-blob-sage {
  width: 500px;
  height: 500px;
  background-color: var(--color-sage);
  opacity: 0.22;
  top: -10%;
  left: -10%;
  animation: pulseGlow 12s infinite ease-in-out;
}

.glow-blob-lime {
  width: 450px;
  height: 450px;
  background-color: var(--color-lime);
  opacity: 0.18;
  bottom: -10%;
  right: -10%;
  animation: pulseGlow 10s infinite ease-in-out alternate;
}

.glow-blob-pink {
  width: 400px;
  height: 400px;
  background-color: var(--color-pink);
  opacity: 0.2;
  top: 40%;
  left: 60%;
  animation: pulseGlow 14s infinite ease-in-out;
}

.glow-blob-blue {
  width: 480px;
  height: 480px;
  background-color: var(--color-blue);
  opacity: 0.15;
  top: 30%;
  left: 10%;
  animation: pulseGlow 11s infinite ease-in-out alternate;
}

/* Scroll reveal classes */
.reveal {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

@media (max-width: 900px) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Text Mask Reveal */
.line-mask {
  display: block;
  overflow: hidden;
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
}

.line-reveal {
  display: inline-block;
  transform: translateY(110%);
  animation: lineUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes lineUp {
  0% { transform: translateY(110%); }
  100% { transform: translateY(0%); }
}
