:root {
    --bg-color: #080808;
    --second-bg-color: #131313;
    --text-color: white;
    --main-color: #00ffee;
}

.working_experience {
    background: var(--bg-color);
    color: #fff;
    padding: 5rem 0;
    margin: 0;
    position: relative;
    z-index: 1;
    clear: both; /* Ensure proper section separation */
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(0, 255, 238, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(123, 44, 191, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(0, 255, 238, 0.03) 0%, transparent 50%);
    background-attachment: fixed;
}

.working_experience .section-title {
    font-size: 60px; 
    font-weight: bold;
    font-family: 'Libre Baskerville', serif;
    text-align: center;
    margin-bottom: 4rem;
    color: #fff;
}

.container_tech_skills {
    max-width: 1400px;
    margin: auto;
    padding: 0 15px;
}

.timeline-items {
    max-width: 1200px;
    margin: auto;
    display: flex;
    flex-direction: column;
    position: relative;
}

.timeline-items::before {
    content: '';
    position: absolute;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--main-color), #7b2cbf);
    left: 50%;
    transform: translateX(-50%);
}

.timeline-item {
    margin-bottom: 40px;
    width: 100%;
    position: relative;
    opacity: 1; /* Always visible */
    transform: translateY(0); /* No initial transform */
    /* Remove transition */
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: calc(50% + 30px);
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: calc(50% + 30px);
}

.timeline-item:nth-child(even) .timeline-date {
    right: calc(50% + 30px);
    text-align: right;
    top: 10px;
    transform: translateX(0);
}

.timeline-item:nth-child(odd) .timeline-date {
    left: calc(50% + 30px);
    text-align: left;
    top: 10px;
    transform: translateX(0);
}

.timeline-dot {
    height: 20px;
    width: 20px;
    background-color: var(--main-color);
    box-shadow: 0 0 20px rgba(0, 255, 238, 0.3);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 50%;
    top: 10px;
    border: 3px solid var(--bg-color);
}

.timeline-date {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-color);
    margin: 6px 0 15px;
    position: absolute;
    white-space: normal;
    overflow: visible;
    text-overflow: ellipsis;
    word-break: break-word;
}

.timeline-content {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 238, 0.2);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--main-color), #7b2cbf);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 255, 238, 0.4);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(0, 255, 238, 0.1);
}

.timeline-content:hover::before {
    transform: scaleX(1);
}

.timeline-content h3 {
    font-size: 24px;
    color: var(--text-color);
    margin-bottom: 10px;
    font-weight: 500;
    font-family: 'Libre Baskerville', serif;
}

.timeline-content p {
    font-size: 16px;
    color: var(--text-color);
    font-weight: 300;
    line-height: 2;
    font-family: "Fira Mono", monospace;
}

.timeline-content img {
    width: 50px;
    height: auto;
    border-radius: 10%;
}

/* Media Query for Mobile Devices */
@media (max-width: 768px) {
    .working_experience .section-title {
        font-size: 40px;
        text-align: center;
        margin: 2rem auto;
    }
    
    .timeline-items {
        max-width: 100%;
        margin: auto;
        padding: 0 15px;
        position: relative;
    }
    
    .timeline-items::before {
        content: '';
        position: absolute;
        width: 4px;
        height: 100%;
        background: linear-gradient(180deg, var(--main-color), #7b2cbf);
        left: 15px;
        transform: none;
    }
    
    .timeline-item {
        margin-bottom: 20px;
        width: 100%;
        position: relative;
        padding-left: 40px;
    }
    
    .timeline-item .timeline-date {
        font-size: 14px;
        position: relative;
        left: 15px;
        text-align: left;
        margin-bottom: 10px;
    }
    
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin: 0;
        text-align: left;
    }
    
    .timeline-content {
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(0, 255, 238, 0.2);
        padding: 20px;
        border-radius: 15px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        backdrop-filter: blur(10px);
        width: calc(100% - 20px);
        margin: 0 auto;
    }
    
    .timeline-dot {
        height: 15px;
        width: 15px;
        left: 2px;
        position: absolute;
        box-shadow: 0 0 15px rgba(0, 255, 238, 0.2);
    }
}

/* Media Query for very small screens */
@media (max-width: 375px) {
    .working_experience .section-title {
        font-size: 28px;
        text-align: center;
        margin: 1rem auto;
    }
    
    .timeline-items {
        max-width: 100%;
        margin: auto;
        padding: 0 10px;
        position: relative;
    }
    
    .timeline-items::before {
        content: '';
        position: absolute;
        width: 3px;
        height: 100%;
        background: linear-gradient(180deg, var(--main-color), #7b2cbf);
        left: 10px;
        transform: none;
    }
    
    .timeline-item {
        margin-bottom: 15px;
        width: 100%;
        position: relative;
        padding-left: 30px;
    }
    
    .timeline-item .timeline-date {
        font-size: 12px;
        position: relative;
        left: 10px;
        text-align: left;
        margin-bottom: 5px;
    }
    
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin: 0;
        text-align: left;
    }
    
    .timeline-content {
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(0, 255, 238, 0.2);
        padding: 15px;
        border-radius: 12px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        backdrop-filter: blur(10px);
        width: calc(100% - 20px);
        margin: 0 auto;
    }
    
    .timeline-dot {
        height: 12px;
        width: 12px;
        left: 8px;
        position: absolute;
        box-shadow: 0 0 10px rgba(0, 255, 238, 0.2);
    }
}
