/* ==========================================================
   HEADER
========================================================== */

.navbar{
    position:fixed;
    top:20px;
    left:0;
    width:100%;
    z-index:1000;
    pointer-events:none;
    transition:.35s;
}

.nav-glass{

    width:min(1280px,95%);
    margin:auto;

    pointer-events:auto;

    background:rgba(255,255,255,.05);

    backdrop-filter:blur(18px);
    -webkit-backdrop-filter:blur(18px);

    border:1px solid rgba(255,255,255,.08);

    border-radius:22px;

    padding:16px 32px;

    transition:.35s;

    box-shadow:
        0 15px 40px rgba(0,0,0,.18);

}

.navbar.scrolled .nav-glass{

    background:rgba(5,17,10,.86);

    border-color:rgba(255,255,255,.05);

    box-shadow:
        0 15px 50px rgba(0,0,0,.45);

}

/* ==========================================================
   NAV WRAPPER
========================================================== */

.nav-wrapper{

    display:flex;

    justify-content:space-between;

    align-items:center;

}

/* ==========================================================
   LOGO
========================================================== */

.logo{

    display:flex;

    align-items:center;

    text-decoration:none;

}

.logo-image{

    height:48px;

    transition:.35s;

}

.logo:hover .logo-image{

    transform:scale(1.05);

}

/* ==========================================================
   DESKTOP MENU
========================================================== */

.desktop-nav{

    display:flex;

    align-items:center;

    gap:42px;

}

.desktop-nav a{

    position:relative;

    text-decoration:none;

    color:#d7d7d7;

    font-size:15px;

    font-weight:500;

    transition:.3s;

}

.desktop-nav a:hover{

    color:white;

}

.desktop-nav a::after{

    content:"";

    position:absolute;

    bottom:-8px;

    left:50%;

    width:0;

    height:2px;

    background:#22c55e;

    transform:translateX(-50%);

    transition:.35s;

}

.desktop-nav a:hover::after{

    width:100%;

}

.desktop-nav a.active{

    color:white;

}

.desktop-nav a.active::after{

    width:100%;

}

/* ==========================================================
   RIGHT SIDE
========================================================== */

.nav-right{

    display:flex;

    align-items:center;

    gap:16px;

}

/* ==========================================================
   BUTTON
========================================================== */

.nav-btn{

    padding:14px 28px;

    border-radius:14px;

    background:#22c55e;

    color:white;

    text-decoration:none;

    font-weight:600;

    transition:.35s;

    box-shadow:
        0 15px 30px rgba(34,197,94,.25);

}

.nav-btn:hover{

    transform:translateY(-4px);

    box-shadow:
        0 22px 45px rgba(34,197,94,.4);

}

/* ==========================================================
   HAMBURGER
========================================================== */

.menu-btn{

    display:none;

    width:48px;

    height:48px;

    border:none;

    background:rgba(255,255,255,.05);

    border-radius:14px;

    cursor:pointer;

    position:relative;

    transition:.3s;

}

.menu-btn span{

    position:absolute;

    left:13px;

    width:22px;

    height:2px;

    background:white;

    border-radius:10px;

    transition:.35s;

}

.menu-btn span:nth-child(1){

    top:15px;

}

.menu-btn span:nth-child(2){

    top:23px;

}

.menu-btn span:nth-child(3){

    top:31px;

}

/* ==========================================================
   HAMBURGER ACTIVE
========================================================== */


.menu-btn.active span:nth-child(1){

    transform:translateY(8px) rotate(45deg);

}

.menu-btn.active span:nth-child(2){

    opacity:0;

}

.menu-btn.active span:nth-child(3){

    transform:translateY(-8px) rotate(-45deg);

}

/* ==========================================================
   BACKDROP
========================================================== */

.menu-backdrop{

    position:fixed;

    inset:0;

    background:rgba(0,0,0,.45);

    backdrop-filter:blur(6px);

    opacity:0;

    visibility:hidden;

    transition:.35s;

    z-index:998;

}

.menu-backdrop.show{

    opacity:1;

    visibility:visible;

}

/* ==========================================================
   MOBILE MENU
========================================================== */

body.menu-open{

    overflow:hidden;

}

.mobile-menu{

    position:fixed;

    top:0;

    right:-100%;

    width:min(420px,100%);

    height:100vh;

    background:#05140b;

    z-index:999;

    transition:.45s cubic-bezier(.22,1,.36,1);

    display:flex;

    flex-direction:column;

    padding:30px;

    border-left:1px solid rgba(255,255,255,.05);

}

.mobile-menu.open{

    right:0;

}

.mobile-header{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:60px;

}

.mobile-logo{

    height:42px;

}

.close-menu{

    width:42px;

    height:42px;

    border:none;

    border-radius:12px;

    background:rgba(255,255,255,.05);

    color:white;

    cursor:pointer;

    transition:.3s;

}

.close-menu:hover{

    background:#22c55e;

}

/* ==========================================================
   MOBILE LINKS
========================================================== */

.mobile-links{

    flex:1;

    display:flex;

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

    flex-direction:column;

    gap:32px;

}

.mobile-links a{

    color:white;

    text-decoration:none;

    font-size:22px;

    font-weight:600;

    transition:.3s;

}

.mobile-links a:hover{

    color:#22c55e;

    transform:translateX(12px);

}

/* ==========================================================
   MOBILE BUTTON
========================================================== */

.mobile-btn{

    margin-top:auto;

    text-align:center;

    padding:16px;

    border-radius:16px;

    text-decoration:none;

    color:white;

    font-weight:600;

    background:#22c55e;

    box-shadow:
        0 15px 30px rgba(34,197,94,.25);

}

/* ==========================================================
   RESPONSIVE
========================================================== */

@media(max-width:991px){

    .desktop-nav{

        display:none;

    }

    .nav-btn{

        display:none;

    }

    .menu-btn{

        display:block;

    }

}

@media(max-width:768px){

    .nav-glass{

        width:94%;

        padding:14px 20px;

    }

    .logo-image{

        height:42px;

    }

}

@media(max-width:480px){

    .mobile-menu{

        width:100%;

    }

}