/* Mobile Navigation Toggle Styles */

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
    padding: 10px;
    z-index: 1001;
    position: relative;
    outline: none;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background-color: #333;
    transition: all 0.3s ease;
    transform-origin: center;
    border-radius: 2px;
}

/* Hamburger Animation */
.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
    /* Show mobile menu toggle button */
    .mobile-menu-toggle {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Hide desktop navigation by default */
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #fef7f5;
        border-top: 1px solid #e5e5e5;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
    }
    
    /* Show mobile navigation when active */
    .nav.active {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
        background-color: #fef7f5 !important;
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        width: 100% !important;
        z-index: 999 !important;
        border-top: 1px solid #e5e5e5 !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
    }
    
    /* Mobile navigation list - Override main styles */
    .nav .nav-list {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
        padding: 20px !important;
        align-items: flex-start !important;
        list-style: none !important;
        margin: 0 !important;
    }
    
    /* Mobile navigation items */
    .nav .nav-list li {
        width: 100% !important;
        border-bottom: 1px solid #e5e5e5 !important;
        padding: 15px 0 !important;
    }
    
    .nav .nav-list li:last-child {
        border-bottom: none !important;
    }
    
    /* Mobile navigation links */
    .nav .nav-link {
        display: block !important;
        padding: 10px 0 !important;
        font-size: 18px !important;
        color: #333 !important;
        text-decoration: none !important;
        transition: color 0.3s ease !important;
    }
    
    .nav .nav-link:hover {
        color: #FF6B47 !important;
    }
    
    /* Header layout for mobile */
    .header .container {
        position: relative;
        gap: 148px;
    }
    
    /* Hide header CTA on very small screens */
    @media (max-width: 480px) {
        .header-cta {
            display: none;
        }
    }/* Smooth animation for mobile menu */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tablet styles */
@media (max-width: 1024px) and (min-width: 769px) {
    .mobile-menu-toggle {
        display: none;
    }
    
    .nav {
        display: block;
    }
    
    .nav-list {
        gap: 20px;
    }
    
    .header-cta {
        font-size: 13px;
        padding: 10px 16px;
    }
}}

/* WhatsApp Chat Support Widget - MOBILE PRIORITY */
.whatsapp-chat-widget {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    z-index: 99999 !important; /* Highest z-index possible */
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

.whatsapp-icon {
    width: 60px !important;
    height: 60px !important;
    background: linear-gradient(135deg, #25D366, #128C7E) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4) !important;
    transition: all 0.3s ease !important;
    animation: whatsappPulse 2s infinite !important;
    position: relative !important;
    overflow: hidden !important;
}

.whatsapp-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.whatsapp-icon svg {
    width: 32px;
    height: 32px;
    fill: white;
    transition: all 0.3s ease;
}

.whatsapp-chat-bubble {
    background: white;
    padding: 12px 20px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(20px) scale(0.8);
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid #e9ecef;
}

.whatsapp-chat-bubble::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid white;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}

.whatsapp-chat-bubble .chat-text {
    display: block;
    margin-bottom: 2px;
}

.whatsapp-chat-bubble .chat-subtext {
    font-size: 12px;
    color: #666;
    opacity: 0.8;
}

/* Hover Effects */
.whatsapp-chat-widget:hover .whatsapp-icon {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
    animation: whatsappHover 0.6s ease;
}

.whatsapp-chat-widget:hover .whatsapp-chat-bubble {
    opacity: 1;
    transform: translateX(0) scale(1);
}

.whatsapp-chat-widget:hover .whatsapp-icon svg {
    transform: rotate(10deg) scale(1.1);
}

/* Animations */
@keyframes whatsappPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
    }
}

@keyframes whatsappHover {
    0% { transform: scale(1.1); }
    25% { transform: scale(1.15) rotate(-5deg); }
    50% { transform: scale(1.1) rotate(5deg); }
    75% { transform: scale(1.15) rotate(-2deg); }
    100% { transform: scale(1.1) rotate(0deg); }
}

@keyframes chatBubbleSlide {
    0% {
        opacity: 0;
        transform: translateX(30px) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

/* Click Effect */
.whatsapp-chat-widget:active .whatsapp-icon {
    transform: scale(0.95);
    transition: all 0.1s ease;
}

/* Mobile Responsive - SIMPLIFIED AND STRONG */
@media screen and (max-width: 768px) {
    .whatsapp-chat-widget {
        bottom: 80px !important;
        right: 15px !important;
        z-index: 99999 !important;
        display: flex !important;
        position: fixed !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .whatsapp-icon {
        width: 55px !important;
        height: 55px !important;
    }
    
    .whatsapp-icon svg {
        width: 28px !important;
        height: 28px !important;
    }
    
    .whatsapp-chat-bubble {
        padding: 10px 16px !important;
        font-size: 13px !important;
    }
}

@media screen and (max-width: 480px) {
    .whatsapp-chat-widget {
        bottom: 70px !important;
        right: 10px !important;
        z-index: 99999 !important;
        display: flex !important;
        position: fixed !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .whatsapp-icon {
        width: 50px !important;
        height: 50px !important;
    }
    
    .whatsapp-icon svg {
        width: 26px !important;
        height: 26px !important;
    }
    
    .whatsapp-chat-bubble {
        padding: 8px 12px !important;
        font-size: 12px !important;
        max-width: 120px !important;
    }
    
    .whatsapp-chat-bubble .chat-text {
        font-size: 11px !important;
    }
    
    .whatsapp-chat-bubble .chat-subtext {
        font-size: 10px !important;
    }
}

/* Accessibility */
.whatsapp-chat-widget:focus {
    
    outline-offset: 2px;
}

/* Enhanced Animation States */
.whatsapp-chat-widget.animate-in .whatsapp-chat-bubble {
    animation: chatBubbleSlide 0.5s ease forwards;
}

.whatsapp-chat-widget.shake .whatsapp-icon {
    animation: whatsappShake 0.6s ease;
}

@keyframes whatsappShake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-3px); }
    20%, 40%, 60%, 80% { transform: translateX(3px); }
}

/* Additional Mobile Support - Ensure visibility */
.whatsapp-chat-widget {
    transform: translateZ(0) !important; /* Force hardware acceleration */
    -webkit-transform: translateZ(0) !important;
}

/* UNIVERSAL MOBILE OVERRIDE - HIGHEST PRIORITY */
html body .whatsapp-chat-widget {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    position: fixed !important;
    z-index: 99999 !important;
    
}

/* MOBILE FORCE DISPLAY */
@media screen and (max-width: 768px) {
    html body .whatsapp-chat-widget {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        position: fixed !important;
        z-index: 99999 !important;
        margin-right: 122px;
    }
}

/* WhatsApp Icon Animations */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.whatsapp-icon {
    background-color: #25D366;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    height: 60px;
    width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    z-index: 99999;
    animation: pulse 2s infinite, float 3s ease-in-out infinite;
}