.logo {
    width: 120px;
}

.logo img {
    width: 100%;
    z-index: 11;
}

.logo a {
    display: block;
    width: 100%;
    height: 100%;
}

.spacer {
    flex: 1;
}

header {
    position: fixed;
    top: 0;
    z-index: 99999;
    background: #f5f7ffCC;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* for Safari */
    padding: 20px 20px 10px;
    transition: top 0.3s ease;
    left: 0;
    right: 0;
}

header.fixedToTop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
}

header.hide-header {
    transform: translateY(-100%);
}

.header-container {
    max-width: 1200px;
    display: flex;
    margin: auto;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

nav.main-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

nav.main-nav .nav-links {
    margin: 20px;
    display: flex;
    list-style: none;
    gap: 30px;
}

nav.main-nav .nav-links li a {
    position: relative;
    text-decoration: none;
    color: #072AC8;
}

nav.main-nav a::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #072AC8;
    transition: 250ms;
}

nav.main-nav a:hover:before {
    width: 100%;
}

.lang-toggle {
    background: none;
    border: 1px solid #072AC8;
    color: #072AC8;
    padding: 0 10px;
    border-radius: 20px;
    cursor: pointer;
    font-family: 'BoldFont', sans-serif;
    transition: background 0.3s ease;
}

.mobile-menu-toggle {
    display: none;
    font-size: 18px;
    cursor: pointer;
}

.mobile-menu-toggle i {
    padding-left: 20px;
    color: #072AC8;
}

.nav-links {
    display: flex;
}

/* in sync with hero margin-top */
@media screen and (max-width: 850px) {
    header {
        padding: 10px 20px;
    }

    .header-container {
        padding: 0;
    }

    nav.main-nav .nav-links {
        margin: 15px 20px 0 0;
        gap: 20px;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        background: #fff;
        position: absolute;
        top: 20px;
        right: 0;
        padding: 16px;
        border-radius: 14px;
        border: 1px solid #E0E9FF;
        box-shadow: 0 4px 12px rgba(11, 16, 40, 0.07);
    }

    .nav-links.show {
        display: flex;
    }

    .nav-links:not(.show) {
        display: none !important;
    }

    .mobile-menu-toggle {
        display: block;
    }

    nav.main-nav {
        flex: 1;
        justify-content: flex-end;
    }

    .hamburger {
        margin-left: 20px;
        cursor: pointer;
        width: 20px;
        height: 22px;
        position: relative;
        z-index: 1001;
        display: block;
    }

    .bar {
        background-color: #072AC8;
        height: 2px;
        width: 100%;
        margin: 4px 0;
        transition: 0.4s;
        border-radius: 2px;
    }

    .change .bar1 {
        transform: rotate(-45deg) translate(-3px, 3px);
    }

    .change .bar2 {
        opacity: 0;
    }

    .change .bar3 {
        transform: rotate(45deg) translate(-6px, -6px);
    }

    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        background: #f5f7ffCC;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px); /* for Safari */
        display: flex;
        justify-content: center;
        align-items: flex-start;
        padding-top: 4rem;
        z-index: 999;
        transform: translateY(-100%);
        transition: transform 0.4s ease-in-out;
        border-bottom: 1px solid #E0E9FF;
    }

    .menu-overlay.active {
        transform: translateY(0);
    }

    .menu-content {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: start;
    }

    .menu-overlay-container {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        z-index: 998;
        display: none;
    }

    .menu-overlay-container.active {
        display: block;
    }

    .menu-links {
        margin: 20px 0;
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        width: 100%;
    }

    .menu-links a {
        margin: 0 20px;
        text-decoration: none;
        color: #072AC8;
        transition: opacity 0.2s ease;
    }

    .menu-links a:hover {
        opacity: 0.7;
    }
}
