/* =========================================================
   process-timeline.css
   Animated connected "Our Process" timeline
   ========================================================= */

/* ---------- Laboratory / clean identity ---------- */
.process-section{
    padding:70px 8%;
    background-color:#fbfdff;
    background-image:
        linear-gradient(rgba(0,180,255,0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,180,255,0.06) 1px, transparent 1px);
    background-size:26px 26px;
    text-align:center;
    overflow:hidden;
}

.process-section h2{
    color:#071a2d;
    margin-bottom:10px;
    font-size:2rem;
}

.process-subtitle{
    color:#5a6b7a;
    max-width:600px;
    margin:0 auto 50px;
    font-size:1rem;
}

.process-timeline{
    position:relative;
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    max-width:1100px;
    margin:0 auto;
    gap:10px;
}

/* Connecting line behind the steps */
.process-timeline::before{
    content:"";
    position:absolute;
    top:44px;
    left:5%;
    right:5%;
    height:4px;
    background:linear-gradient(90deg, #e2ecf7, #e2ecf7);
    z-index:0;
    border-radius:4px;
}

/* Animated fill that draws itself across the line */
.process-timeline .process-line-fill{
    position:absolute;
    top:44px;
    left:5%;
    height:4px;
    width:0%;
    background:linear-gradient(90deg, var(--blue-color), var(--secondary-color));
    z-index:1;
    border-radius:4px;
    transition:width 1.4s cubic-bezier(.2,.8,.2,1);
}

.process-step{
    position:relative;
    z-index:2;
    display:flex;
    flex-direction:column;
    align-items:center;
    flex:1;
    min-width:110px;
    opacity:0;
    transform:translateY(24px);
    transition:opacity .6s ease, transform .6s ease;
}

.process-step.in-view{
    opacity:1;
    transform:translateY(0);
}

.process-icon{
    width:88px;
    height:88px;
    border-radius:14px;
    background:var(--white);
    border:2px solid #cfe6f5;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:2.1rem;
    box-shadow:0 2px 8px rgba(7,26,45,0.06);
    transition:border-color .5s ease, box-shadow .5s ease, transform .4s ease;
    margin-bottom:16px;
}

.process-step.in-view .process-icon{
    border-color:var(--blue-color);
    box-shadow:0 0 0 4px rgba(0,180,255,0.1), 0 6px 14px rgba(0,180,255,0.18);
}

.process-step:hover .process-icon{
    transform:translateY(-6px) scale(1.06);
}

.process-step-number{
    position:absolute;
    top:-6px;
    right:6px;
    background:var(--white);
    color:var(--blue-color);
    font-family:"Courier New", monospace;
    font-size:0.7rem;
    font-weight:700;
    width:22px;
    height:22px;
    border-radius:5px;
    border:1.5px solid var(--blue-color);
    display:flex;
    align-items:center;
    justify-content:center;
    box-shadow:0 2px 6px rgba(0,0,0,0.08);
}

.process-step h3{
    font-size:1rem;
    color:#071a2d;
    margin-bottom:6px;
}

.process-step p{
    font-size:0.82rem;
    color:#5a6b7a;
    line-height:1.4;
    max-width:150px;
}

/* Pulsing dot that travels the line once revealed, for extra motion cue */
.process-icon::after{
    content:"";
    position:absolute;
    width:100%;
    height:100%;
    border-radius:50%;
    box-shadow:0 0 0 0 rgba(0,180,255,0.35);
}

.process-step.in-view .process-icon{
    animation:process-pulse 1.8s ease-out 1;
}

@keyframes process-pulse{
    0%{ box-shadow:0 0 0 0 rgba(0,180,255,0.45); }
    70%{ box-shadow:0 0 0 16px rgba(0,180,255,0); }
    100%{ box-shadow:0 0 0 0 rgba(0,180,255,0); }
}

/* ---------- Mobile: vertical timeline ---------- */
@media (max-width:820px){
    .process-timeline{
        flex-direction:column;
        align-items:flex-start;
        gap:36px;
        max-width:360px;
    }

    .process-timeline::before{
        top:5%;
        bottom:5%;
        left:43px;
        right:auto;
        width:4px;
        height:auto;
    }

    .process-timeline .process-line-fill{
        top:0;
        left:43px;
        width:4px;
        height:0%;
        transition:height 1.4s cubic-bezier(.2,.8,.2,1);
    }

    .process-step{
        flex-direction:row;
        align-items:center;
        text-align:left;
        min-width:0;
        transform:translateX(-24px);
    }

    .process-step.in-view{
        transform:translateX(0);
    }

    .process-icon{
        margin-bottom:0;
        margin-right:18px;
        flex-shrink:0;
        width:76px;
        height:76px;
        font-size:1.8rem;
    }

    .process-step p{
        max-width:220px;
    }
}
