<!-- js -->
<script src="<?php echo e(Path::js('jquery-3.7.1.min.js')); ?>"></script>

    <!--Jquery-->
    <script src="<?php echo e(Path::js('bootstrap.bundle.min.js')); ?>"></script>
    <script src="<?php echo e(Path::js('swiper-bundle.min.js')); ?>"></script>
    <script src="<?php echo e(Path::js('main.js')); ?>"></script>
    <script src="<?php echo e(Path::js('gsap.min.js')); ?>"></script>
    <script src="<?php echo e(Path::js('ScrollTrigger.min.js')); ?>"></script>
    <script src="https://cdn.jsdelivr.net/npm/@studio-freight/lenis@latest/dist/lenis.min.js"></script>
    <script src="<?php echo e(Path::js('animation.js')); ?>"></script>

<script>
    // Initialize WOW if available (after all scripts are loaded)
    if (typeof WOW !== 'undefined') {
        new WOW().init();
    }
</script>
<!--#################### Service Worker is registered in _head.blade.php ####################-->

<script>
    let recaptchaLoaded = false;

    function loadRecaptcha() {
        if (recaptchaLoaded) return;
        recaptchaLoaded = true;

        const script = document.createElement('script');
        script.src = "https://www.google.com/recaptcha/api.js?onload=onRecaptchaLoadCallback&render=explicit";
        script.async = true;
        script.defer = true;
        document.body.appendChild(script);
    }

    function onRecaptchaLoadCallback() {
        grecaptcha.render(document.querySelector('.g-recaptcha'), {
            'sitekey': "<?php echo e(config('captcha.sitekey')); ?>"
        });
    }

    document.addEventListener("DOMContentLoaded", function () {
        const form = document.querySelector(".contact-form");
        if (form) {
            form.addEventListener("focusin", loadRecaptcha, {
                once: true
            });
        }
    });
</script><?php /**PATH /home/egypetoo/public_html/resources/views/components/website/partials/_script.blade.php ENDPATH**/ ?>