/* Hero Section Fixes */
#hero-scroll-section {
    position: relative;
    height: 100vh;
    max-height: 100vh;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 1.2s ease-out;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
}

/* Scroll Text Animation Styles */
.scroll-text-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: none;
}

.scroll-text-block {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    text-align: center;

    opacity: 0;
    transform:
        translate(-50%, -40%) scale(0.95);

    filter: blur(12px);
    transition:
        opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
        transform 1.1s cubic-bezier(0.22, 1, 0.36, 1),
        filter 0.9s ease;

    will-change: opacity, transform, filter;
}

.scroll-text-block.active {
    opacity: 1;
    transform:
        translate(-50%, -50%) scale(1);

    filter: blur(0);
}

.scroll-text-block.active~.hero-background img {
    transform: scale(1.05);
}

.scroll-text-block.previous {
    opacity: 0;
    transform:
        translate(-50%, -60%) scale(1.05);

    filter: blur(10px);
}

.hero-text-content {
    font-family: 'Abel', sans-serif;
    display: inline-block;
    font-weight: 300;
    font-size: 5rem;
    color: white;
    text-align: center;
    text-shadow: 3px 3px 12px rgba(0, 0, 0, 0.6);
    letter-spacing: 4px;
    text-transform: uppercase;
    padding: 0 20px;
    margin: 0;
    line-height: 1.2;
}

.hero-text-content span {
    display: inline-block;
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity 0.6s ease,
        transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.scroll-text-block.active .hero-text-content span {
    opacity: 1;
    transform: translateY(0);
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    opacity: 1;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.scroll-indicator.hidden {
    opacity: 0;
    pointer-events: none;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    margin: 0 auto 8px;
    border-right: 2px solid rgba(255, 255, 255, 0.9);
    border-bottom: 2px solid rgba(255, 255, 255, 0.9);
    transform: rotate(45deg);
    animation: bounceArrow 2s infinite;
}

.scroll-hint {
    font-family: 'Abel', sans-serif;
    font-weight: 300;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* Animations */
@keyframes bounceArrow {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: rotate(45deg) translateY(0);
    }

    40% {
        transform: rotate(45deg) translateY(-8px);
    }

    60% {
        transform: rotate(45deg) translateY(-4px);
    }
}

/* Scroll lock class */
.scroll-locked {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* Remove any default margins/padding */
body,
html {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

/* Fix for the next section after hero */
.info-section {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-text-content {
        font-size: 3.5rem;
        letter-spacing: 3px;
    }

    .scroll-indicator {
        bottom: 40px;
    }
}

@media (max-width: 480px) {
    .hero-text-content {
        font-size: 2.5rem;
        letter-spacing: 2px;
        padding: 0 15px;
    }

    .scroll-indicator {
        bottom: 30px;
    }

    .scroll-hint {
        font-size: 0.7rem;
        letter-spacing: 2px;
    }
}