
/*==========================================================
    VERSION 1.0 - PART 2
    Premium Navbar
==========================================================*/


/*==========================
HEADER
==========================*/

.header{

    position:fixed;

    top:0;

    left:0;

    width:100%;

    z-index:999;

    transition:.35s ease;

}






/*==========================
NAV CONTAINER
==========================*/

.nav-container{

    width:min(92%,1360px);

    margin:auto;

    height:84px;

    display:grid;

    grid-template-columns:280px 1fr 280px;

    align-items:center;

    padding:0;

    transition:.35s ease;

}


/*==========================
BRAND
==========================*/

.brand{

    display:flex;

    align-items:center;

    justify-content:flex-start;

    gap:14px;

    width:max-content;

    user-select:none;

}

.brand-logo{

    width:52px;

    height:52px;

    object-fit:contain;

    transition:.35s ease;

}

.brand:hover .brand-logo{

    transform:scale(1.05);

}

.brand-text{

    display:flex;

    flex-direction:column;

    gap:2px;

}

.brand-text h1{

    font-size:22px;

    font-weight:700;

    line-height:1;

    color:var(--text);

}

.brand-text span{

    font-size:12px;

    color:var(--primary);

    font-weight:600;

}


/*==========================
NAVIGATION
==========================*/

.desktop-nav{

    display:flex;

    justify-content:center;

    align-items:center;

    width:100%;

}

.desktop-nav ul{

    display:flex;

    align-items:center;

    gap:8px;

}

.desktop-nav a{

    position:relative;

    display:flex;

    align-items:center;

    justify-content:center;

    padding:12px 18px;

    border-radius:999px;

    color:var(--text-light);

    font-size:15px;

    font-weight:600;

    transition:.30s;

}

.desktop-nav a:hover{

    color:var(--text);

    background:rgba(46,155,87,.08);

}

.desktop-nav a.active{

    color:var(--primary);

    background:rgba(46,155,87,.10);

}


/*==========================
RIGHT SECTION
==========================*/

.nav-right{

    display:flex;

    align-items:center;

    justify-content:flex-end;

    gap:18px;

    width:100%;

}


/*==========================
WAITLIST BUTTON
==========================*/

.waitlist-btn{

    display:flex;

    align-items:center;

    gap:10px;

    background:linear-gradient(

        135deg,

        #2E9B57,

        #37b96b

    );

    color:#fff;

    padding:15px 26px;

    border-radius:999px;

    font-size:15px;

    font-weight:600;

    box-shadow:

        0 12px 30px rgba(46,155,87,.18),

        0 0 18px rgba(46,155,87,.12);

}

.waitlist-btn:hover{

    transform:translateY(-3px);

    box-shadow:

        0 18px 40px rgba(46,155,87,.24),

        0 0 30px rgba(46,155,87,.18);

}


/*==========================
MENU BUTTON
==========================*/

.menu-btn{

    width:48px;

    height:48px;

    display:none;

    justify-content:center;

    align-items:center;

    flex-direction:column;

    gap:6px;

    border-radius:14px;

}

.menu-btn span{

    width:24px;

    height:2px;

    border-radius:5px;

    background:var(--text);

    transition:.30s;

}

.menu-btn:hover{

    background:rgba(46,155,87,.08);

}


/*==========================
LOGO SCAN EFFECT
==========================*/

.brand{

    position:relative;

    overflow:hidden;

}

.brand::after{

    content:"";

    position:absolute;

    top:-120%;

    left:0;

    width:100%;

    height:50%;

    background:linear-gradient(

        transparent,

        rgba(46,155,87,.35),

        transparent

    );

    transform:skewY(-8deg);

    pointer-events:none;

}


/*==========================
SMOOTH HOVER
==========================*/

.desktop-nav a::before{

    content:"";

    position:absolute;

    inset:0;

    border-radius:999px;

    transform:scale(.75);

    opacity:0;

    transition:.30s;

    background:rgba(46,155,87,.05);

}

.desktop-nav a:hover::before{

    opacity:1;

    transform:scale(1);

}

.desktop-nav a span{

    position:relative;

    z-index:2;

}


/*==========================================================
    VERSION 1.0 - PART 3
    Responsive + Mobile Menu + Animations
==========================================================*/


/*==========================
MOBILE MENU
==========================*/

.mobile-menu{

    position:fixed;

    top:0;

    right:-100%;

    width:380px;

    max-width:100%;

    height:100vh;

    background:rgba(255,255,255,.82);

    backdrop-filter:blur(26px);

    -webkit-backdrop-filter:blur(26px);

    display:flex;

    align-items:flex-start;

    justify-content:flex-start;

    transition:.45s ease;

    z-index:998;

    border-left:1px solid rgba(255,255,255,.55);

    box-shadow:-25px 0 60px rgba(0,0,0,.08);

}

.mobile-menu.active{

    right:0;

}

