.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    z-index: 1000;

    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 28px;

    padding: 10px 50px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    box-sizing: border-box;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    min-width: 190px;
}

.logo-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.brand-name {
    font-weight: 700;
    font-size: 1.2rem;
    line-height: 1.1;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 26px;
    min-width: 0;
}

.nav-links a {
    margin: 0;
    text-decoration: none;
    color: #000;
    font-family: 'Inter', sans-serif;
    transition: color 0.3s;
    white-space: nowrap;
}

.nav-links a {
    margin: 0;
    text-decoration: none;
    color: #555;
    font-family: 'Inter', sans-serif;
    transition: all .3s ease;
    white-space: nowrap;
}

.nav-links a:hover {
    color: #181818;
}

.nav-links a.active {
    color: #181818;
    font-weight: 700;
    position: relative;
}

.nav-links a.active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 100%;
    height: 2px;
    background: #181818;
    border-radius: 999px;
}

.nav-action {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 110px;
}

.login-btn {
    background: #000;
    color: #fff;
    padding: 8px 25px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: opacity 0.3s;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
}

.login-btn:hover {
    opacity: 0.8;
}

.profile-menu {
    position: relative;
}

.profile-trigger {
    width: 44px;
    height: 44px;
    border: 2px solid #181818;
    border-radius: 50%;
    background: #181818;
    padding: 0;
    cursor: pointer;
    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-trigger img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-trigger span {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
}

.profile-dropdown {
    position: absolute;
    top: 58px;
    right: 0;
    width: 280px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 18px 45px rgba(0,0,0,.16);
    overflow: hidden;
    display: none;
    z-index: 9999;
}

.profile-dropdown.show {
    display: block;
}

.profile-header {
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    border-bottom: 1px solid #eee;
}

.profile-header img,
.profile-avatar-letter {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    flex-shrink: 0;
}

.profile-header img {
    object-fit: cover;
}

.profile-avatar-letter {
    background: #181818;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
}

.profile-text {
    min-width: 0;
}

.profile-text strong {
    display: block;
    font-size: 15px;
    color: #222;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 185px;
}

.profile-text small {
    display: block;
    font-size: 12px;
    color: #777;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 185px;
}

.profile-dropdown a {
    display: block;
    padding: 13px 18px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    transition: .2s;
}

.profile-dropdown a:hover {
    background: #F5F5F5;
    color: #181818;
}

.profile-dropdown hr {
    border: none;
    border-top: 1px solid #eee;
    margin: 0;
}

.logout-link {
    color: #d63031 !important;
}

.hero,
.contact-container,
.main-wrapper {
    margin-top: 70px;
}

@media (max-width: 1100px) {
    .navbar {
        padding: 10px 28px;
        gap: 18px;
    }

    .nav-links {
        gap: 16px;
    }

    .brand-name {
        font-size: 1.05rem;
    }
}

.nav-action {
    display: flex;
    align-items: center;
    gap: 12px;
}

.notification-menu {
    position: relative;
}

.notification-trigger {
    width: 42px;
    height: 42px;
    border: 1px solid #E5E5E5;
    background: #fff;
    border-radius: 50%;
    display: grid;
    place-items: center;
    cursor: pointer;
    position: relative;
    transition: 0.2s ease;
}

.notification-trigger:hover {
    background: #F3F3F3;
    border-color: #181818;
}

.notification-trigger svg {
    width: 21px;
    height: 21px;
    fill: #181818;
}

.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: #dc2626;
    color: #fff;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    display: none;
    align-items: center;
    justify-content: center;
}

.notification-dropdown {
    position: absolute;
    right: 0;
    top: 52px;
    width: 340px;
    background: #fff;
    border: 1px solid #E5E5E5;
    border-radius: 16px;
    box-shadow: 0 18px 45px rgba(0,0,0,0.12);
    overflow: hidden;
    display: none;
    z-index: 9999;
}

.notification-dropdown.show {
    display: block;
}

.notification-head {
    padding: 16px;
    border-bottom: 1px solid #E5E5E5;
}

.notification-head strong {
    display: block;
    color: #181818;
    font-size: 15px;
}

.notification-head small {
    color: #777;
    font-size: 12px;
}

