/* Animated Background Container */
.animated-bg-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background-color: #1D1D1D;
}

.animated-bg-container .bg-image {
    z-index: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.animated-bg-container .bg-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, 
        #1D1D1D 0%, 
        #1D1D1D 30%, 
        rgba(29, 29, 29, 0.2) 100%);
    z-index: 1;
}

.animated-bg-container .bg-image.active {
    opacity: 1;
}

.animated-bg-container .bg-image.fade-out {
    opacity: 0;
}

/* Content overlay for the animated background */
.animated-bg-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    color: white;
    text-align: center;
    padding: 20px;
}

/* Optional: Add a subtle overlay for better text readability */
.animated-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 5;
}
