.topbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1050;
    padding: 0;
    background-color: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    animation: topbarFadeIn 0.5s ease-in-out;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    height: 80px;
    display: flex;
    align-items: center;
}

@keyframes topbarFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.topbar-container {
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 40px;
    height: 80px;
}

.topbar-brand {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.topbar-logo {
    height: 45px;
    width: auto;
    display: block;
    transition: opacity 0.2s ease;
}

.topbar-logo:hover {
    opacity: 0.7;
}

.topbar-nav {
    margin-left: auto;
}

.nav-mobile-header {
    display: none;
}

.topbar-nav > ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-item {
    position: relative;
}

.nav-link,
.dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.5rem 0.25rem;
    color: #1F2937 !important;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    text-decoration: none;
    border: none;
    background: none;
    cursor: pointer;
    transition: color 0.2s ease;
    font-family: 'Montserrat', sans-serif;
    text-transform: none !important;
}

.nav-link:hover,
.dropdown-toggle:hover {
    color: #EC5200 !important;
}

.dropdown-toggle::after {
    content: "";
    width: 6px;
    height: 6px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.25s ease;
    margin-top: -3px;
}

.nav-item:hover .dropdown-toggle::after,
.dropdown-toggle.active::after {
    transform: rotate(135deg);
    margin-top: 3px;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: auto;
    right: 0;
    min-width: 260px;
    list-style: none;
    margin: 0;
    padding: 8px;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(14px) saturate(180%);
    -webkit-backdrop-filter: blur(14px) saturate(180%);
    border: 1px solid rgba(31, 41, 55, 0.08);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.10);
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 1060;
    white-space: nowrap;
}

.nav-item:hover .dropdown-menu,
.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 10px 14px;
    color: #1F2937 !important;
    font-weight: 500;
    font-size: 0.88rem;
    text-transform: none !important;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
    border-radius: 8px;
    margin: 0 0 2px 0;
}

.dropdown-item:last-child {
    margin-bottom: 0;
}

.dropdown-item:hover {
    background-color: rgba(236, 82, 0, 0.08);
    color: #EC5200 !important;
}

.hamburger-btn {
    display: none;
}

body {
    padding-top: 80px !important;
}

@media (max-width: 768px) {
    .topbar {
        height: 64px;
    }

    .topbar-container {
        height: 64px;
        padding: 0 20px;
    }

    .topbar-logo {
        height: 32px;
    }

    body {
        padding-top: 64px !important;
    }

    .hamburger-btn {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 40px;
        height: 40px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1150;
    }

    .hamburger-btn span {
        display: block;
        width: 26px;
        height: 2.5px;
        background-color: #1F2937;
        border-radius: 2px;
        transition: all 0.25s ease;
        margin: 3.5px 0;
    }

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

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

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

    .topbar-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 86%;
        max-width: 320px;
        height: 100dvh;
        margin-left: 0;
        background-color: #ffffff;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1100;
        display: flex;
        flex-direction: column;
        overflow-y: auto;
    }

    .topbar-nav.open {
        right: 0;
    }

    .nav-mobile-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 18px 20px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
        flex-shrink: 0;
    }

    .nav-mobile-title {
        font-family: 'Montserrat', sans-serif;
        font-weight: 600;
        font-size: 1rem;
        color: #1F2937;
    }

    .nav-close-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 34px;
        height: 34px;
        border-radius: 50%;
        background: transparent;
        border: none;
        font-size: 1.5rem;
        line-height: 1;
        color: #1F2937;
        cursor: pointer;
        transition: background-color 0.15s ease;
    }

    .nav-close-btn:hover {
        background-color: rgba(0, 0, 0, 0.05);
    }

    .topbar-nav > ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px;
    }

    .nav-item {
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .nav-item:last-child {
        border-bottom: none;
    }

    .nav-link,
    .dropdown-toggle {
        font-size: 1rem;
        padding: 16px 6px;
        width: 100%;
        justify-content: space-between;
        color: #1F2937 !important;
    }

    .dropdown-menu {
        position: static;
        max-height: 0;
        overflow: hidden;
        opacity: 1;
        visibility: visible;
        transform: none;
        background-color: rgba(236, 82, 0, 0.03) !important;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        box-shadow: none;
        border: none;
        border-radius: 10px;
        padding: 0;
        margin: 0 0 8px 0;
        transition: max-height 0.3s ease, padding 0.3s ease;
        white-space: normal;
    }

    .dropdown-menu.show {
        max-height: 400px;
        padding: 6px;
    }

    .dropdown-item {
        padding: 12px 14px;
        font-size: 0.92rem;
        color: #4B5563 !important;
    }

    .dropdown-item:hover {
        background-color: rgba(236, 82, 0, 0.08);
        color: #EC5200 !important;
    }

    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1040;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }
}