.bg-slideshow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.bg-slideshow.active {
    opacity: 1;
}

/* Each slide image */
.bg-slideshow__slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.8s ease-in-out, transform 8s ease-in-out;
    transform: scale(1.03);
}

.bg-slideshow__slide.active {
    opacity: 1;
    transform: scale(1);
}

/* Light overlay to keep content readable */
.bg-slideshow__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.32);
    z-index: 1;
    transition: background 0.3s ease;
}

/* Dark theme overlay */
[data-theme="dark"] .bg-slideshow__overlay {
    background: rgba(26, 26, 46, 0.38);
}

/* When bg is active, make container slightly transparent for depth */
.bg-slideshow.active ~ #desktop-version,
.bg-slideshow.active ~ #mobile-version {
    position: relative;
    z-index: 1;
}

/* Subtle glass effect on form when bg is active */
html[data-bg="active"] .container {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    border-radius: 0.75rem;
    padding-left: 2rem;
    padding-right: 2rem;
}

html[data-bg="active"][data-theme="dark"] .container {
    background: rgba(26, 26, 46, 0.15);
}

/* Mobile container adjustments */
html[data-bg="active"] .mobile_container {
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

html[data-bg="active"][data-theme="dark"] .mobile_container {
    background: rgba(26, 26, 46, 0.20);
}


