/* Mobile Navigation Improvements for Tada' Yoga Studio */

/* Hamburger Menu Button */
.navbar-toggler {
    position: relative;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
}

.navbar-toggler-line {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.navbar-toggler.active .navbar-toggler-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.navbar-toggler.active .navbar-toggler-line:nth-child(2) {
    opacity: 0;
}

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

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

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

/* Mobile Navigation Menu */
.navbar-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 400px;
    height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: 1000;
    transition: right 0.3s ease;
    overflow-y: auto;
    padding: 80px 0 20px;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.3);
}

.navbar-nav.show {
    right: 0;
}

.navbar-nav .nav-item {
    margin: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-nav .nav-link {
    display: flex;
    align-items: center;
    padding: 20px 30px;
    color: white !important;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    min-height: 60px;
}

.navbar-nav .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white !important;
    transform: translateX(10px);
}

.navbar-nav .nav-link i {
    margin-right: 15px;
    width: 20px;
    text-align: center;
    font-size: 16px;
}

.navbar-nav .nav-link.contact_us {
    background: rgba(255, 255, 255, 0.2);
    margin: 20px 30px;
    border-radius: 10px;
    text-align: center;
    justify-content: center;
}

.navbar-nav .nav-link[style*="background: linear-gradient"] {
    background: linear-gradient(45deg, #667eea, #764ba2) !important;
    margin: 20px 30px;
    border-radius: 10px;
    text-align: center;
    justify-content: center;
    color: white !important;
}

/* Close Button */
.navbar-nav::before {
    content: '×';
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 30px;
    cursor: pointer;
    z-index: 1001;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.navbar-nav::before:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* Mobile Header Adjustments */
@media (max-width: 768px) {
    .main_header {
        padding: 15px 20px;
    }
    
    .navbar-brand img {
        max-height: 35px;
    }
    
    .navbar-toggler {
        order: 2;
    }
    
    #google_translate_element {
        order: 1;
        margin-right: 15px;
    }
    
    .navbar-collapse {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 400px;
        height: 100vh;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        z-index: 1000;
        transition: right 0.3s ease;
        overflow-y: auto;
        padding: 80px 0 20px;
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.3);
    }
    
    .navbar-collapse.show {
        right: 0;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .navbar-nav .nav-link {
        min-height: 60px;
        padding: 25px 30px;
    }
    
    .navbar-toggler {
        min-width: 44px;
        min-height: 44px;
    }
    
    .navbar-toggler-line {
        height: 4px;
    }
}

/* Accessibility improvements */
.navbar-toggler:focus {
    outline: 2px solid white;
    outline-offset: 2px;
}

.navbar-nav .nav-link:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: -2px;
}

/* Animation for menu items */
.navbar-nav .nav-item {
    opacity: 0;
    transform: translateX(50px);
    animation: slideInRight 0.3s ease forwards;
}

.navbar-nav .nav-item:nth-child(1) { animation-delay: 0.1s; }
.navbar-nav .nav-item:nth-child(2) { animation-delay: 0.2s; }
.navbar-nav .nav-item:nth-child(3) { animation-delay: 0.3s; }
.navbar-nav .nav-item:nth-child(4) { animation-delay: 0.4s; }
.navbar-nav .nav-item:nth-child(5) { animation-delay: 0.5s; }
.navbar-nav .nav-item:nth-child(6) { animation-delay: 0.6s; }
.navbar-nav .nav-item:nth-child(7) { animation-delay: 0.7s; }
.navbar-nav .nav-item:nth-child(8) { animation-delay: 0.8s; }
.navbar-nav .nav-item:nth-child(9) { animation-delay: 0.9s; }
.navbar-nav .nav-item:nth-child(10) { animation-delay: 1.0s; }
.navbar-nav .nav-item:nth-child(11) { animation-delay: 1.1s; }
.navbar-nav .nav-item:nth-child(12) { animation-delay: 1.2s; }

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

/* Prevent body scroll when menu is open */
body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* Loading state for menu */
.navbar-nav.loading {
    pointer-events: none;
    opacity: 0.7;
}

.navbar-nav.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}



