/* Mobile Fixes CSS */

/* General Mobile Responsiveness */
@media (max-width: 992px) {
    h1 {
        font-size: 2.5rem !important;
    }
    
    h2 {
        font-size: 2rem !important;
    }
    
    h3 {
        font-size: 1.5rem !important;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .metrics-container {
        flex-direction: column;
    }
    
    .metric {
        width: 100%;
        margin-bottom: 15px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .industry-content {
        flex-direction: column;
    }
    
    .industry-image {
        width: 100%;
        max-height: 250px;
    }
    
    .case-studies-grid {
        grid-template-columns: 1fr;
    }
}

/* Small Mobile Devices */
@media (max-width: 576px) {
    h1 {
        font-size: 2rem !important;
    }
    
    h2 {
        font-size: 1.8rem !important;
    }
    
    h3 {
        font-size: 1.3rem !important;
    }
    
    .hero {
        padding: 40px 0;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
        padding: 12px 15px;
    }
    
    .section-header {
        margin-bottom: 30px;
    }
    
    .tab-navigation {
        flex-direction: column;
        gap: 10px;
    }
    
    .tab-btn {
        width: 100%;
    }
    
    .industry-info {
        padding: 20px;
    }
    
    .success-factors {
        flex-direction: column;
    }
    
    .factor {
        width: 100%;
        margin-bottom: 15px;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* Fix for iOS Safari */
@supports (-webkit-touch-callout: none) {
    .btn {
        -webkit-appearance: none;
    }
    
    input, select, textarea {
        font-size: 16px; /* Prevents zoom on focus */
    }
}

/* Fix for landscape mode */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: 30px 0;
    }
    
    .metrics-container {
        flex-direction: row;
    }
    
    .mobile-nav {
        max-height: 80vh;
        overflow-y: auto;
    }
}

/* Fix for high-resolution displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Fix for touch devices */
@media (hover: none) {
    .btn:hover {
        transform: none !important;
    }
    
    a:hover {
        transition: none !important;
    }
}

/* Fix for sticky header on iOS */
@supports (-webkit-touch-callout: none) {
    header {
        position: -webkit-sticky;
    }
}

/* Fix for flexbox gap in Safari */
@supports not (gap: 20px) {
    .metrics-container > * {
        margin: 0 10px;
    }
    
    .hero-cta > * {
        margin: 0 10px;
    }
    
    .services-grid > * {
        margin: 15px;
    }
}
