
/* Workflow Framework Styles */
:root {
    --primary-gradient: linear-gradient(135deg, #673de6 0%, #8c6df3 100%);
}

.workflow-section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.workflow-container {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 5rem;
    align-items: center;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 48px; /* Applied 48px padding as requested */
}

.workflow-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.workflow-content h2 {
    font-size: 3.2rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-main);
    font-weight: 800;
}

.workflow-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Visual Side (Left) */
.workflow-visual {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3.5rem 3rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.05);
    overflow: visible;
    z-index: 1;
}

/* Removed background grid as requested */
.workflow-visual::before {
    display: none;
}

/* Stats Cards */
.visual-dashboard-top {
    display: flex;
    justify-content: center;
    gap: 16px;
    width: 100%;
    margin-bottom: 4rem;
}

.visual-metric-card {
    background: var(--bg-main);
    border: 1px solid var(--glass-border);
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.03);
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.visual-metric-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.visual-metric-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
    transition: opacity 0.3s ease;
}

.visual-metric-value {
    font-size: 1.2rem; /* Adjusted for text content */
    font-weight: 800;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: opacity 0.3s ease;
    white-space: nowrap;
}

.visual-metric-value.primary { color: var(--primary); }
.visual-metric-value.success { color: #27c93f; }
.visual-metric-value.secondary { color: var(--secondary); }

.visual-metric-meaning {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--secondary);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--secondary);
    animation: pulse 4s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

/* Pipeline */
.visual-pipeline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    width: 100%;
    padding-bottom: 2rem;
}

.pipeline-track {
    position: absolute;
    top: 40px; 
    left: 40px;
    right: 40px;
    height: 4px; /* Thicker line */
    background: rgba(103, 61, 230, 0.05);
    z-index: 1;
    border-radius: 10px;
}

.pipeline-track-active {
    position: absolute;
    top: 0; left: 0; height: 100%; width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    box-shadow: 0 0 20px var(--primary);
    transition: width 5s linear; /* Continuous 5s animation */
}

.pipeline-ball {
    position: absolute;
    top: 50%;
    width: 14px;
    height: 14px;
    background: white;
    border: 2.5px solid var(--primary);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    box-shadow: 0 0 15px var(--primary);
    transition: left 0.8s cubic-bezier(0.65, 0, 0.35, 1);
}

.pipeline-node {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.node-icon-box {
    width: 80px; 
    height: 80px; 
    background: var(--bg-card); /* Opaque background to hide the line */
    border: 1px solid var(--glass-border);
    border-radius: 20px; 
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem; 
    color: var(--primary);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    z-index: 3; /* Above the track */
}

.pipeline-node.is-active .node-icon-box {
    background: var(--primary);
    color: white;
    transform: scale(1.15) translateY(-8px);
    box-shadow: 0 20px 40px rgba(103, 61, 230, 0.4);
    border-color: var(--primary);
}

.node-glow {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 16px;
    background: var(--primary);
    filter: blur(15px);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
}

.pipeline-node.is-active .node-glow {
    opacity: 0.4;
}

.node-label-pill, .node-label {
    position: absolute;
    bottom: -35px; /* Moved down slightly since box is gone */
    background: none !important;
    border: none !important;
    padding: 0;
    border-radius: 0;
    font-size: 0.65rem; /* Slightly larger since no box */
    font-weight: 700;
    color: var(--text-muted);
    white-space: nowrap;
    transition: all 0.4s ease;
    box-shadow: none !important;
    opacity: 0.6;
}

.pipeline-node.is-active .node-label-pill,
.pipeline-node.is-active .node-label {
    color: var(--primary) !important;
    background: none !important;
    border: none !important;
    transform: scale(1.2);
    opacity: 1;
    animation: labelPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes labelPop {
    0% { transform: scale(0.8); opacity: 0.5; }
    50% { transform: scale(1.3); opacity: 1; }
    100% { transform: scale(1.2); opacity: 1; }
}

/* Content Area (Right) */
.workflow-card-stage {
    position: relative;
    width: 100%;
    min-height: 180px;
    margin-bottom: 2.5rem;
}

.workflow-step-card {
    position: absolute;
    top: 0; left: 0; width: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateX(30px) scale(0.95);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.workflow-step-card.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0) scale(1);
    position: relative;
}

.ws-card-num {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--primary);
    background: rgba(103, 61, 230, 0.1);
    padding: 4px 12px;
    border-radius: 6px;
    display: inline-block;
    margin-bottom: 1rem;
}

.ws-card-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.ws-card-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.ws-card-points {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.ws-card-points li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--text-main);
    font-weight: 500;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.5s ease;
}

.ws-card-points li i {
    color: var(--primary);
    font-size: 0.85rem;
}

.workflow-step-card.is-active .ws-card-points li {
    opacity: 1;
    transform: translateX(0);
}

.workflow-step-card.is-active .ws-card-points li:nth-child(1) { transition-delay: 0.2s; }
.workflow-step-card.is-active .ws-card-points li:nth-child(2) { transition-delay: 0.3s; }
.workflow-step-card.is-active .ws-card-points li:nth-child(3) { transition-delay: 0.4s; }

/* Footer Actions */
.workflow-footer-actions {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    width: 100%;
}



.workflow-cta-btn {
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: fit-content;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 15px 30px rgba(103, 61, 230, 0.3);
}

.workflow-cta-btn i {
    transition: transform 0.3s ease;
}

.workflow-cta-btn:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(103, 61, 230, 0.4);
}

.workflow-cta-btn:hover i {
    transform: translateX(5px);
}

@media (max-width: 991px) {
    .workflow-container {
        grid-template-columns: 1fr;
        gap: 4rem;
        padding: 0 24px;
    }
    
    .visual-dashboard-top {
        flex-wrap: wrap;
    }

    .workflow-content {
        align-items: center;
        text-align: center;
    }

    .workflow-footer-actions {
        align-items: center;
    }
}
