/* Performance & Optimization Section Styles */

.performance-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

@media (max-width: 1024px) {
    .performance-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

.process-flow {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 3rem;
    position: relative;
}

.process-flow::before {
    content: '';
    position: absolute;
    left: 19px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: white;
    opacity: 0.1;
}

.flow-cyan .step-number {
    background: rgba(0, 242, 255, 0.1);
    border-color: rgba(0, 242, 255, 0.3);
    color: var(--primary);
}

.flow-cyan .process-step:hover .step-number {
    background: var(--primary);
    color: #050A18;
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.4);
}

.flow-purple .step-number {
    background: rgba(138, 43, 226, 0.1);
    border-color: rgba(138, 43, 226, 0.3);
    color: var(--secondary);
}

.flow-purple .process-step:hover .step-number {
    background: var(--secondary);
    color: #fff;
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.4);
}

.process-step {
    display: flex;
    gap: 1.5rem;
    position: relative;
    padding-left: 0.5rem;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 800;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}


.step-content h4 {
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.25rem;
    color: #fff;
}

.step-content p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Optimization Image Wrapper */
.optimization-image-wrapper {
    position: relative;
    border-radius: 2rem;
    overflow: hidden;
}

.optimization-image-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 60%, var(--bg-dark) 100%);
}

.optimization-image-wrapper img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 50px rgba(138, 43, 226, 0.2));
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.optimization-image-wrapper:hover img {
    transform: scale(1.05);
}