/* =========================================================
   ASSETPRO NAVBAR
========================================================= */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;

    background: rgba(4, 16, 35, 0.72);

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

    border-bottom: 1px solid rgba(255, 255, 255, 0.06);

    transition:
        background 0.3s ease,
        box-shadow 0.3s ease;
}


/* Scrolled */

.site-header.scrolled {
    background: rgba(3, 13, 29, 0.96);

    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.2);
}


/* =========================================================
   CONTAINER
========================================================= */

.nav-container {
    width: min(1200px, calc(100% - 48px));

    height: 82px;

    margin: 0 auto;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 35px;
}


/* =========================================================
   BRAND
========================================================= */

.brand {
    display: inline-flex;

    align-items: center;

    gap: 11px;

    text-decoration: none;

    flex-shrink: 0;
}


.brand-mark {
    width: 40px;
    height: 40px;

    display: grid;
    place-items: center;

    border-radius: 11px;

    background:
        linear-gradient(
            145deg,
            #1688ff,
            #0755c9
        );

    color: #ffffff;

    font-size: 21px;

    font-weight: 800;

    box-shadow:
        0 8px 25px rgba(0, 112, 255, 0.28);
}


.brand-name {
    color: #ffffff;

    font-size: 21px;

    font-weight: 800;

    letter-spacing: -0.5px;
}


.brand-name span {
    color: #278cff;
}


/* =========================================================
   DESKTOP NAV
========================================================= */

.desktop-nav {
    display: flex;

    align-items: center;

    gap: 29px;

    margin-left: auto;
}


.nav-link {
    position: relative;

    padding: 29px 0;

    color: #aebbd0;

    text-decoration: none;

    font-size: 13px;

    font-weight: 500;

    white-space: nowrap;

    transition:
        color 0.25s ease;
}


.nav-link::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 18px;

    width: 0;
    height: 2px;

    border-radius: 20px;

    background: #2188ff;

    transition:
        width 0.25s ease;
}


.nav-link:hover,
.nav-link.active {
    color: #ffffff;
}


.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}


/* =========================================================
   NAV ACTIONS
========================================================= */

.nav-actions {
    display: flex;

    align-items: center;

    gap: 20px;

    margin-left: 15px;
}


.login-link {
    color: #d8e2f0;

    text-decoration: none;

    font-size: 13px;

    font-weight: 600;

    transition:
        color 0.25s ease;
}


.login-link:hover {
    color: #ffffff;
}


