/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body and overall setup */
body {
    font-family: Arial, sans-serif;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background-color: #000;
}

/* Carousel container */
.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.carousel {
    display: flex;
    width: 300%; /* Ensure the total width accommodates all three images */
    animation: slide 12s infinite;
}

.carousel-image {
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    transition: opacity 1s ease-in-out;
}

/* Overlay and text styles */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
}

.text-center {
    text-align: center;
    z-index: 10;
}

.text-center h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.text-center p {
    font-size: 1.5rem;
}

/* Carousel Animation */
@keyframes slide {
    0% {
        transform: translateX(0);
    }
    33% {
        transform: translateX(-100vw);
    }
    66% {
        transform: translateX(-200vw);
    }
    100% {
        transform: translateX(0);
    }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .text-center h1 {
        font-size: 2rem;
    }
    .text-center p {
        font-size: 1rem;
    }
}
