/* RESET */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* BODY */

body {
    font-family: 'Inter', sans-serif;
    background: #021120;
    overflow-x: hidden;
    overflow-y: auto;

    padding-top: 110px;
}

/* NAVBAR */

.navbar {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    height: 110px;

    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding-left: 30px;
    padding-right: 60px;

    background: linear-gradient(
        180deg,
        #041325 0%,
        #02101f 100%
    );

    border-bottom: none;

    transition:
        height .35s ease,
        background .35s ease,
        box-shadow .35s ease,
        backdrop-filter .35s ease;
}

/* SCROLL EFFECT */

.navbar.scrolled {
    height: 80px;

    background: rgba(3, 20, 38, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

/* LOGO */

.navbar-logo {
    display: flex;
    align-items: center;
    flex: 0 0 340px;
}

.navbar-logo img {
    width: 300px;
    height: auto;
    display: block;

    position: relative;
    top: 6px;
    left: -15px;

    transition:
        width .35s ease,
        top .35s ease,
        left .35s ease;
}

.navbar.scrolled .navbar-logo img {
    width: 240px;
    top: 2px;
}

/* MENU */

.navbar-menu {
    flex: 1;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 45px;

    position: relative;
    left: -80px;
}

.navbar-menu a {
    text-decoration: none;
    color: #ffffff;

    font-size: 14px;
    font-weight: 700;

    letter-spacing: 0.08em;
    text-transform: uppercase;

    transition:
        color .25s ease,
        font-size .25s ease;
}

.navbar-menu a:hover {
    color: #2b9dea;
}

.navbar.scrolled .navbar-menu a {
    font-size: 13px;
}

/* BUTTON */

.navbar-button {
    text-decoration: none;

    color: #ffffff;
    font-size: 14px;
    font-weight: 700;

    letter-spacing: 0.08em;
    text-transform: uppercase;

    padding: 18px 36px;

    border-radius: 6px;

    background: linear-gradient(
        180deg,
        #2b9dea 0%,
        #1a7bcf 100%
    );

    box-shadow: 0 0 20px rgba(114, 196, 255, 0.25);

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        padding .25s ease,
        font-size .25s ease;
}

.navbar-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 35px rgba(114, 196, 255, 0.45);
}

.navbar.scrolled .navbar-button {
    padding: 14px 28px;
}

/* TABLET */

@media (max-width: 1200px) {
    .navbar {
        padding-left: 20px;
        padding-right: 20px;
    }

    .navbar-logo {
        flex: 0 0 250px;
    }

    .navbar-logo img {
        width: 240px;
        left: -5px;
        top: 4px;
    }

    .navbar.scrolled .navbar-logo img {
        width: 210px;
    }

    .navbar-menu {
        gap: 22px;
        left: -40px;
    }

    .navbar-menu a {
        font-size: 12px;
    }

    .navbar-button {
        padding: 14px 24px;
    }

    .navbar.scrolled .navbar-button {
        padding: 12px 22px;
    }
}

/* MOBILE */

.navbar-toggle {
    display: none;
}

.navbar-button-mobile {
    display: none;
}

@media (max-width: 900px) {
    body {
        padding-top: 82px;
    }

    .navbar {
        height: 82px;
        padding: 0 22px;

        flex-direction: row;
        gap: 0;
    }

    .navbar.scrolled {
        height: 72px;
    }

    .navbar-logo {
        flex: initial;
        z-index: 10001;
    }

    .navbar-logo img {
        width: 190px;
        left: 0;
        top: 0;
    }

    .navbar.scrolled .navbar-logo img {
        width: 170px;
    }

    .navbar-toggle {
        display: flex;
        align-items: center;
        justify-content: center;

        width: 48px;
        height: 48px;

        border: 1px solid rgba(136, 215, 253, 0.22);
        border-radius: 12px;

        background: rgba(136, 215, 253, 0.08);

        color: #ffffff;
        font-size: 22px;

        cursor: pointer;

        z-index: 10001;
    }

    .navbar-button-desktop {
        display: none;
    }

    .navbar-button-mobile {
        display: inline-flex;
        margin-top: 12px;
    }

    .navbar-menu {
        position: fixed;
        inset: 0;
        left: 0;

        width: 100%;
        height: 100vh;

        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;

        gap: 28px;

        background:
            radial-gradient(circle at top, rgba(43, 157, 234, 0.18), transparent 35%),
            #021120;

        opacity: 0;
        pointer-events: none;
        transform: translateY(-12px);

        transition:
            opacity .3s ease,
            transform .3s ease;

        z-index: 10000;
    }

    .navbar-menu.active {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .navbar-menu a {
        font-size: 18px;
        letter-spacing: 0.12em;
    }

    .navbar.scrolled .navbar-menu a {
        font-size: 18px;
    }

    .navbar-menu .navbar-button {
        padding: 17px 36px;
        font-size: 15px;
    }

    .navbar.scrolled .navbar-menu .navbar-button {
        padding: 17px 36px;
        font-size: 15px;
    }
}