/* ===== VISUALIZAÇÃO FUTURISTA - GRÁFICOS E FLUXOS ===== */

.tech-visualization {
    margin: 4rem 0;
    padding: 3rem;
    background: linear-gradient(135deg, rgba(44, 122, 123, 0.05) 0%, rgba(79, 209, 199, 0.05) 100%);
    border-radius: 20px;
    border: 1px solid rgba(44, 122, 123, 0.1);
}

.tech-flow-container {
    margin-bottom: 3rem;
    overflow-x: auto;
    padding: 2rem 0;
}

.flow-diagram {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    min-width: 100%;
    flex-wrap: wrap;
}

.flow-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: 15px;
    min-width: 120px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    animation: nodeFloat 3s ease-in-out infinite;
}

.flow-node.flow-source {
    background: linear-gradient(135deg, #2C7A7B, #4FD1C7);
    box-shadow: 0 10px 30px rgba(44, 122, 123, 0.3);
}

.flow-node.flow-process {
    background: linear-gradient(135deg, #4FD1C7, #FF6B35);
    box-shadow: 0 10px 30px rgba(79, 209, 199, 0.3);
    animation-delay: 0.3s;
}

.flow-node.flow-automation {
    background: linear-gradient(135deg, #FF6B35, #FF8C42);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3);
    animation-delay: 0.6s;
}

.flow-node.flow-result {
    background: linear-gradient(135deg, #2C7A7B, #FF6B35);
    box-shadow: 0 10px 30px rgba(44, 122, 123, 0.3);
    animation-delay: 0.9s;
}

.flow-node:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.node-icon {
    font-size: 2.5rem;
    color: white;
    animation: iconPulse 2s ease-in-out infinite;
}

.node-label {
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    line-height: 1.4;
}

.flow-arrow {
    font-size: 2rem;
    color: #2C7A7B;
    animation: arrowFlow 1.5s ease-in-out infinite;
}

@keyframes nodeFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes arrowFlow {
    0%, 100% { transform: translateX(0px); opacity: 0.6; }
    50% { transform: translateX(5px); opacity: 1; }
}

.tech-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.metric-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #2C7A7B;
    transition: all 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.15);
}

.metric-header {
    font-weight: 700;
    color: #2C7A7B;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.metric-bars {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.metric-bar {
    position: relative;
    height: 30px;
    background: linear-gradient(90deg, #2C7A7B, #4FD1C7);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 1rem;
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    animation: barFill 1.5s ease-out forwards;
    opacity: 0;
}

@keyframes barFill {
    from {
        width: 0 !important;
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.metric-circle {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto;
}

.progress-ring {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.progress-ring-circle {
    fill: none;
    stroke: #2C7A7B;
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 283;
    stroke-dashoffset: 56;
    animation: progressFill 2s ease-out forwards;
}

@keyframes progressFill {
    from {
        stroke-dashoffset: 283;
    }
    to {
        stroke-dashoffset: 56;
    }
}

.circle-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    font-weight: 700;
    color: #2C7A7B;
}

.metric-trend {
    width: 100%;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.trend-chart {
    width: 100%;
    height: 100%;
}

.trend-line {
    fill: none;
    stroke: #FF6B35;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    animation: trendDraw 2s ease-out forwards;
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
}

@keyframes trendDraw {
    to {
        stroke-dashoffset: 0;
    }
}

@media (max-width: 768px) {
    .flow-diagram {
        gap: 1rem;
    }

    .flow-node {
        min-width: 100px;
        padding: 1rem;
    }

    .node-icon {
        font-size: 2rem;
    }

    .node-label {
        font-size: 0.75rem;
    }

    .flow-arrow {
        font-size: 1.5rem;
    }

    .tech-metrics {
        grid-template-columns: 1fr;
    }

    .tech-visualization {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .flow-diagram {
        flex-direction: column;
        gap: 0.5rem;
    }

    .flow-arrow {
        transform: rotate(90deg);
    }

    .metric-card {
        padding: 1.5rem;
    }

    .metric-circle {
        width: 120px;
        height: 120px;
    }

    .circle-text {
        font-size: 1.5rem;
    }
}
