.career-section {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
}

.career-timeline {
    position: relative;
    padding: 40px 0;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--card-border);
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding-left: 140px;
    /* Increased padding to move content right */
}

.career-timeline::before {
    content: '';
    position: absolute;
    left: 120px;
    /* Move timeline line further right */
    top: 40px;
    bottom: 40px;
    width: 2px;
    background: linear-gradient(to top, transparent, rgba(37, 99, 235, 0.4) 15%, rgba(37, 99, 235, 0.4) 85%, transparent);
}

.timeline-entry {
    position: relative;
    padding: 20px 0;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.4s ease;
}

.timeline-entry.visible {
    opacity: 1;
    transform: translateX(0);
}

.timeline-dot {
    display: none;
    position: absolute;
    left: 5px;
    /* Adjusted to prevent overlap with line */
    top: 50%;
    width: 12px;
    /* Slightly smaller dots */
    height: 12px;
    /* Slightly smaller dots */
    background: var(--accent);
    border-radius: 50%;
    transform: translateY(-50%);
    border: 2px solid var(--bg-card);
    /* Add border to create separation */
}

.timeline-date {
    position: absolute;
    left: -150px;
    /* Move dates further left */
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    text-align: right;
    /* Right align the dates */
    width: 100px;
    /* Fixed width for alignment */
}

.timeline-content {
    background: #ffffff;
    border: 1px solid var(--card-border);
    padding: 20px;
    border-radius: 12px;
    transition: transform 0.3s ease;
    position: relative;
    margin-left: 35px;
    /* More space between content and line */
}

.timeline-content::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 50%;
    width: 25px;
    /* Slightly longer connecting line */
    height: 2px;
    background: var(--accent);
    transform: translateY(-50%);
}

.timeline-content:hover {
    transform: translateX(10px);
    box-shadow: 0 14px 24px rgba(15, 23, 42, 0.12);
    border-color: rgba(37, 99, 235, 0.2);
}

.timeline-content h3 {
    font-size: 20px;
    color: var(--text);
    margin-bottom: 5px;
}

.timeline-content h4 {
    font-size: 16px;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 15px;
}

.achievement-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.achievement-list li {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
    /* Add padding for the dots */
}

.achievement-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

.timeline-entry.education .timeline-content {
    background: #ffffff;
}

@media (max-width: 768px) {
    .career-timeline {
        padding-left: 140px;
        /* Adjusted for mobile */
    }

    .career-timeline::before {
        left: 120px;
        /* Adjusted to match new dot position */
    }

    .timeline-dot {
        left: 25px;
    }

    .timeline-date {
        left: -95px;
        /* Adjusted for mobile */
        font-size: 10px;
        width: 80px;
    }
}