@import url('https://fonts.googleapis.com/css2?family=Geologica&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #000;
    color: #86868b;
    font-family: 'Geologica', sans-serif;
    transform: translate3d(0, 0, 0, 1);
    /* HARDWARE ACCELERATION */
}

nav {
    position: fixed;
    display: flex;
    align-items: center;
    inline-size: 100%;
    justify-content: center;
    gap: 5%;
    padding-block: 10px;
    background-color: rgba(0, 0, 0, 0.427);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    z-index: 4;
}

a {
    text-decoration: none;
}

img {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

img::selection {
    background-color: transparent;
}

::selection {
    background-color: transparent;
}

:is(h1, h2, h3, h4, h5, p, span)::selection {
    background-color: transparent;
}

:is(nav, .menu) p {
    cursor: pointer;
    transition: color 500ms cubic-bezier(.17, .67, .83, .67);
}

:is(nav, .menu) p:hover {
    color: #fff;
}

section {
    position: relative;
    block-size: 100vh;
    inline-size: 100vw;
}

#home {
    display: grid;
    place-content: center;
    text-align: center;
    gap: 3vh;
    line-height: 1.4;
}

#home span {
    color: #fff;
    position: relative;
    inline-size: max-content;
    display: inline-block;
}


h2 {
    font-size: 3rem;
    font-size: clamp(3rem, 2.15rem + 4.25vw, 7.25rem);
}

h1 {
    font-weight: lighter;
    color: #fff;
    animation: text 500ms ease-out forwards;
}

#home p {
    animation: text 500ms ease-out forwards;
}

@keyframes text {
    0% {
        translate: 0 20px;
        opacity: 0;
    }

    100% {
        translate: 0 0;
        opacity: 1;
    }
}

nav svg {
    display: none;
}


.odd {
    transform: skew(5deg);
}

.even {
    transform: skew(-5deg);
}

#home {
    padding-block-start: 30vh;
}

@media screen and (orientation: portrait) and (width < 768px) {
    nav {
        justify-content: space-between;
        padding-inline: 25px;
    }

    #home {
        padding-block-start: 0;
    }

    nav p {
        display: none;
    }

    nav svg {
        display: block;
    }

}

.phone-container {
    position: relative;
    display: block;
    block-size: max-content;
    inline-size: 100vw;
    /* overflow: hidden; */
    margin-block-start: 30px;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

video {
    position: absolute;
    inline-size: 90vw;
    max-inline-size: 990px;
    inset-inline-start: 50%;
    inset-block-start: 0;
    translate: -50% 0;
    object-fit: cover;
    overflow: hidden;
    padding-inline-start: 1px;
    padding-block-start: 2px;
    aspect-ratio: 775/370;
}

@media screen and (orientation:portrait) {
    video {
        border-radius: calc(10vw - 10px);
    }
}

@media screen and (orientation:landscape) {
    video {
        border-radius: calc(5vw + 10px);
    }
}

@media screen and (orientation:landscape) and (width > 1600px) {
    video {
        border-radius: 80px;
    }
}

.filter {
    transform: translate3d(0, 0, 0, 1);
    will-change: filter;
    filter: blur(30px);
    z-index: -1;
}

.phone-container img {
    position: relative;
    image-rendering: optimizeSpeed;
    inline-size: 90vw;
    max-inline-size: 990px;
    z-index: 2;
    margin-block-end: -6px;
    margin-inline-start: -1px;
    margin-inline-end: -2px;
}

.menu {
    position: fixed;
    inline-size: 100vw;
    block-size: 100vh;
    background-color: #000000aa;
    -webkit-backdrop-filter: blur(30px);
    backdrop-filter: blur(30px);
    inset-inline-start: 0;
    inset-block-start: 0;
    z-index: 5;
    place-items: center;
    text-align: center;
    padding-block-start: 10vh;
    padding-block-end: 30vh;
    overflow: hidden;
    display: none;
    opacity: 0;
}

.menu p {
    font-size: 2rem;
    -webkit-tap-highlight-color: transparent;
    color: #aeaeb4;
}

.close {
    position: absolute;
    inset-inline-end: 0;
    inset-block-start: 0;
    display: block;
    margin: 16px 28px;
}

.preloader-wrapper {
    position: fixed;
    pointer-events: none;
    inline-size: 100vw;
    block-size: 100vh;
    display: grid;
    place-items: center;
    background-color: #101010;
    z-index: 7;
}

#preloader {
    inline-size: 70vmin;
    image-rendering: optimizeQuality;
}