/* Import Graphik font */
@font-face {
    font-family: "Graphik";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/assets/font/Graphik.woff2") format("woff2");
}

@font-face {
    font-family: "Graphik";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("/assets/font/Graphik-Semibold.woff2") format("woff2");
}

/* Global HTML */
* {
    transition: all ease-in-out .25s;
}

/* Whole page styling */
html {
    font-family: Graphik, system-ui, sans-serif;
    background: #111;
    color: #fff;
    fill: #fff;
}

body {
    margin: 0;
    padding: 0;
}

/* Remove all link styling */
a:link, a:visited, a:hover, a:active {
    text-decoration: none;
    color: #fff;
}

/* Navigation header */
.nav {
    width: 100%;
    height: 4rem;
    position: fixed;
    display: flex;
    justify-content: center;
    background: #111;
    align-items: center;
}

.navigation {
    position: fixed;
    display: flex;
    justify-content: space-between;
    height: 4rem;
    background: #111;
    align-items: center;
    width: 80%;
    z-index: 100;
    border-radius: 3px;
}

/* go to home "logo" */
.navigation-home {
    height: 4rem;
    margin: auto 0;
    z-index: 500;
    display: flex;
    align-items: center;
}

/* white link */
.navigation-home a {
    position: absolute;
    z-index: 1;
    font-size: 1.25rem;
    line-height: 2rem;
    background: linear-gradient(#fff 0%, #fff 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 1;
}

/* hide non-gradient on hover */
.navigation-home:hover a {
    opacity: 0;
}

/* on hover, replace with gradient text */
.navigation-home span {
    position: absolute;
    z-index: -1;
    font-size: 1.25rem;
    line-height: 4rem;
    background: linear-gradient(-45deg, #2a7fff 0%, #d400ff 70%, #ff0000 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
}

/* show gradient on hover */
.navigation-home:hover span {
    opacity: 1;
}

/* links on the right of nav on large screens */
.navigation-links {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 2rem;
}

/* css for individual links */
.navigation-link {
    transition: .25s;
    line-height: 1.5;
    font-size: 1.1rem;
    border-bottom: 1px solid transparent;
}

/* underline on hover */
.navigation-link:hover {
    border-bottom: 1px solid #fff;
}

/* overlay menu closed state */
.navigation-overlay {
    position: fixed;
    top: 0;
    left: 0;
    height: 4rem;
    width: 100%;
    opacity: 0;
    background: #111;
    z-index: 4;
    transition: 0.5s;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* overlay title */
.navigation-header {
    display: none;
    justify-content: flex-start;
    align-items: center;
    background: linear-gradient(-45deg, #2a7fff 0%, #d400ff 70%, #ff0000 100%);
    background-size: 400% 400%;
    background-clip: text;
    -webkit-background-clip: text, border;
    -webkit-text-fill-color: transparent;
    animation: gradient 5s ease infinite;
    opacity: 0;
    height: 3em;
}

.navigation-header span {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.8;
    border-bottom: 2px solid #fff;
}

/* overlay links */
.navigation-overlay a {
    display: none;
    align-items: center;
    opacity: 0;
    justify-content: flex-start;
    margin: 0.5rem 0;
    opacity: 0;
    font-size: 1.25rem;
    line-height: 1.5;
}

.navigation-overlay a svg {
    margin: 1rem;
    height: 1.5rem;
    width: 1.5rem;
    fill: #fff;
}

/* main page content container */
.content-container {
    position: absolute;
    top: 7rem;
    width: 80%;
    margin: 0 10%;
    display: flex;
    z-index: -1;
}

/* Animated gradient text */
.gradient-text {
    background: linear-gradient(-45deg, #2a7fff 0%, #d400ff 70%, #ff0000 100%);
    background-size: 400% 400%;
    animation: gradient 5s ease infinite;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Page title */
.content-container-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* hide links for small screen devices on large screen device */
@media (min-width: 701px) {
    .navigation-button, .navigation-icon, .navigation-overlay {
        display: none;
    }
}

/* show overlay menu for small screen devices */
@media (max-width: 700px) {
    /* hide large screen device links */
    .navigation-links {
        display: none; 
    }

    /* menu button */
    .navigation-button {
        display: none;
        right: calc(10% - 3px);
        top: 21px;
        height: 20px;
        width: 18px;
        z-index: 10;
        position: fixed;
    }

    .navigation-button + .navigation-icon {
        position: fixed;
        top: 24px;
        right: 10%;
        height: 20px;
        width: 18px;
        z-index: 5;
        cursor: pointer; 
    }

    .navigation-button + .navigation-icon span {
        position: absolute;
        width: 100%; 
        height: 2px;
        top: 50%;
        margin-top: -1px;
        left: 0; 
        display: block; 
        background: #fff;
    }

    .navigation-button + .navigation-icon span:first-child {
        top: 4px;
    }

    .navigation-button + .navigation-icon span:last-child {
        top: 16px;
    }

    /* animation on check */
    .navigation-button:checked + .navigation-icon span {
        opacity: 0; 
        top: 50%;
    }

    .navigation-button:checked + .navigation-icon span:first-child {
        transform: rotate(45deg); 
        opacity: 1;
    }

    .navigation-button:checked + .navigation-icon span:last-child {
        transform: rotate(-45deg); 
        opacity: 1;
    }

    /* overlay menu open state */
    .navigation-button:checked ~ .navigation-overlay {
        height: calc(100dvh - 5rem);
        opacity: 1;
        padding: 5rem 10%;
    }

    .navigation-button:checked ~ .navigation-overlay a {
        opacity: 1;
        display: flex;
    }

    .navigation-button:checked ~ .navigation-overlay .navigation-header {
        opacity: 1;
        display: flex;
    }
}

.video {
    width: 100%;
    height: 100%;
    position: fixed;
    object-fit: cover;
    align-self: center;
    opacity: 0.4;
    top: 0;
    left: 0;
    z-index: -5;
}

/* gradient text animation */
@keyframes gradient {
	0% { background-position: 0% 50%; }
	50% { background-position: 100% 50%; }
	100% { background-position: 0% 50%; }
}