/* Experience Page Styles */
.experience-section {
    padding: var(--spacing-3xl) 0;
}

.page-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.page-header h1 {
    font-size: var(--font-4xl);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--spacing-xs);
    color: var(--text-color);
}

.page-header p {
    color: var(--text-secondary);
    font-size: var(--font-md);
}

/* Timeline Styles */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: var(--spacing-lg) 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    height: 100%;
    width: 2px;
    background: linear-gradient(180deg, var(--primary-color), rgba(var(--primary-color-rgb), 0.2));
}

.timeline-item {
    position: relative;
    margin-bottom: var(--spacing-xl);
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

.timeline-item:nth-child(even) {
    justify-content: flex-start;
}

.timeline-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    z-index: 2;
}

.timeline-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--bg-color);
    border: 4px solid var(--primary-color);
    box-shadow: 0 0 0 6px rgba(var(--primary-color-rgb), 0.15);
    position: relative;
    z-index: 1;
}

.timeline-content {
    background: var(--bg-alt);
    padding: var(--spacing-lg);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    width: calc(50% - 40px);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: auto;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: auto;
}

.timeline-content:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.timeline-badge {
    display: inline-block;
    background: var(--primary-color);
    color: var(--bg-color);
    padding: 0.5rem var(--spacing-sm);
    border-radius: var(--radius-full);
    font-size: var(--font-xs);
    font-weight: var(--font-weight-medium);
    margin-bottom: var(--spacing-sm);
}

.timeline-content h3 {
    font-size: var(--font-xl);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--spacing-xs);
    color: var(--text-color);
}

.timeline-content h4 {
    font-size: var(--font-md);
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
    font-weight: var(--font-weight-medium);
}

.timeline-description {
    color: var(--text-secondary);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--spacing-sm);
}

.timeline-highlights {
    list-style: none;
    padding: 0;
    margin-top: var(--spacing-md);
}

.timeline-highlights li {
    position: relative;
    padding-left: var(--spacing-md);
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    line-height: var(--line-height-relaxed);
}

.timeline-highlights li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: var(--font-weight-bold);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .timeline-content {
        width: calc(50% - 30px);
        padding: 1.75rem;
    }
}

@media (max-width: 768px) {
    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        justify-content: flex-start !important;
        padding-left: 50px;
    }

    .timeline-marker {
        left: 20px;
        transform: translateX(0);
    }

    .timeline-content {
        width: 100%;
        margin: 0 !important;
        padding: var(--spacing-md);
    }

    .experience-section {
        padding: var(--spacing-xl) 0;
    }
}

@media (max-width: 480px) {
    .timeline {
        padding: var(--spacing-sm) 0;
    }
    
    .timeline-item {
        margin-bottom: var(--spacing-lg);
        padding-left: 40px;
    }
    
    .timeline::before {
        left: 15px;
    }
    
    .timeline-marker {
        left: 15px;
    }
    
    .timeline-dot {
        width: 16px;
        height: 16px;
        border: 3px solid var(--primary-color);
    }
    
    .timeline-content {
        padding: 1.25rem;
    }
    
    .timeline-badge {
        padding: 0.35rem 0.8rem;
    }
    
    .timeline-highlights {
        margin-top: var(--spacing-sm);
    }
    
    .timeline-highlights li {
        padding-left: 1.25rem;
        margin-bottom: var(--spacing-xs);
    }
    
    .experience-section {
        padding: var(--spacing-lg) 0;
    }
}
