/* =========================================================
   BUZZERBAIK - MODERN GLASS MEGA NAVBAR
   ========================================================= */

:root {
    --bb-primary: #2563eb;
    --bb-primary-light: #3b82f6;
    --bb-purple: #7c3aed;

    --bb-dark: #020617;
    --bb-text: #0f172a;
    --bb-muted: #64748b;

    --bb-glass: rgba(255, 255, 255, .82);
    --bb-border: rgba(255, 255, 255, .65);

    --bb-shadow:
        0 20px 60px rgba(15, 23, 42, .12);

    --bb-radius: 14px;

     --bb-navbar-height: 76px;
     
}

/* =========================================================
   NAVBAR
   ========================================================= */

.bb-navbar {
    position: sticky;

    top: 0;

    z-index: 9999;

    width: 100%;

    padding: 12px 0;

    background:
        rgba(255, 255, 255, .72);

    border-bottom:
        1px solid rgba(226, 232, 240, .75);

    backdrop-filter: blur(20px);

    -webkit-backdrop-filter: blur(20px);

    box-shadow:
        0 8px 30px rgba(15, 23, 42, .06);

    min-height: var(--bb-navbar-height);

    
}


/* =========================================================
   NAVBAR CONTAINER
   ========================================================= */

.bb-navbar-container {
    width: 100%;
    max-width: 1250px;

    margin: 0 auto;

    padding: 0 22px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;
}


/* =========================================================
   LOGO
   ========================================================= */

.bb-navbar-logo {
    position: relative;

    display: inline-flex;

    align-items: center;

    flex-shrink: 0;

    padding: 7px 12px;

    background:
        rgba(255, 255, 255, .9);

    border:
        1px solid rgba(226, 232, 240, .8);

    border-radius: 11px;

    box-shadow:
        0 5px 20px rgba(15, 23, 42, .07);

    text-decoration: none;

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

.bb-navbar-logo:hover {
    transform: translateY(-2px);

    box-shadow:
        0 10px 25px rgba(37, 99, 235, .15);
}

.bb-navbar-logo img {
    display: block;

    width: auto;

    max-width: 170px;

    height: 42px;

    object-fit: contain;
}


/* =========================================================
   NAVIGATION
   ========================================================= */

.bb-navbar-menu {
    display: flex;

    align-items: center;

    justify-content: center;

    gap: 5px;

    margin-left: auto;
}

.bb-navbar-menu > li {
    position: relative;

    list-style: none;
}

.bb-navbar-menu > li > a {
    position: relative;

    display: flex;

    align-items: center;

    min-height: 44px;

    padding: 0 14px;

    color: #334155;

    border-radius: 9px;

    font-size: 14px;
    font-weight: 600;

    text-decoration: none;

    transition:
        color .25s ease,
        background .25s ease;
}

.bb-navbar-menu > li > a:hover {
    color: var(--bb-primary);

    background:
        rgba(37, 99, 235, .07);
}


/* =========================================================
   ACTIVE LINK
   ========================================================= */

.bb-navbar-menu > li > a.active {
    color: var(--bb-primary);

    background:
        rgba(37, 99, 235, .08);
}


/* =========================================================
   DROPDOWN ARROW
   ========================================================= */

.bb-nav-arrow {
    display: inline-block;

    width: 7px;
    height: 7px;

    margin-left: 8px;

    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;

    transform:
        rotate(45deg)
        translateY(-2px);

    transition:
        transform .25s ease;
}

.bb-navbar-menu > li:hover .bb-nav-arrow {
    transform:
        rotate(225deg)
        translateY(-1px);
}


/* =========================================================
   CONTACT BUTTON
   ========================================================= */

.bb-navbar-contact {
    display: inline-flex !important;

    align-items: center;
    justify-content: center;

    min-height: 44px !important;

    padding: 0 20px !important;

    color: #ffffff !important;

    background:
        linear-gradient(
            135deg,
            #2563eb,
            #7c3aed
        ) !important;

    border-radius: 10px !important;

    box-shadow:
        0 8px 22px rgba(37, 99, 235, .22);

    transition:
        transform .25s ease,
        box-shadow .25s ease !important;
}

.bb-navbar-contact:hover {
    color: #ffffff !important;

    transform: translateY(-2px);

    background:
        linear-gradient(
            135deg,
            #1d4ed8,
            #6d28d9
        ) !important;

    box-shadow:
        0 12px 30px rgba(37, 99, 235, .3);
}


/* =========================================================
   FULL WIDTH MEGA MENU
   ========================================================= */

.bb-mega-menu {
    position: fixed;

    top: var(--bb-navbar-height, 76px);

    left: 0;

    width: 100vw;

    max-height: calc(100vh - var(--bb-navbar-height, 76px));

    padding: 28px 0;

    overflow-x: hidden;

    overflow-y: auto;

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transform: translateY(10px);

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, .96),
            rgba(248, 250, 252, .94)
        );

    border-top:
        1px solid rgba(255, 255, 255, .9);

    border-bottom:
        1px solid rgba(226, 232, 240, .9);

    backdrop-filter: blur(25px);

    -webkit-backdrop-filter: blur(25px);

    box-shadow:
        0 25px 70px
        rgba(15, 23, 42, .15);

    transition:
        opacity .25s ease,
        visibility .25s ease,
        transform .25s ease;
}

