
header {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.1);
background-size: cover;
position: sticky;
top: 0;
z-index: 1;
padding: 10px 20px;
backdrop-filter: blur(5px);
-webkit-backdrop-filter: blur(5px);
}

header img {
    max-height: 40px;
}

header::before {
content: "";
display: block;
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: -1;
background-color: rgba(0, 0, 0, 0.1);
background-size: cover;
filter: blur(7px);
-webkit-filter: blur(7px);
opacity: 0.5;
}

header .logo {
   font-size: 1.6rem;
   font-weight: 700;
}
nav {
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #0F0B23EB;
    /* width: calc(100vw - 30px); */
    width: 100vw;
    opacity: 0;
    transform: scaleY(0);
    transform-origin: top;
    transition: all 0.5s ease;
}

nav.active {
    opacity: 1;
    transform: scaleY(1);
    border-bottom: 1px solid #fff;
    border-radius: 0 0 30px 30px;
    box-shadow: 0px 29px 49px -30px rgba(3.0000000000000133, 216, 169.00000000000003, 0.55);
}

nav a {
    color: #fff;
    font-size: 16px;
    padding: 0 0 20px 30px;
    margin-bottom: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}

nav a:hover {
    background-color: #EAEAEA0F !important;
}

.burger-menu {
    height: 20px;
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 20px;
    z-index: 10;
}

.burger-menu span {
    background-color: #fff;
    height: 2px;
    width: 25px;
    display: block;
    margin: 5px 0;
    transition: all 0.3s ease;
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.burger-menu.active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

@media (min-width: 768px) {
    header {
        flex-direction: row;
        height: 80px;
        padding: 0 40px;
    }

    h1 {
        flex: 1;
    }

    nav {
        position: static;
        flex-direction: row;
        justify-content: flex-end;
        margin-right: 20px;
        opacity: 1;
        transform: scaleY(1);
        background-color: transparent;
        width: auto;
        padding: 0;
        border: none
    }

    nav a {
        margin: 0 20px;
        padding: 0;
    }

    .burger-menu {
        display:flex !important;
height: auto;
opacity: 1;
visibility: hidden;
}
}

nav a {
    --b: 0.05em;   /* the thickness of the line */
    --c: #03d8a9; /* the color */
    padding-block: var(--b);
    background: 
      linear-gradient(var(--c) 50%,#000 0) 0% calc(100% - var(--_p,0%))/100% 200%,
      linear-gradient(var(--c) 0 0) 0% var(--_p,0%)/var(--_p,0%) var(--b) no-repeat;
    -webkit-background-clip: text,padding-box;
            background-clip: text,padding-box;
    transition: .15s var(--_s,0s) linear,background-size .15s calc(.15s - var(--_s,0s));
  }
  nav a:hover {
      color: var(--c);
    --_p: 100%;
    --_s: .15s;
  }