/* Mobile Navigation Styles for Session Investment */

/* Mobile Hamburger Menu */
.mobile-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 2.5rem;
    height: 2.5rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1001;
}

.mobile-hamburger:hover {
    background: var(--emerald-50);
}

.hamburger-line {
    display: block;
    width: 1.5rem;
    height: 2px;
    background-color: var(--emerald-700);
    margin: 2px 0;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-hamburger.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-hamburger.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.mobile-nav {
    position: absolute;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: white;
    padding: 6rem 0 2rem;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.mobile-menu-overlay.mobile-menu-open .mobile-nav {
    transform: translateX(0);
}

.mobile-nav-item {
    display: block;
    width: 100%;
    padding: 1rem 2rem;
    background: none;
    border: none;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--emerald-800);
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--emerald-50);
}

.mobile-nav-item:hover {
    background: var(--emerald-50);
    color: var(--emerald-600);
    padding-left: 2.5rem;
}

.mobile-nav-item:last-child {
    border-bottom: none;
    margin-top: 1rem;
    background: linear-gradient(135deg, var(--emerald-500), var(--emerald-600));
    color: white;
    border-radius: 0.5rem;
    margin: 1rem;
    width: calc(100% - 2rem);
}

.mobile-nav-item:last-child:hover {
    background: linear-gradient(135deg, var(--emerald-600), var(--emerald-700));
    padding-left: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none !important;
    }
    
    .mobile-hamburger {
        display: flex !important;
    }
    
    .mobile-menu-overlay {
        display: block !important;
    }
}

@media (min-width: 769px) {
    .mobile-hamburger {
        display: none !important;
    }
    
    .mobile-menu-overlay {
        display: none !important;
    }
    
    .nav-links {
        display: flex !important;
    }
}

/* Prevent body scroll when mobile menu is open */
body.mobile-menu-open {
    overflow: hidden;
}

/* Enhanced mobile navigation positioning */
.navbar {
    position: relative;
}

.nav-container {
    position: relative;
}

/* Smooth scrolling for all anchor links */
html {
    scroll-behavior: smooth;
}

/* Mobile menu animation improvements */
@media (max-width: 768px) {
    .mobile-nav-item {
        opacity: 0;
        transform: translateX(20px);
        animation: slideInRight 0.3s ease forwards;
    }
    
    .mobile-nav-item:nth-child(1) { animation-delay: 0.1s; }
    .mobile-nav-item:nth-child(2) { animation-delay: 0.15s; }
    .mobile-nav-item:nth-child(3) { animation-delay: 0.2s; }
    .mobile-nav-item:nth-child(4) { animation-delay: 0.25s; }
    .mobile-nav-item:nth-child(5) { animation-delay: 0.3s; }
    .mobile-nav-item:nth-child(6) { animation-delay: 0.35s; }
}

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

