/* ========================================
   Workflow Section Styles
   ======================================== */

.workflow {
    padding: 5rem 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
}

.workflow .section-description {
    max-width: 800px;
    margin: 0 auto 4rem;
}

/* Workflow Chart Container */
.workflow-chart {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

/* Individual Workflow Step */
.workflow-step {
    position: relative;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(30px);
    animation: stepFadeIn 0.6s ease forwards;
}

/* Stagger animation for each step */
.workflow-step[data-step="1"] { animation-delay: 0.1s; }
.workflow-step[data-step="2"] { animation-delay: 0.2s; }
.workflow-step[data-step="3"] { animation-delay: 0.3s; }
.workflow-step[data-step="4"] { animation-delay: 0.4s; }
.workflow-step[data-step="5"] { animation-delay: 0.5s; }
.workflow-step[data-step="6"] { animation-delay: 0.6s; }

@keyframes stepFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Step Number Badge */
.step-number {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: linear-gradient(135deg, #007BFF 0%, #0056b3 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    border-radius: 25px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.workflow-step:hover .step-number {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

/* Step Content Card */
.step-content {
    background: #ffffff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #007BFF;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.step-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #007BFF 0%, #00d4ff 100%);
    transition: width 0.3s ease;
}

.workflow-step:hover .step-content {
    box-shadow: 0 8px 35px rgba(0, 0, 0, 0.12);
    transform: translateX(5px);
}

.workflow-step:hover .step-content::before {
    width: 8px;
}

/* Step Title */
.step-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333333;
    margin: 0 0 1rem 0;
    line-height: 1.4;
}

/* Step Description */
.step-description {
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(51, 51, 51, 0.85);
    margin: 0;
}

/* Arrow Between Steps */
.step-arrow {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 48px;
    margin: 1rem 0;
    color: #007BFF;
    opacity: 0.6;
    animation: arrowBounce 2s ease-in-out infinite;
}

.step-arrow svg {
    width: 24px;
    height: 48px;
}

@keyframes arrowBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(5px);
    }
}

/* Last step (no arrow) */
.workflow-step:last-child .step-arrow {
    display: none;
}

/* Workflow Note */
.workflow-note {
    margin-top: 3rem;
    padding: 1.5rem 2rem;
    background-color: #fff9e6;
    border-radius: 10px;
    border-left: 4px solid #ffc107;
    box-shadow: 0 3px 15px rgba(255, 193, 7, 0.1);
}

.workflow-note p {
    margin: 0;
    color: rgba(51, 51, 51, 0.8);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ========================================
   Responsive Design
   ======================================== */

/* Tablet */
@media (max-width: 1024px) {
    .workflow {
        padding: 4rem 0;
    }

    .workflow-chart {
        max-width: 100%;
    }

    .step-content {
        padding: 1.5rem;
    }

    .step-title {
        font-size: 1.3rem;
    }

    .step-description {
        font-size: 0.95rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .workflow {
        padding: 3rem 0;
    }

    .workflow .section-description {
        margin-bottom: 3rem;
        font-size: 0.95rem;
    }

    .workflow-step {
        margin-bottom: 1.5rem;
    }

    .step-number {
        font-size: 0.8rem;
        padding: 0.4rem 1.2rem;
    }

    .step-content {
        padding: 1.25rem;
    }

    .step-title {
        font-size: 1.15rem;
    }

    .step-description {
        font-size: 0.9rem;
        line-height: 1.7;
    }

    .step-arrow {
        height: 40px;
        margin: 0.75rem 0;
    }

    .step-arrow svg {
        width: 20px;
        height: 40px;
    }

    .workflow-note {
        padding: 1.25rem 1.5rem;
    }

    .workflow-note p {
        font-size: 0.85rem;
    }

    /* Reduce hover effects on mobile */
    .workflow-step:hover .step-content {
        transform: none;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .workflow {
        padding: 2.5rem 0;
    }

    .step-content {
        padding: 1rem;
        border-radius: 12px;
    }

    .step-title {
        font-size: 1.05rem;
        margin-bottom: 0.75rem;
    }

    .step-description {
        font-size: 0.85rem;
    }

    .workflow-note {
        padding: 1rem;
    }
}
