body {
    background: linear-gradient(120deg,
            #000000 0%,
            #000000 10%,

            #000000 25%,
            #021c23 50%,
            #000000 75%,

            #000000 90%,
            #000000 100%);

    background-size: 1000vw 500vh;
    animation: gradientShift 20s linear infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 100% 50%;
    }
}

.hero-section {
    width: 1280px;
    margin-top: 6rem;
}

.hero-section h1 {
    font-family: "JetBrains Mono", "Source Code Pro", "Roboto Mono", monospace;
    font-weight: 500;
    font-size: 5rem;

    margin-bottom: 0.5rem;

    background: -webkit-linear-gradient(45deg, var(--hero-color-1), var(--hero-color-2));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;

    display: inline-block;
    white-space: nowrap;

    max-width: 0ch;
    cursor: default;

    animation: typing 0.75s steps(9) forwards, heroGradientShift 20s linear infinite;
    animation-delay: 0s, 20s;
}

@keyframes typing {
    from {
        max-width: 0ch;
    }

    to {
        max-width: 9ch;
    }

    0% {
        opacity: 0.5;
    }

    77% {
        opacity: 0.5;
    }

    78% {
        opacity: 1;
    }
}

.hero-section p {
    font-family: "Inter Tight", sans-serif;
    font-weight: 400;
    font-size: 1.5rem;

    line-height: 1.2;

    opacity: 1;

    animation: reveal 1.5s ease;
}

@keyframes reveal {
    0% {
        opacity: 0;
    }

    50% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.hero-section p a {
    font-weight: 700;
    color: #0ED75F;

    transition: 0.2s ease;
    transition-property: color, background-color;

    border-radius: 4px;
}

.hero-section p a:hover {
    background-color: #0ED75F;
    color: black;
}

.hero-extra-blinking-block {
    display: inline-block;

    width: 1.5rem;
    height: 70px;

    transform: translateY(3px);

    margin: 0;

    margin-left: 0.3rem;
    background-color: #0ED75F;

    animation: blink 2s ease infinite;
    animation-delay: 0.75s;

    z-index: -1;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

@keyframes heroGradientShift {
    0% {
        --hero-color-1: white;
        --hero-color-2: white;
    }

    30% {
        --hero-color-1: white;
        --hero-color-2: white;
    }

    40% {
        --hero-color-1: white;
        --hero-color-2: #0ed75f;
    }

    50% {
        --hero-color-1: #0ed75f;
        --hero-color-2: #0ed75f;
    }

    60% {
        --hero-color-1: #0ed75f;
        --hero-color-2: white;
    }

    70% {
        --hero-color-1: white;
        --hero-color-2: white;
    }

    100% {
        --hero-color-1: white;
        --hero-color-2: white;
    }
}

@property --hero-color-1 {
    syntax: '<color>';
    initial-value: white;
    inherits: false;
}

@property --hero-color-2 {
    syntax: '<color>';
    initial-value: white;
    inherits: false;
}

/* Responsive */
@media screen and (max-width: 1312px) {
    .hero-section {
        width: calc(100vw - 32px);
    }
}

@media screen and (max-width: 768px) {
    .hero-section {
        margin: 0;
        margin-top: 16px;
        width: 100vw;
    }

    /* evil css trick - nu mai e nevoie de el :) */
    /* body:has(#nav-hamburger-checkbox:checked) .hero-extra-blinking-block {
        display: none;
    } */
}

@media screen and (max-width: 369px) {
    .hero-section h1 {
        font-size: 3.2rem;
    }

    .hero-section p {
        font-size: 1.2rem;
    }
}

/* Light mode :( */
@media (prefers-color-scheme: light), print {
    body {
        background: linear-gradient(120deg,
                #ffffff 0%,
                #ffffff 10%,

                #ffffff 25%,
                hsl(118, 89%, 93%) 50%,
                #ffffff 75%,

                #ffffff 90%,
                #ffffff 100%);

        background-size: 1000vw 500vh;
        animation: gradientShift 20s linear infinite;
    }

    @property --hero-color-1 {
        syntax: '<color>';
        initial-value: black;
        inherits: false;
    }

    @property --hero-color-2 {
        syntax: '<color>';
        initial-value: black;
        inherits: false;
    }

    @keyframes heroGradientShift {
        0% {
            --hero-color-1: black;
            --hero-color-2: black;
        }

        30% {
            --hero-color-1: black;
            --hero-color-2: black;
        }

        40% {
            --hero-color-1: black;
            --hero-color-2: #0fce3f;
        }

        50% {
            --hero-color-1: #0fce3f;
            --hero-color-2: #0fce3f;
        }

        60% {
            --hero-color-1: #0fce3f;
            --hero-color-2: black;
        }

        70% {
            --hero-color-1: black;
            --hero-color-2: black;
        }

        100% {
            --hero-color-1: black;
            --hero-color-2: black;
        }
    }
}

@media (prefers-reduced-motion: reduce), print {
    body {
        animation: none;
    }

    .hero-section h1 {
        max-width: 100%;
        opacity: 1;

        animation-duration: 0s;
        animation-delay: 0s;
    }

    .hero-extra-blinking-block {
        animation: none;
        display: none;
    }

    .hero-section p a {
        transition: none;
    }
}