/*==================================================
HEADER
==================================================*/

.header{

    position:fixed;

    top:18px;

    left:50%;

    transform:translateX(-50%);

    width:min(1320px,calc(100% - 40px));

    z-index:9999;

    background:rgba(11,31,19,.45);

    backdrop-filter:blur(20px) saturate(180%);

    -webkit-backdrop-filter:blur(20px) saturate(180%);

    border:1px solid rgba(255,255,255,.08);

    border-radius:18px;

    transition:all .35s ease;

}

.header.scrolled{

background:rgba(255,255,255,.92);

backdrop-filter:blur(24px);

border:1px solid rgba(0,0,0,.05);

box-shadow:

0 20px 45px rgba(15,23,42,.08),

0 8px 18px rgba(15,23,42,.05);

}

/*==================================================
HEADER CONTAINER
==================================================*/

.header .container{

    display:flex;

    align-items:center;

    justify-content:space-between;

    height:90px;

}

/*==================================================
LOGO
==================================================*/

.logo{

    display:flex;

    align-items:center;

    gap:14px;

    flex-shrink:0;

}

.logo img{

width:58px;

height:58px;

border-radius:16px;

padding:6px;

background:#fff;

box-shadow:0 8px 18px rgba(0,0,0,.08);

transition:.35s;

}

.logo span{

    font-family:var(--heading);

    font-size:1.35rem;

    font-weight:700;

    line-height:1.25;

    color:#fff;

    transition:.35s;

}

.header.scrolled .logo span{

    color:var(--dark);

}

/*==================================================
NAVIGATION
==================================================*/

.navbar{

    margin-left:auto;

}

.nav-links{

    display:flex;

    align-items:center;

    gap:38px;

}

.nav-links li{

    list-style:none;

}

.nav-links a{

    position:relative;

    display:inline-block;

    font-size:1rem;

    font-weight:600;

    color:var(--accent);
    
    border-radius: 8px;


    transition:.35s;

}



/*==================================================
UNDERLINE
==================================================*/

.nav-links a::after{

    content:"";

    position:absolute;

    left:0;

    bottom:-8px;

    width:0;

    height:2px;

    background:var(--accent);

    border-radius:50px;

    transition:.35s;

}

.nav-links a:hover::after,

.nav-links a.active::after{

    width:100%;

}

.nav-links a:hover{

    color:white;
    background-color: var(--accent);
    padding: 10px;

}



/*==================================================
CTA
==================================================*/

.nav-btn{

    margin-left:35px;

    flex-shrink:0;

}

.nav-btn.btn{

    background:var(--accent);

    color:var(--dark);

    font-weight:700;

}

.nav-btn.btn:hover{

    background:#FFD54F;

    transform:translateY(-4px);

}

/*==================================================
MOBILE MENU
==================================================*/

.menu-toggle{

    width:52px;

    height:52px;

    display:none;

    position:relative;

    margin-left:auto;

    cursor:pointer;

    background:none;

    border:none;

    flex-shrink:0;

}

.menu-toggle span{

    position:absolute;

    left:10px;

    width:32px;

    height:3px;

    background:#fff;

    border-radius:50px;

    transition:.35s;

}

.header.scrolled .menu-toggle span{

    background:var(--dark);

}

.menu-toggle span:nth-child(1){

    top:16px;

}

.menu-toggle span:nth-child(2){

    top:25px;

}

.menu-toggle span:nth-child(3){

    top:34px;

}

/*==================================================
HAMBURGER
==================================================*/

.menu-toggle.active span:nth-child(1){

    transform:rotate(45deg);

    top:25px;

}

.menu-toggle.active span:nth-child(2){

    opacity:0;

}

.menu-toggle.active span:nth-child(3){

    transform:rotate(-45deg);

    top:25px;

}


.navbar.active{

right:0;

}


.navbar.active .nav-links a{

    color:#fff;

}

.navbar.active .nav-links a.active{

    color:var(--accent);

}


body.menu-open{

overflow:hidden;

}