@font-face {
    font-family: 'Montserrat';
    src: url('./assets/fonts/montserrat.ttf');
}

* {
    box-sizing: border-box;
    font-family: 'Montserrat';
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

@keyframes appear {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.sky {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-image: url('./assets/images/sky.png');
    background-size: cover;
    background-repeat: no-repeat;
    filter: brightness(0.7);
    z-index: 1;
}

.brightness {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(315deg, transparent, rgba(255, 255, 255, 0.6));
    z-index: 2;
}

.plane {
    position: absolute;
    height: 80%;
    background-image: url('./assets/images/plane.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 4;
    aspect-ratio: calc(16 / 9);
}

.slide-1 {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-1[hide] {
    display: none;
}

.slide-1 h1 {
    position: absolute;
    margin: 0;
    font-weight: 900;
    font-size: 20rem;
    z-index: 3;
    animation: appear 1s linear 3s 1 normal forwards;
    opacity: 0;
    cursor: default;
    user-select: none;
}

@keyframes plane-flying {
    from {
        left: -100%;
        top: 30%;
    }

    to {
        left: 100%;
        top: -10%;
    }
}

.slide-1 .plane {
    animation: plane-flying 4s ease-in 0s 1 normal forwards;
}

.slide-1 button {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    bottom: 10%;
    font-size: 2rem;
    z-index: 3;
    font-weight: 600;
    background: none;
    border: none;
    animation: appear 1s linear 4.5s 1 normal forwards;
    opacity: 0;
    cursor: pointer;
}

@keyframes text-slice {
    0% {
        clip-path: polygon(
            0% 0%,
            110% 0%,
            110% 100%,
            0% 100%,
            0% 55%,
            0% 55%,
            0% 48%,
            0% 48%
        );
    }

    50% {
        clip-path: polygon(
            0% 0%,
            110% 0%,
            110% 100%,
            0% 100%,
            0% 55%,
            50% 55%,
            50% 48%,
            0% 48%
        );
    }

    100% {
        clip-path: polygon(
            0% 0%,
            110% 0%,
            110% 100%,
            0% 100%,
            0% 55%,
            100% 55%,
            100% 48%,
            0% 48%
        );
    }
}

.slide-1 button span {
    animation: none;
}

.slide-1 button:hover span {
    animation: text-slice 0.6s cubic-bezier(0.6, 0, 1, 1) 0.08s 1 forwards;
}

.slide-1 button i {
    position: absolute;
    font-size: 1.6rem;
    translate: -120% 0%;
    left: 0;
    transition: left cubic-bezier(0.6, 0, 1, 1) 0.6s, translate cubic-bezier(0.6, 0, 1, 1) 0.6s, opacity ease-out 2s;
}

.slide-1 button:hover i {
    translate: 20% 0%;
    left: 100%;
}

.slide-2 {
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-2[hide] {
    opacity: 0;
    pointer-events: none;
}

.slide-2::before {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    display: block;
    width: 40%;
    height: 200%;
    translate: -50% -50%;
    rotate: -30deg;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
    z-index: 5;
    transition: translate ease-out 2s;
}

.slide-2[hide]::before {
    translate: -100% -50%;
}

.slide-2::after {
    content: "";
    position: absolute;
    top: 0;
    left: 100%;
    display: block;
    width: 150%;
    height: 200%;
    translate: -50% -50%;
    rotate: -30deg;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
    z-index: 3;
    transition: translate ease-out 2s;
}

.slide-2[hide]::after {
    translate: 10% -50%;
}

.slide-2 h2 {
    position: absolute;
    top: -5.5rem;
    right: -2rem;
    margin: 0;
    font-weight: 900;
    font-size: 15rem;
    z-index: 5;
    cursor: default;
    user-select: none;
    color: rgba(50, 50, 50, 0.35);
    translate: 0%;
    transition: translate ease-out 2s;
}

.slide-2[hide] h2 {
    translate: 100% 0%;
}

@keyframes plane-flying-2 {
    from {
        left: -100%;
        top: 45%;
    }

    to {
        left: -10%;
        top: 35%;
    }
}

.slide-2 .plane {
    top: 45%;
    left: -100%;
    animation: plane-flying-2 2s cubic-bezier(0, 0, 0.4, 1.0) 0s 1 normal forwards;
}

.slide-2[hide] .plane {
    animation: none;
}

.slide-2 .list {
    position: absolute;
    top: 6%;
    left: 25%;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.slide-2 .list .item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    z-index: 5;
    font-weight: 600;
    font-size: 2rem;
    animation: appear 2s ease-out 2s 1 normal forwards;
    opacity: 0;
}

.slide-2 .list .item:nth-child(2) {
    padding-left: 3rem;
    animation-delay: 2.3s;
}

.slide-2 .list .item:nth-child(3) {
    padding-left: 6rem;
    animation-delay: 2.6s;
}

.slide-2 .list .item:nth-child(4) {
    padding-left: 9rem;
    animation-delay: 2.9s;
}

.slide-2 .list .item:nth-child(5) {
    padding-left: 12rem;
    animation-delay: 3.2s;
}

.slide-2 .list .item:nth-child(6) {
    padding-left: 15rem;
    animation-delay: 3.5s;
}

.slide-2[hide] .list .item {
    animation: none;
}

#return {
    position: absolute;
    bottom: 5%;
    right: 5%;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    z-index: 5;
    font-weight: 600;
    font-size: 2rem;
    animation: appear 2s ease-out 3.8s 1 normal forwards;
    opacity: 0;
    background: none;
    border: none;
    cursor: pointer;
}

.slide-2[hide] #return {
    animation: none;
}