@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    overflow: hidden;
}

.carousel-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

.carousel {
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out, transform 5s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.slide.active {
    opacity: 1;
}

.slide img {
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    transform: scale(1);
    transition: transform 5s ease-in-out;
}

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

.slide h2 {
    position: absolute;
    bottom: 50px;
    left: 50px;
    color: #fff;
    font-size: 3rem;
    font-weight: 600;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.slide.active h2 {
    opacity: 1;
    transform: translateY(0);
}

button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    transition: background 0.3s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
}

button:hover {
    background: rgba(255, 255, 255, 0.5);
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

@media (max-width: 768px) {
    .slide h2 {
        font-size: 2rem;
        bottom: 30px;
        left: 30px;
    }

    button {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .prev {
        left: 10px;
    }

    .next {
        right: 10px;
    }
}