/* ==========================================================================
   MOBILE HOME PAGE (Max-Width: 991px)
   ========================================================================== */
@media only screen and (max-width: 991px) {

    /* --- 1. HERO SLIDER PREMIUM --- */
    .hero-slider-premium,
    .hero-slider-alefox {
        height: auto !important;
        min-height: 85vh !important;
        margin-top: 70px !important;
        background: #022c22 !important;
    }

    .hero-split-container {
        padding: 0 !important;
        height: 100% !important;
    }

    .hero-split-container .row {
        height: 100% !important;
        margin: 0 !important;
    }

    .hero-content-side {
        width: 100% !important;
        height: 100% !important;
        padding: 0 !important;
        position: absolute !important;
        inset: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        /* Extremely light overlay for maximum clarity */
        background: linear-gradient(to bottom,
                rgba(0, 0, 0, 0.2) 0%,
                rgba(0, 0, 0, 0.5) 100%) !important;
        z-index: 5 !important;
    }

    /* Hide the extra PC overlay on mobile for total clarity */
    .hero-overlay-gradient {
        display: none !important;
    }

    .hero-content-inner {
        padding: 120px 20px 80px 20px !important;
        text-align: center !important;
    }

    .hero-visual-side {
        display: none !important;
    }

    /* Backgrounds Scaling - Focus on Clarity & Full Display */
    .slide-bg-1::after,
    .slide-bg-2::after,
    .slide-bg-3::after {
        background-position: center center !important;
        background-size: cover !important;
        /* Hardware acceleration removed for better battery/render */
    }


    .slide-bg-1,
    .slide-bg-2,
    .slide-bg-3 {
        background: #000 !important;
        overflow: hidden !important;
    }

    /* Navigation */
    .hero-nav-premium {
        bottom: 30px !important;
        padding: 0 20px !important;
        z-index: 20 !important;
    }

    .nav-btn {
        width: 40px !important;
        height: 40px !important;
        background: rgba(34, 197, 94, 0.3) !important;
        border: 1px solid rgba(255, 255, 255, 0.3) !important;
        backdrop-filter: blur(10px);
    }

    .nav-indicators {
        display: none !important;
    }

    /* --- 2. HOME SPECIFIC SECTIONS --- */

    /* Hero Typography */
    .hero-mega-title {
        font-size: 2.2rem !important;
        line-height: 1.2 !important;
        margin-bottom: 15px !important;
    }

    .hero-description,
    .hero-description_short {
        font-size: 1rem !important;
        line-height: 1.5 !important;
        margin-bottom: 25px !important;
        opacity: 0.9 !important;
    }

    .brand-animated-wrapper {
        margin: 0 auto 20px !important;
        padding: 8px 15px !important;
        font-size: 0.9rem !important;
    }

    /* Hero Buttons Mobile Logic */
    .hero-cta-group {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 15px !important;
        width: 100% !important;
    }

    .btn-hero-primary,
    .btn-hero-secondary,
    .premium-btn {
        width: 100% !important;
        max-width: 320px !important;
        justify-content: center !important;
        padding: 14px 25px !important;
        font-size: 0.95rem !important;
        margin: 5px auto !important;
        display: flex !important;
    }

    .intro-actions {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 12px !important;
        margin-top: 25px !important;
    }

    /* Stats Mini (Hero Section) */
    .hero-stats-mini {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 10px !important;
        margin-bottom: 30px !important;
    }

    .stat-mini {
        background: rgba(255, 255, 255, 0.1) !important;
        backdrop-filter: blur(10px) !important;
        padding: 10px !important;
        border-radius: 12px !important;
        min-width: 80px !important;
        flex: 1 !important;
    }

    .stat-mini .stat-number {
        font-size: 1.1rem !important;
        font-weight: 800 !important;
        color: #fff !important;
    }

    .stat-mini .stat-label {
        font-size: 0.6rem !important;
        text-transform: uppercase !important;
        letter-spacing: 1px !important;
        color: rgba(255, 255, 255, 0.7) !important;
    }



    /* Bento Stats (Why Us) */
    .bento-card.card-stat {
        min-height: 120px !important;
        padding: 15px !important;
        flex-direction: row !important;
        gap: 15px !important;
        align-items: center !important;
        justify-content: flex-start !important;
        text-align: left !important;
    }

    .bento-card.card-stat .stat-value {
        font-size: 2.2rem !important;
        margin-bottom: 0 !important;
    }

    .bento-card.card-stat .stat-label-modern {
        font-size: 0.8rem !important;
    }

    /* Hide decorative icons in bento stats on mobile */
    .icon-box-sm {
        display: none !important;
    }

    /* Certifications Carousel Fix */
    .cert-img-alefox {
        max-height: 200px !important;
        margin: 0 auto !important;
        object-fit: contain !important;
    }

    .hero-content-inner {
        padding-top: 130px !important;
        /* Move down past navbar */
        padding-bottom: 50px;
    }

    /* Cert Carousel Buttons Fix */
    .cert-alefox-wrap .mt-4 {
        display: flex !important;
        flex-direction: row !important;
        justify-content: center !important;
        gap: 15px !important;
    }

    .cert-alefox-wrap .mt-4 .alefox-btn.outline {
        width: 50px !important;
        height: 50px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 !important;
    }

    /* Certifications Section Specific Fixes */
    .cert-modern-section {
        padding: 60px 0 !important;
    }

    .cert-modern-section .reveal-left {
        text-align: center !important;
        margin-bottom: 40px;
    }

    .cert-modern-section .section-tagline {
        justify-content: center !important;
    }

    .cert-modern-section .intro-feature-list {
        display: inline-block !important;
        text-align: left !important;
        margin: 20px auto !important;
        width: auto !important;
    }

    .cert-modern-section .intro-feature-item {
        margin-bottom: 12px !important;
        font-size: 0.95rem !important;
    }

    .cert-alefox-wrap {
        padding: 30px 15px !important;
        border-radius: 24px !important;
    }

    /* --- 4. PRODUCTS SHOWCASE --- */
    .products-showcase {
        padding: 60px 0 !important;
    }

    .products-showcase .section-title {
        font-size: 1.8rem !important;
        margin-bottom: 15px !important;
    }

    .products-intro-desc {
        font-size: 0.95rem !important;
        max-width: 95% !important;
        margin-bottom: 30px !important;
    }

    .product-detail-card {
        margin-bottom: 20px !important;
    }

    /* --- 5. WHY BENTO GRID --- */
    .why-bento-section {
        padding: 60px 0 !important;
    }

    .bento-grid-modern {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
    }

    .bento-card {
        min-height: 200px !important;
        border-radius: 20px !important;
    }

    .card-featured {
        min-height: 350px !important;
    }

    .card-featured h3 {
        font-size: 1.5rem !important;
    }

    .card-wide {
        flex-direction: column !important;
        padding: 25px !important;
    }

    .wide-visual {
        display: block !important;
        visibility: visible !important;
        margin: 15px auto 0 !important;
        text-align: center !important;
        width: 100% !important;
    }

    .wide-visual img {
        width: 180px !important;
        height: auto !important;
        border-radius: 20px !important;
        display: block !important;
        margin: 0 auto !important;
    }

    /* --- 6. CORE VALUES --- */
    .core-values-alefox {
        padding: 60px 0 !important;
    }

    .value-card-alefox {
        margin-bottom: 30px !important;
    }

    /* --- 7. AWARDS HALL OF FAME --- */
    .awards-section-heroic {
        padding: 60px 5px !important;
    }

    .heroic-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
    }

    .award-hero-card {
        border-radius: 20px !important;
    }

    .award-hero-title {
        font-size: 1.25rem !important;
    }

    .hero-wide-card {
        flex-direction: column !important;
    }

    .hero-wide-card .award-visual {
        width: 100% !important;
        height: 250px !important;
    }

    /* --- 8. VIDEO SECTION --- */
    .video-alefox-section {
        padding: 60px 0 !important;
    }

    .video-box-alefox {
        margin-bottom: 30px !important;
        border-radius: 20px !important;
        overflow: hidden !important;
    }

    .overlay-title {
        font-size: 1.5rem !important;
    }

    .video-content-side {
        text-align: center !important;
    }

    .video-features-list {
        display: grid !important;
        grid-template-columns: 1fr !important;
        /* Single column to prevent text cutting */
        gap: 12px !important;
        text-align: left !important;
    }

    .video-feature-item i {
        font-size: 1.1rem !important;
    }

    .video-feature-item span {
        font-size: 0.8rem !important;
    }

    /* --- 9. CLIENTS SECTION POLISH --- */
    .clients-section-new {
        padding: 60px 0 !important;
    }

    /* Restore tracking animation instead of grid */
    .client-card {
        width: 150px !important;
        height: 100px !important;
        max-height: 100px !important;
        padding-bottom: 0 !important;
        aspect-ratio: auto !important;
        flex-shrink: 0 !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .client-card img {
        padding: 5px !important;
        filter: grayscale(0%) !important;
        opacity: 1 !important;
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        max-height: 100% !important;
        object-fit: contain !important;
    }

    .client-overlay {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .brand-animated-wrapper {
        font-size: 0.9rem;
        padding: 8px 20px;
        margin-bottom: 15px;
    }

    .typing-cursor {
        height: 0.9rem;
    }
}
