
        /* Prevent flash of unstyled content */
        body {
            visibility: visible !important;
            opacity: 1 !important;
            margin: 0;
            padding: 0;
        }

        /* Critical Bootstrap Grid System */
        .container {
            width: 100%;
            padding-right: 15px;
            padding-left: 15px;
            margin-right: auto;
            margin-left: auto;
            max-width: 1140px;
        }

        .row {
            display: flex;
            flex-wrap: wrap;
            margin-right: -15px;
            margin-left: -15px;
        }

        [class*="col-"] {
            position: relative;
            width: 100%;
            padding-right: 15px;
            padding-left: 15px;
        }

        /* Flexbox utilities */
        .d-flex {
            display: flex !important;
        }

        .d-block {
            display: block !important;
        }

        .justify-content-center {
            justify-content: center !important;
        }

        .align-items-center {
            align-items: center !important;
        }

        .text-center {
            text-align: center !important;
        }

                /* LTR Critical Styles */
        html, body {
            direction: ltr !important;
        }

        .text-left, .text-start {
            text-align: left !important;
        }

        .text-right, .text-end {
            text-align: right !important;
        }

        input, textarea, select {
            text-align: left !important;
            direction: ltr !important;
        }
        
        /* Ensure WOW elements are hidden until animation starts */
        .wow {
            visibility: hidden;
        }

        /* Hide content until CSS loads to prevent flash */
        .animate__animated {
            animation-duration: 0s !important;
        }

        /* Loading overlay to prevent FOUC */
        #loading-overlay {
            position: fixed;
            z-index: 99999;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: #fff;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        #loading-overlay .loader {
            width: 350px;
            height: auto;
        }

        #loading-overlay .loader-img {
            width: 100%;
            height: auto;
        }

        @media (max-width: 768px) {
            #loading-overlay .loader {
                width: 80px;
            }
        }

        @media (max-width: 480px) {
            #loading-overlay .loader {
                width: 70px;
            }
        }

        body.loaded #loading-overlay {
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.5s ease-out;
        }
    