.mobile-menu nav{

    width:100%;

    padding:100px 32px 40px;

    display:flex;

    flex-direction:column;

    align-items:flex-start;

    justify-content:flex-start;

    gap:10px;

}

.mobile-menu nav a{

    width:100%;

    display:flex;

    justify-content:flex-start;

    align-items:center;

    padding:16px 18px;

    border-radius:16px;

    font-size:18px;

    font-weight:600;

}   

.mobile-menu nav a:hover{

    background:rgba(46,155,87,.08);

    color:var(--primary);

}

.mobile-btn{

    margin-top:26px;

    width:100%;

    justify-content:center;

    display:flex;

    align-items:center;

    padding:16px;

    border-radius:18px;

    background:linear-gradient(135deg,#2E9B57,#36BA6C);

    color:#fff !important;

    box-shadow:0 10px 30px rgba(46,155,87,.20);

}


/*==========================
OVERLAY
==========================*/

.menu-overlay{

    position:fixed;

    inset:0;

    background:rgba(29,36,51,.28);

    backdrop-filter:blur(3px);

    opacity:0;

    visibility:hidden;

    transition:.35s;

    z-index:997;

}

.menu-overlay.active{

    opacity:1;

    visibility:visible;

}


/*==========================
SCAN ANIMATION
==========================*/

@keyframes scanLogo{

    0%{

        top:-120%;

        opacity:0;

    }

    15%{

        opacity:1;

    }

    100%{

        top:140%;

        opacity:0;

    }

}

.brand.scan::after{

    animation:scanLogo .9s ease;

}


/*==========================
FLOAT
==========================*/

@keyframes floatNav{

    from{

        transform:translateY(-12px);

        opacity:0;

    }

    to{

        transform:translateY(0);

        opacity:1;

    }

}

.header.scrolled{

    animation:floatNav .35s ease;

}


/*==========================
RESPONSIVE
==========================*/

@media(max-width:1200px){

    .desktop-nav ul{

        gap:2px;

    }

    .desktop-nav a{

        padding:11px 14px;

    }

}


@media(max-width:1024px){

    .desktop-nav{

        display:none;

    }

    .waitlist-btn{

        display:none;

    }

    .menu-btn{

        display:flex;

    }

    .brand-text h1{

        font-size:20px;

    }

}


@media(max-width:768px){

    .brand-text span{

        display:none;
    
    }

    .header{

        top:2px;

    }

    .nav-container{

        width:94%;

        height:72px;

        display:flex;

        align-items:center;

        justify-content:space-between;

        padding:0;

    }

    .brand-logo{

        width:46px;

        height:46px;

    }

    .brand-text span{

        display:none;

    }

    .brand-text{

        min-width:0;

    }

    /*==========================================
    MOBILE BRAND
    ==========================================*/

    .brand-text{

        display:none !important;

    }

    .brand{

        width:auto;

    }

    .brand-logo{

        width:44px;

        height:44px;

        flex-shrink:0;

    }

}




@media(max-width:600px){

    .mobile-menu{

        width:100%;

    }

    .brand-text h1{

        font-size:18px;

    }

    .brand-logo{

        width:42px;

        height:42px;

    }

}


@media(max-width:420px){

    .nav-container{

        width:95%;

    }

}


/*==========================================
ACTIVE HOVER LAYER FIX
==========================================*/

.desktop-nav a{

    overflow:hidden;

}

.desktop-nav a span{

    position:relative;

    z-index:2;

}

.desktop-nav a::before{

    z-index:1;

}


/*==========================================
BRAND SUBTITLE
==========================================*/

.brand-text{

    display:flex;

    flex-direction:column;

    justify-content:center;

    gap:3px;

}

.brand-text h1{

    margin:0;

    font-size:22px;

    font-weight:700;

    line-height:1;

}

.brand-text p{

    margin:0;

    font-size:13px;

    color:var(--text-light);

    font-weight:500;

    line-height:1.2;

}


/*==========================================
COMING SOON BADGE
==========================================*/

/*==========================================
BRAND TITLE
==========================================*/

.brand-title{

    display:flex;

    align-items:center;

    gap:10px;

}

/*==========================================
COMING SOON BADGE
==========================================*/

.coming-soon-badge{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    padding:4px 10px;

    border-radius:999px;

    background:rgba(46,155,87,.10);

    color:var(--primary);

    border:1px solid rgba(46,155,87,.18);

    font-size:10px;

    font-weight:700;

    letter-spacing:.3px;

    white-space:nowrap;

}


/*==========================================
HAMBURGER TO CROSS
==========================================*/

.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);

}



/*==========================================================
SCROLL DIVIDER
==========================================================*/

.header{

    background:transparent;

    border-bottom:1px solid transparent;

    transition:
        background-color .35s ease,
        border-color .35s ease,
        backdrop-filter .35s ease;

}

.header.scrolled{

    background:rgba(246,248,247,.96);

    backdrop-filter:blur(14px);

    -webkit-backdrop-filter:blur(14px);

    border-bottom:1px solid rgba(46,155,87,.12);

}