.navigator {
    position: fixed;
    bottom: max(2.78vh, env(safe-area-inset-bottom, 0px));
    left: 50%;
    transform: translateX(-50%);
    max-width: calc(100vw - 2rem);
    height: clamp(2.75rem, 3.65vw, 4.25rem);
    display: inline-flex;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(10px);

    padding: 0 0.31vw;
    gap: 0.31vw;

    border-radius: 0.63vw;
    background-color: var(--nav-bg-color);
}

.navigator-avatar {
    height: clamp(2.25rem, 3.02vw, 3.75rem);
    width: auto;
    aspect-ratio: 1/1;
    border-radius: 0.42vw;
}

.navigator-buttons {
    display: flex;
    align-items: center;
    gap: 0.31vw;
    height: clamp(2.25rem, 3.02vw, 3.75rem);
    border-radius: 0.42vw;
    background-color: var(--nav-button-bg-color);
    padding: 0 0.31vw;
}

.navigator-buttons a {
    border-radius: 0.21vw;
    border: 1px solid rgba(255, 255, 255, 0.10);
    align-content: center;
    padding: 0 clamp(0.35rem, 0.73vw, 0.85rem);
    height: clamp(1.75rem, 2.29vw, 2.85rem);

    color: var(--nav-button-text-color);
    text-decoration: none;
    font-size: clamp(0.7rem, 0.73vw, 0.95rem);
    font-weight: 300;
    white-space: nowrap;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.navigator-buttons a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.16);
}

.navigator-buttons a.is-active,
.navigator-buttons a[aria-current="page"] {
    background-color: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.22);
}

.navigator-contact {
    border: none;
    border-radius: 0.42vw;
    background-color: var(--bg-color);
    height: clamp(2.25rem, 3.02vw, 3.75rem);
    align-content: center;
    padding: 0 clamp(0.4rem, 0.52vw, 0.75rem);

    color: var(--text-color);
    text-decoration: none;
    font-size: clamp(0.7rem, 0.73vw, 0.95rem);
    font-weight: 500;
    white-space: nowrap;
    font-family: inherit;
    cursor: pointer;
}

.navigator-contact:hover {
    filter: brightness(0.97);
}

[data-theme="dark"] .navigator-contact:hover {
    filter: brightness(1.08);
}

.theme-toggle {
    position: fixed;
    top: 2.78vh;
    right: 1.56vw;
    z-index: 1000;

    font-size: clamp(1.1rem, 1.7vw, 1.85rem);
    background: none;

    color: var(--text-color);
    border: none;

    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), color 0.5s ease;
}

.theme-toggle:focus {
    background: none;
    outline: none;
}

.theme-toggle:focus-visible {
    outline: 2px solid var(--text-color);
    outline-offset: 4px;
}

.theme-toggle:hover {
    background: none;
    cursor: pointer;
}

[data-theme="dark"] .theme-toggle {
    transform: rotate(360deg);
}
