.experience-timeline {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    padding-left: 50px;
    margin-left: 150px;
}

/* Add continuous line */
.timeline-item:first-child::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: -900px; /* Make it really long to ensure it extends all the way */
    width: 2px;
    background: #386dff;
}

/* Add the dot */
.timeline-item::after {
    content: '';
    position: absolute;
    left: -7px; /* Perfect center: half of dot width (16px/2 = 8px) minus half of line width (2px/2 = 1px) */
    top: 0;
    width: 12px;
    height: 12px;
    background: #111;
    border: 2px solid #386dff;
    border-radius: 50%;
    z-index: 1;
}

.date {
    position: absolute;
    left: -170px;
    top: -5px;
    background: #1a1a1a;
    color: #386dff;
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: bold;
    font-family: 'Inter';
    width: max-content;
}

.content {
    background: #1a1a1a;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #386dff;
}

.role {
    color: #386dff;
    margin: 0 0 5px 0;
    font-family: 'Inter';
}

.company {
    color: #ffffff;
    font-size: 0.9em;
    font-family: 'Inter';
}

.description, .exp-href {
    color: #cccccc;
    margin-top: 10px;
    font-size: 0.9em;
    line-height: 1.5;
    font-family: 'Inter';
}

.exp-href {
    color: #1f7bb9;
}

.exp-title {
    text-align: center;
    color: #386dff;
    font-size: 2.5em;
    margin-bottom: 40px;
    font-family: 'Oswald';
    font-weight: 600;
    word-spacing: 10px;
    letter-spacing: 2px;
}

footer {
    margin-top: 100px;
}

@media (max-width: 440px) {
    .timeline-item {
        margin-left: 30px;  /* Reduce left margin significantly */
        padding-left: 30px; /* Reduce padding */
    }

    .date {
        left: -25px;    /* Move date above the content */
        top: -30px;     /* Position above the content box */
        font-size: 0.9em;
        padding: 3px 8px;
    }

    .content {
        margin-top: 25px;  /* Make space for the date above */
        padding: 15px;     /* Reduce padding for smaller screens */
    }

    .description {
        font-size: 0.85em;
    }

    .exp-title {
        font-size: 1.8em;
        word-spacing: normal;
        letter-spacing: 1px;
    }

    /* Adjust line and dot positions */
    .timeline-item:first-child::before {
        left: 0;
    }

    .timeline-item::after {
        left: -7px;
    }
}
