/* ============================================
   THE NEURAL FLUX WEB - Premium Stats
   "Shards, Threads, and Kinetic Motion"
   ============================================ */

.flux-web-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: 180px;
    /* Low profile but slightly more height for motion */
    margin: 40px auto;
    display: flex;
    justify-content: space-around;
    align-items: center;
    perspective: 1200px;
}

/* Glass Shards (Asymmetrical Nodes) */
.flux-shard {
    position: relative;
    width: 250px;
    height: 100px;
    background: rgba(10, 15, 25, 0.4);
    backdrop-filter: blur(15px) saturate(2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    clip-path: polygon(10% 0, 100% 0, 90% 100%, 0% 100%);
    display: flex;
    align-items: center;
    padding: 0 30px;
    transition: transform 0.2s, opacity 0.2s, background-color 0.2s, border-color 0.2s;
    animation: shardFloat 6s ease-in-out infinite;
    cursor: pointer;
    transform-style: preserve-3d;
}

.shard-cyan {
    --flux-accent: #2b50bc;
    --flux-accent-rgb: 43, 202, 255;
    animation-delay: 0s;
}

.shard-purple {
    --flux-accent: #a855f7;
    --flux-accent-rgb: 168, 85, 247;
    animation-delay: -2s;
    clip-path: polygon(0 0, 90% 0, 100% 100%, 10% 100%);
}

.shard-pink {
    --flux-accent: #a78bfa;
    --flux-accent-rgb: 236, 72, 153;
    animation-delay: -4s;
}

@keyframes shardFloat {

    0%,
    100% {
        transform: translateY(0) rotateX(0) rotateY(0);
    }

    50% {
        transform: translateY(-15px) rotateX(5deg) rotateY(-5deg);
    }
}

/* Neural Threads (Holographic Energy Lines) */
.flux-shard::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(var(--flux-accent-rgb), 0.1) 50%,
            transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.flux-shard:hover {
    flex: 0 0 300px;
    background: rgba(var(--flux-accent-rgb), 0.1);
    border-color: rgba(var(--flux-accent-rgb), 0.4);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), 0 0 10px rgba(34, 211, 238, 0.08)
}

.flux-shard:hover::after {
    opacity: 1;
}

/* Data Content */
.flux-content {
    display: flex;
    flex-direction: column;
    z-index: 10;
}

.flux-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.2rem;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 0 15px rgba(var(--flux-accent-rgb), 0.6);
    line-height: 1;
}

.flux-label {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 600;
    margin-top: 5px;
}

/* Kinetic Energy Shards (SVG Decoration) */
.flux-energy-svg {
    position: absolute;
    top: 50%;
    right: -20px;
    width: 60px;
    height: 60px;
    opacity: 0.4;
    transform: translateY(-50%);
    color: var(--flux-accent);
    filter: drop-shadow(0 0 8px var(--flux-accent));
    animation: energyPulse 3s infinite alternate;
}

@keyframes energyPulse {
    from {
        opacity: 0.4;
        transform: translateY(-50%) scale(1);
    }

    to {
        opacity: 0.8;
        transform: translateY(-50%) scale(1.2);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .flux-web-container {
        flex-direction: column;
        height: auto;
        gap: 20px;
        padding: 40px 0;
    }

    .flux-shard {
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
        clip-path: polygon(5% 0, 100% 0, 95% 100%, 0% 100%) !important;
    }
}
