/* Timeline Section Styles - Tier 1 UI/UX */
.timeline {
    position: relative;
    overflow: hidden;
    background-image: 
        radial-gradient(circle at 25px 25px, rgba(106, 27, 154, 0.03) 1px, transparent 0),
        radial-gradient(circle at 75px 75px, rgba(106, 27, 154, 0.03) 1px, transparent 0);
    background-size: 100px 100px;
}

.timeline-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline-wrapper {
    position: relative;
    margin: 40px 0;
}

.timeline-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    transform: translateX(-50%);
    background: linear-gradient(to bottom, var(--primary-light), var(--primary-color));
    border-radius: 4px;
    z-index: 1;
}

.timeline-item {
    position: relative;
    margin-bottom: 60px;
    min-height: 50px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    z-index: 3;
    border: 4px solid var(--background-white);
    box-shadow: 0 4px 20px rgba(106, 27, 154, 0.3);
    transition: all 0.3s ease;
}

.timeline-dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.timeline-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid transparent; 
    opacity: 0;
    transition: all 0.3s ease;
}

.timeline-item.active .timeline-dot {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
    transform: scale(1.2);
    box-shadow: 0 4px 25px rgba(255, 109, 0, 0.4);
}

.timeline-item.active .timeline-dot::before {
    background-color: #fff;
}

.timeline-item.active .timeline-dot::after {
    opacity: 1;
    border-color: var(--secondary-color);
    animation: pulse 2s infinite;
}

.timeline-item.complete .timeline-dot {
    background: #56c57a;
}

.timeline-item.complete .timeline-dot::before {
    background-color: #fff;
    content: '✓';
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #56c57a;
}

.timeline-content {
    background-color: var(--background-white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    position: relative;
    border: 1px solid rgba(106, 27, 154, 0.05);
    width: 43%;
}

.timeline-content.left {
    margin-right: 50%;
    margin-left: 20px;
}

.timeline-content.right {
    margin-left: 50%;
    margin-right: 20px;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 20px;
    transform: rotate(45deg);
    width: 16px;
    height: 16px;
    background-color: var(--background-white);
    z-index: 2;
    border: 1px solid rgba(106, 27, 154, 0.05);
}

.timeline-content.left::before {
    right: -8px;
    border-top: 0;
    border-left: 0;
}

.timeline-content.right::before {
    left: -8px;
    border-bottom: 0;
    border-right: 0;
}

.timeline-date {
    display: inline-block;
    padding: 6px 14px;
    background: linear-gradient(to right, var(--primary-light), var(--primary-color));
    border-radius: 4px;
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 15px;
    box-shadow: 0 3px 10px rgba(106, 27, 154, 0.2);
    position: relative;
    letter-spacing: 0.5px;
}

.timeline-date::before {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background-color: var(--primary-color);
    left: -3px;
    top: calc(50% - 3px);
    border-radius: 50%;
}

.timeline-item.active .timeline-date {
    background: linear-gradient(to right, var(--secondary-color), var(--secondary-dark));
    box-shadow: 0 3px 10px rgba(255, 109, 0, 0.2);
}

.timeline-item.active .timeline-date::before {
    background-color: var(--secondary-color);
}

.timeline-content h3 {
    margin-bottom: 12px;
    font-size: 1.4rem;
    color: var(--text-dark);
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 8px;
}

.timeline-content h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--primary-light));
    border-radius: 2px;
    transition: all 0.3s ease;
}

.timeline-item.active .timeline-content h3::after {
    background: linear-gradient(to right, var(--secondary-color), var(--secondary-light, #ffab66));
    width: 60px;
}

.timeline-content p {
    margin-bottom: 20px;
    line-height: 1.6;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.timeline-status {
    display: inline-flex;
    align-items: center;
    margin-top: 20px;
    position: relative;
}

.status-icon {
    margin-right: 10px;
    width: 26px;
    height: 26px;
    background-color: rgba(106, 27, 154, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: all 0.3s ease;
    font-size: 12px;
}

.timeline-item.active .status-icon {
    background-color: var(--secondary-color);
    color: white;
    box-shadow: 0 4px 10px rgba(255, 109, 0, 0.2);
}

.status-text {
    display: inline-block;
    padding: 7px 16px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    background-color: rgba(106, 27, 154, 0.08);
    color: var(--primary-color);
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.timeline-item.active .status-text {
    background-color: rgba(255, 109, 0, 0.1);
    color: var(--secondary-color);
    box-shadow: 0 2px 8px rgba(255, 109, 0, 0.15);
}

.timeline-item.active .timeline-content {
    border-color: rgba(255, 109, 0, 0.15);
    box-shadow: 0 8px 30px rgba(255, 109, 0, 0.1);
}

.timeline-item.complete .status-text {
    background-color: rgba(86, 197, 122, 0.1);
    color: #56c57a;
}

.timeline-item.complete .status-icon {
    background-color: #56c57a;
    color: white;
}

.timeline-item:hover .timeline-content {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border-color: rgba(106, 27, 154, 0.1);
}

.timeline-item.active:hover .timeline-content {
    border-color: rgba(255, 109, 0, 0.1);
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(0.9);
        opacity: 0.8;
    }
    50% {
        opacity: 0.4;
    }
    70% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0;
    }
    100% {
        transform: translate(-50%, -50%) scale(0.9);
        opacity: 0;
    }
}

/* Animation effect for timeline items */
.timeline-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.timeline-item.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive timeline */
@media (max-width: 992px) {
    .timeline-wrapper::before {
        left: 20px;
    }
    
    .timeline-dot {
        left: 20px;
    }
    
    .timeline-content.left,
    .timeline-content.right {
        width: calc(100% - 60px);
        margin-left: 60px;
        margin-right: 0;
    }
    
    .timeline-content.left::before,
    .timeline-content.right::before {
        left: -8px;
        border-bottom: 0;
        border-right: 0;
    }
}

@media (max-width: 576px) {
    .timeline-content {
        padding: 20px;
    }
    
    .timeline-dot {
        width: 20px;
        height: 20px;
    }
    
    .timeline-date {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    
    .timeline-content h3 {
        font-size: 1.2rem;
    }
    
    .timeline-content p {
        font-size: 0.9rem;
    }
    
    .timeline-content.left,
    .timeline-content.right {
        width: calc(100% - 50px);
        margin-left: 50px;
    }
    
    .timeline-wrapper::before {
        left: 20px;
    }
}