/* Mobile Menu CSS
 * Optimized for Cyberpunk Dark Theme
 */

.menu-mobile {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 1050;
    padding: 8px 0;
    border-top: 1px solid rgba(0, 212, 255, 0.3);
}

.menu-mobile__list {
    display: flex;
    justify-content: space-around;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-mobile__item {
    flex: 1;
    text-align: center;
}

.menu-mobile__link {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s;
}

.menu-mobile__link i {
    font-size: 1.8rem;
    margin-bottom: 4px;
    transition: transform 0.3s ease;
}

.menu-mobile__link.active {
    color: #00d4ff;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.menu-mobile__link.active i {
    transform: translateY(-3px);
    color: #00d4ff;
}

/* Show the mobile menu only on mobile devices */
@media (max-width: 768px) {
    .menu-mobile {
        display: block;
    }

    .footer {
        padding-bottom: 80px;
    }
}

/* Mobile Menu Toggle Button */
.menu-toggle {
    display: none;
    border: none;
    background: transparent;
    font-size: 2.4rem;
    color: #00d4ff;
    cursor: pointer;
    outline: none;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .header-nav {
        display: none;
    }
}

/* Mobile Menu Indication */
.menu-mobile__link {
    position: relative;
    overflow: hidden;
}

.menu-mobile__link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #00d4ff, #bc13fe);
    transform: translateX(-50%);
    transition: width 0.3s;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.menu-mobile__link.active::after {
    width: 40%;
}

/* Mobile Overlay Menu (Fullscreen) */
.mobile-overlay-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    z-index: 1060;
    overflow-y: auto;
    padding: 25px;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: none;
    color: #ffffff;
}

.mobile-overlay-menu.active {
    transform: translateX(0);
    display: block;
}

.mobile-overlay-menu__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-overlay-menu__title {
    font-size: 2.2rem;
    font-weight: 800;
    margin: 0;
    background: linear-gradient(135deg, #00d4ff, #bc13fe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mobile-overlay-menu__close {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-overlay-menu__close:hover {
    background: rgba(255, 51, 102, 0.2);
    color: #ff3366;
    border-color: rgba(255, 51, 102, 0.4);
}

.mobile-overlay-menu__section {
    margin-bottom: 35px;
}

.mobile-overlay-menu__section-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.9);
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(0, 212, 255, 0.3);
    display: inline-block;
}

.mobile-overlay-menu__links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-overlay-menu__links li {
    margin-bottom: 12px;
}

.mobile-overlay-menu__link {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: left;
    width: 100%;
    cursor: pointer;
}

.mobile-overlay-menu__link i {
    margin-right: 15px;
    width: 24px;
    text-align: center;
    color: #00d4ff;
    font-size: 1.6rem;
}

.mobile-overlay-menu__link:hover,
.mobile-overlay-menu__link:active {
    background: rgba(0, 212, 255, 0.1);
    border-color: rgba(0, 212, 255, 0.3);
    color: #00d4ff;
    transform: translateX(5px);
}

.mobile-overlay-menu__button {
    font-family: inherit;
}

.text-success {
    color: #39ff14 !important;
}

/* Mobile Overlay Backdrop */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 1055;
    display: none;
}

.mobile-overlay.active {
    display: block;
}