.hero-parallax {
    position: relative;
    height: 100vh;
    background-image: url("/static/images/war-ecology-bg.jpg"); /* Fallback */
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    z-index: 0;
}

/* AVIF support */
@supports (background-image: image-set(url('/static/img/war/ecology-bg.avif') type('image/avif'))) {
    .hero-parallax {
        background-image: image-set(
            url('/static/img/war/ecology-bg.avif') type('image/avif'),
            url('/static/images/war-ecology-bg.jpg') type('image/jpeg')
        );
    }
}

/* Dark overlay for visibility */
.hero-parallax::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.44); /* Adjust alpha as needed */
    z-index: 1;
}

/* Content container */
.hero-content {
    color: #ffffff;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.958);
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Main title (motto) */
.hero-content .motto {
    font-size: 2.8rem;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.4;
    margin-bottom: 1rem;
}

/* Subheading */
.hero-content .subtext {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: #eeeeee;
}

/* Quote below */
.hero-quote {
    font-size: 1.1rem;
    font-style: italic;
    color: #dddddd;
    margin-top: 1rem;
}

/* Scroll down arrow */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    color: white;
    animation: bounce 2s infinite;
    z-index: 2;
}

@keyframes bounce {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, 10px); }
}

@media (max-width: 1280px) {
    .hero-content .motto {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .hero-parallax {
        padding: 1rem;
    }
    .hero-content .motto {
        font-size: 1.8rem;
    }
    .hero-content .subtext {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-content .motto {
        font-size: 1.4rem;
    }
    .hero-content .subtext {
        font-size: 0.9rem;
    }
    .hero-quote {
        font-size: 0.9rem;
    }
}
