* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

a {
    cursor: pointer;
    text-decoration: none;
    color: var(--text-color);
}

img {
    user-select: none;
    pointer-events: none;
}

/* Global theme */
:root {
    --accent-dark: #0088cc;
    --accent: #33aadd;
    --accent-light: #66ccee;
    --background-color: #000000;
    --text-color: #ffffff;

    --content-padding: 300px;
    --padding: 100px;
}

html {
    scroll-behavior: smooth;
}

body {
    width: 100%;
    height: auto;

    min-height: 100svh;
    background-color: var(--background-color);

    font-family: monospace;
    color: var(--text-color);
}

main {
    width: 100%;
    min-height: 100dvh;
    height: auto;
}

section {
    width: 100%;
    height: auto;

    display: flex;
    flex-direction: column;

    padding: var(--padding);
}

/* Splash Screen */
.splash {
    position: fixed;
    z-index: 1000;

    top: 0;
    left: 0;

    width: 100%;
    height: 100lvh;

    background-color: var(--background-color);
    color: #ffffff;

    display: flex;
    flex-direction: column;

    justify-content: center;
    align-items: center;

    transition: 0.3s ease-out;
}
.splash.hide {
    pointer-events: none;
    opacity: 0;

    z-index: -10;
}
.splash svg {
    pointer-events: none;
    width: 50px;
    aspect-ratio: 747/911;
}
.splash svg path {
    transition: 0.3s ease-out;

    stroke-dasharray: 500;
    stroke-dashoffset: 2928;

    animation: load 2s linear infinite;
}

@keyframes load {
    0% {
        stroke-dashoffset: 2928;
        scale: 1;
    }

    100% {
        opacity: 1;
        stroke-dashoffset: 0;
    }
}

/* ---------- Navigation ---------- */
nav {
    user-select: none;

    position: fixed;
    z-index: 100;

    top: 0;
    left: 0;

    width: 100%;
    height: 80px;

    display: flex;
    flex-direction: row;

    justify-content: space-between;
    align-items: center;

    backdrop-filter: blur(10px);
    background-color: rgba(0, 0, 0, 0.75);
    padding: 0 var(--padding);
}

nav a.logo {
    display: flex;
    flex-direction: row;

    justify-content: center;
    align-items: center;

    font-size: 20px;
    color: var(--text-color);

    font-weight: bold;
    gap: 5px;
}

nav a.logo img {
    aspect-ratio: 1/1;
    width: 50px;
    height: auto;
}

nav ul.menu {
    display: flex;
    flex-direction: row;

    justify-content: center;
    align-items: center;

    gap: 15px;
}

nav ul.menu li {
    display: flex;
    justify-content: center;
    align-items: center;
}

nav ul.menu li a {
    color: var(--text-color);
    font-size: 18px;

    transition: 0.3s ease-out;
}

nav ul.menu li a:hover {
    color: var(--accent-light);
}

/* ---------- Footer ---------- */

footer {
    height: 60px;
    user-select: none;

    display: flex;
    flex-direction: row;

    justify-content: flex-start;
    align-items: center;

    background-color: rgba(93, 93, 93, 0.2);
    color: #ffffff;

    border-radius: 5px;
    padding: 15px 25px;

    border-radius: 5px;
    margin: 10px var(--padding);
}

footer .spacer {
    flex-grow: 1;
}

footer .socials a {
    font-size: 18px;
    transition: 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

footer .socials a:hover {
    color: var(--accent-light);
}

/* ---------- Media Queries ---------- */

@media (max-width: 1450px) {
    :root {
        --content-padding: 200px;
        --padding: 100px;
    }
}

@media (max-width: 1150px) {
    :root {
        --content-padding: 150px;
        --padding: 80px;
    }
}

@media (max-width: 800px) {
    :root {
        --content-padding: 80px;
        --padding: 20px;
    }
}

@media (max-width: 600px) {
    :root {
        --content-padding: 30px;
        --padding: 20px;
    }
}
