.menu {
    position: fixed;
    top: 0;
    left: 50%;
    width: 100vw;
    max-width: 1440px !important;
    /*height: 15vh;*/
    z-index: 100;
    background: transparent;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    transform: translateX(-50%);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.menu.scrolled {
    opacity: 0.2;
    transform: translateX(-50%);
}

.menu-logo {
    display: flex;
    align-items: center;
    height: 105%;
    text-decoration: none;
    color: inherit;
    border-radius: 4px;
}

/* Accessible focus style for logo link */
.menu-logo:focus-visible {
    outline: 3px solid var(--black);
    outline-offset: 4px;
}

.menu-items {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
}

.menu-item {
    font-family: 'Instrument Sans', sans-serif;
    font-weight: 300;
    font-size: 21px;
    line-height: 34px;
    text-transform: uppercase;
    color: var(--black);
    margin: 5px 0;
}

.menu-item.active {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
    color: var(--black);
}

.language-selector {
    display: flex;
    align-items: center;
    margin-top: 10px;
    position: relative;
    cursor: pointer;
}

.language-toggle {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    color: var(--black);
    font: inherit;
    transition: color 0.3s ease;
}

.language-selector:hover .language-toggle {
    opacity: 0.7;
}

.language-option {
    font-family: 'Instrument Sans', sans-serif;
    font-weight: 300;
    font-size: 21px;
    text-transform: uppercase;
    color: inherit;
}

.lang-arrow {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.language-toggle[aria-expanded="true"] .lang-arrow {
    transform: rotate(180deg);
}

.language-dropdown {
    display: block;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    border: 2px solid var(--black);
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    min-width: 80px;
    margin-top: 5px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

.language-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
    .language-dropdown {
        transition: none;
    }
}

.lang-option {
    display: block;
    padding: 8px 16px;
    color: var(--black);
    text-decoration: none;
    font-family: 'Instrument Sans', sans-serif;
    font-weight: 300;
    font-size: 18px;
    text-transform: uppercase;
    transition: background-color 0.2s ease;
}

.lang-option:hover,
.lang-option:focus {
    background: var(--yellow);
    color: var(--black);
    outline: none;
}

.lang-option.active {
    background: var(--yellow);
    font-weight: 300;
}
/* Language toggle button */
.language-toggle {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    color: inherit;
    font: inherit;
}

/* Scroll Progress Indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background-color: var(--yellow);
    z-index: 1001; /* Above menu (100) and modal (1000) */
    transition: width 0.1s linear;
}

@media (prefers-reduced-motion: reduce) {
    .scroll-progress {
        transition: none;
    }
}
