/* Main */
:root {
    --animationStepSize: 100px;
}

body {
    user-select: none;
    overflow: hidden;
    margin: 0;
    padding: 0;
    height: 100svh;
    background-color: #000;
    font-family: 'Satoshi';
    color: white;
}

*::-webkit-scrollbar {
    width: 0;
    height: 0;
}

/* Header */
header {
    position: fixed;
    z-index: 10;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
}

header .header-container {
    display: flex;
    justify-content: space-between;
    width: 80vw;
    padding: 1rem;
    margin: 1rem;
    border-radius: 10rem;
    color: white;
}

.header-container .logo {
    display: flex;
    align-items: center;
    gap: 4px;
}

.header-container .link.app {
    cursor: pointer;
    border: 1px solid #fff;
    border-radius: 8rem;
    padding: 8px 16px;
    transition: all .3s;
    color: #fff;
    text-decoration: none;
}

.link.app:focus {
    animation: move-right cubic-bezier(0.075, 0.82, 0.165, 1) .45s forwards;
}

.link.app:hover {
    background: #fff;
    color: #000;
}

@keyframes move-right {
    0% {
        transform: translateX(0px);
    }

    50% {
        transform: translateX(10px);
    }

    100% {
        transform: translateX(0px);
    }
}

.letter {
    font-family: 'Dobryak';
    font-size: 2rem;
    line-height: 2rem;
    transform-origin: center;
    transition: font-family .1s;
}

/* Background */
.background {
    pointer-events: none;
    overflow: hidden;
    background: #000;
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    inset: 0;
}

.vector {
    position: absolute;
    pointer-events: none;
    user-select: none;
    filter: blur(10em);
    will-change: transform;
}

.vector.v1 {
    height: 80svh;
    animation-duration: 10s;
}

.vector.v2 {
    right: 10rem;
    height: 60svh;
    animation-duration: 20s;
}

/* Content */
main {
    overflow-y: scroll;
    height: 100svh;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

section {
    scroll-snap-align: start;
    position: relative;
    z-index: 1;
    overflow: hidden;
    height: 100svh;
    background: #0005;
}

section#second {
    position: relative;
    z-index: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 2rem;
    height: 120px;
    background-color: #000;
}

#second .p {
    position: fixed;
    z-index: 1;
    bottom: 0;
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: 3rem;
    color: #fff;
    text-align: center;
    line-height: 1.5rem;
}

@media screen and (max-width: 500px) {
    :root {
        --animationStepSize: 150px;
    }

    .vector {
        filter: blur(4em);
    }

}

.heart {
    animation: heart-beating 1s ease infinite;
}

a {
    color: white;
}

.content {
    pointer-events: none;
    position: relative;
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.content span {
    position: fixed;
    z-index: 2;

    display: none;
    max-width: 70%;
    overflow: hidden;

    word-wrap: break-word;
    text-align: center;
    font-family: 'Inter Tight', sans-serif;
    font-size: xx-large;
}

.content .text.appear {
    display: inline-block;
    animation: move-down-appear 2s cubic-bezier(0.075, 0.82, 0.165, 1) forwards;
}

.content .text.disappear {
    display: inline-block;
    animation: move-down-disappear 2s cubic-bezier(0.075, 0.82, 0.165, 1) forwards;
}

.content span.image {
    z-index: 2;
}

.content .image.appear {
    display: inline-block;
    animation: scale-appear 4s cubic-bezier(0.075, 0.82, 0.165, 1) forwards;
}

/* Animations */

@keyframes move-down-appear {
    0% {
        opacity: 0;
        transform: translateY(-100px) scale(.8);
    }

    100% {
        opacity: 1;
        transform: translateY(0px) scale(1.5);
    }
}

@keyframes move-down-disappear {
    0% {
        opacity: 1;
        transform: translateY(0px) scale(1.5);
    }

    100% {
        opacity: 0;
        transform: translateY(var(--animationStepSize)) scale(.8);
    }
}

@keyframes scale-appear {
    0% {
        opacity: 0;
        transform: scale(0);
    }

    50% {
        opacity: 1;
        transform: scale(2);
    }

    100% {
        transform: scale(1);
        opacity: 0;
    }
}

.slide-left {
    animation: slide-left 3s cubic-bezier(0.075, 0.82, 0.165, 1) forwards;
}

.slide-right {
    animation: slide-right 3s cubic-bezier(0.075, 0.82, 0.165, 1) forwards;
}

@keyframes slide-left {
    0% {
        opacity: 0;
        transform: translateX(-100px) scale(.8);
    }

    100% {
        opacity: 1;
        transform: translateX(0px) scale(1);
    }
}

@keyframes slide-right {
    0% {
        opacity: 0;
        transform: translateX(100px) scale(.8);
    }

    100% {
        opacity: 1;
        transform: translateX(0px) scale(1);
    }
}

@keyframes heart-beating {
    0% {
        transform: scale(1);
    }

    70% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}