/* ===========================================
   HEADER
=========================================== */

.header{

    position:fixed;

    top:0;

    left:0;

    width:100%;

    z-index:1000;

    background:rgba(255,255,255,.82);

    backdrop-filter:blur(18px);

    border-bottom:1px solid var(--border);

    transition:all .35s ease;

}

/* Shadow on scroll */
.header.scrolled{

    box-shadow:0 4px 30px rgba(0,0,0,.08);
    background:rgba(255,255,255,.95);

}

/* ===========================================
   NAVBAR
=========================================== */

.navbar{

    height:86px;

    display:flex;

    align-items:center;

    justify-content:space-between;

}

/* ===========================================
   BRAND
=========================================== */

.brand{

    display:flex;

    align-items:center;

    gap:14px;

    text-decoration:none;

}

.brand-icon{

    width:16px;

    height:16px;

    border-radius:50%;

    background:var(--primary);

    box-shadow:

        0 0 18px rgba(37,99,235,.35);

}

.brand-text{

    display:flex;

    flex-direction:column;

}

.brand-name{

    font-size:1.15rem;

    font-weight:700;

    color:var(--secondary);

    line-height:1.2;

}

.brand-title{

    font-size:.82rem;

    color:var(--text-light);

}

/* ===========================================
   MENU
=========================================== */

.nav-links{

    display:flex;

    align-items:center;

    gap:36px;

}

.nav-links a{

    position:relative;

    font-weight:500;

    color:var(--text);

    transition:.3s;

    padding:4px 0;

}

.nav-links a:hover{

    color:var(--primary);

}

.nav-links a::after{

    content:"";

    position:absolute;

    left:0;

    bottom:-4px;

    width:0;

    height:2.5px;

    background:var(--primary);

    border-radius:2px;

    transition:.3s ease;

}

.nav-links a:hover::after{

    width:100%;

}

.nav-links a.active{

    color:var(--primary);

}

.nav-links a.active::after{

    width:100%;

}

/* ===========================================
   HAMBURGER (Mobile)
=========================================== */

.hamburger{

    display:none;

    flex-direction:column;

    gap:6px;

    cursor:pointer;

    padding:5px;

    background:none;

    border:none;

}

.hamburger span{

    display:block;

    width:28px;

    height:2.5px;

    background:var(--secondary);

    border-radius:2px;

    transition:all .3s ease;

}

.hamburger.active span:nth-child(1){

    transform:rotate(45deg) translate(6px,6px);

}

.hamburger.active span:nth-child(2){

    opacity:0;

}

.hamburger.active span:nth-child(3){

    transform:rotate(-45deg) translate(6px,-6px);

}

/* ===========================================
   RESPONSIVE NAVBAR
=========================================== */

@media (max-width:992px){

    .nav-links{

        gap:24px;

    }

    .brand-title{

        font-size:.7rem;

    }

}

@media (max-width:768px){

    .nav-links{

        position:fixed;

        top:86px;

        left:0;

        width:100%;

        background:rgba(255,255,255,.98);

        backdrop-filter:blur(18px);

        flex-direction:column;

        padding:2rem 1.5rem;

        gap:1.2rem;

        transform:translateX(100%);

        transition:transform .35s ease;

        border-bottom:1px solid var(--border);

        box-shadow:var(--shadow-md);

        align-items:flex-start;

    }

    .nav-links.active{

        transform:translateX(0);

    }

    .hamburger{

        display:flex;

    }

    .brand-title{

        font-size:.65rem;

    }

    .brand-name{

        font-size:1rem;

    }

    .brand-icon{

        width:14px;

        height:14px;

    }

}