/*!*******************************************************************
 * ANIMATIONS.CSS - SoulsInfoTech Dimensional UI Animations
 * 
 * Copyright (c) 2025 Souls InfoTech. All rights reserved.
 * Author: SoulsInfoTech Development Team
 * Website: https://soulsinfotech.com
 * 
 * This software is the proprietary property of Souls InfoTech.
 * Unauthorized copying, modification, distribution, or use of this
 * software, via any medium, is strictly prohibited without prior
 * written permission from Souls InfoTech.
 * 
 * Licensed under proprietary license.
 * For licensing inquiries, contact: info@soulsinfotech.com
 * 
 * Description: Hover effects, 3D transforms, particle effects,
 * and advanced animations for the SoulsInfoTech Dimensional UI.
 * 
 * Version: 1.0.0
 * Last Updated: 2025-11-28
 *******************************************************************!*/

/* ========== 3D FLOATING PANELS ========== */
.panel3d {
    width: 280px;
    height: 180px;
    background: rgba(39, 247, 215, 0.05);
    border: 1px solid rgba(39, 247, 215, 0.2);
    border-radius: 12px;
    margin: 30px;
    padding: 20px;
    transform-style: preserve-3d;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    box-shadow: 0 0 30px rgba(39, 247, 215, 0.15);
    display: inline-block;
}

.panel3d:hover {
    transform: rotateX(15deg) rotateY(-15deg) translateZ(20px);
    box-shadow: 0 0 50px var(--accent);
}

.panel3d h3 {
    margin-top: 0;
    letter-spacing: 2px;
}

/* ========== 3D HYPERCUBE SYSTEM ========== */
.cube-container {
    perspective: 900px;
    width: 240px;
    height: 240px;
    margin: 50px auto;
}

.cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: rotateCube 14s infinite linear;
}

.cube-face {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(39, 247, 215, 0.04);
    border: 2px solid var(--accent);
    box-shadow:
        0 0 12px var(--accent),
        inset 0 0 15px rgba(39, 247, 215, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--accent);
}

/* Cube face positions */
.front {
    transform: translateZ(120px);
}

.back {
    transform: rotateY(180deg) translateZ(120px);
}

.left {
    transform: rotateY(-90deg) translateZ(120px);
}

.right {
    transform: rotateY(90deg) translateZ(120px);
}

.top {
    transform: rotateX(90deg) translateZ(120px);
}

.bottom {
    transform: rotateX(-90deg) translateZ(120px);
}

@keyframes rotateCube {
    from {
        transform: rotateX(0deg) rotateY(0deg);
    }

    to {
        transform: rotateX(360deg) rotateY(360deg);
    }
}

/* ========== QUANTUM DATA NODES ========== */
.node {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent);
    margin: 10px;
    display: inline-block;
    box-shadow: 0 0 15px var(--accent);
    animation: floatNode 2s infinite alternate;
}

@keyframes floatNode {
    0% {
        transform: translateY(0px);
    }

    100% {
        transform: translateY(-15px);
    }
}

/* ========== PARTICLE EFFECTS ========== */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--secondary);
    border-radius: 50%;
    opacity: 0.7;
    animation: moveParticle 8s linear infinite;
}

/* Multi-directional Particle Animations */
@keyframes moveTop {
    0% {
        transform: translateY(110vh) translateX(-50px) scale(0.5);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-10vh) translateX(50px) scale(1);
        opacity: 0;
    }
}

@keyframes moveBottom {
    0% {
        transform: translateY(-10vh) translateX(50px) scale(0.5);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(110vh) translateX(-50px) scale(1);
        opacity: 0;
    }
}

@keyframes moveLeft {
    0% {
        transform: translateX(110vw) translateY(-50px) scale(0.5);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateX(-10vw) translateY(50px) scale(1);
        opacity: 0;
    }
}

@keyframes moveRight {
    0% {
        transform: translateX(-10vw) translateY(50px) scale(0.5);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateX(110vw) translateY(-50px) scale(1);
        opacity: 0;
    }
}

/* ========== PULSE ANIMATIONS ========== */
@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 8px var(--secondary);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 0 20px var(--secondary);
        transform: scale(1.1);
    }
}

@keyframes pulseOverlay {
    0% {
        opacity: 0.15;
    }

    100% {
        opacity: 0.3;
    }
}

/* ========== GLOW EFFECTS ========== */
.glow {
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        box-shadow: 0 0 10px var(--accent);
    }

    to {
        box-shadow: 0 0 30px var(--accent), 0 0 40px var(--accent);
    }
}

/* ========== FADE IN ANIMATION ========== */
.fade-in {
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== SLIDE IN ANIMATION ========== */
.slide-in-left {
    animation: slideInLeft 0.5s ease-out;
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.slide-in-right {
    animation: slideInRight 0.5s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ========== HOLOGRAPHIC SHIMMER ========== */
.shimmer {
    position: relative;
    overflow: hidden;
}

.shimmer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(39, 247, 215, 0.3),
            transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

/* ========== LOADING SPINNER ========== */
.loader {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(39, 247, 215, 0.2);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}