/**
 * Android App Storm Effect Styles
 */

/* Animación de explosión inicial para el ícono Android */
@keyframes androidExplosion {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 0 20px #3DDC84);
    }
    50% {
        transform: scale(2) rotate(180deg);
        filter: drop-shadow(0 0 50px #3DDC84) drop-shadow(0 0 80px #00ff00);
    }
    100% {
        transform: scale(1.5);
        filter: drop-shadow(0 0 30px #3DDC84) drop-shadow(0 0 60px #3DDC84);
    }
}

/* Animación de pulso continuo para el ícono Android */
@keyframes androidPulse {
    0%, 100% {
        transform: scale(1.5);
        filter: drop-shadow(0 0 30px #3DDC84) drop-shadow(0 0 60px #3DDC84);
    }
    50% {
        transform: scale(1.7);
        filter: drop-shadow(0 0 40px #3DDC84) drop-shadow(0 0 80px #3DDC84) drop-shadow(0 0 100px #00ff00);
    }
}

/* Contenedor del efecto Android */
.service-icon-box[data-service="android"].active-effect {
    position: relative;
    overflow: visible;
}

/* Canvas del efecto App Storm */
.android-app-storm-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 6;
    border-radius: 0;
}

/* Efecto de resplandor intenso para el contenedor activo */
.service-icon-box[data-service="android"].active-effect::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: radial-gradient(
        circle at center,
        rgba(61, 220, 132, 0.8) 0%,
        rgba(0, 255, 0, 0.4) 30%,
        rgba(61, 220, 132, 0.2) 50%,
        transparent 70%
    );
    border-radius: 50%;
    z-index: -2;
    animation: androidExplosiveGlow 1s ease-out infinite;
}

/* Animación del resplandor explosivo */
@keyframes androidExplosiveGlow {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(2);
    }
    100% {
        opacity: 0.6;
        transform: scale(1.5);
    }
}

/* Efecto adicional de ondas de choque */
.service-icon-box[data-service="android"].active-effect::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    transform: translate(-50%, -50%);
    border: 3px solid rgba(0, 255, 0, 0.6);
    border-radius: 50%;
    z-index: -3;
    animation: androidShockWaves 2s ease-out infinite;
}

/* Animación de ondas de choque */
@keyframes androidShockWaves {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 1;
        border-width: 3px;
    }
    100% {
        transform: translate(-50%, -50%) scale(3);
        opacity: 0;
        border-width: 0px;
    }
}

/* Estilo especial para el ícono cuando está activo */
.service-icon-box[data-service="android"].active-effect i {
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

/* Efecto de datos flotantes adicional */
.service-icon-box[data-service="android"].active-effect .android-data-stream {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #3DDC84;
    border-radius: 50%;
    opacity: 0;
    animation: androidDataFlow 2s ease-in-out infinite;
}

@keyframes androidDataFlow {
    0% {
        opacity: 0;
        transform: translateY(0) scale(0);
    }
    50% {
        opacity: 1;
        transform: translateY(-20px) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-40px) scale(0);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .service-icon-box[data-service="android"].active-effect::before {
        top: -5px;
        left: -5px;
        right: -5px;
        bottom: -5px;
    }
    
    .service-icon-box[data-service="android"].active-effect::after {
        width: 120%;
        height: 120%;
    }
}

/* Animación de rotación continua para Play Store */
@keyframes playStoreRotation {
    0% {
        transform: scale(1.5) rotate(0deg);
    }
    100% {
        transform: scale(1.5) rotate(360deg);
    }
}

/* Mejora de rendimiento */
.android-neural-canvas,
.service-icon-box[data-service="android"].active-effect::before,
.service-icon-box[data-service="android"].active-effect::after {
    will-change: transform, opacity;
    backface-visibility: hidden;
}