/* navbar.css: Hamburger menu styles and animation */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: auto;
}

.navbar-logo {
    color: #fff;
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 1px;
}

.hamburger {
    width: 32px;
    height: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    cursor: pointer;
    z-index: 110;
}

.hamburger span {
    display: block;
    height: 4px;
    width: 100%;
    background: #fff;
    margin: 4px 0;
    border-radius: 2px;
    text-shadow: none;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.7));
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.nav-links {
    position: fixed;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: var(--bg-dark);
    backdrop-filter: var(--blur-std);
    -webkit-backdrop-filter: var(--blur-std);
    list-style: none;
    padding: 80px 0 24px 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.nav-links li a {
    color: #fff;
    font-size: 1.2rem;
    text-decoration: none;
    transition: color 0.2s;
}

.language-toggle {
    color: #fff;
    font-size: 1.2rem;
    font-family: inherit;
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
    transition: color 0.2s;
}

.nav-links li a:hover,
.language-toggle:hover,
.language-toggle:focus-visible {
    color: #aee6ff;
}

.language-toggle:focus-visible {
    outline: none;
}

@media (min-width: 900px) {
    .nav-links {
        width: auto;
        right: 0;
        left: auto;
        top: 0;
        height: auto;
        max-height: 100vh;
        background: var(--bg-dark);
        padding: 80px 40px 40px 40px;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        box-shadow: -5px 5px 15px rgba(0, 0, 0, 0.3);
    }
}

/* Audio toggle icon */
.audio-toggle {
    position: fixed;
    bottom: 24px;
    left: calc(24px + 3cm);
    z-index: 120;
    background: var(--bg-medium);
    backdrop-filter: var(--blur-std);
    -webkit-backdrop-filter: var(--blur-std);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: background 0.2s;
}

@media (max-width: 768px) {
    .audio-toggle {
        top: 20px;
        left: 24px;
        bottom: auto;
        width: 36px;
        height: 36px;
    }

    .audio-toggle img {
        width: 20px;
        height: 20px;
    }

    .audio-toggle::before {
        display: none;
    }
}

.audio-toggle::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    pointer-events: none;
}

.audio-toggle:hover {
    background: var(--bg-dark);
}

.audio-toggle img {
    width: 28px;
    height: 28px;
}