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

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: #e9ecef;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    left: 0;
    margin-bottom: 30px;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-content {
    padding: 20px;
    background-color: white;
    border-radius: 6px;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    position: relative;
}

.timeline-content::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -60px;
    background-color: white;
    border: 4px solid #3b7ddd;
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(even) .timeline-content::after {
    left: -60px;
}

.company-logo {
    max-height: 50px;
    max-width: 150px;
    object-fit: contain;
}

@media screen and (max-width: 768px) {
    .timeline::after {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    
    .timeline-item:nth-child(even) {
        left: 0;
    }
    
    .timeline-content::after {
        left: -45px;
        right: auto;
    }
    
    .timeline-item:nth-child(even) .timeline-content::after {
        left: -45px;
    }
}

/* Work Experience Cards */
.work-experience-card {
    transition: all 0.3s ease;
}

.work-experience-card:hover {
    transform: translateY(-2px);
}

.company-logo-container {
    background: white;
    border-radius: 8px;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.company-logo-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Dark mode adjustments */
.dark .work-experience-card {
    background-color: #1a1a1a;
}

.dark .company-logo-container {
    background-color: #2d2d2d;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .work-experience-card {
        padding: 1rem;
    }
    
    .company-logo-container {
        width: 60px;
        height: 60px;
    }
}
