.cube-container {
    perspective: 1000px;
    width: 350px;
    height: 350px;
    margin: 0 auto;
    position: relative;
}

.cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: rotateCube 20s infinite linear;
}

@keyframes rotateCube {
    0% {
        transform: rotateX(0deg) rotateY(0deg);
    }
    100% {
        transform: rotateX(360deg) rotateY(360deg);
    }
}

.cube-face {
    position: absolute;
    width: 250px;
    height: 250px;
    border: 3px solid;
    border-image: linear-gradient(135deg, #3b82f6, #8b5cf6, #ec4899, #3b82f6) 1;
    background: rgba(15, 23, 42, 0.15);
    backdrop-filter: blur(10px);
    animation: edgeGlow 3s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes edgeGlow {
    0%, 100% {
        box-shadow: 
            0 0 25px rgba(59, 130, 246, 0.5),
            inset 0 0 25px rgba(59, 130, 246, 0.15),
            0 0 50px rgba(139, 92, 246, 0.3);
        filter: brightness(1);
    }
    50% {
        box-shadow: 
            0 0 45px rgba(139, 92, 246, 0.7),
            inset 0 0 35px rgba(139, 92, 246, 0.25),
            0 0 70px rgba(236, 72, 153, 0.4);
        filter: brightness(1.2);
    }
}

.cube-face.front {
    animation: edgeGlow 3s ease-in-out infinite, expandFront 4s ease-in-out infinite;
}

.cube-face.back {
    animation: edgeGlow 3s ease-in-out infinite, expandBack 4s ease-in-out infinite;
}

.cube-face.right {
    animation: edgeGlow 3s ease-in-out infinite, expandRight 4s ease-in-out infinite;
}

.cube-face.left {
    animation: edgeGlow 3s ease-in-out infinite, expandLeft 4s ease-in-out infinite;
}

.cube-face.top {
    animation: edgeGlow 3s ease-in-out infinite, expandTop 4s ease-in-out infinite;
}

.cube-face.bottom {
    animation: edgeGlow 3s ease-in-out infinite, expandBottom 4s ease-in-out infinite;
}

/* Individual face expansion animations */
@keyframes expandFront {
    0%, 100% {
        transform: translateZ(125px);
    }
    50% {
        transform: translateZ(160px);
    }
}

@keyframes expandBack {
    0%, 100% {
        transform: rotateY(180deg) translateZ(125px);
    }
    50% {
        transform: rotateY(180deg) translateZ(160px);
    }
}

@keyframes expandRight {
    0%, 100% {
        transform: rotateY(90deg) translateZ(125px);
    }
    50% {
        transform: rotateY(90deg) translateZ(160px);
    }
}

@keyframes expandLeft {
    0%, 100% {
        transform: rotateY(-90deg) translateZ(125px);
    }
    50% {
        transform: rotateY(-90deg) translateZ(160px);
    }
}

@keyframes expandTop {
    0%, 100% {
        transform: rotateX(90deg) translateZ(125px);
    }
    50% {
        transform: rotateX(90deg) translateZ(160px);
    }
}

@keyframes expandBottom {
    0%, 100% {
        transform: rotateX(-90deg) translateZ(125px);
    }
    50% {
        transform: rotateX(-90deg) translateZ(160px);
    }
}

/* Face Icons */
.face-icon {
    width: 80px;
    height: 80px;
    opacity: 0.8;
    animation: iconPulse 3s ease-in-out infinite;
}

.face-icon svg {
    width: 100%;
    height: 100%;
    stroke: url(#iconGradient);
    filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.6));
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

/* Gradient for icons */
.cube-face::before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
}

.cube-face svg {
    stroke: #3b82f6;
    animation: colorShift 4s ease-in-out infinite;
}

@keyframes colorShift {
    0%, 100% {
        stroke: #3b82f6;
        filter: drop-shadow(0 0 15px rgba(59, 130, 246, 0.8));
    }
    33% {
        stroke: #8b5cf6;
        filter: drop-shadow(0 0 15px rgba(139, 92, 246, 0.8));
    }
    66% {
        stroke: #ec4899;
        filter: drop-shadow(0 0 15px rgba(236, 72, 153, 0.8));
    }
}

/* Responsive sizing */
@media (max-width: 768px) {
    .cube-container {
        width: 280px;
        height: 280px;
    }
    
    .cube-face {
        width: 200px;
        height: 200px;
    }
    
    .face-icon {
        width: 60px;
        height: 60px;
    }
    
    .cube-face.front {
        animation: edgeGlow 3s ease-in-out infinite, expandFrontMobile 4s ease-in-out infinite;
    }
    
    .cube-face.back {
        animation: edgeGlow 3s ease-in-out infinite, expandBackMobile 4s ease-in-out infinite;
    }
    
    .cube-face.right {
        animation: edgeGlow 3s ease-in-out infinite, expandRightMobile 4s ease-in-out infinite;
    }
    
    .cube-face.left {
        animation: edgeGlow 3s ease-in-out infinite, expandLeftMobile 4s ease-in-out infinite;
    }
    
    .cube-face.top {
        animation: edgeGlow 3s ease-in-out infinite, expandTopMobile 4s ease-in-out infinite;
    }
    
    .cube-face.bottom {
        animation: edgeGlow 3s ease-in-out infinite, expandBottomMobile 4s ease-in-out infinite;
    }
    
    @keyframes expandFrontMobile {
        0%, 100% { transform: translateZ(100px); }
        50% { transform: translateZ(130px); }
    }
    
    @keyframes expandBackMobile {
        0%, 100% { transform: rotateY(180deg) translateZ(100px); }
        50% { transform: rotateY(180deg) translateZ(130px); }
    }
    
    @keyframes expandRightMobile {
        0%, 100% { transform: rotateY(90deg) translateZ(100px); }
        50% { transform: rotateY(90deg) translateZ(130px); }
    }
    
    @keyframes expandLeftMobile {
        0%, 100% { transform: rotateY(-90deg) translateZ(100px); }
        50% { transform: rotateY(-90deg) translateZ(130px); }
    }
    
    @keyframes expandTopMobile {
        0%, 100% { transform: rotateX(90deg) translateZ(100px); }
        50% { transform: rotateX(90deg) translateZ(130px); }
    }
    
    @keyframes expandBottomMobile {
        0%, 100% { transform: rotateX(-90deg) translateZ(100px); }
        50% { transform: rotateX(-90deg) translateZ(130px); }
    }
}


/* -=--------------------------------------------- */