/* =========================================================
   MEGA MENU SCROLLBAR
   ========================================================= */

.bb-mega-menu::-webkit-scrollbar {
    width: 7px;
}

.bb-mega-menu::-webkit-scrollbar-track {
    background: rgba(241, 245, 249, .6);
}

.bb-mega-menu::-webkit-scrollbar-thumb {
    background:
        linear-gradient(
            180deg,
            #2563eb,
            #7c3aed
        );

    border-radius: 20px;
}

.bb-mega-menu::-webkit-scrollbar-thumb:hover {
    background:
        linear-gradient(
            180deg,
            #1d4ed8,
            #6d28d9
        );
}


/* =========================================================
   SHOW MEGA MENU
   ========================================================= */

.bb-navbar-menu > li:hover .bb-mega-menu,
.bb-navbar-menu > li.mega-active .bb-mega-menu {
    opacity: 1;

    visibility: visible;

    pointer-events: auto;

    transform: translateY(0);
}

/* =========================================================
   MEGA MENU INNER CONTAINER
   ========================================================= */

.bb-mega-container {
    width: 100%;

    max-width: 1250px;

    margin: 0 auto;

    padding: 0 25px;
}


/* =========================================================
   MEGA MENU TOP
   ========================================================= */

.bb-mega-header {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    margin-bottom: 20px;

    padding-bottom: 18px;

    border-bottom:
        1px solid rgba(226, 232, 240, .8);
}

.bb-mega-header h2 {
    margin: 0;

    color: var(--bb-text);

    font-size: 18px;

    line-height: 1.3;
}

.bb-mega-header p {
    margin: 4px 0 0;

    color: var(--bb-muted);

    font-size: 12px;
}


/* =========================================================
   MEGA GRID
   ========================================================= */

.bb-mega-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 18px;
}


/* =========================================================
   MEGA COLUMN
   ========================================================= */

.bb-mega-column {
    padding: 18px;

    background:
        linear-gradient(
            135deg,
            rgba(248, 250, 252, .85),
            rgba(239, 246, 255, .5)
        );

    border:
        1px solid rgba(226, 232, 240, .85);

    border-radius: 14px;

    transition:
        border-color .25s ease,
        transform .25s ease,
        box-shadow .25s ease;
}

.bb-mega-column:hover {
    transform: translateY(-3px);

    border-color:
        rgba(147, 197, 253, .7);

    box-shadow:
        0 10px 25px rgba(37, 99, 235, .07);
}


/* =========================================================
   MEGA COLUMN TITLE
   ========================================================= */

.bb-mega-column-title {
    display: flex;

    align-items: center;

    gap: 10px;

    margin-bottom: 14px;

    color: var(--bb-text);

    font-size: 14px;
    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: .3px;
}

.bb-mega-column-title::before {
    content: "";

    flex: 0 0 8px;

    width: 8px;
    height: 8px;

    background:
        linear-gradient(
            135deg,
            var(--bb-primary),
            var(--bb-purple)
        );

    border-radius: 50%;

    box-shadow:
        0 0 12px rgba(37, 99, 235, .35);
}


/* =========================================================
   MEGA LINKS
   ========================================================= */

.bb-mega-column ul {
    margin: 0;

    padding: 0;

    list-style: none;
}

.bb-mega-column li {
    margin-bottom: 5px;
}

.bb-mega-column a {
    display: flex;

    align-items: center;

    min-height: 30px;

    padding: 3px 5px;

    color: #64748b;

    border-radius: 6px;

    font-size: 12px;

    text-decoration: none;

    transition:
        color .2s ease,
        background .2s ease,
        padding-left .2s ease;
}

