/**
 * Enhanced Cube Icons
 * Futuristic styling for cube face icons
 */

/* Base icon styling */
.cube-face i {
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    z-index: 5;
    filter: drop-shadow(0 0 8px rgba(108, 99, 255, 0.7));
    transition: all 0.5s ease;
}

/* Icon glow effect */
.cube-face i::before {
    text-shadow: 0 0 15px rgba(108, 99, 255, 0.9);
}

/* Pulsating animation for icons */
@keyframes icon-pulse {
    0% {
        opacity: 0.8;
        transform: scale(0.95);
        filter: drop-shadow(0 0 5px rgba(108, 99, 255, 0.6));
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
        filter: drop-shadow(0 0 12px rgba(108, 99, 255, 0.9));
    }
    100% {
        opacity: 0.8;
        transform: scale(0.95);
        filter: drop-shadow(0 0 5px rgba(108, 99, 255, 0.6));
    }
}

/* Apply animation with different delays to each face */
.cube-face.front i {
    animation: icon-pulse 3s infinite;
    color: rgba(108, 99, 255, 1);
}

.cube-face.back i {
    animation: icon-pulse 3s infinite 0.5s;
    color: rgba(0, 191, 166, 1); 
}

.cube-face.top i {
    animation: icon-pulse 3s infinite 1s;
    color: rgba(255, 94, 132, 0.95);
}

.cube-face.bottom i {
    animation: icon-pulse 3s infinite 1.5s;
    color: rgba(255, 209, 102, 0.95);
}

.cube-face.left i {
    animation: icon-pulse 3s infinite 2s;
    color: rgba(79, 209, 197, 0.95);
}

.cube-face.right i {
    animation: icon-pulse 3s infinite 2.5s;
    color: rgba(159, 122, 234, 0.95);
}

/* Icon background effects */
.cube-face::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(108, 99, 255, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
    opacity: 0.7;
    animation: rotate 8s linear infinite;
}

/* Rotate animation for background effects */
@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Circuit pattern overlay for tech/AI feel */
.cube-face::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(90deg, rgba(108, 99, 255, 0.1) 1px, transparent 1px),
        linear-gradient(rgba(0, 191, 166, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.3;
    z-index: 0;
}

/* Light mode adjustments */
[data-theme="light"] .cube-face i {
    filter: drop-shadow(0 0 8px rgba(108, 99, 255, 0.8));
}

[data-theme="light"] .cube-face::after {
    background: radial-gradient(circle, rgba(108, 99, 255, 0.3) 0%, transparent 70%);
}
