/* ============================================
   Call Flow Comparison Section - Zencia.AI
   ============================================ */

/* ===== CALL FLOW COMPARISON SECTION ===== */
.call-flow-comparison {
    background: linear-gradient(135deg, #0f1419 0%, #082928 50%, #1a1a1a 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

/* Background image layer */
.call-flow-comparison::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/static/images/call-flow-background.svg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0.1;
    z-index: 1;
    pointer-events: none;
}

/* Gradient overlays */
.call-flow-comparison::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 217, 213, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 139, 139, 0.05) 0%, transparent 50%),
        rgba(15, 20, 25, 0.2);
    z-index: 2;
    pointer-events: none;
}

.call-flow-comparison .container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===== SECTION HEADER ===== */
.comparison-header {
    text-align: center;
    margin-bottom: 80px;
    animation: fadeInUp 0.8s ease-out;
}

.comparison-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    letter-spacing: -1px;
}

.comparison-subtitle {
    font-size: clamp(1.1rem, 1.8vw, 1.3rem);
    color: rgba(255, 255, 255, 0.8);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
    font-weight: 400;
}

/* ===== COMPARISON GRID ===== */
.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 80px;
    align-items: start;
}

/* ===== FLOW COLUMNS ===== */
.flow-column {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 2.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    animation: fadeInUp 0.8s ease-out;
    position: relative;
    overflow: hidden;
}

.flow-column::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    z-index: 1;
}

/* Current flow styling */
.current-flow {
    border-color: rgba(239, 68, 68, 0.2);
    animation-delay: 0.1s;
}

.current-flow::before {
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.8) 0%, rgba(220, 38, 38, 0.8) 100%);
}

.current-flow:hover {
    border-color: rgba(239, 68, 68, 0.4);
    background: rgba(239, 68, 68, 0.02);
}

/* AI flow styling */
.ai-flow {
    border-color: rgba(0, 217, 213, 0.3);
    animation-delay: 0.2s;
}

.ai-flow::before {
    background: linear-gradient(90deg, #00D9D5 0%, #40E0D0 100%);
}

.ai-flow:hover {
    border-color: rgba(0, 217, 213, 0.5);
    background: rgba(0, 217, 213, 0.05);
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 217, 213, 0.2);
}

/* ===== FLOW HEADERS ===== */
.flow-header {
    margin-bottom: 2.5rem;
    text-align: center;
}

.flow-title {
    font-size: clamp(1.5rem, 2vw, 1.8rem);
    font-weight: 700;
    color: #FFFFFF;
    margin: 0;
    line-height: 1.3;
}

/* ===== FLOW STEPS ===== */
.flow-steps {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.flow-step {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    animation: fadeInLeft 0.6s ease-out;
}

/* Staggered animation delays */
.flow-step:nth-child(1) { animation-delay: 0.1s; }
.flow-step:nth-child(2) { animation-delay: 0.2s; }
.flow-step:nth-child(3) { animation-delay: 0.3s; }
.flow-step:nth-child(4) { animation-delay: 0.4s; }
.flow-step:nth-child(5) { animation-delay: 0.5s; }

.ai-flow .flow-step:nth-child(1) { animation-delay: 0.3s; }
.ai-flow .flow-step:nth-child(2) { animation-delay: 0.4s; }
.ai-flow .flow-step:nth-child(3) { animation-delay: 0.5s; }
.ai-flow .flow-step:nth-child(4) { animation-delay: 0.6s; }
.ai-flow .flow-step:nth-child(5) { animation-delay: 0.7s; }

.flow-step:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
}

/* ===== STEP ICONS ===== */
.step-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
}

.step-icon svg {
    width: 24px;
    height: 24px;
    transition: all 0.3s ease;
}

