:root {
    /* --- Fonts --- */
    --main-font: 'Outfit', sans-serif;

    /* --- Heighs --- */
    /* Header height */
    --header-height: 7rem;
    /* Height when menu open for mobile */
    --menu-open-height: 10rem;
    /* Main padding-top */
    /* --main-padding-top: 3rem; */

    /* --- Colors --- */
    /* Base */
    --base: hsl(0, 0%, 0%);
    --galaxy-neon:
        radial-gradient(circle at 0% 30%, hsla(240, 100%, 50%, 0.3), transparent 70%),
        radial-gradient(circle at 100% 70%, hsla(300, 100%, 50%, 0.3), transparent 70%);
    /* radial-gradient(circle at 30% 30%, hsla(236, 100%, 50%, 0.3), transparent 40%),
        radial-gradient(circle at 70% 70%, hsla(300, 100%, 50%, 0.3), transparent 40%),
        radial-gradient(circle at 50% 80%, hsla(180, 100%, 50%, 0.3), transparent 40%); */
    /* linear-gradient(45deg, hsla(240, 100%, 50%, 0.3), transparent 70%), 
            linear-gradient(315deg, hsla(300, 100%, 50%, 0.3), transparent 70%); */

    /* Texts */
    --text: hsl(226deg, 64%, 88%);
    --subtext1: hsl(227deg, 35%, 80%);
    --subtext0: hsl(228deg, 24%, 72%);
    --white: hsl(0, 0%, 90%);

    /* Accent colors */
    --rosewater: hsl(10deg, 100%, 70%);
    --flamingo: hsl(0deg, 100%, 65%);
    --pink: hsl(316deg, 100%, 70%);
    --mauve: hsl(267deg, 100%, 65%);
    --red: hsl(343deg, 100%, 60%);
    --maroon: hsl(350deg, 90%, 55%);
    --peach: hsl(23deg, 100%, 65%);
    --yellow: hsl(41deg, 100%, 60%);
    --green: hsl(115deg, 100%, 55%);
    --teal: hsl(170deg, 100%, 55%);
    --sky: hsl(189deg, 100%, 60%);
    --sapphire: hsl(199deg, 100%, 55%);
    --blue: hsl(217deg, 100%, 60%);
    --lavender: hsl(232deg, 100%, 70%);

    /* Accent colors (darkened) */
    --rosewater-dark: hsl(10deg, 100%, 30%);
    --flamingo-dark: hsl(0deg, 100%, 25%);
    --pink-dark: hsl(316deg, 100%, 30%);
    --mauve-dark: hsl(267deg, 100%, 25%);
    --red-dark: hsl(343deg, 100%, 20%);
    --maroon-dark: hsl(350deg, 90%, 20%);
    --peach-dark: hsl(23deg, 100%, 25%);
    --yellow-dark: hsl(41deg, 100%, 25%);
    --green-dark: hsl(115deg, 100%, 20%);
    --teal-dark: hsl(170deg, 100%, 20%);
    --sky-dark: hsl(189deg, 100%, 25%);
    --sapphire-dark: hsl(199deg, 100%, 20%);
    --blue-dark: hsl(217deg, 100%, 25%);
    --lavender-dark: hsl(232deg, 100%, 30%);
}

html {
    scroll-behavior: smooth;
}

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

body {
    min-height: 100vh;

    font-family: var(--main-font);
    font-size: 1.1rem;

    color: var(--text);
    background-color: var(--base);
    background-image: var(--galaxy-neon);
}

.container {
    width: 60%;
    text-align: center;
    margin: 0 auto;
}

/* =========================
   HEADER
   ========================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 0;
    z-index: 100;

    backdrop-filter: blur(10px);
}

.header-container {
    width: 60%;
    height: 3rem;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* =========================
   HEADER ~ LOGO
   ========================= */
.logo {
    text-decoration: none;
    text-align: left;
    user-select: none;

    font-size: 2rem;
    font-weight: 800;

    color: var(--text);
}

/* =========================
   HEADER ~ NAVBAR
   ========================= */
.navbar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.navbar-item {
    position: relative;
    margin-left: 2.5rem;
    cursor: pointer;
    user-select: none;
    text-decoration: none;

    font-weight: bold;

    color: var(--text);
}

.navbar-item:hover {
    color: var(--mauve);
    text-shadow: 0 0 1.5rem var(--mauve);
}

.navbar-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 100%;
    border-bottom: 2px solid var(--mauve);
    box-shadow: 0 0 1rem var(--mauve);

    transition: width 0.3s;
    width: 0;
}

.navbar-item:hover::before {
    width: 100%;
}

/* =========================
   MENU ICONS
   ========================= */
.menu-icons {
    /* visible only mobile */
    display: none;
    cursor: pointer;

    font-size: 2.5rem;
}

/* hide checkbox */
#check {
    display: none;
}

/* =========================
   MAIN
   ========================= */
.main {
    padding-top: var(--header-height);
}

/* =========================
   HAMBURGER MENU
   ========================= */
@media (max-width: 800px) {
    .menu-icons {
        display: inline-flex;
        justify-content: flex-end;
    }

    /* hide icon "close" */
    .menu-icons #close-menu {
        display: none;
    }

    /* change icons based on status */
    #check:checked~header .menu-icons #open-menu {
        display: none;
    }

    #check:checked~header .menu-icons #close-menu {
        display: block;
    }

    /* navbar colapsed by default */
    .navbar {
        position: absolute;
        left: 0;
        top: var(--header-height);
        flex-direction: column;
        align-items: center;
        width: 100vw;
        overflow: hidden;

        background-color: hsla(0, 0%, 0%, 10%);
        backdrop-filter: blur(10px);

        transition: max-height 0.5s ease;
        max-height: 0;
    }

    /* when checkbox is checked, navbar is open */
    #check:checked~header .navbar {
        max-height: calc(var(--menu-open-height) + 1rem);
        padding-bottom: 1rem;
    }

    .main {
        transition: padding-top 0.5s ease;
    }

    /* IMPORTANT: pushes main down while menu is open */
    #check:checked~main {
        padding-top: calc(var(--header-height) + var(--menu-open-height) + 1rem);
    }

    .navbar-item {
        margin: 1rem 0;
    }
}

/* =========================
   CONTAINER RESPONSIVE
   ========================= */
@media (max-width: 1400px) {

    .container,
    .header-container {
        width: 70%;
    }
}

@media (max-width: 1200px) {

    .container,
    .header-container {
        width: 80%;
    }
}

@media (max-width: 1044px) {

    .container,
    .header-container {
        width: 90%;
    }
}

/* =========================
   BUTTONS
   ========================= */
.btn {
    padding: 0.3rem 0.6rem;
    border-radius: 0.5rem;
    font: var(--main-font);
    cursor: pointer;
    
    background: transparent;
    transition: background 0.3s, color 0.3s;

    border: 1px solid var(--text);
    color: var(--text);
}

.btn:hover {
    color: var(--mauve);
    border-color: var(--mauve);
}

.btn.hidden {
    display: none;
}