/* Premium AI Network Diagram - Modern 2025 Design */

.digital-workers-showcase {
    position: relative;
    width: 100%;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: 
        radial-gradient(ellipse 800px 500px at 50% 50%, rgba(59, 130, 246, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse 600px 400px at 30% 40%, rgba(139, 92, 246, 0.08) 0%, transparent 50%);
    overflow: hidden;
    perspective: 1200px;
    transform-style: preserve-3d;
}

/* Central AI Core - Premium Design */
.ai-core {
    position: relative;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: 
        linear-gradient(135deg, rgba(59, 130, 246, 0.95) 0%, rgba(37, 99, 235, 0.95) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.15);
    box-shadow:
        0 0 60px rgba(59, 130, 246, 0.6),
        0 20px 60px rgba(59, 130, 246, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -2px 10px rgba(0, 0, 0, 0.2);
    animation: corePulse 4s ease-in-out infinite;
    z-index: 10;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateZ(50px);
}

.ai-core:hover {
    transform: translateZ(70px) scale(1.05);
    box-shadow:
        0 0 80px rgba(59, 130, 246, 0.8),
        0 30px 80px rgba(59, 130, 246, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -2px 15px rgba(0, 0, 0, 0.3);
}

.ai-core::before {
    content: '';
    position: absolute;
    width: 160px;
    height: 160px;
    border: 2px solid rgba(96, 165, 250, 0.4);
    border-radius: 50%;
    animation: coreRing 5s linear infinite;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.ai-core::after {
    content: '';
    position: absolute;
    width: 190px;
    height: 190px;
    border: 1px solid rgba(147, 197, 253, 0.25);
    border-radius: 50%;
    animation: coreRing 8s linear infinite reverse;
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.2);
}

.core-icon {
    width: 56px;
    height: 56px;
    color: white;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.7));
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-5px) rotate(180deg); }
}

.core-label {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    color: #f8fafc;
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    background: rgba(15, 23, 42, 0.8);
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid rgba(59, 130, 246, 0.3);
    backdrop-filter: blur(10px);
    letter-spacing: -0.01em;
    opacity: 0;
    animation: labelFadeIn 0.5s ease forwards 0.5s;
}

@keyframes labelFadeIn {
    to { opacity: 1; }
}

/* Satellite Nodes - Premium Layout */
.satellite-nodes {
    position: absolute;
    width: 100%;
    height: 100%;
    animation: satelliteOrbit 80s linear infinite;
    transform-style: preserve-3d;
}

.satellite-node {
    position: absolute;
    width: 95px;
    height: 95px;
    border-radius: 16px;
    background: 
        linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(124, 58, 237, 0.12) 100%);
    backdrop-filter: blur(15px);
    border: 1.5px solid rgba(167, 139, 250, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow:
        0 8px 32px rgba(124, 58, 237, 0.2),
        0 4px 16px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    transform-style: preserve-3d;
}

.satellite-node:hover {
    transform: translateZ(40px) scale(1.08) !important;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.25) 0%, rgba(124, 58, 237, 0.2) 100%);
    border-color: rgba(167, 139, 250, 0.6);
    box-shadow:
        0 12px 48px rgba(124, 58, 237, 0.4),
        0 8px 24px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 0 40px rgba(124, 58, 237, 0.3);
}

.satellite-node:hover .node-icon {
    transform: scale(1.1) rotate(10deg);
}

.satellite-node:hover .node-label {
    opacity: 1;
    transform: translateY(0);
}

