/* Mobile-specific styles */
@media (max-width: 768px) {
    /* Prevent zoom on input focus */
    input, textarea, select {
        font-size: 16px !important;
    }
    
    /* Better touch targets */
    .nav-link, .btn-primary, .btn-secondary, .social-link {
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Improved scrolling */
    body {
        -webkit-overflow-scrolling: touch;
        overflow-scrolling: touch;
    }
    
    /* Better text rendering */
    * {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        text-rendering: optimizeLegibility;
    }
}

/* iOS specific fixes */
@supports (-webkit-touch-callout: none) {
    .hero {
        min-height: -webkit-fill-available;
        min-height: 100vh;
    }
    
    .nav-menu {
        overflow-scrolling: touch;
    }
}

/* Android specific fixes */
@media screen and (-webkit-min-device-pixel-ratio: 0) and (min-resolution: .001dpcm) {
    .hero {
        min-height: -webkit-fill-available;
        min-height: 100vh;
    }
}

/* Mobile device specific styles */
.mobile-device .hero {
    min-height: -webkit-fill-available;
    min-height: 100vh;
}

.mobile-device .nav-menu {
    overflow-scrolling: touch;
}

.mobile-device .service-card,
.mobile-device .gallery-item {
    cursor: pointer;
}

.mobile-device .btn-primary,
.mobile-device .btn-secondary {
    -webkit-tap-highlight-color: transparent;
}

.mobile-device .hamburger {
    -webkit-tap-highlight-color: transparent;
}

.mobile-device .nav-link {
    -webkit-tap-highlight-color: transparent;
}

.mobile-device .social-link {
    -webkit-tap-highlight-color: transparent;
}

.mobile-device .whatsapp-btn {
    -webkit-tap-highlight-color: transparent;
}

.mobile-device .gallery-item {
    -webkit-tap-highlight-color: transparent;
}

.mobile-device .faq-question {
    -webkit-tap-highlight-color: transparent;
}

.mobile-device .dot {
    -webkit-tap-highlight-color: transparent;
}

.mobile-device .floating-whatsapp {
    -webkit-tap-highlight-color: transparent;
}

.mobile-device .scroll-top-btn {
    -webkit-tap-highlight-color: transparent;
}

.mobile-device .notification-close {
    -webkit-tap-highlight-color: transparent;
}

.mobile-device .lightbox-close {
    -webkit-tap-highlight-color: transparent;
}

.mobile-device .update-btn {
    -webkit-tap-highlight-color: transparent;
}

.mobile-device .close-btn {
    -webkit-tap-highlight-color: transparent;
}

.mobile-device .refresh-indicator {
    -webkit-tap-highlight-color: transparent;
}

/* Floating WhatsApp Button Mobile Optimizations */
.mobile-device .floating-whatsapp {
    position: fixed;
    bottom: 15px;
    right: 15px;
    z-index: 1001;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.mobile-device .floating-whatsapp a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(45deg, #25D366, #128C7E);
    color: white;
    padding: 12px 16px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    min-width: 50px;
    min-height: 50px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.mobile-device .floating-whatsapp a:active {
    transform: scale(0.95);
    background: linear-gradient(45deg, #128C7E, #25D366);
}

.mobile-device .floating-whatsapp i {
    font-size: 20px;
    line-height: 1;
}

.mobile-device .floating-whatsapp .whatsapp-text {
    font-size: 12px;
    white-space: nowrap;
}

/* iOS specific WhatsApp button fixes */
.ios-device .floating-whatsapp {
    bottom: 20px;
    right: 20px;
}

.ios-device .floating-whatsapp a {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

/* Android specific WhatsApp button fixes */
.android-device .floating-whatsapp {
    bottom: 15px;
    right: 15px;
}

.android-device .floating-whatsapp a {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}