/*=========================================
    NAVBAR
=========================================*/

.header{

    position:fixed;

    top:0;
    left:0;

    width:100%;
    height:var(--header-height);

    z-index:1000;

    transition:
        background .35s ease,
        backdrop-filter .35s ease,
        border-color .35s ease,
        box-shadow .35s ease;

}

.header.scrolled{

    background:rgba(10,10,10,.72);

    backdrop-filter:blur(20px);
    -webkit-backdrop-filter:blur(20px);

    border-bottom:1px solid rgba(255,255,255,.05);

    box-shadow:
        0 10px 40px rgba(0,0,0,.28);

}

.navbar{

    height:100%;

    display:flex;

    align-items:center;

    justify-content:space-between;

}

/*=========================================
    LOGO
=========================================*/

.logo{

    display:flex;

    align-items:center;

    z-index:1002;

}

.logo img{

    width:168px;

    height:auto;

    transition:
        transform .35s ease,
        filter .35s ease;

}

.logo:hover img{

    transform:translateY(-2px);

    filter:
        drop-shadow(0 0 14px rgba(255,212,0,.18));

}

/*=========================================
    DESKTOP MENU
=========================================*/

.nav{

    margin-left:auto;

    margin-right:42px;

}

.nav-list{

    display:flex;

    align-items:center;

    gap:42px;

}

.nav-link{

    position:relative;

    display:flex;

    align-items:center;

    height:44px;

    color:var(--color-text-secondary);

    transition:
        color .3s,
        transform .3s;

}

.nav-link:hover{

    color:#fff;

    transform:translateY(-2px);

}

.nav-link.active{

    color:var(--color-primary);

}

.nav-link::after{

    content:"";

    position:absolute;

    left:50%;

    bottom:-8px;

    width:0;

    height:2px;

    border-radius:999px;

    background:var(--color-primary);

    transform:translateX(-50%);

    transition:
        width .35s ease,
        box-shadow .35s ease;

}

.nav-link:hover::after,
.nav-link.active::after{

    width:100%;

    box-shadow:
        0 0 10px rgba(255,212,0,.45);

}

/*=========================================
    ACTIONS
=========================================*/

.navbar-actions{

    display:flex;

    align-items:center;

    gap:18px;

}

.nav-cta{

    padding:14px 24px;

}

.nav-cta:hover{

    transform:
        translateY(-3px)
        scale(1.02);

}

/*=========================================
    HAMBURGER
=========================================*/

.menu-toggle{

    display:none;

    width:52px;
    height:52px;

    border:none;

    background:transparent;

    cursor:pointer;

    padding:0;

    align-items:center;

    justify-content:center;

    flex-direction:column;

    gap:6px;

    z-index:1002;

}

.menu-toggle span{

    display:block;

    width:28px;

    height:2px;

    border-radius:999px;

    background:#fff;

    transition:
        transform .35s ease,
        opacity .35s ease,
        background .35s ease;

}

.menu-toggle.active span{

    background:var(--color-primary);

}

.menu-toggle.active span:nth-child(1){

    transform:
        translateY(8px)
        rotate(45deg);

}

.menu-toggle.active span:nth-child(2){

    opacity:0;

}

.menu-toggle.active span:nth-child(3){

    transform:
        translateY(-8px)
        rotate(-45deg);

}

/*=========================================
    RESPONSIVE
=========================================*/

@media(max-width:992px){

    .nav{

        display:none;

    }

    .nav-cta{

        display:none;

    }

    .menu-toggle{

        display:flex;

    }

}

@media(max-width:576px){

    .logo img{

        width:145px;

    }

}

/*=========================================
    MOBILE MENU
=========================================*/

.mobile-menu{

    position:fixed;

    top:0;
    right:-420px;

    width:min(380px,100%);
    height:100vh;

    padding:
        calc(var(--header-height) + 35px)
        35px
        40px;

    display:flex;
    flex-direction:column;

    background:rgba(12,12,12,.96);

    backdrop-filter:blur(28px);
    -webkit-backdrop-filter:blur(28px);

    border-left:1px solid rgba(255,255,255,.06);

    box-shadow:
        -30px 0 60px rgba(0,0,0,.45);

    opacity:0;

    visibility:hidden;

    transition:

        right .45s cubic-bezier(.22,1,.36,1),

        opacity .35s ease,

        visibility .35s ease;

    z-index:1001;

}

.mobile-menu.open{

    right:0;

    opacity:1;

    visibility:visible;

}

.mobile-nav{

    display:flex;

    flex-direction:column;

    justify-content:space-between;

    height:100%;

}

.mobile-nav ul{

    display:flex;

    flex-direction:column;

    gap:10px;

}

.mobile-nav li{

    list-style:none;

}

.mobile-link{

    position:relative;

    display:flex;

    align-items:center;

    padding:18px 0;

    font-size:1.15rem;

    font-weight:500;

    color:var(--color-text-secondary);

    transition:
        color .3s,
        transform .3s,
        padding-left .3s;

}

.mobile-link::after{

    content:"";

    position:absolute;

    bottom:0;
    left:0;

    width:100%;

    height:1px;

    background:rgba(255,255,255,.06);

}

.mobile-link:hover{

    color:var(--color-primary);

    padding-left:12px;

    transform:translateX(4px);

}

.mobile-btn{

    width:100%;

    margin-top:45px;

    justify-content:center;

}

/*=========================================
    OVERLAY
=========================================*/

.menu-overlay{

    position:fixed;

    inset:0;

    background:rgba(0,0,0,.55);

    backdrop-filter:blur(6px);

    -webkit-backdrop-filter:blur(6px);

    opacity:0;

    visibility:hidden;

    transition:

        opacity .35s ease,

        visibility .35s ease;

    z-index:1000;

}

.menu-overlay.show{

    opacity:1;

    visibility:visible;

}

/*=========================================
    BODY
=========================================*/

body.menu-open{

    overflow:hidden;

}

/*=========================================
    MOBILE
=========================================*/

@media(max-width:480px){

    .mobile-menu{

        width:100%;

        right:-100%;

        border-left:none;

    }

}