.realisation {
    padding: 44px 30px 0;
    display: block;
    height: 80vh;
    width: 100%;
    color: var(--color-white);
}

.realisation .rea-head {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 500px;
}

.rea-head h2 {
    font-family: var(--font-primary);
}

.slider-container {
    margin-top: 24px;
    width: 100%;
    overflow: hidden;
    border-radius: 20px;
    position: relative;
}

.slider-wrapper {
    display: flex;
    width: calc(694px * 12);
    animation: slideInfinite 30s linear infinite;
}

.slide {
    width: 650px;
    height: 451px;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease;
}
.slide:not(:first-child){
    margin-left: 40px;
}

.slide:hover {
    transform: scale(1.05);
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.slide:hover img {
    transform: scale(1.1);
}

.slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.slide:hover .slide-overlay {
    transform: translateY(0);
}

.slide-title {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 5px;
}

.slide-description {
    font-size: 0.9em;
    opacity: 0.9;
}

@keyframes slideInfinite {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-2880px);
    }
}

.slider-container:hover .slider-wrapper {
    animation-play-state: paused;
}

.slider-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.control-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

.control-btn:hover,
.control-btn.active {
    background: white;
}

@media (max-width: 768px) {
    .slide {
        min-width: 250px;
        height: 300px;
    }

    .slider-container {
        margin: 20px;
    }
}
@media (max-width: 480px){
    .realisation {
        padding: 44px 0px 0;
        display: block;
        height: 80vh;
        width: 100%;
        color: var(--color-white);
    }
    
    .realisation .rea-head {
        padding: 0 12px;
        display: flex;
        flex-direction: column;
        gap: 12px;
        max-width: 100%;
    }
    .slider-container {
        margin: 24px 0 ;
        border-radius: 12px;
        position: relative;
    }
    
    .slider-wrapper {
        display: flex;
        width: calc(694px * 8);
        animation: slideInfinite 20s linear infinite;
    }
    
    .slide {
        width: 650px;
        height: 451px;
        border-radius: 15px;
        overflow: hidden;
        position: relative;
        transition: transform 0.3s ease;
    } 
}