/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.mobile-menu-overlay.active { 
    opacity: 1; 
    pointer-events: auto;
}

/* Mobile Menu Sidebar */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 300px;
    max-width: 85%;
    background: var(--white);
    z-index: 999;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
    overflow-y: auto;
}
.mobile-menu.active { transform: translateX(0); }
.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
}
.mobile-menu-header .logo img { height: 36px; }
.mobile-menu-close {
    width: 44px;
    height: 44px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.2s;
}
.mobile-menu-close:hover { 
    background: var(--primary); 
    color: white; 
    border-color: var(--primary); 
}
.mobile-menu-nav { padding: 16px 0; }
.mobile-menu-nav ul { list-style: none; }
.mobile-menu-nav ul li { border-bottom: 1px solid var(--border); }
.mobile-menu-nav ul li a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 24px;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.2s;
}
.mobile-menu-nav ul li a:hover { background: var(--bg); color: var(--primary); }
.mobile-menu-cta { padding: 24px; border-top: 1px solid var(--border); }
.mobile-menu-cta .btn { width: 100%; justify-content: center; margin-bottom: 12px; }
.mobile-menu-cta .btn:last-child { margin-bottom: 0; }

/* Animations */
.fade-in { opacity: 0; transform: translateY(24px); transition: all 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 1024px) {
    .hero .container { grid-template-columns: 1fr; text-align: center; }
    .hero-content h1 { font-size: 40px; }
    .hero-content p { margin-left: auto; margin-right: auto; }
    .hero-content .subtitle { justify-content: center; }
    .hero-buttons { justify-content: center; }
    .features-grid { grid-template-columns: 1fr; }
    .why-grid { grid-template-columns: repeat(2, 1fr); }
    .industries-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-content { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-links, .nav-cta { display: none; }
    .mobile-menu-btn { display: block; }
    .mobile-menu { display: block; }
    .mobile-menu-overlay { display: none; }
    .mobile-menu-overlay.active { display: block; }
    .hero { padding: 120px 0 100px; }
    .hero::after { height: 50px; }
    .hero::before { display: none; }
    .hero-content h1 { font-size: 32px; }
    .section-header h2 { font-size: 28px; }
    .why-grid { grid-template-columns: 1fr; }
    .users-grid { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; }
    .industries-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-content { grid-template-columns: 1fr; text-align: center; }
    .footer-brand { align-items: center; }
    .footer-brand p { text-align: center; }
    .footer-bottom { justify-content: center; text-align: center; }
    .contact-info { flex-direction: column; align-items: center; gap: 16px; }
}

@media (max-width: 480px) {
    .industries-grid { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 28px; }
    .pricing-price { font-size: 40px; }
}


/* Mobile Dropdown */
.mobile-menu-nav .has-dropdown {
    position: relative;
}

.mobile-menu-nav .dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-menu-nav .dropdown-arrow {
    font-size: 12px;
    transition: transform 0.3s ease;
    margin-left: auto;
}

.mobile-menu-nav .has-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

.mobile-dropdown {
    display: none;
    list-style: none;
    background: var(--bg);
    padding: 0;
    margin: 0;
}

.mobile-menu-nav .has-dropdown.active .mobile-dropdown {
    display: block;
}

.mobile-dropdown li {
    border-bottom: 1px solid var(--border) !important;
}

.mobile-dropdown li:last-child {
    border-bottom: none !important;
}

.mobile-dropdown li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px 14px 44px !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    color: var(--text-body);
    text-decoration: none;
    transition: all 0.2s;
}

.mobile-dropdown li a:hover {
    background: var(--bg-card);
    color: var(--primary);
}


/* Floating WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all 0.3s ease;
    text-decoration: none;
}

/* ========== MOBILE FIXED BOTTOM BAR ========== */
.mobile-bottom-bar {
    display: none;
}

@media (max-width: 768px) {
    .mobile-bottom-bar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        z-index: 900;
        padding: 8px 0;
        padding-bottom: calc(8px + env(safe-area-inset-bottom));
    }
    
    .mobile-bottom-btn {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        padding: 8px;
        text-decoration: none;
        color: var(--text-dark);
        font-size: 11px;
        font-weight: 500;
    }
    
    .mobile-bottom-btn i {
        font-size: 20px;
        color: var(--primary);
    }
    
    .mobile-bottom-btn:first-child {
        background: var(--primary);
        color: white;
        border-radius: 8px;
        margin: 0 4px;
    }
    
    .mobile-bottom-btn:first-child i {
        color: white;
    }
    
    /* Add padding to body so content isn't hidden behind bottom bar */
    body {
        padding-bottom: 70px;
    }
    
    /* Move WhatsApp button up so it doesn't overlap */
    .whatsapp-float {
        bottom: 80px;
    }
    
    /* Hide desktop elements on mobile */
    .desktop-only {
        display: none !important;
    }
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

.whatsapp-float::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #25D366;
    animation: whatsapp-pulse 2s infinite;
    z-index: -1;
}

@keyframes whatsapp-pulse {
    0% { transform: scale(1); opacity: 0.7; }
    100% { transform: scale(1.5); opacity: 0; }
}

.whatsapp-tooltip {
    position: absolute;
    right: 70px;
    background: var(--text-dark);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: var(--text-dark);
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
        font-size: 28px;
    }
    
    .whatsapp-tooltip {
        display: none;
    }
}
