/* MOBILE FIXES FOR IMG_4539 ISSUES */

/* 1. FIX HERO TEXT OVERLAP */
.hero h1 {
    font-size: 1.8rem !important;
    line-height: 1.3 !important;
    margin-bottom: 15px !important;
    word-break: break-word !important;
}

.gradient-text.glitch-text {
    display: block !important;
    white-space: normal !important;
}

/* 2. FIX TYPEWRITER ANIMATION */
.typewriter {
    white-space: normal !important;
    border-right: none !important;
    animation: none !important;
    overflow: visible !important;
    max-width: 100% !important;
}

/* 3. FIX STATS LAYOUT */
.hero-stats {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 10px !important;
    margin: 25px auto !important;
    max-width: 100% !important;
    padding: 0 10px !important;
}

.stat {
    padding: 15px 5px !important;
    min-height: auto !important;
}

.stat-number {
    font-size: 1.4rem !important;
    white-space: nowrap !important;
}

.stat-label {
    font-size: 0.7rem !important;
    margin-top: 3px !important;
}

/* 4. FIX BUTTONS */
.hero-buttons {
    flex-direction: column !important;
    gap: 12px !important;
    padding: 0 15px !important;
}

.neon-btn {
    width: 100% !important;
    padding: 14px 20px !important;
    text-align: center !important;
}

.btn-content {
    justify-content: center !important;
    gap: 8px !important;
}

/* 5. FIX TYPOGRAPHY */
.subtitle {
    font-size: 0.95rem !important;
    padding: 0 15px !important;
    line-height: 1.4 !important;
    max-width: 100% !important;
}

/* 6. FIX SCROLL INDICATOR */
.scroll-indicator {
    bottom: 20px !important;
    transform: translateX(-50%) scale(0.8) !important;
}

.scroll-indicator small {
    font-size: 0.7rem !important;
}

/* 7. HIDE ANIMATIONS ON LOW-POWER DEVICES */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* 8. FIX TOUCH TARGETS */
.neon-btn, .nav-link, .demo-tab {
    min-height: 44px !important;
    min-width: 44px !important;
}

/* 9. FIX VIEWPORT */
html {
    overflow-x: hidden !important;
    max-width: 100% !important;
}

body {
    overflow-x: hidden !important;
    position: relative !important;
    width: 100% !important;
}

.container {
    overflow-x: hidden !important;
}

/* 10. FIX SPECIFIC ISSUES FROM IMAGE */
@media (max-width: 375px) {
    .hero h1 {
        font-size: 1.5rem !important;
        padding: 0 10px !important;
    }
    
    .hero-stats {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px !important;
    }
    
    .stat-number {
        font-size: 1.2rem !important;
    }
    
    .service-icon {
        width: 18px !important;
        height: 18px !important;
    }
}

/* 11. FIX GLITCH TEXT ON MOBILE */
.glitch-text::before,
.glitch-text::after {
    display: none !important; /* Disable glitch on mobile for performance */
}

/* 12. IMPORTANT OVERRIDES */
@media (max-width: 768px) {
    .hero {
        padding-top: 40px !important;
        padding-bottom: 60px !important;
        min-height: auto !important;
    }
    
    .hero-content {
        text-align: center !important;
    }
    
    /* Force proper text display */
    h1, h2, h3, h4, p, span, div {
        max-width: 100% !important;
        overflow-wrap: break-word !important;
    }
}