/* Experience page specific styles */
.experience-section {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline-container {
    position: relative;
    padding-left: 30px;
    margin-top: 3rem;
}

.timeline-vertical {
    position: absolute;
    left: 0;
    top: 10px;
    bottom: 10px;
    width: 3px;
    background-color: var(--accent-primary);
    z-index: 0;
}

.experience-list {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
}

.experience-item {
    background-color: var(--bg-secondary);
    border-radius: 8px;
    margin-bottom: 2rem;
    position: relative;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: visible;
}

.experience-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.experience-summary {
    padding: 1.2rem;
    font-weight: bold;
    color: var(--text-primary);
    cursor: pointer;
    position: relative;
    z-index: 2;
}

.experience-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
    display: flex;
    flex-wrap: wrap;
    padding: 0 1.2rem;
    visibility: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease, visibility 0s linear 0.3s, padding 0.3s;
}

.experience-item.active .experience-details {
    max-height: 500px; /* Set a large enough value to accommodate content */
    padding: 0 1.2rem 1.2rem;
    visibility: visible;
    opacity: 1;
    transition: max-height 0.3s ease, opacity 0.3s ease, visibility 0s;
}

.details-left {
    flex: 1 1 60%;
    padding-right: 1rem;
}

.details-right {
    flex: 1 1 40%;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 0.5rem;
}

.software-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-primary);
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.software-btn:hover {
    transform: scale(1.15);
    background-color: var(--accent-secondary);
}

.software-icon {
    width: 32px;
    height: 32px;
}

.exp-arrow {
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--accent-primary);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background-color 0.3s ease;
    overflow: visible;
}

.exp-arrow:hover {
    transform: translateX(-50%) scale(1.1);
    background-color: var(--accent-secondary);
}

.arrow-icon {
    color: black;
    font-size: 12px;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.experience-item.active .arrow-icon {
    transform: rotate(180deg);
}

/* Remove the dots on the timeline */
.experience-item::before {
    display: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .details-left, .details-right {
        flex: 1 1 100%;
    }
    
    .details-right {
        justify-content: flex-start;
        margin-top: 1rem;
    }
}