.bb-mega-column a::before {
    content: "›";

    margin-right: 6px;

    color: #93c5fd;

    font-size: 16px;

    line-height: 1;
}

.bb-mega-column a:hover {
    padding-left: 9px;

    color: var(--bb-primary);

    background:
        rgba(255, 255, 255, .85);
}

.bb-mega-column a:hover::before {
    color: var(--bb-primary);
}


/* =========================================================
   MEGA MENU FOOTER
   ========================================================= */

.bb-mega-footer {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    margin-top: 20px;

    padding-top: 18px;

    border-top:
        1px solid rgba(226, 232, 240, .8);
}

.bb-mega-footer-text {
    color: #64748b;

    font-size: 12px;
}

.bb-mega-footer-link {
    display: inline-flex;

    align-items: center;

    min-height: 38px;

    padding: 0 15px;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #2563eb,
            #7c3aed
        );

    border-radius: 8px;

    font-size: 12px;
    font-weight: 700;

    text-decoration: none;

    box-shadow:
        0 8px 20px rgba(37, 99, 235, .18);

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

.bb-mega-footer-link:hover {
    color: #ffffff;

    transform: translateY(-2px);

    box-shadow:
        0 12px 25px rgba(37, 99, 235, .25);
}


/* =========================================================
   MOBILE MENU BUTTON
   ========================================================= */

.bb-navbar-toggle {
    display: none;

    width: 42px;
    height: 42px;

    padding: 0;

    border: 0;

    background:
        rgba(255, 255, 255, .7);

    border:
        1px solid rgba(226, 232, 240, .8);

    border-radius: 9px;

    cursor: pointer;
}

.bb-navbar-toggle span {
    display: block;

    width: 19px;
    height: 2px;

    margin: 4px auto;

    background: #334155;

    border-radius: 5px;

    transition:
        transform .25s ease,
        opacity .25s ease;
}

.bb-navbar-toggle.active span:nth-child(1) {
    transform:
        translateY(6px)
        rotate(45deg);
}

.bb-navbar-toggle.active span:nth-child(2) {
    opacity: 0;
}

.bb-navbar-toggle.active span:nth-child(3) {
    transform:
        translateY(-6px)
        rotate(-45deg);
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1100px) {

    .bb-navbar-container {
        gap: 15px;
    }

    .bb-navbar-menu > li > a {
        padding: 0 9px;

        font-size: 13px;
    }

    .bb-mega-menu {
        width: calc(100vw - 30px);
    }

    .bb-mega-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

}


/* =========================================================
   MOBILE NAVBAR
   ========================================================= */

