/* Mobile Menu Styles */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -350px;
    width: 320px;
    height: 100vh; /* Full viewport height */
    max-height: 100vh; /* Ensure it doesn't exceed viewport height */
    background: #fff;
    z-index: 1100;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    padding: 1rem 0;
    direction: rtl;
    display: flex;
    flex-direction: column;
    margin: 0;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.mobile-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #1A3149;
    gap: 0.75rem;
}

.mobile-logo-img {
    width: 150px;
    height: 64px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    border: none;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-logo-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mobile-logo-text {
    display: flex;
    flex-direction: column;
    text-align: right;
    line-height: 1.2;
}

.mobile-logo-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: #1A3149;
}

.mobile-logo-tagline {
    font-size: 0.8rem;
    color: #666;
    margin-top: 2px;
}

/* Mobile Navigation Links */
.mobile-nav-links {
    padding: 0 1rem;
}

.mobile-nav-links a {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    color: #1A3149;
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 500;
    transition: all 0.25s ease;
    text-align: right;
    border-radius: 8px;
    margin: 6px 0;
}

.mobile-nav-links a i {
    margin-left: 12px;
    font-size: 1.1rem;
    color: #b34700;
    transition: all 0.25s ease;
    min-width: 24px;
    text-align: center;
}

.mobile-nav-links a:hover {
    background-color: rgba(179, 71, 0, 0.08);
    color: #b34700;
    transform: translateX(-4px);
}

.mobile-nav-links a.active {
    background: linear-gradient(90deg, rgba(179, 71, 0, 0.1) 0%, rgba(179, 71, 0, 0.05) 100%);
    color: #b34700;
    font-weight: 700;
    border-right: 3px solid #b34700;
}

.mobile-nav-links a.active i {
    color: #b34700;
    transform: scale(1.1);
}

/* Close Button */
.close-menu {
    position: absolute;
    top: 16px;
    left: 16px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.close-menu:hover {
    color: #b34700;
    transform: rotate(90deg);
}

/* WhatsApp Button in Mobile Menu */
.whatsapp-cta {
    margin: 1.5rem 1rem 1rem;
    text-align: center;
}

.whatsapp-cta a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #25D366;
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25);
}

.whatsapp-cta a:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.35);
}

.whatsapp-cta i {
    margin-left: 8px;
    font-size: 1.2rem;
}

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

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

/* Body when menu is open */
body.menu-open {
    overflow: hidden;
}

/* Responsive Adjustments */
@media (max-width: 480px) {
    .mobile-menu {
        width: 280px;
    }
    
    .mobile-nav-links a {
        padding: 12px 16px;
        font-size: 1rem;
    }
}

/* Animation for menu items */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.mobile-nav-links a {
    animation: slideInRight 0.3s ease-out forwards;
    opacity: 0;
}

.mobile-nav-links a:nth-child(1) { animation-delay: 0.1s; }
.mobile-nav-links a:nth-child(2) { animation-delay: 0.15s; }
.mobile-nav-links a:nth-child(3) { animation-delay: 0.2s; }
.mobile-nav-links a:nth-child(4) { animation-delay: 0.25s; }
.mobile-nav-links a:nth-child(5) { animation-delay: 0.3s; }
.mobile-nav-links a:nth-child(6) { animation-delay: 0.35s; }
