/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    width: 32px;
    height: 26px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 101;
    order: 3;
    position: relative;
    outline: none;
}

.mobile-menu-toggle:focus {
    outline: 2px solid #333;
    outline-offset: 2px;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background-color: #333;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
    display: block;
    position: absolute;
    left: 0;
}

.mobile-menu-toggle .hamburger-line:nth-child(1) {
    top: 0;
}

.mobile-menu-toggle .hamburger-line:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.mobile-menu-toggle .hamburger-line:nth-child(3) {
    bottom: 0;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: translateY(-50%) scaleX(0);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
    bottom: auto;
    top: 50%;
    transform: translateY(-50%) rotate(-45deg);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.98);
    z-index: 100;
    overflow-y: auto;
    padding-top: 100px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 20px;
}

.mobile-menu-section {
    margin-bottom: 40px;
}

.mobile-menu-title {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 20px;
    color: #333;
    letter-spacing: 0.1em;
}

.mobile-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu-list li {
    margin-bottom: 15px;
}

.mobile-menu-list a {
    font-size: 1.1rem;
    font-weight: 300;
    color: #333;
    text-decoration: none;
    transition: opacity 0.3s ease;
    letter-spacing: 0.05em;
    display: block;
    padding: 10px 0;
}

.mobile-menu-list a:hover {
    opacity: 0.7;
}

/* Mobile Header Responsive */
@media (max-width: 768px) {
    .header-logo-image {
        width: 150px;
        height: 150px;
    }
    
    /* Hide desktop menus on mobile */
    .desktop-menu {
        display: none !important;
    }
    
    /* Show and position hamburger button on mobile */
    .mobile-menu-toggle {
        display: block !important;
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        order: 3;
    }
    
    /* Show mobile menu overlay when active */
    .mobile-menu-overlay {
        display: block;
    }
    
    /* Adjust header layout for mobile */
    .header-container {
        justify-content: center;
        position: relative;
    }
    
    .header-logo {
        order: 2;
        flex: 0 0 auto;
    }
    
    .header-menu {
        gap: 20px;
    }
    
    .header-menu a {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .header-logo-image {
        width: 120px;
        height: 120px;
    }
    
    .header-container {
        padding: 0 15px;
    }
    
    .mobile-menu-toggle {
        right: 15px;
        width: 25px;
        height: 25px;
    }
    
    .header-menu {
        gap: 15px;
    }
    
    .header-menu a {
        font-size: 0.85rem;
    }
    
    .mobile-menu {
        padding: 30px 15px;
    }
    
    .mobile-menu-title {
        font-size: 1.3rem;
    }
    
    .mobile-menu-list a {
        font-size: 1rem;
    }
}

