/* Timeline / Process Section */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

/* Vertical Line */
.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: rgba(124, 58, 237, 0.3);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: 2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
    box-sizing: border-box;
    margin-bottom: 2rem;
}

/* Left side items */
.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

/* Right side items */
.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
}

/* Icons on the line */
.timeline-icon {
    position: absolute;
    width: 50px;
    height: 50px;
    right: -25px;
    background-color: var(--bg-color);
    border: 4px solid var(--primary-color);
    top: 15px;
    border-radius: 50%;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    font-size: 1.2rem;
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.2);
}

.timeline-item:nth-child(even) .timeline-icon {
    left: -25px;
}

/* Content Box */
.timeline-content {
    background: var(--card-bg);
    padding: 20px 30px;
    border-radius: 15px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease;
}

.timeline-content:hover {
    transform: scale(1.02);
    border-color: var(--primary-color);
}

.step-number {
    font-size: 3rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.05);
    position: absolute;
    top: -10px;
    right: 20px;
}

.timeline-item:nth-child(odd) .step-number {
    left: 20px;
    right: auto;
}

.timeline-content h3 {
    margin-bottom: 10px;
    color: var(--accent-color);
    font-family: var(--font-heading);
}

/* Responsive Timeline */
@media screen and (max-width: 768px) {
    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
        text-align: left !important;
        /* Force left align on mobile */
    }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-icon,
    .timeline-item:nth-child(even) .timeline-icon {
        left: 6px;
        right: auto;
    }

    .step-number {
        right: 20px !important;
        left: auto !important;
    }
}