.process-timeline-section {
    padding: 6rem 0;
    background-color: var(--bg-primary);
    overflow: hidden;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

/* Vertical Line */
.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 30px;
    /* Aligned with marker center on mobile */
    height: 100%;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-teal), var(--accent-violet));
    opacity: 0.3;
}

.timeline-item {
    position: relative;
    padding-left: 80px;
    margin-bottom: 4rem;
    opacity: 0;
    transform: translateY(30px);
    animation: slideIn 0.8s ease-out forwards;
}

.timeline-item:nth-child(1) {
    animation-delay: 0.2s;
}

.timeline-item:nth-child(2) {
    animation-delay: 0.4s;
}

.timeline-item:nth-child(3) {
    animation-delay: 0.6s;
}

.timeline-marker {
    position: absolute;
    left: 0;
    top: 0;
    width: 60px;
    height: 60px;
    background: var(--bg-secondary);
    border: 2px solid var(--accent-teal);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    box-shadow: 0 0 15px rgba(0, 128, 128, 0.4);
    z-index: 2;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: pulse 3s infinite;
}

.timeline-item:hover .timeline-marker {
    transform: scale(1.1);
    box-shadow: 0 0 25px rgba(0, 128, 128, 0.8);
}

.timeline-item:hover .timeline-content {
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.timeline-content {
    padding: 1rem;
    margin: -1rem;
    /* Compensate for padding */
    border-radius: var(--radius-card);
    transition: background 0.3s ease, border 0.3s ease;
    border: 1px solid transparent;
}

/* Distinct colors and delays for pulse */
.timeline-item:nth-child(2) .timeline-marker {
    border-color: #6C5CE7;
    box-shadow: 0 0 15px rgba(108, 92, 231, 0.4);
    animation-delay: 0.5s;
}

.timeline-item:nth-child(3) .timeline-marker {
    border-color: var(--accent-violet);
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.4);
    animation-delay: 1s;
}

.timeline-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.timeline-text {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.7;
}

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

@media (min-width: 768px) {
    .timeline::before {
        left: 50%;
        transform: translateX(-50%);
    }

    .timeline-item {
        width: 50%;
        margin-bottom: 0;
        padding-bottom: 4rem;
    }

    .timeline-item:nth-child(odd) {
        left: 0;
        padding-right: 50px;
        padding-left: 0;
        text-align: right;
    }

    .timeline-item:nth-child(even) {
        left: 50%;
        padding-left: 50px;
        text-align: left;
    }

    .timeline-item:nth-child(odd) .timeline-marker {
        left: auto;
        right: -30px;
    }

    .timeline-item:nth-child(even) .timeline-marker {
        left: -30px;
    }
}