/* Current flow icons */
.step-icon.current {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.step-icon.current svg {
    color: #EF4444;
}

.current-flow .flow-step:hover .step-icon.current {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    transform: scale(1.05);
}

/* AI flow icons */
.step-icon.ai {
    background: linear-gradient(135deg, rgba(0, 217, 213, 0.1) 0%, rgba(0, 139, 139, 0.1) 100%);
    border: 1px solid rgba(0, 217, 213, 0.3);
}

.step-icon.ai svg {
    color: #00D9D5;
}

.ai-flow .flow-step:hover .step-icon.ai {
    background: linear-gradient(135deg, #00D9D5 0%, #40E0D0 100%);
    border-color: #00D9D5;
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 217, 213, 0.4);
}

.ai-flow .flow-step:hover .step-icon.ai svg {
    color: #FFFFFF;
}

/* ===== STEP CONTENT ===== */
.step-content {
    flex: 1;
    padding-top: 0.75rem;
}

.step-text {
    font-size: clamp(1rem, 1.1vw, 1.125rem);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    margin: 0;
}

.flow-step:hover .step-text {
    color: #FFFFFF;
}

/* ===== CALL TO ACTION ===== */
.comparison-cta {
    text-align: center;
    padding: 3rem 2rem;
    background: rgba(0, 217, 213, 0.05);
    border-radius: 20px;
    border: 1px solid rgba(0, 217, 213, 0.2);
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.8s ease-out 0.8s backwards;
    position: relative;
    z-index: 3;
}

.cta-title {
    font-size: clamp(1.8rem, 2.5vw, 2.2rem);
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.cta-description {
    font-size: clamp(1.1rem, 1.3vw, 1.2rem);
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* CTA Buttons Container */
.cta-buttons {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

/* Primary CTA Button */
.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 1.2rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    background: linear-gradient(135deg, #00D9D5 0%, #40E0D0 100%);
    border: none;
    border-radius: 50px;
    color: #FFFFFF;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 217, 213, 0.3);
    text-decoration: none;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 217, 213, 0.5);
}

/* Secondary CTA Button */
.cta-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 1.2rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(0, 217, 213, 0.5);
    border-radius: 50px;
    color: #FFFFFF;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    backdrop-filter: blur(10px);
}

.cta-btn-secondary:hover {
    background: rgba(0, 217, 213, 0.1);
    border-color: #00D9D5;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 217, 213, 0.2);
}

.btn-icon {
    width: 20px;
    height: 20px;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .call-flow-comparison .container {
        max-width: 1000px;
    }
    
    .comparison-grid {
        gap: 3rem;
    }
}

@media (max-width: 1024px) {
    .call-flow-comparison .container {
        padding: 0 1.5rem;
    }
    
    .comparison-grid {
        gap: 2.5rem;
    }
    
    .flow-column {
        padding: 2rem;
    }
    
    .comparison-header {
        margin-bottom: 60px;
    }
}

@media (max-width: 768px) {
    .call-flow-comparison {
        padding: 80px 0;
    }
    
    .call-flow-comparison .container {
        padding: 0 1rem;
    }
    
    .comparison-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 60px;
    }
    
    .flow-column {
        padding: 1.5rem;
    }
    
    .flow-header {
        margin-bottom: 2rem;
    }
    
    .flow-steps {
        gap: 1.5rem;
    }
    
    .flow-step {
        padding: 1.25rem;
        gap: 1rem;
        flex-direction: row;
    }
    
    .step-icon {
        width: 45px;
        height: 45px;
    }
    
    .step-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .comparison-cta {
        padding: 2.5rem 1.5rem;
    }
    
    .cta-btn {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .call-flow-comparison .container {
        padding: 0 0.5rem;
    }
    
    .flow-column {
        padding: 1.25rem;
    }
    
    .flow-step {
        padding: 1rem;
        gap: 0.875rem;
    }
    
    .step-icon {
        width: 40px;
        height: 40px;
    }
    
    .step-icon svg {
        width: 18px;
        height: 18px;
    }
    
    .comparison-cta {
        padding: 2rem 1rem;
    }
    
    .cta-btn {
        padding: 0.875rem 1.5rem;
        gap: 8px;
    }
    
    .btn-icon {
        width: 18px;
        height: 18px;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    .flow-column,
    .flow-step,
    .comparison-header,
    .comparison-cta {
        animation: none !important;
    }
    
    .flow-step:hover,
    .ai-flow:hover,
    .cta-btn:hover {
        transform: none;
    }
}

/* Focus states for accessibility */
.cta-btn:focus-visible {
    outline: 2px solid #00D9D5;
    outline-offset: 4px;
}

.flow-step:focus-within {
    outline: 2px solid #00D9D5;
    outline-offset: 2px;
    border-radius: 16px;
}

/* ===== HIGH CONTRAST SUPPORT ===== */
@media (prefers-contrast: high) {
    .flow-column {
        border-width: 2px;
    }
    
    .current-flow {
        border-color: #EF4444;
    }
    
    .ai-flow {
        border-color: #00D9D5;
    }
    
    .step-icon {
        border-width: 2px;
    }
    
    .cta-btn {
        border: 2px solid #00D9D5;
    }
}

/* ===== DARK THEME SUPPORT ===== */
@media (prefers-color-scheme: dark) {
    .call-flow-comparison {
        background: linear-gradient(135deg, #000000 0%, #0a0a0a 50%, #111111 100%);
    }
    
    .flow-column {
        background: rgba(255, 255, 255, 0.03);
    }
    
    .flow-step {
        background: rgba(255, 255, 255, 0.02);
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .call-flow-comparison {
        background: white !important;
        padding: 2rem 0;
        width: 100% !important;
        margin-left: 0 !important;
    }
    
    .call-flow-comparison .container {
        max-width: none !important;
    }
    
    .flow-column {
        background: white !important;
        border: 1px solid #ddd;
        break-inside: avoid;
        margin-bottom: 1rem;
    }
    
    .flow-step {
        background: #f9f9f9 !important;
        border: 1px solid #eee;
    }
    
    .comparison-title,
    .flow-title,
    .step-text,
    .cta-title {
        color: #333 !important;
    }
    
    .comparison-subtitle,
    .cta-description {
        color: #666 !important;
    }
    
    .step-icon {
        background: #f5f5f5 !important;
        border: 1px solid #ddd !important;
    }
    
    .step-icon svg {
        color: #666 !important;
    }
    
    .cta-btn {
        background: #00D9D5 !important;
        color: white !important;
        box-shadow: none !important;
    }
}