html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
}

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

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.carousel-text {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 60px;
    background: rgba(176, 209, 255, 0.79);
    color: black;
    padding: 1.5rem;
    text-align: center;
    transform: translateY(100%);
    transition: transform 0.5s ease;
}

.carousel-slide.active .carousel-text {
    transform: translateY(0);
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    z-index: 10;
}

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

.carousel-button.prev {
    left: 20px;
}

.carousel-button.next {
    right: 20px;
}

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

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #444;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #fff;
}

.carousel-dot.active {
    background: #ffd700;
    border: 2px solid #444;
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .carousel-button {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .carousel-text {
        bottom: 50px;
        padding: 1rem;
        font-size: 0.9rem;
    }

    .carousel-dot {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    .carousel-button {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .carousel-button.prev {
        left: 10px;
    }

    .carousel-button.next {
        right: 10px;
    }

    .carousel-text {
        bottom: 40px;
        padding: 0.8rem;
        font-size: 0.8rem;
    }

    .carousel-dot {
        width: 8px;
        height: 8px;
    }
}