


 * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    height: 100vh;
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
    overflow: hidden;
}

.carousel {
    position: relative;
    width: 80vw;
    height: 400px;
    transform-style: preserve-3d;
    transform: translateZ(-500px) rotateY(0deg);
    transition: transform 1s;
}

.slide {
    position: absolute;
    top: 0;
    left: 50%;
    transform-origin: center center;
    width: 200px;
    height: 300px;
    background: #222;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    -webkit-box-reflect: below 5px linear-gradient(transparent, rgba(255, 255, 255, 0.1));
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.controls {
    position: absolute;
    bottom: 50px;
    display: flex;
    gap: 20px;
}

button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background 0.3s;
}

button:hover {
    background: rgba(255, 255, 255, 0.3);
}


@media (max-width: 600px) {
    .carousel {
        width: 95vw;
        height: 300px;
        transform: translateZ(-300px) rotateY(0deg);
    }

    .slide {
        width: 150px;
        height: 220px;
    }

    .controls {
        bottom: 20px;
        gap: 10px;
    }

    button {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}


@media (min-width: 601px) and (max-width: 1024px) {
    .carousel {
        width: 90vw;
        height: 350px;
        transform: translateZ(-400px) rotateY(0deg);
    }

    .slide {
        width: 180px;
        height: 260px;
    }

    .controls {
        bottom: 30px;
    }
}

@media (min-width: 1025px) {
    .carousel {
        width: 80vw;
        height: 400px;
        transform: translateZ(-500px) rotateY(0deg);
    }

    .slide {
        width: 200px;
        height: 300px;
    }
}