"use client";

import React, { useEffect } from "react";
import Header1 from "@/components/layout/Header1";
import Footer1 from "@/components/layout/Footer1";

import BannerSection from "@/components/home/home-1/BannerSection";
import AboutSection from "@/components/home/home-1/AboutSection";
import ServiceSliderSection from "@/components/home/home-1/ServiceSliderSection";
import CtaSection from "@/components/home/home-1/CtaSection";
import ProjectsSection from "@/components/home/home-1/ProjectsSection";
import ChooseSection from "@/components/home/home-1/ChooseSection";
import TeamSection from "@/components/home/home-1/TeamSection";
import TestimonialsSection from "@/components/home/home-2/TestimonialsSection";
import BlogSection from "@/components/home/home-1/BlogSection";
import BrandSection from "@/components/home/home-1/BrandSection";
import IconCounterSection from "@/components/home/home-2/IconCounterSection";
import HelpFormSection from "@/components/home/home-2/HelpFormSection";

export default function MainPage() {
    useEffect(() => {
        const init = () => {
            if (typeof window !== "undefined" && (window as any).initMetatron && (window as any).jQuery) {
                (window as any).initMetatron();
            } else {
                setTimeout(init, 100);
            }
        };
        init();
    }, []);

    return (
        <>
            <Header1 />
            <main>
                <BannerSection />
                <AboutSection />
                <ChooseSection />
                <IconCounterSection />
                <ServiceSliderSection />
                <CtaSection />

                <BrandSection />
                <ProjectsSection />
                {/* <HelpFormSection/> */}

                {/* <TeamSection /> */}
                {/* <TestimonialsSection /> */}
                <TestimonialsSection />
                <BlogSection />

            </main>
            <Footer1 />
        </>
    );
}
