/* Shared top bar styling */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 12px 32px;
    font-size: 0.95rem;
    color: #F0F0F0;
    background: rgba(17, 17, 17, 0.95);
    border-bottom: 3px solid #FFC107;
    backdrop-filter: blur(8px);
    z-index: 1000;
}
.top-bar__logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    color: inherit;
    text-decoration: none;
}
.top-bar__logo img {
    max-height: 44px;
    width: auto;
}
.top-bar__toggle {
    display: none;
}
.top-bar__menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1;
    gap: 16px;
}
.top-bar__left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.top-bar__links {
    display: flex;
    align-items: center;
    gap: 12px;
}
.home-button,
.about-button,
.contact-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    clip-path: polygon(12% 0, 100% 0, 88% 100%, 0 100%);
    border: 1px solid rgba(0, 0, 0, 0.18);
    box-shadow: 0 6px 16px rgba(255, 193, 7, 0.32);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.home-button,
.about-button {
    color: #101010;
    background: #FFC107;
}
.contact-button {
    color: #101010;
    background: #FFC107;
}
.home-button:hover,
.about-button:hover,
.contact-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(255, 193, 7, 0.4);
    background: #FFB300;
}
.home-button:focus-visible,
.about-button:focus-visible,
.contact-button:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 224, 130, 0.7), 0 10px 22px rgba(255, 193, 7, 0.4);
}
@media (max-width: 840px) {
    .top-bar {
        padding: 10px 16px;
        gap: 10px;
    }
    .top-bar__logo {
        position: static;
        transform: none;
        pointer-events: auto;
    }
    .top-bar__logo img {
        max-height: 32px;
    }
    .top-bar__toggle {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        margin-left: auto;
        padding: 6px 14px;
        background: rgba(255, 193, 7, 0.14);
        border: 1px solid rgba(255, 193, 7, 0.4);
        border-radius: 999px;
        color: #FFE082;
        font-size: 0.8rem;
        font-weight: 700;
        font-family: inherit;
        cursor: pointer;
        -webkit-appearance: none;
        appearance: none;
    }
    .top-bar__toggle:focus-visible {
        outline: 2px solid #FFE082;
        outline-offset: 2px;
    }
    .top-bar__menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 14px 16px 18px;
        background: rgba(17, 17, 17, 0.97);
        border-bottom: 3px solid #FFC107;
        backdrop-filter: blur(8px);
    }
    .top-bar.is-open .top-bar__menu {
        display: flex;
    }
    .top-bar__left,
    .top-bar__links {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
}
