$(document).ready(function(){
    
    /*PreLoader*/
    (function($) {
        "use strict";
        
        $(".loader-item").delay(700).fadeOut();
        $("#pageloader").delay(800).fadeOut("slow");
    })(jQuery);
    
        
   
    
    /*Go Top*/
    (function($) {
        $('a[href="#top"]').click(function () {
            $('html, body').animate({ scrollTop: 0 }, 800);
            return false;
        });
    })(jQuery);
    
    /*Project Filter*/
    (function($) {
        "use strict";
        $(".projects").mixItUp({
            animation: {
                effects: 'fade scale(0)'
            },
            layout: {},
            selectors: {
                target: ".project"
            },
            load: {
                filter: 'all',
                sort: 'random:asc'
            },

        });
    })(jQuery);
    
    /*TweetSlider Slider*/
    (function($) {
        "use strict";
        $('.twitterSlide .twitterSlider').owlCarousel({
            loop:true,
            margin:0,
            nav:true,
            items:1,
            dots:false,
            lazyLoad: true,
            autoplay: true,
            navText: [ '<i class="fa fa-angle-left"></i>','<i class="fa fa-angle-right"></i>' ],
        }); 
    })(jQuery);
    
    
    /*Testimonial Slider*/
    (function($) {
        "use strict";
        $('.testimonialSlider').owlCarousel({
            loop:true,
            margin:0,
            nav:false,
            items:1,
            dots:false,
            lazyLoad: true,
            autoplay: true,
        });  
    })(jQuery);
    
    /*ParterSlider*/
    (function($) {
        "use strict";
        $('.partnerSlider').owlCarousel({
            loop:true,
            margin:10,
            responsiveClass:true,
            nav: true,
            navText: [ '<i class="fa fa-angle-left"></i>','<i class="fa fa-angle-right"></i>' ],
            autoplay: true,
            responsive:{
                0:{
                    items:1,
                    nav:true
                },
                600:{
                    items:2,
                    nav:false
                },
                1000:{
                    items:3,
                    nav:true,
                    loop:false
                }
            }
        });
    })(jQuery);
    
    /*Rev Slider*/
    (function($) {
        "use strict";
        jQuery('.mainSlider').revolution({
            delay:9000,
            startwidth:960,
            startheight:660,
            startWithSlide:0,

            fullScreenAlignForce:"off",
            autoHeight:"off",
            minHeight:"off",

            shuffle:"off",

            onHoverStop:"on",

            thumbWidth:100,
            thumbHeight:50,
            thumbAmount:3,

            hideThumbsOnMobile:"off",
            hideNavDelayOnMobile:1500,
            hideBulletsOnMobile:"off",
            hideArrowsOnMobile:"off",
            hideThumbsUnderResoluition:0,

            hideThumbs:0,
            hideTimerBar:"off",

            keyboardNavigation:"on",

            navigationType:"bullet",
            navigationArrows:"solo",
            navigationStyle:"round-old",

            navigationHAlign:"center",
            navigationVAlign:"bottom",
            navigationHOffset:30,
            navigationVOffset:30,

            soloArrowLeftHalign:"left",
            soloArrowLeftValign:"bottom",
            soloArrowLeftHOffset:0,
            soloArrowLeftVOffset:0,

            soloArrowRightHalign:"right",
            soloArrowRightValign:"bottom",
            soloArrowRightHOffset:0,
            soloArrowRightVOffset:0,


            touchenabled:"on",
            swipe_velocity:"0.7",
            swipe_max_touches:"1",
            swipe_min_touches:"1",
            drag_block_vertical:"false",

            parallax:"mouse",
            parallaxBgFreeze:"on",
            parallaxLevels:[10,7,4,3,2,5,4,3,2,1],
            parallaxDisableOnMobile:"off",

            stopAtSlide:-1,
            stopAfterLoops:-1,
            hideCaptionAtLimit:0,
            hideAllCaptionAtLilmit:0,
            hideSliderAtLimit:0,

            dottedOverlay:"none",

            spinned:"spinner4",

            fullWidth:"off",
            forceFullWidth:"off",
            fullScreen:"off",
            fullScreenOffsetContainer:"#topheader-to-offset",
            fullScreenOffset:"0px",
            panZoomDisableOnMobile:"off",

            simplifyAll:"off",

            shadow:0
        });
    })(jQuery);
    
});