
.cursor-glow-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.cursor-glow,
.cursor-glow-bubble {
  position: absolute;
  top: 0;
  left: 0;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  filter: blur(25px);
  pointer-events: none;
  mix-blend-mode: lighten;
}

.cursor-glow {
  background: radial-gradient(
    circle at center,
    #31aaec 0%,
    rgba(49, 170, 236, 0.6) 40%,
    rgba(49, 170, 236, 0.3) 70%,
    rgba(49, 170, 236, 0) 100%
  );
  opacity: 0;
  will-change: transform;
  transition: opacity 0.3s ease;
}

.cursor-glow.is-visible {
  opacity: 0.6;
}

.cursor-glow-bubble {
  background: radial-gradient(
    circle at center,
    #31aaec 0%,
    rgba(49, 170, 236, 0.5) 50%,
    rgba(49, 170, 236, 0) 100%
  );
  animation: cursor-glow-bubble-fade 0.8s ease-out forwards;
}

@keyframes cursor-glow-bubble-fade {
  from {
    opacity: 0.5;
    transform: translate(-50%, -50%) scale(0.6);
  }
  to {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cursor-glow,
  .cursor-glow-bubble {
    display: none;
  }
}