.satellite-node .node-icon {
    width: 38px;
    height: 38px;
    color: #e0e7ff;
    filter: drop-shadow(0 2px 8px rgba(139, 92, 246, 0.4));
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.satellite-node .node-label {
    font-size: 11px;
    color: #e0e7ff;
    font-weight: 600;
    text-align: center;
    line-height: 1.3;
    opacity: 0.7;
    transition: all 0.3s ease;
    letter-spacing: -0.01em;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Premium 3D Positioning for 6 satellites */
.satellite-node:nth-child(1) { 
    top: 8%; 
    left: 50%; 
    transform: translateX(-50%) translateZ(20px); 
    animation: floatNode 4s ease-in-out infinite;
}
.satellite-node:nth-child(2) { 
    top: 28%; 
    right: 12%; 
    transform: translateZ(15px);
    animation: floatNode 4.5s ease-in-out infinite 0.5s;
}
.satellite-node:nth-child(3) { 
    bottom: 28%; 
    right: 12%; 
    transform: translateZ(25px);
    animation: floatNode 5s ease-in-out infinite 1s;
}
.satellite-node:nth-child(4) { 
    bottom: 8%; 
    left: 50%; 
    transform: translateX(-50%) translateZ(20px);
    animation: floatNode 4.8s ease-in-out infinite 1.5s;
}
.satellite-node:nth-child(5) { 
    bottom: 28%; 
    left: 12%; 
    transform: translateZ(15px);
    animation: floatNode 5.2s ease-in-out infinite 2s;
}
.satellite-node:nth-child(6) { 
    top: 28%; 
    left: 12%; 
    transform: translateZ(25px);
    animation: floatNode 4.3s ease-in-out infinite 2.5s;
}

@keyframes floatNode {
    0%, 100% { 
        transform: translateY(0) translateZ(20px) scale(1);
    }
    50% { 
        transform: translateY(-15px) translateZ(30px) scale(1.02);
    }
}

/* Premium Connection Lines */
.connection-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
    filter: blur(0.5px);
}

.connection-line {
    position: absolute;
    background: linear-gradient(90deg,
        rgba(59, 130, 246, 0) 0%,
        rgba(59, 130, 246, 0.4) 20%,
        rgba(96, 165, 250, 0.6) 50%,
        rgba(59, 130, 246, 0.4) 80%,
        rgba(59, 130, 246, 0) 100%);
    height: 1.5px;
    transform-origin: left center;
    opacity: 0.5;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
    animation: connectionPulse 3s ease-in-out infinite;
}

.connection-line::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(147, 197, 253, 0.3) 50%,
        transparent 100%);
    animation: energyFlow 2s ease-in-out infinite;
    transform: translateY(-50%);
}

@keyframes energyFlow {
    0% { transform: translateY(-50%) translateX(-100%); }
    100% { transform: translateY(-50%) translateX(100%); }
}

/* Premium Animations */
@keyframes corePulse {
    0%, 100% {
        transform: translateZ(50px) scale(1);
        box-shadow:
            0 0 60px rgba(59, 130, 246, 0.6),
            0 20px 60px rgba(59, 130, 246, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.2),
            inset 0 -2px 10px rgba(0, 0, 0, 0.2);
    }
    50% {
        transform: translateZ(50px) scale(1.03);
        box-shadow:
            0 0 80px rgba(59, 130, 246, 0.8),
            0 30px 80px rgba(59, 130, 246, 0.5),
            inset 0 1px 0 rgba(255, 255, 255, 0.3),
            inset 0 -2px 15px rgba(0, 0, 0, 0.3);
    }
}

@keyframes coreRing {
    0% { 
        transform: rotate(0deg) scale(1); 
        opacity: 0.4; 
    }
    50% { 
        opacity: 0.7; 
        box-shadow: 0 0 25px rgba(59, 130, 246, 0.4);
    }
    100% { 
        transform: rotate(360deg) scale(1.08); 
        opacity: 0.4; 
    }
}

