/* Mobile Navbar - Hidden by default, shows only on mobile */
.mobile-navbar {
    display: none;
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    width: calc(100% - 40px);
    max-width: 500px;
}

.mobile-navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: linear-gradient(90deg,
            rgba(0, 0, 0, 0.9) 0%,
            rgba(30, 30, 40, 0.85) 25%,
            rgba(40, 40, 50, 0.8) 50%,
            rgba(30, 30, 40, 0.85) 75%,
            rgba(0, 0, 0, 0.9) 100%);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 2px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Mobile Brand Section */
.mobile-navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* .mobile-brand-logo {
    width: 28px;
    height: 28px;
} */

.mobile-brand-text {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

/* Hamburger Menu */
.mobile-hamburger-wrapper {
    flex-shrink: 0;
}

.mobile-hamburger-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 32px;
    height: 32px;
    border-radius: 25px;
    transition: all 0.3s ease;
    gap: 4px;
}

.mobile-hamburger-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.mobile-hamburger-line {
    width: 20px;
    height: 2px;
    background: white;
    border-radius: 1px;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Hamburger to Cross Animation */
.mobile-hamburger-btn.active .mobile-hamburger-line:nth-child(1) {
    transform: rotate(45deg) translateY(6px);
}

.mobile-hamburger-btn.active .mobile-hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-hamburger-btn.active .mobile-hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translateY(-6px);
}

/* Mobile Dropdown Menu */
.mobile-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    margin-top: 8px;
    background: linear-gradient(90deg,
            rgba(0, 0, 0, 0.95) 0%,
            rgba(30, 30, 40, 0.9) 25%,
            rgba(40, 40, 50, 0.85) 50%,
            rgba(30, 30, 40, 0.9) 75%,
            rgba(0, 0, 0, 0.95) 100%);
    border-radius: 16px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 2px 8px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.mobile-dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-dropdown-content {
    padding: 20px;
}

/* Mobile Navigation Links */
.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}

.mobile-nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 10px 16px;
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
    display: block;
}

.mobile-nav-link:hover {
    background: rgba(139, 92, 246, 0.1);
    color: #8FC31F;
}

.mobile-nav-link.active {
    /* background: rgba(139, 92, 246, 0.15); */
    color: #8FC31F;
}

.profile-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: #8FC31F;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.profile-button:hover {
    background-color: #8FC31F;
    text-decoration: none;
    color: white;
}

.profile-icon {
    width: 20px;
    height: 20px;
}

.mobile-nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 16px;
    right: 16px;
    height: 2px;
    background: linear-gradient(90deg, #8FC31F 0%, #8FC31F 50%, #8FC31F 100%);
    border-radius: 1px;
}

/* Mobile Login Section */
.mobile-login-section {
    display: flex;
    justify-content: center;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-login-btn {
    display: inline-block;
    padding: 10px 24px;
    background: linear-gradient(135deg, #8FC31F 0%, #8FC31F 30%, #8FC31F 60%, rgba(255, 255, 255, 0.9) 100%);
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.mobile-login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #8FC31F 0%, #8FC31F 30%, #8FC31F 60%, white 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 20px;
}

.mobile-login-btn:hover::before {
    opacity: 1;
}

.mobile-login-btn:hover {
    transform: translateY(-1px);
    /* box-shadow: 0 6px 20px rgba(139, 92, 246, 0.3); */
    color: white;
}

/* Show Mobile Navbar on small screens */
@media (max-width: 640px) {
    .mobile-navbar {
        display: block;
    }
    
    .main-navbar {
        display: none;
    }
}

@media (max-width: 480px) {
    .mobile-navbar {
        width: calc(100% - 20px);
        top: 15px;
    }
    
    .mobile-navbar-container {
        padding: 10px 16px;
    }
    
    .mobile-brand-text {
        font-size: 1rem;
    }
}