.sliding-section {
    overflow: hidden;
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: rgba(241, 245, 249, 0.6);
    margin-bottom: 3rem;
}

.carousel-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.cards-row {
    display: flex;
    gap: 2rem;
    width: max-content;
}

/* Row Animations */
.cards-row:first-child {
    animation: bounceRight 60s ease-in-out infinite;
}

.cards-row:last-child {
    animation: bounceLeft 60s ease-in-out infinite;
}

@keyframes bounceRight {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(calc(-100% + 100vw)); }
}

@keyframes bounceLeft {
    0%, 100% { transform: translateX(calc(-100% + 100vw)); }
    50% { transform: translateX(0); }
}

.project-card {
    min-width: 1000px;
    height: 500px; /* 16:9 aspect ratio */
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: all 0.5s ease;
    filter: grayscale(1) brightness(0.5);
    flex-shrink: 0;
}

.project-card:hover {
    filter: grayscale(0) brightness(0.9);
    z-index: 10;
}

.project-background {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.project-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .project-card {
        min-width: 320px;
        height: 180px; /* Maintain 16:9 ratio */
    }
    
    .section-title {
        font-size: 2rem;
    }

    .carousel-container {
        gap: 2rem;
    }
}
