.navbar {
    --glass-reflex-dark: 1;
    --glass-reflex-light: 1;
    --saturation: 150%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    position: relative;
    z-index: 10;
    color: white;
}

.logo {
    width: 9rem;
    height: 2.75rem;
}

.menu-wrapper {
    width: auto;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 32px;
    padding: 0 4px;
    background-color: color-mix(in srgb, var(--navbar-dark-bg) 12%, transparent);
    box-shadow:
        inset 0 0 0 1px color-mix(in srgb, white calc(var(--glass-reflex-light) * 10%), transparent),
        inset 1.8px 3px 0px -2px color-mix(in srgb, white calc(var(--glass-reflex-light) * 90%), transparent),
        inset -2px -2px 0px -2px color-mix(in srgb, white calc(var(--glass-reflex-light) * 80%), transparent),
        inset -3px -8px 1px -6px color-mix(in srgb, white calc(var(--glass-reflex-light) * 60%), transparent),
        inset -0.3px -1px 4px 0px color-mix(in srgb, white calc(var(--glass-reflex-dark) * 12%), transparent),
        inset -1.5px 2.5px 0px -2px color-mix(in srgb, white calc(var(--glass-reflex-dark) * 20%), transparent),
        inset 0px 3px 4px -2px color-mix(in srgb, white calc(var(--glass-reflex-dark) * 20%), transparent),
        inset 2px -6.5px 1px -4px color-mix(in srgb, white calc(var(--glass-reflex-dark) * 10%), transparent),
        0px 1px 5px 0px color-mix(in srgb, black calc(var(--glass-reflex-dark) * 10%), transparent),
        0px 6px 16px 0px color-mix(in srgb, black calc(var(--glass-reflex-dark) * 8%), transparent);
}

.menu-wrapper a {
    text-decoration: none;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-style: Semibold;
    font-size: 14px;
    line-height: 90%;
    letter-spacing: 0%;
    padding: 1rem;
    color: white;
}

.menu-wrapper a:hover {
    background-color: color-mix(in srgb, rgba(255, 255, 255, 0.2) 36%, transparent);
    box-shadow:
        inset 0 0 0 1px color-mix(in srgb, white calc(var(--glass-reflex-light) * 15%), transparent),
        inset 2px 1px 0px -1px color-mix(in srgb, white calc(var(--glass-reflex-light) * 90%), transparent),
        inset -1.5px -1px 0px -1px color-mix(in srgb, white calc(var(--glass-reflex-light) * 80%), transparent),
        inset -2px -6px 1px -5px color-mix(in srgb, white calc(var(--glass-reflex-light) * 60%), transparent),
        inset -1px 2px 3px -1px color-mix(in srgb, white calc(var(--glass-reflex-dark) * 20%), transparent),
        inset 0px -4px 1px -2px color-mix(in srgb, white calc(var(--glass-reflex-dark) * 10%), transparent),
        0px 3px 6px 0px color-mix(in srgb, black calc(var(--glass-reflex-dark) * 8%), transparent);
    border-radius: 24px;
    transition: background-color 200ms ease-in-out, box-shadow 200ms ease-in-out;
}

.get-the-app-btn {
    padding: 0 18px;
    height: 45px;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: -0.5px;
    color: #0C90E6;
    background-color: white;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
    text-decoration: none;
}

.get-the-app-btn:hover {
    transform: scale(1.05);
}

.navbar-right-end {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1.5rem;
}

.hamburger-menu {
    width: 1.8rem;
    height: 24px;
    cursor: pointer;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.vector {
    width: 100%;
    height: 5px;
    border-radius: 12px;
    background-color: #fff;
}

/* Add these styles at the end of your navbar.css file */

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(10, 22, 28, 0.98);
    backdrop-filter: blur(20px);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    z-index: 99999;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.5);
    transition: right 0.3s ease-in-out;
    overflow-y: auto;
}

.mobile-menu.show {
    right: 0;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99998;
    display: none;
}

.mobile-menu-overlay.show {
    display: block;
    animation: fadeIn 0.3s forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.mobile-menu-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 1.5rem;
}

.close-icon {
    cursor: pointer;
    font-size: 28px;
    color: white;
    transition: transform 0.2s ease;
    font-weight: 300;
}

.close-icon:hover {
    transform: rotate(90deg);
}

