/* --- PROCESS SECTION (Interactive Scroll Timeline) --- */
.section-process {
    background-color: var(--bg-surface);
    position: relative;
    padding-top: 8rem;
    padding-bottom: 8rem;
}

.process-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 6rem;
    max-width: var(--container-max);
    margin: 0 auto;
}

/* Sticky Header on Desktop */
.process-sticky {
    position: sticky;
    top: 8rem; /* Distance from top of viewport when sticky */
    align-self: start;
}

.process-sticky h2 {
    margin-bottom: 1.5rem;
}

/* Timeline Container */
.process-timeline-container {
    position: relative;
    padding-left: 3rem; /* Space for the line */
    padding-bottom: 2rem;
}

/* The vertical track (Grey background line) */
.timeline-track {
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background-color: #E5E7EB;
    border-radius: 2px;
    z-index: 1;
}

/* The vertical fill (Green progress line) */
.timeline-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 0%; /* JS will update this */
    background-color: var(--accent);
    border-radius: 2px;
    z-index: 2;
    transition: height 0.1s ease-out; /* Smooth snapping */
}

/* Individual Steps */
.process-step {
    position: relative;
    padding-bottom: 4rem;
    opacity: 0.4; /* Dimmed by default */
    transform: translateX(10px);
    transition: all 0.5s var(--ease-out);
}

.process-step:last-child {
    padding-bottom: 0;
}

/* When the JS adds the 'active' class */
.process-step.active {
    opacity: 1;
    transform: translateX(0);
}

/* Step Indicator (Dot and Number) */
.step-indicator {
    position: absolute;
    left: -3rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    top: 0;
}

.step-dot {
    width: 14px;
    height: 14px;
    background-color: var(--bg-surface);
    border: 3px solid #E5E7EB;
    border-radius: 50%;
    z-index: 3;
    transform: translateX(-6px);
    transition: all 0.3s var(--ease-out);
}

.process-step.active .step-dot {
    border-color: var(--accent);
    background-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(132, 204, 22, 0.2);
}

.step-num {
    font-size: 1.5rem;
    font-weight: 800;
    font-family: monospace;
    color: var(--text-muted);
    transition: color 0.3s;
}

.process-step.active .step-num {
    color: var(--bg-dark);
}

/* Step Content Box */
.step-content {
    background: var(--bg-main);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0,0,0,0.03);
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    transition: box-shadow 0.3s var(--ease-out);
}

.process-step.active .step-content {
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
    border-color: rgba(132, 204, 22, 0.2);
}

.step-content h3 {
    margin-bottom: 0.75rem;
    font-size: 1.4rem;
    color: var(--bg-dark);
}

.step-content p {
    margin-bottom: 0;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 992px) {
    .process-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .process-sticky {
        position: relative;
        top: 0;
    }
}

@media (max-width: 768px) {
    .step-content {
        padding: 1.5rem;
    }
}