/* --- /css/sections/experience-section.css --- */

/* Keyframe Animations for the Gallery */
@keyframes scroll-down { 0% { transform: translateY(0); } 100% { transform: translateY(-50%); } }
@keyframes scroll-up { 0% { transform: translateY(-50%); } 100% { transform: translateY(0); } }

.experience-section {
    background-color: #000;
    color: #fff;
    padding: 0;
    overflow: hidden; 
}

.experience-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.experience-content .section-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 25px;
}

.experience-content p {
    color: #cccccc;
    line-height: 1.7;
    max-width: 450px;
    margin-bottom: 40px;
}

.btn-outline {
    border: 1px solid #fff;
    color: #fff;
    background-color: transparent;
    padding: 15px 30px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 50px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background-color: #fff;
    color: #000;
}

.experience-gallery {
    display: flex;
    gap: 24px;
    height: 700px; 
}

.gallery-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.gallery-column.animate-down {
    animation: scroll-down 5s linear infinite;
}

.gallery-column.animate-up {
    animation: scroll-up 5s linear infinite;
}

.gallery-column img {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
    aspect-ratio: 1 / 1;
}

/* --- Responsive Styles --- */
@media (max-width: 1399px) { 
    .experience-grid {
        gap: 40px;
    }
}

@media (max-width: 991px) {
    .experience-section {
        padding: 60px 0;
    }
    .experience-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    .experience-content {
        text-align: center;
    }
    .experience-content p {
        margin-left: auto;
        margin-right: auto;
    }

    /* --- UPDATED TO FIX OVERLAPPING ISSUE --- */
    .experience-gallery {
        height: 80vh; 
        gap: 15px;

        /* ADDED: This is the fix. It clips the images that overflow the container. */
        overflow: hidden;

        /* ADDED: Establishes a stacking context, which is good practice here. */
        position: relative;
    }
}