/* Hosting Compatibility Fixes */
/* This file ensures the design works perfectly on shared hosting platforms */

/* Reset and Base Fixes */
* {
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
}

/* Disable problematic CSS features for hosting */
.hero-shapes,
.badge-glow,
.icon-glow,
.btn-ripple,
.achievement-cards {
    display: none !important;
}

/* Force stable layouts */
.modern-hero-section {
    min-height: 100vh !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    position: relative !important;
    overflow: hidden !important;
}

/* Ensure proper container behavior */
.container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
}

/* Fix flexbox issues on older hosting environments */
.hero-cta-modern {
    display: -webkit-flex !important;
    display: -ms-flexbox !important;
    display: flex !important;
    -webkit-flex-wrap: wrap !important;
    -ms-flex-wrap: wrap !important;
    flex-wrap: wrap !important;
}

/* Stable card layouts */
.main-stats-card {
    background: rgba(255, 255, 255, 0.95) !important;
    border-radius: 20px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    max-width: 500px !important;
    margin: 0 auto !important;
}

.beautiful-tool-card {
    background: white !important;
    border-radius: 20px !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    transition: transform 0.3s ease !important;
}

/* Force proper responsive behavior */
@media (max-width: 768px) {
    .modern-hero-section {
        min-height: auto !important;
        padding: 100px 0 50px 0 !important;
    }
    
    .hero-title-modern {
        font-size: 2.2rem !important;
        text-align: center !important;
        line-height: 1.3 !important;
    }
    
    .hero-subtitle-modern {
        font-size: 1rem !important;
        text-align: center !important;
        padding: 0 1rem !important;
    }
    
    .hero-cta-modern {
        flex-direction: column !important;
        align-items: center !important;
        gap: 1rem !important;
    }
    
    .btn-modern {
        width: 100% !important;
        max-width: 280px !important;
        text-align: center !important;
    }
    
    .main-stats-card {
        margin: 2rem 1rem 0 1rem !important;
        padding: 1rem !important;
    }
    
    .beautiful-tool-card {
        margin-bottom: 1.5rem !important;
    }
}

@media (max-width: 576px) {
    .hero-title-modern {
        font-size: 1.8rem !important;
        padding: 0 1rem !important;
    }
    
    .hero-subtitle-modern {
        font-size: 0.9rem !important;
        padding: 0 1.5rem !important;
    }
    
    .main-stats-card {
        margin: 1.5rem 0.5rem 0 0.5rem !important;
        padding: 0.75rem !important;
    }
}

/* Fix common hosting issues */
.row {
    display: -webkit-flex !important;
    display: -ms-flexbox !important;
    display: flex !important;
    -webkit-flex-wrap: wrap !important;
    -ms-flex-wrap: wrap !important;
    flex-wrap: wrap !important;
    margin-left: -15px !important;
    margin-right: -15px !important;
}

.col-lg-6,
.col-md-6,
.col-sm-12,
.col-lg-4,
.col-md-12 {
    position: relative !important;
    width: 100% !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
}

/* Desktop column widths */
@media (min-width: 992px) {
    .col-lg-6 {
        -webkit-flex: 0 0 50% !important;
        -ms-flex: 0 0 50% !important;
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
    
    .col-lg-4 {
        -webkit-flex: 0 0 33.333333% !important;
        -ms-flex: 0 0 33.333333% !important;
        flex: 0 0 33.333333% !important;
        max-width: 33.333333% !important;
    }
}

/* Tablet column widths */
@media (min-width: 768px) and (max-width: 991px) {
    .col-md-6 {
        -webkit-flex: 0 0 50% !important;
        -ms-flex: 0 0 50% !important;
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
    
    .col-md-12 {
        -webkit-flex: 0 0 100% !important;
        -ms-flex: 0 0 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}

/* Force text colors for visibility */
.hero-content-wrapper {
    color: white !important;
}

.hero-title-modern {
    color: white !important;
}

.hero-subtitle-modern {
    color: rgba(255, 255, 255, 0.9) !important;
}

.badge-content {
    color: #ffd700 !important;
}

/* Ensure buttons work properly */
.btn-modern {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    border: none !important;
    cursor: pointer !important;
}

.btn-primary-modern {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%) !important;
    color: #1a1a1a !important;
}

.btn-secondary-modern {
    background: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
}

/* Fix z-index issues */
.hero-content-wrapper {
    position: relative !important;
    z-index: 10 !important;
}

.stats-cards-container {
    position: relative !important;
    z-index: 10 !important;
}

/* Fix Progress Bar Overlay Issue */
.stats-card .bg-light {
    position: relative !important;
    z-index: 1 !important;
    height: 6px !important;
    overflow: hidden !important;
    background-color: #f8f9fa !important;
}

.stats-card .bg-primary {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    height: 100% !important;
    z-index: 2 !important;
    background-color: #0d6efd !important;
}

.stats-card .text-start {
    position: relative !important;
    z-index: 10 !important;
}

.stats-card .d-flex {
    position: relative !important;
    z-index: 10 !important;
    margin-bottom: 8px !important;
}

/* Prevent progress bar from covering text */
.stats-card {
    overflow: visible !important;
    position: relative !important;
    z-index: 5 !important;
}

/* Disable animations that might cause issues */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Force proper font loading */
body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* Ensure proper image handling */
img {
    max-width: 100% !important;
    height: auto !important;
}

/* Fix potential overflow issues */
.modern-hero-section,
.beautiful-tools-section {
    overflow-x: hidden !important;
}
