/* Mobile Optimizations - Final Adjustments */
@media (max-width: 768px) {

    /* Home Section - Overriding inline styles using !important */
    #home h1 span[style*="font-size: 5rem"],
    #home h1 .text-white[style*="font-size: 5rem"] {
        font-size: 2.5rem !important;
        margin-bottom: 10px !important;
    }

    #home h1 span[style*="font-size: 1.3rem"],
    #home h1 .text-white[style*="font-size: 1.3rem"] {
        font-size: 1.1rem !important;
        line-height: 1.4 !important;
    }

    #home .p-5 {
        padding: 1.5rem !important;
    }

    #home .d-flex.align-items-center {
        justify-content: center !important;
        text-align: center !important;
    }

    #home .text-start {
        text-align: center !important;
        margin: 0 !important;
        padding: 20px !important;
        width: 100% !important;
    }

    /* About Section Mobile Optimization */
    #about .d-flex {
        flex-direction: column !important;
        gap: 10px !important;
    }

    #about .d-flex>div {
        flex: 0 0 auto !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 20px;
    }

    #about img.rotating-icon {
        width: 80px !important;
        height: 80px !important;
        margin: 0 auto;
    }

    /* Intermediate Section */
    #intermediate {
        padding: 60px 0 !important;
    }

    #intermediate h1.intermediate-title {
        font-size: 2.2rem !important;
        line-height: 1.1 !important;
        margin-right: 0 !important;
        margin-top: 20px !important;
    }

    #intermediate img {
        width: 80px !important;
        height: 80px !important;
    }

    /* Sales Process Timeline Mobile Fixes */
    /* Add margin fix for main text */
    p[data-translate="sales_process_main"] {
        margin-bottom: 2rem !important;
    }

    .timeline-step {
        opacity: 1 !important;
        pointer-events: auto !important;
        width: auto !important;
        margin-bottom: 40px;
        background: rgba(255, 255, 255, 0.95);
        padding: 20px !important;
        border-radius: 10px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

    .custom-timeline::before {
        left: 50% !important;
        height: 100% !important;
        top: 0 !important;
        z-index: -1;
        background: #ddd;
    }

    /* Navigation/Header */
    .header-nav-main nav {
        padding-bottom: 50px;
    }

    /* Footer Logo Fix */
    #footer .logo h1 {
        font-size: 2.5rem !important;
        line-height: 1 !important;
    }

    /* Intermediate Section Title Fix - Removed duplicate */

    #intermediate img {
        width: 60px !important;
        height: 60px !important;
        top: -10px !important;
    }
}