/* Styles for Hero Scroll Animation */

.hero-scroll-container {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    overflow: hidden;
    background-color: var(--black);
}

.scroll-column {
    flex: 1;
    display: flex;
    position: relative;
    animation-duration: 45s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    flex-direction: column; /* This is correct, just re-ordering for clarity */
}

.scroll-column-inner {
    display: flex;
    flex-direction: column;
}

.scroll-column.scroll-up {
    animation-name: scroll-up;
}

.scroll-column.scroll-down {
    animation-name: scroll-down;
    animation-duration: 65s; /* Slower speed for parallax effect */
}

.scroll-image {
    width: 100%;
    height: auto; /* Allow images to have their natural height */
    object-fit: cover; /* Ensure image covers the area without distortion */
    flex-shrink: 0; /* Prevent images from shrinking */
}

@keyframes scroll-up {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-50%);
    }
}

@keyframes scroll-down {
    from {
        transform: translateY(-50%);
    }
    to {
        transform: translateY(0);
    }
}

/* Hero Overlay */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding: 2rem;
}

.hero-overlay h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    color: var(--white);
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    margin-bottom: 0.5rem;
}

.hero-overlay p {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    color: var(--white);
    opacity: 0.9;
    text-shadow: 0 1px 5px rgba(0,0,0,0.5);
    max-width: 600px;
}

/* Responsive adjustments for tablet */
@media (max-width: 1024px) {
    .scroll-column.hide-on-tablet {
        display: none;
    }
}
/* Responsive adjustments for mobile */
@media (max-width: 768px) {
    .scroll-column.hide-on-mobile {
        display: none;
    }

    .scroll-column {
        flex: 0 0 50%; /* Each of the two visible columns takes up 50% of the width */
    }
}