/* Final Mobile Menu CSS - Complete Solution */

/* Base styles - apply to all screen sizes */
.mobile-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1002;
}

.mobile-menu span {
    width: 30px;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* Mobile-specific styles */
@media screen and (max-width: 768px) {
    /* Force mobile menu to show on mobile */
    .mobile-menu {
        display: flex !important;
        position: absolute;
        right: 1.5rem;
        top: 50%;
        transform: translateY(-50%);
    }
    
    /* Header improvements */
    .header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        z-index: 1000;
        background: linear-gradient(135deg, #FF6B6B, #FF8E8E);
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
    
    .navbar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 1.5rem;
        height: 60px;
        position: relative;
        max-width: 100%;
    }
    
    .logo {
        font-size: 1.4rem;
        font-weight: bold;
        color: white;
        text-decoration: none;
        z-index: 1002;
        letter-spacing: 0.5px;
        text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    }
    
    /* Hide desktop navigation */
    .nav-links {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        width: 100%;
        height: calc(100vh - 60px);
        background: linear-gradient(180deg, #FF6B6B 0%, #FF8E8E 50%, #FFB3B3 100%);
        display: none;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 2rem 1rem;
        z-index: 999;
        overflow-y: auto;
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
        opacity: 0;
    }
    
    /* Show mobile menu when active */
    .nav-links.active {
        display: flex !important;
        transform: translateX(0);
        opacity: 1;
    }
    
    /* Navigation items */
    .nav-links li {
        list-style: none;
        margin: 0;
        width: 100%;
        max-width: 300px;
        opacity: 0;
        transform: translateY(20px);
        animation: none;
    }
    
    /* Animate menu items when menu is active */
    .nav-links.active li {
        animation: slideInUp 0.4s ease forwards;
    }
    
    .nav-links.active li:nth-child(1) { animation-delay: 0.1s; }
    .nav-links.active li:nth-child(2) { animation-delay: 0.15s; }
    .nav-links.active li:nth-child(3) { animation-delay: 0.2s; }
    .nav-links.active li:nth-child(4) { animation-delay: 0.25s; }
    .nav-links.active li:nth-child(5) { animation-delay: 0.3s; }
    .nav-links.active li:nth-child(6) { animation-delay: 0.35s; }
    .nav-links.active li:nth-child(7) { animation-delay: 0.4s; }
    .nav-links.active li:nth-child(8) { animation-delay: 0.45s; }
    .nav-links.active li:nth-child(9) { animation-delay: 0.5s; }
    .nav-links.active li:nth-child(10) { animation-delay: 0.55s; }
    
    /* Navigation links styling */
    .nav-links a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        padding: 1rem 1.5rem;
        margin: 0.5rem 0;
        font-size: 1.1rem;
        font-weight: 500;
        color: white;
        text-decoration: none;
        background: rgba(255, 255, 255, 0.1);
        border: 2px solid rgba(255, 255, 255, 0.2);
        border-radius: 15px;
        transition: all 0.3s ease;
        min-height: 50px;
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
        text-align: center;
        letter-spacing: 0.5px;
    }
    
    /* Navigation link hover/focus states */
    .nav-links a:hover,
    .nav-links a:focus {
        background: rgba(255, 255, 255, 0.2);
        border-color: rgba(255, 255, 255, 0.4);
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    }
    
    /* Book Now button special styling */
    .nav-links a.btn-primary {
        background: linear-gradient(45deg, #FF4757, #FF6B6B);
        border: 2px solid white;
        font-weight: bold;
        margin-top: 1rem;
    }
    
    .nav-links a.btn-primary:hover {
        background: linear-gradient(45deg, #FF3742, #FF5757);
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(255, 71, 87, 0.4);
    }
    
    /* Hamburger animation when active */
    .mobile-menu.active span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }
    
    .mobile-menu.active span:nth-child(2) {
        opacity: 0;
        transform: scale(0);
    }
    
    .mobile-menu.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }
    
    /* Content spacing for fixed header */
    .hero,
    main {
        margin-top: 60px;
    }
    
    /* Animation keyframes */
    @keyframes slideInUp {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    /* Focus styles for accessibility */
    .mobile-menu:focus {
        outline: 2px solid white;
        outline-offset: 2px;
    }
    
    .nav-links a:focus {
        outline: 2px solid white;
        outline-offset: 2px;
    }
    
    /* Touch improvements */
    .mobile-menu {
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
    
    .nav-links a {
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
}

/* Extra small screens */
@media screen and (max-width: 480px) {
    .navbar {
        padding: 1rem;
    }
    
    .logo {
        font-size: 1.2rem;
    }
    
    .nav-links {
        padding: 1.5rem 1rem;
    }
    
    .nav-links a {
        font-size: 1rem;
        padding: 0.8rem 1rem;
        margin: 0.3rem 0;
    }
    
    .mobile-menu {
        width: 25px;
        height: 25px;
    }
    
    .mobile-menu span {
        width: 25px;
        height: 2px;
    }
}

/* Desktop - hide mobile menu */
@media screen and (min-width: 769px) {
    .mobile-menu {
        display: none !important;
    }
}

