:root {
    --mouse-x: 50%;
    --mouse-y: 50%;

    --xA: 300px;
    --xB: 300px;
    --yA: 300px;
    --yB: 300px;

    --rA: 10deg;
    --rB: 20deg;
}

.hero-container {
    margin: 0 0 0 30px;
    width: 100%;
    height: 100vh;
    color: whitesmoke;
    background-color: #bc4b5100;

    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    gap: 2vh;
    z-index: 3;
}

.hero-content {
    width: 40%;
    padding: 0 10em;
}

.hero-content h2 {
    font-weight: 100;
}

.hero-mask-container {
    width: 60%;
    height: 100vh;

    position: relative;

}

.floating-img {
    aspect-ratio: 1/1;
    width: 450px;
    background-image: url("../images/floating-light.png");
    background-position: center center;
    background-size: contain;
    background-repeat: no-repeat;

    translate: 50% 50%;
}

@keyframes moveFloating {
    0% {
      transform: translate3d(var(--xA), var(--yA), 0) rotate(var(--rA));
    }
    100% {
      transform: translate3d(var(--xB), var(--yB), 0) rotate(var(--rB));
    }
  }

.hero-mask {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    background-color: #221e2c;

    mask: radial-gradient(
        circle at var(--mouse-x) var(--mouse-y),
        transparent 100px,
        black 450px
    );
    -webkit-mask: radial-gradient(
        circle at var(--mouse-x) var(--mouse-y),
        transparent 100px,
        black 450px
    );
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    aspect-ratio: 1/1;
    width: 100%;
    background: radial-gradient(circle, #d6b56f49 1px, transparent 300px);
}

.hero-container h2 {
    font-size: 1.2vw;
}

.hero-container .auto-type {
    color: #bc4b51;
}

@media not (prefers-reduced-motion: reduce) {
    .floating-img {
        translate: 0 0;

        animation-name: moveFloating;
        animation-duration: 10s;
        animation-iteration-count: 1;
        animation-timing-function: cubic-bezier(.25,.13,.25,1);
    }
}