.mega-menu {
    display: none !important;
    animation: slideDown 0.3s ease-out;
}

@media (min-width: 768px) {
    .mega-menu.active {
        display: block !important;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero content transitions */
#heroTitle,
#heroDesc {
    transition: opacity 0.3s ease-in-out;
}

/* Partner logos grayscale effect */
.grayscale {
    filter: grayscale(100%);
}

.grayscale:hover {
    filter: grayscale(0%);
}

/* Mobile bottom navigation safe area for iOS */
.safe-area-bottom {
    padding-bottom: env(safe-area-inset-bottom);
}

/* Body padding for mobile bottom nav */
@media (max-width: 767px) {
    body {
        padding-bottom: 65px;
    }
}

/* Swipe hints animation */
#swipeHints {
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile bottom menu slide animation */
#mobileBottomMenuContent {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Prevent body scroll when menu is open */
body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* Touch-friendly buttons and interactive elements */
.touch-manipulation {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

/* Better mobile scrolling */
@media (max-width: 767px) {
    * {
        -webkit-overflow-scrolling: touch;
    }
}

/* Mobile-optimized text sizes */
@media (max-width: 640px) {
    .text-responsive {
        font-size: 0.875rem;
    }
}

/* Mobile-friendly form inputs */
@media (max-width: 640px) {
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="password"],
    input[type="number"],
    textarea,
    select {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* Mobile menu improvements */
@media (max-width: 767px) {
    #mobileMenu {
        width: 85vw;
        max-width: 320px;
    }
}

/* Better mobile spacing */
@media (max-width: 640px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Mobile-optimized images */
@media (max-width: 640px) {
    img {
        max-width: 100%;
        height: auto;
    }
}

/* Mobile pagination improvements */
@media (max-width: 640px) {
    nav.flex.items-center.gap-2 {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav.flex.items-center.gap-2 a,
    nav.flex.items-center.gap-2 span {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
}