.mobile-menu a {
    font-family: 'Nunito', sans-serif;
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-size: 16px;
    padding: 1rem;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.mobile-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Profile Picture and Dropdown Styles */
.profile-container {
    position: relative;
}

.profile-picture {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 1);
    transition: transform 0.2s ease, border-color 0.2s ease;
    object-fit: cover;
}

.profile-picture:hover {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.6);
}

.profile-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 200px;
    background: rgba(10, 22, 28, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 0.5rem;
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    z-index: 999999;
    /* overflow: hidden; */
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 2px 2px 0px -1px rgba(255, 255, 255, 0.2),
        inset -2px -2px 0px -1px rgba(255, 255, 255, 0.1),
        0px 8px 32px 0px rgba(0, 0, 0, 0.4);
    animation: dropdownSlideIn 0.2s ease;
}

.profile-dropdown.show {
    display: flex;
}

@keyframes dropdownSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    font-family: 'Nunito', sans-serif;
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-size: 15px;
    padding: 0.75rem 0rem 0.75rem 1rem;
    border-radius: 12px;
    transition: background-color 0.2s ease;
    cursor: pointer;
    border: none;
    background: transparent;
    text-align: left;
    width: 100%;
    display: block;
}

.dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.logout-item {
    color: #ff6b6b;
}

/* Auth Button Styles */
.auth-btn {
    padding: 0 18px;
    height: 45px;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: -0.5px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
    text-decoration: none;
    border: none;
}

.signin-btn {
    color: #0C90E6;
    background-color: white;
}

.logout-btn {
    color: white;
    background-color: transparent;
    border: 2px solid white;
}

.logout-btn:hover,
.signin-btn:hover {
    transform: scale(1.05);
}

/* Mobile Auth Button */
.mobile-auth-btn {
    font-family: 'Nunito', sans-serif;
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-size: 16px;
    padding: 1rem;
    border-radius: 8px;
    transition: background-color 0.2s ease;
    border: none;
    background: transparent;
    cursor: pointer;
    width: 100%;
    text-align: left;
}

.mobile-auth-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Logout Popup Styles */
.logout-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 999999;
    display: none;
}

.logout-overlay.show {
    display: block;
    animation: fadeIn 0.3s forwards;
}

.logout-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 400px;
    background: rgba(10, 22, 28, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 2rem;
    z-index: 9999999;
    display: none;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 2px 2px 0px -1px rgba(255, 255, 255, 0.2),
        inset -2px -2px 0px -1px rgba(255, 255, 255, 0.1),
        0px 8px 32px 0px rgba(0, 0, 0, 0.4);
}

.logout-popup.show {
    display: block;
    animation: popupSlideIn 0.3s forwards;
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.popup-content h3 {
    font-family: 'Nunito', sans-serif;
    color: white;
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 2rem 0;
    text-align: center;
}

.popup-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

#logout-form {
    margin: 0;
    padding: 0;
}

.popup-btn {
    padding: 0.75rem 1.5rem;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 16px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.logout-confirm-btn {
    background-color: #ff4444;
    color: white;
}

.logout-confirm-btn:hover {
    background-color: #cc0000;
    transform: scale(1.05);
}

.cancel-btn {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cancel-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

/* Media queries - add at the end */
@media (max-width: 1240px) and (min-width: 769px) {
    .menu-wrapper {
        display: none;
    }

    .hamburger-menu {
        display: flex;
    }
}

@media (max-width: 768px) and (min-width: 481px) {
    .navbar {
        padding: 1rem;
    }
    
    .mobile-menu {
        width: 75%;
        max-width: 280px;
    }

    .menu-wrapper {
        display: none;
    }

    .hamburger-menu {
        display: flex;
        width: 20px;
        height: 16px;
    }

    .vector {
        height: 2.5px;
    }

    .profile-container {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .navbar {
        width: 100%;
        padding: 0.5rem;
    }

    .navbar-right-end {
        gap: 1rem;
    }

    .menu-wrapper {
        display: none;
    }

    .logo {
        width: 6rem;
        height: 1.75rem;
    }

    .hamburger-menu {
        display: flex;
        width: 16px;
        height: 12px;
    }

    .vector {
        height: 2.5px;
    }

    .mobile-auth-btn {
        margin-bottom: 5rem;
    }

    .get-the-app-btn,
    .auth-btn {
        padding: 0 12px;
        height: 35px;
        font-size: 12px;
    }

    .profile-container {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .profile-picture {
        width: 30px;
        height: 30px;
    }
}