:root {
    --navbar-back-color: #031746;
    --navbar-front-color: #ffffff;
    --front-color-2: #031746;
    --front-color-3: #C90E19;
    --navbar-height: 60px;

    --i: 0;
}
body {
    padding-top: var(--navbar-height);
}
.navbar-container {
    width: 100%;
    display: flex;
    flex-direction: row;
    padding: 0 20px;
    box-sizing: border-box;
    height: var(--navbar-height);
    position: fixed;
    top: 0;
    background: var(--navbar-front-color);
    color: var(--navbar-front-color);
    z-index: 1000;
    transition: color .3s ease;
}
.navbar-container::before{
    content:"";
    position:absolute;
    inset:0;
    background: var(--color-var-2-right-gradient);
    opacity: 1;
    transition: opacity .3s ease;
    z-index: -1;
}
.navbar-container.scrolled::before{
    opacity: 0;
}
.navbar-container.scrolled {
    box-shadow: 2px 0 5px rgba(0, 0, 0, .1);
    background: var(--navbar-front-color);
    color: var(--navbar-back-color);
}
.navbar-container.unsticked {
    position: absolute;
    top: 0; left: 0; right: 0;
}
.navbar-left {
    max-width: 250px;
    height: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    box-sizing: border-box;
    transition: all 0.3s ease;
}
.navbar-right {
    flex-grow: 1;
    height: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    box-sizing: border-box;
    justify-content: flex-end;
    max-height: unset !important;
    transition: all 0.3s ease;
}
.navbar-right a {
    text-decoration: none;
    margin-right: 15px;
    font-size: 16px;
    color: var(--navbar-front-color);
    transition: color 0.3s ease;
}
.navbar-container.scrolled .navbar-right a {
    color: var(--navbar-back-color);
}
.navbar-right a:hover {
    color: var(--front-color-3);
}
.navbar-logo {
    height: calc(var(--navbar-height) - 20px);
    max-height: 80px;
}
.navbar-logo.hidden {
    display: none;
}
.navbar-burger {
    position: fixed;
    top: 15px;
    right: 20px;
    width: 36px;
    height: 36px;
    z-index: 1001;
    display: none;
    color: var(--navbar-front-color);
    cursor: pointer;
}
.navbar-container.scrolled .navbar-burger {
    color: var(--navbar-back-color);
}

@media only screen and (max-width: 719px) {
    body {
        padding-top: calc(var(--navbar-height) + 20px);
    }

    .navbar-container {
        flex-direction: column;
        height: calc(var(--navbar-height) + 20px);
        padding: 10px 0;
        align-items: center;
    }

    .navbar-right {
        max-height: 0;
        width: 100%;
        height: auto;
        overflow: hidden;
        opacity: 0;
        transform: translateY(-8px);
        pointer-events: none;
        flex-direction: column;
        min-height: fit-content;
        background: var(--navbar-front-color);
        position: fixed;
        top: calc(var(--navbar-height) + 20px);
        border-bottom: 2px solid var(--navbar-front-color);
        transition: border-bottom .3s ease, opacity .3s ease, transform .3s ease;
    }
    .navbar-right::before {
        content: "";
        position: absolute;
        inset: 0;
        background: var(--color-var-2-right-gradient);
        opacity: 1;
        transition: opacity .3s ease;
        z-index: -1;
        pointer-events: none;
    }
    .navbar-container.scrolled .navbar-right {
        border-bottom: 2px solid var(--navbar-back-color);
    }
    .navbar-container.scrolled .navbar-right::before {
        opacity: 0;
    }
    .navbar-right.active {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }
    .navbar-right > * {
        position: relative;
        z-index: 1;
    }

    .navbar-right .navbar-link {
       width: 100%;
       height: 35px;
       line-height: 35px;
       margin-right: 0;

       opacity: 0;
       transform: translateY(-6px);
       transition: opacity .28s ease, transform .32s ease;
       transition-delay: calc(var(--i, 0) * 60ms);
   }

    .navbar-right.active .navbar-link {
        opacity: 1;
        transform: none;
    }

    .navbar-logo {
        height: 60px;
    }

    .navbar-burger {
        top: calc((var(--navbar-height) - 36px) / 2 + 10px);
        display: block;
    }

    .navbar-burger.open path:nth-child(1) {
        transform: rotate(-45deg) translateX(15px) translateY(-3px) scaleX(1.3);
    }

    .navbar-burger.open path:nth-child(2) {
        opacity: 0;
    }

    .navbar-burger.open path:nth-child(3) {
        transform: rotate(45deg) translateX(-1px) translateY(10px) scaleX(1.3);
    }

    .navbar-burger path {
        transition: transform .3s ease, opacity .2s ease;
        transform-box: fill-box;
        transform-origin: 12px 12px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .navbar-right, .navbar-right .navbar-link { transition: none !important; }
}