/* Mobile Popup Menu Styles */
.mobile-popup-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.85);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

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

.popup-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.popup-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.popup-menu-container {
    width: 90%;
    max-width: 400px;
    padding: 35px;
    border-radius: 20px;
    background-color: rgba(30, 41, 59, 0.8);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow-y: auto;
    max-height: 80vh;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.popup-nav-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
}

.popup-nav-section:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.popup-nav-section h3 {
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.popup-nav-section ul {
    list-style: none;
    padding: 0;
}

.popup-nav-section ul li {
    margin-bottom: 12px;
}

.popup-nav-section ul li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: block;
    padding: 12px 15px;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.05);
    margin-bottom: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.popup-nav-section ul li a:hover {
    color: #ffffff;
    background-color: rgba(0, 114, 255, 0.2);
    transform: translateX(5px);
    border: 1px solid rgba(0, 114, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 114, 255, 0.15);
}

/* Fix for the element behind the hamburger menu */
.mobile-menu-toggle {
    z-index: 1001;
    position: relative;
}

/* Media Queries */
@media (max-width: 992px) {
    .mobile-menu-toggle {
        display: flex !important;
    }
}