/* ========================================
   TIMELINE CARDS - Zigzag Timeline Design
   ======================================== */

/* Timeline Section Container */
.timeline-section {
    padding: 60px 0;
    position: relative;
}

.timeline-header {
    text-align: center;
    margin-bottom: 60px;
}

.timeline-badge {
    display: inline-block;
    background: rgba(96, 165, 250, 0.1);
    color: var(--soft-blue);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 50px;
    margin-bottom: 15px;
}

.timeline-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.timeline-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--soft-blue), var(--soft-purple), var(--soft-pink));
    border-radius: 4px;
    margin: 0 auto;
}

/* Timeline Wrapper */
.timeline-wrapper {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0;
}

/* Central Axis Line */
.timeline-axis {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg,
            rgba(96, 165, 250, 0.2) 0%,
            rgba(167, 139, 250, 0.3) 50%,
            rgba(244, 114, 182, 0.2) 100%);
    transform: translateX(-50%);
    border-radius: 4px;
}

.timeline-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(180deg,
            var(--soft-blue) 0%,
            var(--soft-purple) 50%,
            var(--soft-pink) 100%);
    border-radius: 4px;
    transition: height 0.5s ease;
}

/* Timeline Item */
.timeline-item {
    position: relative;
    display: flex;
    margin-bottom: 50px;
    padding: 0 20px;
}

/* Alternating left/right layout */
.timeline-item:nth-child(odd) {
    justify-content: flex-start;
    padding-right: calc(50% + 40px);
}

.timeline-item:nth-child(even) {
    justify-content: flex-end;
    padding-left: calc(50% + 40px);
}

/* Timeline Dot */
.timeline-dot {
    position: absolute;
    left: 50%;
    top: 30px;
    width: 20px;
    height: 20px;
    background: white;
    border: 4px solid var(--soft-blue);
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 2;
    transition: all 0.3s ease;
    box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.2);
}

.timeline-item:nth-child(2) .timeline-dot {
    border-color: var(--soft-purple);
    box-shadow: 0 0 0 4px rgba(167, 139, 250, 0.2);
}

.timeline-item:nth-child(3) .timeline-dot {
    border-color: var(--soft-cyan);
    box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.2);
}

.timeline-item:nth-child(4) .timeline-dot {
    border-color: var(--soft-pink);
    box-shadow: 0 0 0 4px rgba(244, 114, 182, 0.2);
}

.timeline-item:nth-child(5) .timeline-dot {
    border-color: var(--soft-blue);
    box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.2);
}

.timeline-item:hover .timeline-dot {
    transform: translateX(-50%) scale(1.2);
}

/* Timeline Card */
.timeline-card-wrapper {
    width: 100%;
    max-width: 380px;
}

.timeline-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
}

.timeline-card::before {
    content: '';
    position: absolute;
    top: 28px;
    width: 20px;
    height: 2px;
    background: rgba(96, 165, 250, 0.3);
}

.timeline-item:nth-child(odd) .timeline-card::before {
    right: -20px;
}

.timeline-item:nth-child(even) .timeline-card::before {
    left: -20px;
}

.timeline-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

/* Card Header */
.timeline-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

/* Timeline Icon - Different colors for each */
.timeline-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.timeline-item:nth-child(1) .timeline-icon {
    background: rgba(96, 165, 250, 0.15);
    color: var(--soft-blue);
}

.timeline-item:nth-child(2) .timeline-icon {
    background: rgba(167, 139, 250, 0.15);
    color: var(--soft-purple);
}

.timeline-item:nth-child(3) .timeline-icon {
    background: rgba(34, 211, 238, 0.15);
    color: var(--soft-cyan);
}

.timeline-item:nth-child(4) .timeline-icon {
    background: rgba(244, 114, 182, 0.15);
    color: var(--soft-pink);
}

.timeline-item:nth-child(5) .timeline-icon {
    background: rgba(96, 165, 250, 0.15);
    color: var(--soft-blue);
}

/* Card Title */
.timeline-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

/* Card Body */
.timeline-card-body {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Animation on scroll */
.timeline-item {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

.timeline-item:nth-child(1) {
    animation-delay: 0.1s;
}

.timeline-item:nth-child(2) {
    animation-delay: 0.2s;
}

.timeline-item:nth-child(3) {
    animation-delay: 0.3s;
}

.timeline-item:nth-child(4) {
    animation-delay: 0.4s;
}

.timeline-item:nth-child(5) {
    animation-delay: 0.5s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .timeline-axis {
        left: 20px;
    }

    .timeline-item,
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        justify-content: flex-start;
        padding-left: 60px;
        padding-right: 20px;
    }

    .timeline-dot {
        left: 20px;
    }

    .timeline-card::before {
        left: -20px !important;
        right: auto !important;
    }

    .timeline-card-wrapper {
        max-width: 100%;
    }

    .timeline-title {
        font-size: 1.5rem;
    }
}