/* Custom keyframes, glass floats, glows and interactive micro-animations */

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 15px var(--primary-glow);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 25px var(--accent-glow);
        transform: scale(1.03);
    }
}

@keyframes floatElement {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes spinNetwork {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

.animate-pulse-glow {
    animation: pulseGlow 3s infinite ease-in-out;
}

.animate-float {
    animation: floatElement 4s infinite ease-in-out;
}

/* Card hover glow enhancements */
.glass-panel-glow:hover {
    box-shadow: 0 0 25px rgba(0, 114, 187, 0.12), 
                0 0 45px rgba(237, 62, 61, 0.1);
    border-color: rgba(237, 62, 61, 0.3) !important;
}

/* Interactive Network map point pulsing keyframes */
@keyframes mapPulse {
    0% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.25);
        opacity: 1;
        box-shadow: 0 0 20px var(--accent);
    }
    100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
}

.map-pin-pulse {
    animation: mapPulse 2s infinite ease-in-out;
}

/* Card shimmer effect for premium experience */
.shimmer-card {
    position: relative;
    overflow: hidden;
}

.shimmer-card::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    background-image: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.03) 20%,
        rgba(255, 255, 255, 0.08) 60%,
        rgba(255, 255, 255, 0) 100%
    );
    animation: shimmer 2.5s infinite;
    content: '';
}
