/* Demo Animation Styles */

.demo-section {
    padding: 80px 0;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
    overflow: hidden;
}

.demo-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.demo-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.demo-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 3rem;
}

.demo-svg-wrapper {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

/* Animation keyframes */
@keyframes pulse {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

@keyframes dataFlow {
    0% {
        stroke-dashoffset: 1000;
    }
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes glow {
    0%, 100% {
        filter: drop-shadow(0 0 3px rgba(102, 126, 234, 0.5));
    }
    50% {
        filter: drop-shadow(0 0 8px rgba(102, 126, 234, 0.8));
    }
}

.node-pulse {
    animation: pulse 2s ease-in-out infinite;
}

.connection-line {
    stroke-dasharray: 10 5;
    animation: dataFlow 2s linear infinite;
}

.server-glow {
    animation: glow 2s ease-in-out infinite;
}

/* Legend */
.demo-legend {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.legend-box {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

.legend-cluster-a {
    background: #667eea;
}

.legend-cluster-b {
    background: #f093fb;
}

.legend-server {
    background: #4facfe;
}

/* Responsive */
@media (max-width: 768px) {
    .demo-title {
        font-size: 2rem;
    }
    
    .demo-svg-wrapper {
        padding: 1rem;
    }
    
    .demo-legend {
        gap: 1rem;
    }
}

