/* =====================================================
   CURSOR WAVES - Animated ripple effect for clickable elements
   ===================================================== */

/* Hide waves on mobile and when reduced motion is preferred */
@media (max-width: 1024px),
(prefers-reduced-motion: reduce) {
    .cursor-wave-container {
        display: none !important;
    }
}

/* Wave container - follows cursor */
.cursor-wave-container {
    position: fixed;
    pointer-events: none;
    z-index: 99999;
    width: 0;
    height: 0;
}

/* Individual wave ripple */
.cursor-wave {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.6);
    background: transparent;
    transform: translate(-50%, -50%) scale(0);
    opacity: 1;
    pointer-events: none;
    /* Position at cursor point */
    top: 0;
    left: 0;
}

/* Wave animation */
.cursor-wave.animate {
    animation: waveRipple 0.8s ease-out forwards;
}

@keyframes waveRipple {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0.8;
    }

    50% {
        opacity: 0.4;
    }

    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0;
    }
}

/* Wave sizes for variety */
.cursor-wave.wave-sm {
    width: 24px;
    height: 24px;
}

.cursor-wave.wave-md {
    width: 36px;
    height: 36px;
    animation-delay: 0.1s;
}

.cursor-wave.wave-lg {
    width: 48px;
    height: 48px;
    animation-delay: 0.2s;
}

/* Optional: colored waves for brand effect */
.cursor-wave.wave-accent {
    border-color: rgba(59, 130, 246, 0.5);
}