/* Parallax Styles */

/* General parallax settings */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Specific parallax sections */
.parallax-header {
    position: relative;
    width: 100%;
    min-height: 100vh;
    text-align: center;
    color: #fff;
    background-image: url(../img/page1bg.png); /* TODO: Convert to JPG for better loading performance */
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* YouTube video background - removed and replaced with background image
#youtube-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

#youtube-background iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    height: 100vh;
    min-width: 177.77vh;
    min-height: 56.25vw;
}
*/

.parallax-about {
    background-image: url(../img/bg.png);
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    color: #fff;
}

/* Overlay for better text readability */
.parallax-overlay {
    background-color: rgba(0, 0, 0, 0.5);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2; /* Ensure overlay is above video but below content */
}

/* Content positioning for parallax sections */
.parallax-content {
    position: relative;
    z-index: 3; /* Increased to be above overlay */
    padding: 100px 0;
}

/* Header content positioning */
.header-content {
    position: relative;
    z-index: 3; /* Ensure content is above overlay */
}

/* Animation for section transitions */
.fade-in {
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.fade-in.visible {
    opacity: 1;
}

/* Responsive adjustments */
@media(max-width:768px) {
    .parallax {
        background-attachment: scroll; /* Fallback for mobile devices */
    }
}
