/* Cloud PBX Visual Diagram */
.cloud-pbx-visual {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
}

.cloud-pbx-visual::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 30%, rgba(74, 144, 226, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 70% 70%, rgba(16, 185, 129, 0.1) 0%, transparent 40%),
        linear-gradient(45deg, transparent 48%, rgba(255,255,255,0.03) 50%, transparent 52%);
}

.pbx-diagram {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pbx-node {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(74, 144, 226, 0.3);
    border-radius: 15px;
    color: white;
    backdrop-filter: blur(15px);
    transition: all 0.4s ease;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.pbx-node:hover {
    transform: scale(1.1);
    background: rgba(74, 144, 226, 0.2);
    border-color: #4A90E2;
    box-shadow: 0 0 30px rgba(74, 144, 226, 0.5);
}

.pbx-node i {
    font-size: 1.8rem;
    margin-bottom: 0.3rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.pbx-node span {
    font-size: 0.7rem;
    font-weight: 700;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.cloud-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #4A90E2, #357ABD);
    border: 3px solid #60a5fa;
    border-radius: 20px;
    box-shadow: 0 0 40px rgba(74, 144, 226, 0.4);
    z-index: 10;
}

.desktop-node {
    top: 20%;
    left: 20%;
}

.mobile-node {
    top: 20%;
    right: 20%;
}

.phone-node {
    bottom: 20%;
    left: 20%;
}

.web-node {
    bottom: 20%;
    right: 20%;
}

.pbx-connection {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(74, 144, 226, 0.8), transparent);
    border-radius: 2px;
    animation: pbxDataFlow 3s infinite ease-in-out;
}

.pbx-conn-1 {
    top: 35%;
    left: 25%;
    width: 25%;
    transform: rotate(-30deg);
    animation-delay: 0.5s;
}

.pbx-conn-2 {
    top: 35%;
    right: 25%;
    width: 25%;
    transform: rotate(30deg);
    animation-delay: 1s;
}

.pbx-conn-3 {
    bottom: 35%;
    left: 25%;
    width: 25%;
    transform: rotate(30deg);
    animation-delay: 1.5s;
}

.pbx-conn-4 {
    bottom: 35%;
    right: 25%;
    width: 25%;
    transform: rotate(-30deg);
    animation-delay: 2s;
}

@keyframes pbxDataFlow {
    0%, 100% {
        opacity: 0.3;
        background-size: 200% 100%;
        background-position: -100% 0;
    }
    50% {
        opacity: 1;
        background-position: 100% 0;
    }
}

@media (max-width: 768px) {
    .cloud-pbx-visual {
        height: 320px;
    }
    
    .pbx-node {
        width: 60px;
        height: 60px;
    }
    
    .cloud-core {
        width: 90px;
        height: 90px;
    }
    
    .pbx-node i {
        font-size: 1.3rem;
    }
    
    .pbx-node span {
        font-size: 0.6rem;
    }
}