.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 28px 8%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 100;
    background: rgba(255, 255, 255, 0.68);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(207, 148, 80, 0.14);
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.8s ease, transform 0.8s ease, padding 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    will-change: opacity, transform;
}

.logo img {
    height: 48px;
    width: 58px;
    object-fit: contain;
    display: block;
}

.nav-links {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links a {
    padding: 6px 18px;
    font-size: 15px;
    font-weight: 500;
    color: var(--secondary);
    border-radius: 8px;
    position: relative;
    transition: color 0.25s ease, background-color 0.25s ease;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 2px;
    height: 2px;
    border-radius: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.nav-links a:hover {
    color: var(--primary);
    background: rgba(207, 148, 80, 0.08);
}

.nav-links a:hover::after {
    transform: scaleX(1);
}

.nav-links a.active {
    color: var(--accent-strong);
    font-weight: 600;
}

.nav-links a.active::after {
    transform: scaleX(1);
}

.navbar.show {
    opacity: 1;
    transform: translateY(0);
}

.navbar.scrolled {
    padding-top: 16px;
    padding-bottom: 16px;
    box-shadow: 0 8px 28px rgba(17, 17, 17, 0.07);
    background: rgba(255, 255, 255, 0.92);
}

.menu-toggle {
    width: 44px;
    height: 44px;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 1px solid rgba(207, 148, 80, 0.28);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.88);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.menu-toggle:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(17, 17, 17, 0.12);
}

.menu-toggle span {
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: var(--primary);
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(84vw, 340px);
    height: 100vh;
    padding: 110px 30px 30px;
    display: none;
    flex-direction: column;
    gap: 6px;
    background: #ffffff;
    border-left: 1px solid rgba(207, 148, 80, 0.14);
    box-shadow: -14px 0 40px rgba(17, 17, 17, 0.12);
    transform: translateX(102%);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1200;
    pointer-events: none;
}

.mobile-nav a {
    padding: 14px 16px;
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
    border-radius: 12px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.mobile-nav a:hover,
.mobile-nav a.active {
    background: rgba(207, 148, 80, 0.14);
    color: var(--accent-strong);
}

.mobile-nav.is-open {
    transform: translateX(0);
    pointer-events: auto;
}

.mobile-nav-backdrop {
    position: fixed;
    inset: 0;
    display: none;
    background: rgba(15, 15, 15, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 1100;
}

.mobile-nav-backdrop.is-open {
    opacity: 1;
    visibility: visible;
}
