/* Header */
.banner_header {
    white-space: nowrap;
    font-size: 3rem;
    transition: opacity 0.3s ease;
}

.nav-container {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    /* margin-bottom: 3rem; */
    /* padding-bottom: 1rem; */
    background:
        linear-gradient(to right, transparent, #3b82f6, #8b5cf6, transparent) bottom / 99% 2px no-repeat;
}

.nav-container > div:first-child {
    justify-self: start;
    padding-left: 5%;
}

.nav-container > div:nth-child(2) {
    justify-self: center;
    grid-column: 2;
}

.nav-container > div:last-child {
   display: flex;
   justify-self: end;
   padding-right: 5%;
}

/* Hamburger menu styles */
.menu-toggle {
   display: none;
}

.hamburger {
   display: flex;
   flex-direction: column;
   cursor: pointer;
   padding: 0.5rem;
   z-index: 1000;
}

.hamburger span {
   width: 1.5rem;
   height: .2rem;
   background-color: var(--dark);
   margin: .2rem 0;
   transition: all 0.3s ease;
   border-radius: 2px;
}

/* Hamburger animation */
.menu-toggle:checked ~ .hamburger span:nth-child(1) {
   transform: translateY(.6rem) rotate(45deg);
}

.menu-toggle:checked ~ .hamburger span:nth-child(2) {
   opacity: 0;
}

.menu-toggle:checked ~ .hamburger span:nth-child(3) {
   transform: translateY(-.6rem) rotate(-45deg);
}

/* Menu items */
.menu-items {
   position: fixed;
   display: flex;
   justify-content: center;
   text-align: center;
   top: 0;
   left: 0;
   height: 100vh;
   width: 100%;
   margin-top: 8rem;
   font-size: 3rem;
   font-weight: 500;
   z-index: 999;
   opacity: 0;
   visibility: hidden;
   transition: opacity 0.3s ease, visibility 0s 0.3s;
}

/* Menu items animation */
.menu-toggle:checked ~ .menu-items {
   opacity: 1;
   visibility: visible;
   transition: opacity 0.3s ease, visibility 0s 0s;
}

.menu-items a {
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    background:
        linear-gradient(to right, #e2e8f0, #e2e8f0) no-repeat,
        linear-gradient(to right, #8b5cf6, #a78bfa, #6366f1, #3b82f6);
    background-size: 0% 100%, 300% 100%;
    background-position: 0 0, 100% 0;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: background-size 0.4s ease, background-position 0.4s ease;
}

.menu-items a:hover {
    background-size: 0% 100%, 200% 100%;
    background-position: 0 0, 0 0;
}

/* Body */
@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

.body_container {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 2rem 5%;
    transition: filter 0.3s ease;
}

/* Footer */

.footer {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    transition: filter 0.3s ease;
}

.footer a {
    color: var(--dark);
    font-weight: 400;
}

.footer_item {
    list-style-type: none;
    padding: 5px;
}

.footer_item a {
    font-size: 2rem;
}

.footer_item a:hover {
    border-bottom: 1px solid var(--dark);
}

.footer_item:last-of-type {
   padding-right: 2%;
}

.copyright {
    font-size: 0.65rem;
    margin-bottom: -1rem;
}

.socials {
   display: inline-flex;
   padding-left: 2%;
}


/* Document */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --light: #fff;
    --dark: #141618;
    --smokre: #bcbcbc;
}

html {
   height: 100%;
}

body {
    margin: 0 auto;
    max-width: 1550px;
    font-family: "Poppins", sans-serif;
    display: flex;
    flex-direction: column;
    height: 100%
}

ul {
  list-style-type: none;
  padding-left: 0;
  margin: 0;
  height: fit-content;
}

a {
   text-decoration: none;
   cursor: pointer;
}

.custom_hide {
    filter: blur(3px) brightness(0.25);
}

/* Hide banner header when it would wrap */
@media screen and (max-width: 1000px) {
    .banner_header {
        display: none;
    }
}

@media (prefers-color-scheme: dark) {
    * {
        color: var(--smokre);
    }

    .logo {
        fill: var(--smokre);
        background-color: transparent;
    }

    .nav-container {
        color: var(--smokre);
        background-color: var(--dark);
    }

    body {
        color: var(--smokre);
        background-color: var(--dark);
    }

    .footer a {
        color: var(--light);
    }

    .footer a:hover {
        border-bottom: 1px solid var(--light);
    }

    .footer_inner {
        color: var(--smokre);
        background: transparent;
    }

    .footer_item {
        fill: var(--smokre);
    }

    .c-link {
        color: var(--smokre);
    }

    .navbar .nav-container a {
        color: var(--smokre);
    }

    .nav-container .hamburger span {
        background: var(--smokre);
    }
}
