/* =============== WORKFLOW SECTION =============== */
/* Interactive workflow steps with progress line and image carousel */

/* Workflow section styles */
.s-workflow {
    background: #1a1a1a;
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.s-workflow .container,
.s-workflow > .desktop-workflow > .container,
section.s-workflow > .desktop-workflow > .container,
section.s-workflow > div.desktop-workflow > div.container {
    position: relative;
    z-index: 1;
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding-left: 60px !important;
    padding-right: 60px !important;
}

/* Force flexible grid columns to prevent overflow */
.s-workflow .workflow-grid,
section.s-workflow .workflow-grid,
.s-workflow > .desktop-workflow .workflow-grid,
section.s-workflow > div.desktop-workflow .workflow-grid {
    grid-template-columns: 1fr 1fr !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
}

.s-workflow .text-center h2 {
    color: #fff;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Removed redundant blue line under title - keeping only the progress line
.s-workflow .text-center h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 140px;
    height: 2px;
    background-color: #45a7ef;
    transform: translateX(-50%);
} */

.s-workflow .text-center p {
    color: #e8e8e8;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

.workflow-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 0 20px;
    margin: 10px 0;
}

.workflow-progress-line {
    position: absolute;
    top: 50%;
    left: 15%;
    right: 15%;
    height: 4px;
    background: rgba(255,255,255,0.1);
    z-index: 1;
    border-radius: 4px;
    transform: translateY(-50%);
}

.workflow-progress-fill {
    height: 100%;
    width: 33%;
    background: linear-gradient(90deg, #45a7ef 0%, #45a7ef 100%);
    border-radius: 4px;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(69, 167, 239, 0.4);
    position: relative;
}

.workflow-progress-fill::after {
    content: '';
    position: absolute;
    right: -2px;
    top: 50%;
    width: 8px;
    height: 8px;
    background: #45a7ef;
    border-radius: 50%;
    transform: translateY(-50%);
    box-shadow: 0 0 10px rgba(69, 167, 239, 0.6);
    animation: pulse 2s ease-in-out infinite;
}

.workflow-step {
    text-align: center;
    position: relative;
    z-index: 2;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 15px 10px;
    border-radius: 20px;
}

.workflow-step:hover {
    transform: scale(1.05);
}

.step-circle {
    width: 120px;
    height: 120px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    border: none !important;
    position: relative;
}

.workflow-step.active .step-circle {
    background: rgba(69, 167, 239, 0.15) !important;
    box-shadow: 0 8px 25px rgba(69, 167, 239, 0.3), inset 0 0 0 2px #45a7ef !important;
}

.workflow-step:not(.active) .step-circle {
    background: rgba(255, 255, 255, 0.05) !important;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.2) !important;
}

.step-circle img {
    width: 67px !important;
    height: 67px !important;
    transition: all 0.3s ease;
    display: block;
    margin: 0 !important;
    padding: 0 !important;
}

.workflow-step.active .step-circle img {
    filter: brightness(1.2);
}

.workflow-step:not(.active) .step-circle img {
    opacity: 0.8;
}

.workflow-step h4 {
    font-size: 1.275rem;
    font-weight: 600;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.workflow-step.active h4 {
    color: #fff;
}

.workflow-step:not(.active) h4 {
    color: #e8e8e8;
}

.workflow-illustration {
    text-align: center;
    padding: 20px;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-content {
    display: none;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 400px;
    border-radius: 20px;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    background: #1a1a1a;
}

.step-content.active {
    display: flex;
}

.step-content img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    object-position: center center;
    border-radius: 16px;
}

.workflow-image {
    width: 100%;
    height: 160px;
    overflow: hidden;
    position: relative;
}

.workflow-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transition: transform 0.3s ease;
}

.workflow-step:hover .workflow-image img {
    transform: scale(1.1);
}

.step-content {
    padding: 20px;
    text-align: center;
    color: white;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.step-content h4 {
    color: white;
    margin-bottom: 15px;
    font-size: 1.1em;
    text-transform: uppercase;
}

.step-content p {
    font-size: 0.9em;
    color: #cccccc;
    line-height: 1.4;
    margin: 0;
}

/* Workflow Responsive Design */
@media (max-width: 1200px) {
    .workflow-navigation {
        padding: 0 10px;
    }
    
    .step-circle {
        width: 105px;
        height: 105px;
    }
    
    .step-circle img {
        width: 60px;
        height: 60px;
    }
    
    .step-content {
        width: 560px;
        height: 380px;
    }
}

@media (max-width: 991px) {
    .s-workflow {
        padding: 50px 0;
    }
    
    .s-workflow .text-center h2 {
        font-size: 2rem;
    }
    
    .workflow-navigation {
        flex-direction: column;
        gap: 20px;
        padding: 0;
    }
    
    .workflow-progress-line {
        display: none;
    }
    
    .workflow-step {
        width: 200px;
        padding: 20px 15px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 15px;
    }
    
    .step-content {
        width: 100%;
        height: 200px;
        max-width: 350px;
    }
}

@media (max-width: 768px) {
    .s-workflow {
        padding: 40px 0;
    }
    
    .s-workflow .text-center h2 {
        font-size: 1.8rem;
    }
    
    .s-workflow .text-center p {
        font-size: 1rem;
        padding: 0 15px;
    }
    
    .workflow-step {
        width: 180px;
        padding: 15px 10px;
    }
    
    .step-circle {
        width: 90px;
        height: 90px;
    }
    
    .step-circle img {
        width: 52px;
        height: 52px;
    }
    
    .workflow-step h4 {
        font-size: 1.2rem;
    }
    
    .step-content {
        height: 180px;
        max-width: 300px;
    }
    
    .workflow-image {
        height: 180px;
    }
}

/* Extra small mobile devices (320px and below) */
@media (max-width: 480px) {
    .s-workflow {
        padding: 25px 0 10px 0 !important;
    }
    
    .s-workflow .text-center.mb-4 {
        margin-bottom: 25px !important;
    }
    
    .s-workflow > div:nth-child(2) > div:first-child {
        padding: 15px 10px !important;
    }
    
    /* Compact mobile step navigation */
    .s-workflow .row.align-items-center.mb-5 > .col-12 > div {
        gap: 10px !important;
        padding: 12px !important;
        margin: 8px 0 !important;
    }
    
    .s-workflow .row.align-items-center.mb-5 > .col-12 > div > div:first-child {
        left: 60px !important;
        right: 60px !important;
    }
    
    .workflow-step {
        padding: 10px 6px !important;
        min-width: 65px !important;
        border-radius: 12px !important;
    }
    
    .workflow-step .step-circle {
        width: 75px !important;
        height: 75px !important;
        margin: 0 auto 6px !important;
        border-radius: 15px !important;
    }
    
    .workflow-step img {
        width: 39px !important;
        height: 39px !important;
    }
    
    .workflow-step h4 {
        font-size: 0.975rem !important;
        letter-spacing: 0.3px !important;
    }
    
    /* Compact mobile content */
    .workflow-grid {
        gap: 25px !important;
        padding: 0 10px !important;
    }
    
    .workflow-illustration {
        padding: 10px !important;
        margin-bottom: 15px !important;
    }
    
    #step-illustration {
        padding: 10px !important;
        min-height: 200px !important;
        max-height: 220px !important;
    }
    
    .workflow-description {
        padding: 10px !important;
    }
    
    /* Compact step content */
    .step-content h3 {
        font-size: 1.5rem !important;
        margin-bottom: 15px !important;
    }
    
    .step-content p {
        font-size: 0.95rem !important;
        padding: 12px !important;
        margin-bottom: 20px !important;
    }
    
    /* Compact feature cards */
    .step-content > div:last-child > div {
        padding: 12px 12px 12px 45px !important;
        margin-bottom: 12px !important;
        border-radius: 8px !important;
    }
    
    .step-content > div:last-child > div > div:first-child {
        width: 35px !important;
        font-size: 1.2rem !important;
    }
    
    .step-content > div:last-child > div h5 {
        font-size: 0.95rem !important;
        margin-bottom: 6px !important;
    }
    
    .step-content > div:last-child > div p {
        font-size: 0.85rem !important;
    }
}

/* =============== ADDITIONAL WORKFLOW ANIMATIONS =============== */

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

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

.workflow-step:hover .step-circle {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 15px 35px rgba(69, 167, 239, 0.4), inset 0 0 0 2px #45a7ef !important;
    background: rgba(69, 167, 239, 0.2) !important;
}

.workflow-step:hover {
    background: rgba(69, 167, 239, 0.05);
    transform: translateY(-5px);
}

.workflow-step:hover img {
    transform: scale(1.1);
    filter: brightness(1.3) drop-shadow(0 4px 8px rgba(69, 167, 239, 0.3));
}

.workflow-step:hover h4 {
    color: #45a7ef;
    transform: translateY(-2px);
}

.workflow-step.active:hover .step-circle {
    box-shadow: 0 20px 40px rgba(69, 167, 239, 0.6), inset 0 0 0 2px #45a7ef !important;
    transform: scale(1.2) rotate(10deg);
}

.workflow-step:not(.active):hover .step-circle {
    box-shadow: inset 0 0 0 2px #45a7ef !important;
    background: rgba(69, 167, 239, 0.15) !important;
}

.workflow-step:not(.active):hover img {
    opacity: 1;
    filter: brightness(1.2) drop-shadow(0 4px 8px rgba(69, 167, 239, 0.2));
}

/* Step content animations */
.step-content {
    opacity: 1;
    transform: translateX(0);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Progress line pulse animation */
@keyframes progressPulse {
    0%, 100% { 
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }
    50% { 
        opacity: 0.7;
        transform: translateY(-50%) scale(1.2);
    }
}

.output-column:hover .description-card {
    opacity: 1;
    transform: translateY(0);
}

/* =============== ADDITIONAL RESPONSIVE OVERRIDES =============== */

@media (max-width: 1200px) {
    .workflow-grid {
        gap: 20px !important;
        padding: 0 !important;
    }
    
    .s-workflow .text-center.mb-4 {
        padding: 0 30px !important;
    }
    
    .s-workflow > div:nth-child(2) > div:first-child,
    .s-workflow > .desktop-workflow > .container,
    section.s-workflow > .desktop-workflow > .container,
    section.s-workflow > div.desktop-workflow > div.container {
        padding: 40px 40px !important;
    }
}

@media (max-width: 991px) {
    .workflow-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
        padding: 0 !important;
    }
    
    .s-workflow .text-center.mb-4 {
        padding: 0 20px !important;
    }
    
    .s-workflow > div:nth-child(2) > div:first-child,
    .s-workflow > .desktop-workflow > .container,
    section.s-workflow > .desktop-workflow > .container,
    section.s-workflow > div.desktop-workflow > div.container {
        padding: 25px 25px !important;
    }
    
    .workflow-illustration {
        order: 2;
        margin-top: 20px;
    }
    
    .workflow-description {
        order: 1;
    }
    
    #step-illustration {
        padding: 30px 15px !important;
        min-height: 450px !important;
    }
    
    #step-description {
        min-height: 450px !important;
    }
}