@media (max-width: 850px) {

    .bb-navbar {
        padding: 9px 0;

        position: sticky;

        top: 0;

        z-index: 9999;
    }


    .bb-navbar-container {
        position: relative;

        padding: 0 18px;
    }


    /* =========================
       LOGO
       ========================= */

    .bb-navbar-logo img {
        height: 37px;

        max-width: 150px;
    }


    /* =========================
       TOGGLE BUTTON
       ========================= */

    .bb-navbar-toggle {
        display: block;

        position: relative;

        z-index: 10001;

        width: 42px;
        height: 42px;

        padding: 0;

        border: 0;

        background:
            rgba(255, 255, 255, .85);

        border: 1px solid
            rgba(226, 232, 240, .9);

        border-radius: 10px;

        cursor: pointer;

        flex-shrink: 0;
    }


    .bb-navbar-toggle span {
        display: block;

        width: 19px;
        height: 2px;

        margin: 4px auto;

        background: #334155;

        border-radius: 5px;

        transition:
            transform .25s ease,
            opacity .25s ease;
    }


    /* =========================
       HAMBURGER ACTIVE
       ========================= */

    .bb-navbar-toggle.active span:nth-child(1) {
        transform:
            translateY(6px)
            rotate(45deg);
    }


    .bb-navbar-toggle.active span:nth-child(2) {
        opacity: 0;
    }


    .bb-navbar-toggle.active span:nth-child(3) {
        transform:
            translateY(-6px)
            rotate(-45deg);
    }


    /* =========================
       MAIN MENU
       ========================= */

    .bb-navbar-menu {
        position: absolute;

        top: calc(100% + 10px);

        left: 10px;
        right: 10px;

        display: none;

        width: auto;

        max-height: calc(100vh - 85px);

        margin: 0;

        padding: 12px;

        overflow-x: hidden;

        overflow-y: auto;

        overscroll-behavior: contain;

        -webkit-overflow-scrolling: touch;

        background:
            rgba(255, 255, 255, .96);

        border:
            1px solid rgba(226, 232, 240, .9);

        border-radius: 18px;

        box-shadow:
            0 25px 60px
            rgba(15, 23, 42, .16);

        backdrop-filter: blur(25px);

        -webkit-backdrop-filter: blur(25px);
    }


    /* =========================
       CUSTOM SCROLLBAR
       ========================= */

    .bb-navbar-menu::-webkit-scrollbar {
        width: 5px;
    }


    .bb-navbar-menu::-webkit-scrollbar-track {
        background: transparent;
    }


    .bb-navbar-menu::-webkit-scrollbar-thumb {
        background:
            linear-gradient(
                180deg,
                #3b82f6,
                #7c3aed
            );

        border-radius: 20px;
    }


    /* =========================
       MENU OPEN
       ========================= */

    .bb-navbar-menu.active {
        display: block;
    }


    /* =========================
       MENU ITEM
       ========================= */

    .bb-navbar-menu > li {
        display: block;

        width: 100%;

        margin: 0;
    }


    .bb-navbar-menu > li > a {
        display: flex;

        align-items: center;

        justify-content: space-between;

        width: 100%;

        min-height: 46px;

        padding: 0 14px;

        color: #334155;

        border-radius: 9px;

        font-size: 14px;

        text-decoration: none;
    }


    .bb-navbar-menu > li > a:hover {
        color: #2563eb;

        background:
            rgba(37, 99, 235, .07);
    }


    /* =========================
       MOBILE MEGA MENU
       ========================= */

    .bb-mega-menu {
        position: static;

        display: none;

        width: 100%;

        margin-top: 5px;

        padding: 10px;

        opacity: 1;

        visibility: visible;

        pointer-events: auto;

        transform: none;

        background:
            rgba(248, 250, 252, .95);

        border:
            1px solid rgba(226, 232, 240, .8);

        border-radius: 13px;

        box-shadow: none;

        backdrop-filter: none;

        -webkit-backdrop-filter: none;
    }


    /* =========================
       MEGA MENU OPEN
       ========================= */

    .bb-navbar-menu
        > li.mega-active
        > .bb-mega-menu {

        display: block;

        opacity: 1;

        visibility: visible;

        transform: none;
    }


    /* =========================
       MEGA CONTAINER
       ========================= */

    .bb-mega-container {
        width: 100%;

        padding: 0;
    }


    /* =========================
       HIDE MEGA HEADER
       ========================= */

    .bb-mega-header {
        display: none;
    }


    /* =========================
       MEGA GRID
       ========================= */

    .bb-mega-grid {
        display: grid;

        grid-template-columns: 1fr;

        gap: 8px;
    }


    /* =========================
       MEGA COLUMN
       ========================= */

    .bb-mega-column {
        padding: 14px;

        background:
            rgba(255, 255, 255, .75);

        border:
            1px solid rgba(226, 232, 240, .8);

        border-radius: 11px;
    }


    /* =========================
       MEGA COLUMN TITLE
       ========================= */

    .bb-mega-column-title {
        margin-bottom: 10px;

        font-size: 13px;
    }


    /* =========================
       MEGA LINKS
       ========================= */

    .bb-mega-column a {
        min-height: 34px;

        padding: 3px 5px;

        font-size: 12px;
    }


    /* =========================
       MEGA FOOTER
       ========================= */

    .bb-mega-footer {
        display: none;
    }


    /* =========================
       CONTACT BUTTON
       ========================= */

    .bb-navbar-menu > li > .bb-navbar-contact {
        display: flex;

        width: 100%;

        min-height: 46px;

        margin-top: 7px;

        justify-content: center;
    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .bb-navbar-container {
        padding: 0 14px;
    }

    .bb-navbar-logo {
        padding: 5px 8px;
    }

    .bb-navbar-logo img {
        height: 34px;

        max-width: 135px;
    }

    .bb-navbar-menu {
        left: 8px;
        right: 8px;
    }

}


/* =========================================================
   REDUCE MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .bb-navbar,
    .bb-navbar-logo,
    .bb-navbar-menu,
    .bb-mega-menu,
    .bb-mega-column,
    .bb-navbar-contact,
    .bb-footer-link {
        transition: none;
    }

}