/* Static Background Image Styles */

/* Default background - first image loads immediately */
body {
    background-image: url('../images/backgrounds/rene-riegal-0VFr6ub7HlA-unsplash.jpg');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-color: #2c3e50; /* Fallback color only if image fails to load */
}

/* Ensure content remains readable with background images */
#wrapper {
    backdrop-filter: blur(1px);
}

.panel {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
}

/* Optional: Add a subtle overlay for better text readability */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    z-index: -1;
    pointer-events: none;
}

/* Animation keyframes for background rotation (if you want CSS-only rotation) */
@keyframes backgroundRotation {
    0% { background-image: url('../images/backgrounds/rene-riegal-0VFr6ub7HlA-unsplash.jpg'); }
    20% { background-image: url('../images/backgrounds/graham-holtshausen-63JKK67yGUE-unsplash.jpg'); }
    40% { background-image: url('../images/backgrounds/will-turner-qtWJw4MdF5Q-unsplash.jpg'); }
    60% { background-image: url('../images/backgrounds/joshua-hibbert-_phWC_cj5o8-unsplash.jpg'); }
    80% { background-image: url('../images/backgrounds/matt-zhang-mKpDfV5qn2U-unsplash.jpg'); }
    100% { background-image: url('../images/backgrounds/rene-riegal-0VFr6ub7HlA-unsplash.jpg'); }
}

/* Apply the animation - uncomment to enable CSS-only rotation */
/* 
body.rotating-background {
    animation: backgroundRotation 150s infinite;
}
*/

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    body {
        background-attachment: scroll; /* Fixed attachment can cause issues on mobile */
    }
}
