.carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100vh; /* Fullscreen height */
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-in-out, visibility 0.5s;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7); /* Dim image slightly */
}

.carousel-item.active {
    opacity: 1;
    visibility: visible;
}

.carousel-item.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

.carousel-item.fade-out {
    animation: fadeOut 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 20;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.carousel-dot.active {
    background: rgba(255, 255, 255, 1);
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    cursor: pointer;
    padding: 10px;
    z-index: 20;
    font-size: 20px;
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}
