@font-face {
    font-family: 'satisfy';
    src: url('Satisfy-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'quicksand';
    src: url('Quicksand-VariableFont_wght.ttf') format('truetype');
}

@font-face {
    font-family: 'hiatus';
    src: url('Hiatus.ttf') format('truetype');
}

:root {
    --dark: #222;
    --glass: rgba(34, 34, 34, 0.3);
    --light: #eee;
    --blue: #2cf2ff;
    --green: #2cff5f;
    --font-title: 'hiatus';
    --swiper-navigation-color: #eee;
    font-family: quicksand;
    font-weight: lighter;
    color: var(--light);
    font-size: calc(13px + 0.3vw);
}

* {
    padding: 0px;
    margin: 0px;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    position: relative;
    background: var(--dark);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

header {
    top: 0px;
    left: 0px;
    position: sticky;
    width: 100vw;
    display: flex;
    justify-content: flex-end;
    z-index: 100;
}

nav {
    margin: 30px 40px;
}

nav a {
    position: relative;
    border-radius: 20px;
    padding: 15px 20px;
    margin: 0px 15px;
    background: var(--dark);
    box-shadow: 0px 0px 0px var(--blue), 0px 0px 0px var(--green);
    transition: box-shadow ease 0.4s 0s;
}

nav a:hover {
    box-shadow: -2px -2px 6px var(--blue), 2px 2px 6px var(--green);
}

/* nav a::before {
    content: '';
    position: absolute;
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    top: 0px;
    left: 0px;
    transform: scale(0.9);
    z-index: -1;
    background: linear-gradient(45deg, var(--blue) 0%, var(--green) 100%);
    transition: ease 0.4s;
}

nav a:hover::before {
    transform: scale(1);
    filter: blur(8px);
} */

h1 {
    font-family: var(--font-title);
    margin: 30px 60px;
}

.f-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.f-between {
    display: flex;
    justify-content: space-between;
}

.f-column {
    display: flex;
    flex-direction: column;
}

.f-end {
    display: flex;
    justify-content: flex-end;
}

.g-center {
    display: grid;
    place-items: centerùù;
}

.m-center {
    margin: auto;
}

.gap {
    display: flex;
    gap: 10px;
}

.gap-20 {
    display: flex;
    gap: 20px;
}

.fluid {
    width: 100%;
}

.pad-10 {
    padding: 10px;
}

.pad-20 {
    padding: 20px;
}

.cta {
    cursor: pointer;
    position: relative;
    font-family: Quicksand;
    text-transform: uppercase;
    color: var(--light);
    border: solid 2px var(--light);
    padding: 10px;
    background: unset;
    appearance: unset;
    transition: ease 0.4s;
    border-radius: 5px;
}

.cta:hover {
    color: var(--green);
    box-shadow: 0px 0px 10px var(--green);
}

.link {
    position: relative;
}
.link::after,
.link::before {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    background: var(--light);
    bottom: -5px;
    left: 50%;
    transition: 0.5s ease;
    cursor: pointer;
    border-radius: 0px 3px 3px 0px;
}

.link::before {
    transform-origin: left;
    transform: rotate(180deg);
}

.link:hover::after,
.link:hover::before {
    width: 50%;
}

#background {
    position: fixed;
    width: 100vw;
    height: 100vh;
    top: 0px;
    left: 0px;
    z-index: -1;
}

.circle {
    position: absolute;
    width: max(200px, 40vw);
    height: max(200px, 40vw);
    border-radius: 50%;
    transform-origin: center;
    filter: blur(50vw);
}

.circle:nth-child(1) {
    top: 0px;
    left: 0px;
    transform: translate(-50%, -50%);
    background: var(--green);
}

.circle:nth-child(2) {
    bottom: 0px;
    right: 0px;
    transform: translate(50%, 50%);
    background: var(--blue);
}

.overlay_box {
    transform: scale(0.9);
    background: var(--dark);
    padding: 5px;
    transition: ease 0.5s;
}

.fullscreen_overlay.open .overlay_box {
    transform: unset;
}

.overlay_close {
    position: absolute;
    top: 40px;
    right: 70px;
}

.overlay_close span {
    position: absolute;
    width: 40px;
    height: 5px;
    border-radius: 5px;
    background: var(--light);
}

.overlay_close span:nth-child(1) {
    transform: rotate(45deg);
}

.overlay_close span:nth-child(2) {
    transform: rotate(-45deg);
}

.overlay_img {
    max-width: 75vw;
    max-height: 75vh;
}

#btn_menu {
    display: none;
    position: fixed;
    top: 35px;
    right: 2vw;
    align-items: flex-start;
    z-index: 30000;
    cursor: pointer;
}

#btn_menu > div {
    transform-origin: center left;
    transition: 0.4s ease-out;
}

#btn_menu > div {
    width: 35px;
    height: 5px;
    border-radius: 2px;
    background: #eee;
    margin: 2px;
}

#btn_menu > div:nth-child(2) {
    transition: 0.4s ease 0.3s;
}

#btn_menu.arrow > div:nth-child(1) {
    width: 25px;
    transform: rotate(45deg);
    transition: 0.5s ease 0.2s;
}

#btn_menu.arrow > div:nth-child(2) {
    width: 0px;
    transition: 0.3s ease;
}

#btn_menu.arrow > div:nth-child(3) {
    width: 25px;
    transform: rotate(-45deg);
    transition: 0.5s ease 0.2s;
}

footer {
    position: absolute;
    bottom: 0px;
    width: 100%;
    padding: 1.2rem;
    background: var(--glass);
}

@media screen and (max-width: 850px) {
    header h1 > * {
        position: absolute;
        z-index: 2000;
    }

    #btn_menu {
        display: flex;
    }

    nav::before {
        content: '';
        display: block;
        position: fixed;
        top: 0px;
        left: 0px;
        width: 100vw;
        height: 100vh;
        transform: scale(1);
        background: var(--glass);
        backdrop-filter: blur(6px);
        transition: transform ease 0.6s;
    }

    nav.left {
        left: -120vw;
    }
    nav.left::before {
        left: -120vw;
        transform: scale(0);
    }
    nav {
        top: 40vw;
        gap: 40px;
        position: fixed;
        display: flex;
        flex-direction: column;
        transition: ease 0.6s;
    }

    nav a {
        transition: ease 0.4s var(--delay), box-shadow ease 0.4s 0s;
    }

    nav:is(.left) a {
        opacity: 0;
        transform: translate(-100px);
    }

    nav:not(.left) a {
        opacity: 1;
        transform: unset;
    }
}

@media screen and (max-width: 500px) {
    .swiper-static {
        display: none !important;
    }
}
