/* Mobile Header */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
}

.mobile-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo-img {
    height: 40px;
    width: auto;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    background: none;
    border: none;
    width: 30px;
    height: 24px;
    position: relative;
    cursor: pointer;
    padding: 0;
    z-index: 1002;
}

.mobile-menu-toggle .bar {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #fff;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 350px;
    height: 100vh;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1001;
    transition: right 0.3s ease-in-out;
    overflow-y: auto;
    padding: 20px;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
}

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

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

.close-menu {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    margin-left: auto;
}

/* Mobile Navigation */
.mobile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav li {
    margin-bottom: 10px;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    color: #fff;
    text-decoration: none;
    padding: 12px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.mobile-nav-link i {
    margin-right: 15px;
    font-size: 18px;
    width: 20px;
    text-align: center;
    color: var(--accent);
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent);
    padding-left: 20px;
}

/* Mobile Menu Footer */
.mobile-menu-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-footer .social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.mobile-menu-footer .social-link {
    color: #fff;
    font-size: 20px;
    transition: all 0.3s ease;
}

.mobile-menu-footer .social-link:hover {
    color: var(--accent);
    transform: translateY(-3px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

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

/* Responsive Styles */
@media (max-width: 992px) {
    .mobile-header {
        display: block;
    }
    
    /* Hide desktop header on mobile */
    .desktop-header {
        display: none !important;
    }
    
    /* Adjust content padding to account for fixed header */
    body {
        padding-top: 70px;
    }
    
    /* Fix social sidebar for mobile */
    .social-sidebar {
        display: none; /* Hide the floating sidebar on mobile */
    }
    
    /* Adjust mobile menu z-index to ensure it appears above other elements */
    .mobile-menu {
        z-index: 1100;
    }
    
    .mobile-menu-overlay {
        z-index: 1099;
    }
    
    /* Ensure content is not hidden behind fixed elements */
    .container {
        padding-bottom: 20px;
    }
}

/* Additional mobile-specific styles for very small screens */
@media (max-width: 480px) {
    /* Make sure mobile menu takes full width on very small screens */
    .mobile-menu {
        width: 85%;
        max-width: 100%;
    }
    
    /* Adjust header height for mobile */
    .mobile-header {
        padding: 10px 0;
    }
    
    /* Adjust logo size for mobile */
    .logo-img {
        height: 35px;
    }
}

/* Animation for menu toggle */
.mobile-menu-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}
