/* ===== Liquid Ether – vanilla JS/CSS effect ===== */
.liquid-ether {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.liquid-ether-blob {
  position: absolute;
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  filter: blur(60px);
  opacity: 0.65;
  will-change: transform, border-radius;
  animation: liquidMorph 18s ease-in-out infinite;
}

.liquid-ether-blob:nth-child(1) {
  width: min(80vw, 520px);
  height: min(80vw, 520px);
  background: radial-gradient(circle at 30% 30%, rgba(37, 99, 235, 0.7), rgba(29, 78, 216, 0.35) 45%, transparent 70%);
  top: -20%;
  left: -15%;
  animation-delay: 0s;
}

.liquid-ether-blob:nth-child(2) {
  width: min(70vw, 450px);
  height: min(70vw, 450px);
  background: radial-gradient(circle at 70% 70%, rgba(59, 130, 246, 0.5), rgba(37, 99, 235, 0.25) 45%, transparent 70%);
  bottom: -15%;
  right: -10%;
  animation-delay: -6s;
  animation-duration: 22s;
}

.liquid-ether-blob:nth-child(3) {
  width: min(60vw, 400px);
  height: min(60vw, 400px);
  background: radial-gradient(circle at 50% 50%, rgba(37, 99, 235, 0.45), rgba(29, 78, 216, 0.2) 50%, transparent 65%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -12s;
  animation-duration: 20s;
}

@keyframes liquidMorph {
  0%, 100% {
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  }
  25% {
    border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%;
  }
  50% {
    border-radius: 50% 60% 30% 60% / 50% 60% 40% 50%;
  }
  75% {
    border-radius: 30% 60% 70% 40% / 60% 40% 60% 40%;
  }
}

/* Ether gradient overlay – soft blend (don't darken too much) */
.liquid-ether-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 120% 100% at 50% 30%, transparent 0%, rgba(5, 5, 8, 0.25) 100%);
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .liquid-ether-blob {
    animation: none;
    border-radius: 50%;
  }
}
