/* 3D Cube Styles */
#skills-cube {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 180px;
    height: 180px;
    z-index: 1000;
    cursor: pointer;
    filter: drop-shadow(0 0 20px var(--primary-color));
    transition: all 0.3s ease;
}

#skills-cube:hover {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 0 30px var(--primary-color));
}

/* Cube face canvas styling */
#skills-cube canvas {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 15px;
    box-shadow: 0 0 30px rgba(0, 255, 157, 0.3);
}

/* 3D Container */
.cube-container {
    perspective: 1000px;
    perspective-origin: 50% 50%;
}

/* Cube animation keyframes */
@keyframes rotateCube {
    0% {
        transform: rotateX(0deg) rotateY(0deg);
    }
    100% {
        transform: rotateX(360deg) rotateY(360deg);
    }
}

/* Cube loading state */
#skills-cube.loading::before {
    content: '🔄';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: var(--primary-color);
    animation: spin 1s linear infinite;
    z-index: 1001;
}

/* Responsive cube */
@media (max-width: 768px) {
    #skills-cube {
        width: 120px;
        height: 120px;
        bottom: 80px;
        right: 15px;
    }
}

/* Cube hover effect */
#skills-cube::after {
    content: '🔮 SKILLS';
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--card-bg);
    color: var(--primary-color);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    border: 1px solid var(--primary-color);
    opacity: 0;
    transition: opacity 0.3s ease;
    white-space: nowrap;
    pointer-events: none;
}

#skills-cube:hover::after {
    opacity: 1;
}

/* Cube face text styling */
.cube-face {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--dark-bg), var(--card-bg));
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-size: 1.2rem;
    text-align: center;
    word-wrap: break-word;
    padding: 0.5rem;
}

/* Cube glow effect */
.cube-glow {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: radial-gradient(circle at center, var(--primary-color) 0%, transparent 70%);
    opacity: 0.2;
    filter: blur(20px);
    z-index: -1;
    animation: glowPulse 3s infinite;
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 0.2;
        transform: scale(1);
    }
    50% {
        opacity: 0.4;
        transform: scale(1.1);
    }
}

/* Cube container for 3D transforms */
.scene {
    width: 200px;
    height: 200px;
    perspective: 600px;
}

.cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.5s;
}

.cube__face {
    position: absolute;
    width: 200px;
    height: 200px;
    border: 2px solid var(--primary-color);
    background: linear-gradient(135deg, rgba(0,255,157,0.1), rgba(112,0,255,0.1));
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.5rem;
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--primary-color);
    box-shadow: 0 0 20px rgba(0,255,157,0.2);
}

.cube__face--front  { transform: rotateY(0deg) translateZ(100px); }
.cube__face--right  { transform: rotateY(90deg) translateZ(100px); }
.cube__face--back   { transform: rotateY(180deg) translateZ(100px); }
.cube__face--left   { transform: rotateY(-90deg) translateZ(100px); }
.cube__face--top    { transform: rotateX(90deg) translateZ(100px); }
.cube__face--bottom { transform: rotateX(-90deg) translateZ(100px); }