.nav-cta {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    min-height: 44px;

    padding: 0 19px;

    border-radius: 9px;

    background:
        linear-gradient(
            135deg,
            #1688ff,
            #075acb
        );

    color: #ffffff;

    text-decoration: none;

    font-size: 13px;

    font-weight: 700;

    box-shadow:
        0 8px 25px rgba(0, 112, 255, 0.2);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


.nav-cta span {
    font-size: 17px;

    transition:
        transform 0.25s ease;
}


.nav-cta:hover {
    transform: translateY(-2px);

    box-shadow:
        0 12px 30px rgba(0, 112, 255, 0.32);
}


.nav-cta:hover span {
    transform: translateX(3px);
}


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

.mobile-menu-button {
    display: none;

    width: 43px;
    height: 43px;

    border: 1px solid rgba(255, 255, 255, 0.1);

    border-radius: 10px;

    background: rgba(255, 255, 255, 0.05);

    cursor: pointer;

    align-items: center;

    justify-content: center;

    flex-direction: column;

    gap: 5px;
}


.mobile-menu-button span {
    width: 19px;
    height: 2px;

    border-radius: 10px;

    background: #ffffff;

    transition:
        transform 0.25s ease,
        opacity 0.25s ease;
}


/* =========================================================
   MOBILE SIDEBAR
========================================================= */

.mobile-sidebar {
    position: fixed;

    top: 0;
    right: 0;

    width: min(360px, 88%);

    height: 100vh;

    background:
        linear-gradient(
            180deg,
            #06172f 0%,
            #031126 100%
        );

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

    z-index: 1100;

    padding: 25px;

    display: flex;

    flex-direction: column;

    transform: translateX(105%);

    transition:
        transform 0.35s cubic-bezier(
            0.4,
            0,
            0.2,
            1
        );

    box-shadow:
        -20px 0 70px rgba(0, 0, 0, 0.35);
}


.mobile-sidebar.open {
    transform: translateX(0);
}


/* =========================================================
   MOBILE SIDEBAR HEADER
========================================================= */

.mobile-sidebar-header {
    display: flex;

    align-items: center;

    justify-content: space-between;

    padding-bottom: 28px;

    border-bottom: 1px solid rgba(
        255,
        255,
        255,
        0.07
    );
}


.mobile-close-button {
    width: 40px;
    height: 40px;

    display: grid;

    place-items: center;

    border: 1px solid rgba(
        255,
        255,
        255,
        0.1
    );

    border-radius: 10px;

    background: rgba(
        255,
        255,
        255,
        0.04
    );

    cursor: pointer;

    position: relative;
}


.mobile-close-button span {
    position: absolute;

    width: 17px;
    height: 2px;

    border-radius: 10px;

    background: #ffffff;
}


.mobile-close-button span:first-child {
    transform: rotate(45deg);
}


.mobile-close-button span:last-child {
    transform: rotate(-45deg);
}


/* =========================================================
   MOBILE NAVIGATION
========================================================= */

.mobile-nav {
    display: flex;

    flex-direction: column;

    gap: 7px;

    padding-top: 28px;
}


.mobile-nav-link {
    display: flex;

    align-items: center;

    gap: 14px;

    min-height: 52px;

    padding: 0 15px;

    border-radius: 10px;

    color: #9eacc1;

    text-decoration: none;

    font-size: 14px;

    font-weight: 600;

    transition:
        color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}


.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: #ffffff;

    background:
        rgba(30, 133, 255, 0.1);

    transform: translateX(3px);
}


.mobile-nav-link.active {
    border-left: 2px solid #2089ff;
}


.mobile-nav-icon {
    width: 25px;

    color: #258bff;

    font-size: 17px;

    text-align: center;
}


/* =========================================================
   MOBILE FOOTER
========================================================= */

.mobile-sidebar-footer {
    margin-top: auto;

    padding-top: 25px;

    border-top: 1px solid rgba(
        255,
        255,
        255,
        0.07
    );

    display: flex;

    flex-direction: column;

    gap: 10px;
}


.mobile-login {
    min-height: 48px;

    display: flex;

    align-items: center;

    justify-content: center;

    border: 1px solid rgba(
        255,
        255,
        255,
        0.1
    );

    border-radius: 10px;

    color: #ffffff;

    text-decoration: none;

    font-size: 14px;

    font-weight: 600;
}


.mobile-cta {
    min-height: 48px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 9px;

    border-radius: 10px;

    background:
        linear-gradient(
            135deg,
            #1688ff,
            #075acb
        );

    color: #ffffff;

    text-decoration: none;

    font-size: 14px;

    font-weight: 700;
}


/* =========================================================
   OVERLAY
========================================================= */

.mobile-overlay {
    position: fixed;

    inset: 0;

    background: rgba(
        0,
        5,
        15,
        0.65
    );

    backdrop-filter: blur(3px);

    z-index: 1050;

    opacity: 0;

    visibility: hidden;

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}


.mobile-overlay.visible {
    opacity: 1;

    visibility: visible;
}


/* =========================================================
   BODY LOCK
========================================================= */

body.menu-open {
    overflow: hidden;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1050px) {

    .desktop-nav {
        gap: 19px;
    }

    .nav-container {
        width: min(
            1200px,
            calc(100% - 34px)
        );
    }

}


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

@media (max-width: 850px) {

    .nav-container {
        height: 72px;

        width: calc(100% - 32px);
    }

    .desktop-nav,
    .nav-actions {
        display: none;
    }

    .mobile-menu-button {
        display: flex;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .nav-container {
        width: calc(100% - 24px);
    }

    .brand-mark {
        width: 37px;
        height: 37px;

        font-size: 19px;
    }

    .brand-name {
        font-size: 19px;
    }

    .mobile-sidebar {
        padding: 21px;
    }

}

