!function(){"use strict";let e=(e,t=!1)=>(e=e.trim(),t)?[...document.querySelectorAll(e)]:document.querySelector(e),t=(t,i,s,l=!1)=>{l?e(i,l).forEach(e=>e.addEventListener(t,s)):e(i,l).addEventListener(t,s)},i=(e,t)=>{e.addEventListener("scroll",t)},s=e("#navbar .scrollto",!0),l=()=>{let t=window.scrollY+200;s.forEach(i=>{if(!i.hash)return;let s=e(i.hash);s&&(t>=s.offsetTop&&t<=s.offsetTop+s.offsetHeight?i.classList.add("active"):i.classList.remove("active"))})};window.addEventListener("load",l),i(document,l);let a=t=>{let i=e("#header"),s=i.offsetHeight;i.classList.contains("header-scrolled")||(s-=10);let l=e(t).offsetTop;window.scrollTo({top:l-s,behavior:"smooth"})},o=e("#header");if(o){let n=()=>{window.scrollY>5?o.classList.add("header-scrolled"):o.classList.remove("header-scrolled")};window.addEventListener("load",n),i(document,n)}let r=e(".back-to-top");if(r){let c=()=>{window.scrollY>100?r.classList.add("active"):r.classList.remove("active")};window.addEventListener("load",c),i(document,c)}function d(){AOS.init({duration:1e3,easing:"ease-in-out",once:!0,mirror:!1})}t("click",".mobile-nav-toggle",function(t){e("#navbar").classList.toggle("navbar-mobile"),this.classList.toggle("bi-list"),this.classList.toggle("bi-x")}),t("click",".navbar .dropdown > a",function(t){e("#navbar").classList.contains("navbar-mobile")&&(t.preventDefault(),this.nextElementSibling.classList.toggle("dropdown-active"))},!0),t("click",".scrollto",function(t){if(e(this.hash)){t.preventDefault();let i=e("#navbar");if(i.classList.contains("navbar-mobile")){i.classList.remove("navbar-mobile");let s=e(".mobile-nav-toggle");s.classList.toggle("bi-list"),s.classList.toggle("bi-x")}a(this.hash)}},!0),window.addEventListener("load",()=>{window.location.hash&&e(window.location.hash)&&a(window.location.hash)}),new Swiper(".clients-slider",{speed:400,loop:!0,autoplay:{delay:5e3,disableOnInteraction:!1},slidesPerView:"auto",pagination:{el:".swiper-pagination",type:"bullets",clickable:!0},breakpoints:{320:{slidesPerView:2,spaceBetween:40},480:{slidesPerView:3,spaceBetween:60},640:{slidesPerView:4,spaceBetween:80},992:{slidesPerView:6,spaceBetween:120}}}),window.addEventListener("load",()=>{let i=e(".portfolio-container");if(i){let s=new Isotope(i,{itemSelector:".portfolio-item",layoutMode:"fitRows"}),l=e("#portfolio-flters li",!0);t("click","#portfolio-flters li",function(e){e.preventDefault(),l.forEach(function(e){e.classList.remove("filter-active")}),this.classList.add("filter-active"),s.arrange({filter:this.getAttribute("data-filter")}),d()},!0)}}),GLightbox({selector:".portfokio-lightbox"}),new Swiper(".portfolio-details-slider",{speed:400,autoplay:{delay:5e3,disableOnInteraction:!1},pagination:{el:".swiper-pagination",type:"bullets",clickable:!0}}),new Swiper(".testimonials-slider",{speed:600,loop:!0,autoplay:{delay:5e3,disableOnInteraction:!1},slidesPerView:"auto",pagination:{el:".swiper-pagination",type:"bullets",clickable:!0},breakpoints:{320:{slidesPerView:1,spaceBetween:40},1200:{slidesPerView:3}}}),window.addEventListener("load",()=>{d()}),new PureCounter}();