@keyframes satelliteOrbit {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes connectionPulse {
    0%, 100% { 
        opacity: 0.4;
        filter: blur(0.5px);
    }
    50% { 
        opacity: 0.8;
        filter: blur(0px);
    }
}

/* Premium Interactive Effects */
.digital-workers-showcase:hover .ai-core {
    animation-duration: 2s;
}

.digital-workers-showcase:hover .satellite-node {
    border-color: rgba(167, 139, 250, 0.5);
    box-shadow:
        0 10px 40px rgba(124, 58, 237, 0.3),
        0 5px 20px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.digital-workers-showcase:hover .connection-line {
    opacity: 0.7;
}

/* Particle Effect */
.digital-workers-showcase::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(2px 2px at 20% 30%, rgba(147, 197, 253, 0.4), transparent),
        radial-gradient(2px 2px at 60% 70%, rgba(167, 139, 250, 0.4), transparent),
        radial-gradient(1px 1px at 50% 50%, rgba(96, 165, 250, 0.3), transparent),
        radial-gradient(1px 1px at 80% 10%, rgba(147, 197, 253, 0.3), transparent),
        radial-gradient(2px 2px at 90% 60%, rgba(139, 92, 246, 0.3), transparent),
        radial-gradient(1px 1px at 33% 50%, rgba(96, 165, 250, 0.3), transparent),
        radial-gradient(1px 1px at 70% 40%, rgba(167, 139, 250, 0.3), transparent);
    background-size: 200% 200%;
    animation: particleFloat 20s ease-in-out infinite;
    pointer-events: none;
    opacity: 0.6;
}

@keyframes particleFloat {
    0%, 100% { 
        background-position: 0% 0%, 100% 100%, 50% 50%, 80% 10%, 90% 60%, 33% 50%, 70% 40%;
    }
    50% { 
        background-position: 100% 100%, 0% 0%, 80% 80%, 20% 90%, 10% 40%, 67% 50%, 30% 60%;
    }
}

/* Premium Responsive Design */
@media (max-width: 768px) {
    .digital-workers-showcase {
        height: 380px;
        perspective: 800px;
    }

    .ai-core {
        width: 110px;
        height: 110px;
    }

    .core-icon {
        width: 44px;
        height: 44px;
    }

    .core-label {
        font-size: 12px;
        padding: 5px 12px;
    }

    .satellite-node {
        width: 75px;
        height: 75px;
        border-radius: 12px;
    }

    .satellite-node .node-icon {
        width: 28px;
        height: 28px;
    }

    .satellite-node .node-label {
        font-size: 9px;
    }

    .satellite-node:nth-child(1) { top: 10%; }
    .satellite-node:nth-child(2) { top: 30%; right: 10%; }
    .satellite-node:nth-child(3) { bottom: 30%; right: 10%; }
    .satellite-node:nth-child(4) { bottom: 10%; }
    .satellite-node:nth-child(5) { bottom: 30%; left: 10%; }
    .satellite-node:nth-child(6) { top: 30%; left: 10%; }
}

@media (max-width: 480px) {
    .digital-workers-showcase {
        height: 320px;
        perspective: 600px;
    }

    .ai-core {
        width: 90px;
        height: 90px;
    }

    .core-icon {
        width: 36px;
        height: 36px;
    }

    .core-label {
        font-size: 11px;
        padding: 4px 10px;
        bottom: -35px;
    }

    .satellite-node {
        width: 65px;
        height: 65px;
        border-radius: 10px;
    }

    .satellite-node .node-icon {
        width: 24px;
        height: 24px;
    }

    .satellite-node .node-label {
        font-size: 8px;
    }

    .connection-line {
        height: 1px;
    }

    @keyframes floatNode {
        0%, 100% { 
            transform: translateY(0) translateZ(10px) scale(1);
        }
        50% { 
            transform: translateY(-10px) translateZ(15px) scale(1.01);
        }
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .ai-core,
    .satellite-node,
    .connection-line,
    .satellite-nodes {
        animation: none !important;
    }
    
    .ai-core {
        transform: translateZ(0);
    }
    
    .satellite-node {
        transform: translateZ(0) !important;
    }
}