.notification-list {
    max-height: 360px;
    overflow-y: auto;
}

.notification-item {
    display: block;
    padding: 14px 16px;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #EEEEEE;
    transition: 0.2s ease;
}

.notification-item:hover {
    background: #F5F5F5;
}

.notification-item.unread {
    background: #F3F3F3;
}

.notification-title {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-weight: 700;
    color: #181818;
    font-size: 14px;
    margin-bottom: 4px;
}

.notification-message {
    font-size: 13px;
    color: #555;
    line-height: 1.4;
}

.notification-time {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    color: #999;
}

.notification-empty {
    padding: 22px 16px;
    text-align: center;
    color: #888;
    font-size: 13px;
}

.mobile-menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 9px;
    border: none;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    margin: 5px 0;
    border-radius: 999px;
    background: #222;
    transition:
        transform 0.25s ease,
        opacity 0.25s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Tablet */
@media (max-width: 1100px) {
    .navbar {
        padding: 10px 24px;
        gap: 16px;
    }

    .logo-container {
        min-width: 165px;
    }

    .brand-name {
        font-size: 1rem;
    }

    .nav-links {
        gap: 14px;
    }

    .nav-links a {
        font-size: 14px;
    }

    .nav-action {
        min-width: auto;
    }

    .login-btn {
        padding: 8px 18px;
    }
}

/* Mobile navigation */
@media (max-width: 900px) {
    .navbar {
        grid-template-columns: 1fr auto auto;
        height: 70px;
        padding: 10px 20px;
        gap: 10px;
    }

    .logo-container {
        min-width: 0;
    }

    .mobile-menu-toggle {
        display: block;
        grid-column: 2;
        grid-row: 1;
    }

    .nav-action {
        grid-column: 3;
        grid-row: 1;
        gap: 8px;
    }

    .nav-links {
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;

        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;

        padding: 10px 20px 18px;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(12px);
        border-top: 1px solid #eee;
        box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);

        opacity: 0;
        visibility: hidden;
        transform: translateY(-12px);
        pointer-events: none;

        transition:
            opacity 0.25s ease,
            transform 0.25s ease,
            visibility 0.25s ease;
    }

    .nav-links.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    .nav-links a {
        width: 100%;
        padding: 13px 10px;
        border-bottom: 1px solid #f0f0f0;
        font-size: 15px;
        text-align: left;
        box-sizing: border-box;
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    .nav-links a:hover {
        background: #F5F5F5;
        color: #181818;
        border-radius: 8px;
    }

    .nav-links a.active {
        background: #181818;
        color: #fff;
        border-radius: 8px;
        font-weight: 600;
    }

    .profile-dropdown {
        position: fixed;
        top: 76px;
        right: 14px;
        width: min(280px, calc(100vw - 28px));
    }

    .notification-dropdown {
        position: fixed;
        top: 76px;
        right: 14px;
        width: min(340px, calc(100vw - 28px));
    }
}

/* Small mobile */
@media (max-width: 600px) {
    .navbar {
        padding: 10px 14px;
        gap: 7px;
    }

    .logo-img {
        width: 44px;
        height: 44px;
    }

    .brand-name {
        font-size: 0.95rem;
    }

    .mobile-menu-toggle {
        width: 39px;
        height: 39px;
        padding: 8px;
    }

    .notification-trigger,
    .profile-trigger {
        width: 39px;
        height: 39px;
    }

    .notification-trigger svg {
        width: 19px;
        height: 19px;
    }

    .login-btn {
        padding: 8px 13px;
        font-size: 13px;
    }

    .notification-dropdown,
    .profile-dropdown {
        top: 74px;
        right: 10px;
        width: calc(100vw - 20px);
        max-width: none;
    }

    .notification-list {
        max-height: calc(100vh - 180px);
    }

    .profile-text strong,
    .profile-text small {
        max-width: calc(100vw - 130px);
    }
}

/* Very small phones */
@media (max-width: 390px) {
    .navbar {
        padding: 10px;
    }

    .brand-name {
        display: none;
    }

    .logo-container {
        width: 44px;
    }

    .nav-action {
        gap: 5px;
    }

    .notification-trigger,
    .profile-trigger,
    .mobile-menu-toggle {
        width: 38px;
        height: 38px;
    }
}