/* General Reset */
body {
    margin: 0;
    padding: 0;
    
}

/* 1. Container Setup */
.banner-container {
    position: relative;
    width: 100%;
    height: 500px; /* Adjust as needed */
    overflow: hidden;
    background-color: #000;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* 2. Slide Design & Stacking */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0; /* Hidden by default */
    z-index: 1;
    /* This creates the smooth cross-fade and slow zoom */
    animation: fadeAnimation 12s infinite ease-in-out;
}

/* Dark overlay to make white text pop */
.slide::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
}

/* 3. Animation Timing Logic */
/* Total duration 12s / 3 images = 4s per image */
.slide:nth-child(2) {
    animation-delay: 0s;
}
.slide:nth-child(3) {
    animation-delay: 4s;
}
.slide:nth-child(4) {
    animation-delay: 8s;
}

@keyframes fadeAnimation {
    0% {
        opacity: 0;
        transform: scale(1);
    }
    10% {
        opacity: 1; /* Fade In */
    }
    33% {
        opacity: 1; /* Visible */
    }
    45% {
        opacity: 0; /* Fade Out (Disappear) */
        transform: scale(1.08); /* Subtle zoom for professional look */
    }
    100% {
        opacity: 0;
    }
}

/* 4. Text Overlay Styling */
.overlay-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10; /* Ensures text stays above images */
    text-align: center;
    width: 100%;
    pointer-events: none; /* Allows clicks to pass through if needed */
}

.gallery-title {
    color: #ffffff;
    font-size: 3.5rem;
    font-weight: 200;
    letter-spacing: 12px;
    text-transform: uppercase;
    margin: 0;
}

.gallery-title span {
    font-weight: 800; /* Modern bold contrast */
    color: #fff;
}

.accent-line {
    width: 80px;
    height: 4px;
    background: #ffffff;
    margin: 25px auto;
    border-radius: 2px;
}

/* 5. Mobile Responsiveness */
@media (max-width: 768px) {
    .banner-container {
        height: 350px;
    }
    .gallery-title {
        font-size: 2rem;
        letter-spacing: 6px;
    }
}
