.hero-main {
    position: relative;
    isolation: isolate;
}

.hero-with-stats {
    min-height: calc(100vh - 5rem);
    min-height: calc(100dvh - 5rem);
    display: flex;
    flex-direction: column;
}

.hero-main--stack {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.hero-main__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: url("../../images/happy-specialist-inspecting-neural-network-data-center-used-machine-learning.jpg")
        no-repeat center center;
    background-size: cover;
    animation: moveBg 20s infinite alternate ease-in-out;
    transform: translate3d(0, 0, 0) scale(1.08);
    transform-origin: center center;
    transition: transform 0.35s ease-out;
}

@keyframes moveBg {
    0% {
        background-position: center;
    }
    100% {
        background-position: top;
    }
}

.hero-main__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-color: rgba(0, 0, 0, 0.5);
    background-image:
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.1), transparent),
        radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.05), transparent);
}

.hero-main > .container-custom {
    position: relative;
    z-index: 2;
}

.hero-main__content {
    display: grid;
    grid-template-rows: auto 1fr;
    align-content: start;
    padding-top: clamp(3.5rem, 12vh, 8.5rem);
    padding-bottom: 3rem;
}

@media (min-width: 768px) {
    .hero-main__content {
        padding-top: clamp(5rem, 18vh, 12rem);
        padding-bottom: 4rem;
    }
}
