/* Mobile-specific CLS Prevention CSS */

/* Critical mobile layout fixes */
@media (max-width: 768px) {
    /* Main element fixes */
    main {
        min-height: 100vh !important;
        width: 100% !important;
        overflow-x: hidden !important;
        position: relative !important;
    }
    
    /* Hero section fixes */
    .hero-section {
        min-height: 100vh !important;
        padding: 2rem 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .hero-content {
        width: 100% !important;
        padding: 0 1rem !important;
        max-width: 100% !important;
    }
    
    /* Grid layout fixes */
    .grid.md\\:grid-cols-2 {
        display: flex !important;
        flex-direction: column !important;
        gap: 2rem !important;
        width: 100% !important;
    }
    
    /* Text sizing fixes */
    .text-4xl.md\\:text-5xl {
        font-size: 2.5rem !important;
        line-height: 1.2 !important;
        margin-bottom: 1rem !important;
    }
    
    /* Button layout fixes */
    .flex.flex-col.sm\\:flex-row {
        display: flex !important;
        flex-direction: column !important;
        gap: 1rem !important;
        width: 100% !important;
    }
    
    .btn-primary {
        width: 100% !important;
        min-height: 3.5rem !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin-bottom: 0.5rem !important;
    }
    
    /* Statistics layout fixes */
    .flex.justify-center.md\\:justify-start.space-x-8.sm\\:space-x-12 {
        display: flex !important;
        justify-content: center !important;
        gap: 2rem !important;
        flex-wrap: wrap !important;
        width: 100% !important;
    }
    
    .stat-item {
        min-width: 80px !important;
        min-height: 4rem !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    /* Image container fixes */
    .hidden.md\\:flex {
        display: none !important;
    }
    
    .mobile-image-container {
        display: block !important;
        width: 100% !important;
        height: 300px !important;
        margin: 2rem 0 !important;
    }
    
    .mobile-image-container .skeleton {
        width: 100% !important;
        height: 100% !important;
        border-radius: 1rem !important;
    }
    
    /* Container fixes */
    .container.mx-auto.px-4 {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 1rem !important;
    }
    
    /* Text content fixes */
    .text-lg.text-gray-300.mb-8 {
        font-size: 1.125rem !important;
        line-height: 1.6 !important;
        margin-bottom: 2rem !important;
    }
    
    /* Prevent any layout shifts */
    * {
        box-sizing: border-box !important;
    }
    
    /* Fix any potential overflow issues */
    body {
        overflow-x: hidden !important;
    }
    
    /* Ensure proper spacing */
    .mb-12 {
        margin-bottom: 3rem !important;
    }
    
    .mb-8 {
        margin-bottom: 2rem !important;
    }
    
    .mb-4 {
        margin-bottom: 1rem !important;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .text-4xl.md\\:text-5xl {
        font-size: 2rem !important;
        line-height: 1.1 !important;
    }
    
    .stat-item {
        min-width: 70px !important;
        min-height: 3.5rem !important;
    }
    
    .mobile-image-container {
        height: 250px !important;
    }
    
    .btn-primary {
        min-height: 3rem !important;
        font-size: 0.9rem !important;
    }
}