@media (max-width: 768px) {
    .s-workflow {
        padding: 30px 0 15px 0 !important;
    }
    
    .workflow-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
        padding: 0 15px !important;
    }
    
    .s-workflow .text-center.mb-4 {
        padding: 0 15px !important;
        margin-bottom: 30px !important;
    }
    
    .s-workflow > div:nth-child(2) > div:first-child {
        padding: 20px 15px !important;
    }
    
    /* Mobile step navigation improvements */
    .s-workflow .row.align-items-center.mb-5 > .col-12 > div {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 15px !important;
        margin: 10px 0 !important;
        padding: 15px !important;
        background: rgba(255, 255, 255, 0.03) !important;
        border-radius: 15px !important;
        position: relative !important;
    }
    .s-workflow .row.align-items-center.mb-5 > .col-12 > div > div:first-child {
        display: block !important;
        position: absolute !important;
        top: 50% !important;
        left: 80px !important;
        right: 80px !important;
        height: 2px !important;
        z-index: 1 !important;
    }
    
    .workflow-step {
        text-align: center !important;
        padding: 12px 8px !important;
        position: relative !important;
        z-index: 2 !important;
        background: rgba(26, 26, 26, 0.9) !important;
        border-radius: 15px !important;
        min-width: 80px !important;
        cursor: pointer !important;
        transition: all 0.3s ease !important;
    }
    
    .workflow-step:hover {
        transform: translateY(-3px) !important;
        background: rgba(69, 167, 239, 0.1) !important;
    }
    
    .workflow-step .step-circle {
        width: 60px !important;
        height: 60px !important;
        margin: 0 auto 8px !important;
        border-radius: 12px !important;
    }
    
    .workflow-step img {
        width: 30px !important;
        height: 30px !important;
    }
    
    .workflow-step h4 {
        font-size: 0.75rem !important;
        margin: 0 !important;
        font-weight: 600 !important;
        letter-spacing: 0.5px !important;
    }
    
    /* Mobile illustration improvements */
    .workflow-illustration {
        order: 1 !important;
        margin-bottom: 20px !important;
        padding: 15px !important;
    }
    
    #step-illustration {
        padding: 15px !important;
        min-height: 250px !important;
        max-height: 280px !important;
        border-radius: 15px !important;
        overflow: hidden !important;
    }
    
    /* Mobile content improvements */
    .workflow-description {
        order: 2 !important;
        padding: 15px !important;
    }
    
    #step-description {
        min-height: auto !important;
        padding: 0 !important;
    }
    
    /* Mobile step content adjustments */
    .step-content h3 {
        font-size: 1.8rem !important;
        margin-bottom: 20px !important;
        text-align: center !important;
    }
    
    .step-content p {
        font-size: 1rem !important;
        line-height: 1.6 !important;
        margin-bottom: 25px !important;
        padding: 15px !important;
    }
    
    /* Mobile feature cards */
    .step-content > div:last-child > div {
        padding: 15px 15px 15px 50px !important;
        margin-bottom: 15px !important;
        border-radius: 10px !important;
    }
    
    .step-content > div:last-child > div > div:first-child {
        width: 40px !important;
        font-size: 1.4rem !important;
    }
    
    .step-content > div:last-child > div h5 {
        font-size: 1rem !important;
        margin-bottom: 8px !important;
    }
    
    .step-content > div:last-child > div p {
        font-size: 0.9rem !important;
        margin: 0 !important;
        padding: 0 !important;
    }
} 