"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import ReactLenis from "lenis/react";
import FaqBase from '@/components/sections/faq/FaqBase';
import FooterSimple from '@/components/sections/footer/FooterSimple';
import NavbarStyleApple from '@/components/navbar/NavbarStyleApple/NavbarStyleApple';
import ProductCardThree from '@/components/sections/product/ProductCardThree';

export default function LandingPage() {
  return (
    <ThemeProvider
        defaultButtonVariant="bounce-effect"
        defaultTextAnimation="background-highlight"
        borderRadius="pill"
        contentWidth="mediumSmall"
        sizing="mediumSizeLargeTitles"
        background="fluid"
        cardStyle="solid"
        primaryButtonStyle="primary-glow"
        secondaryButtonStyle="solid"
        headingFontWeight="extrabold"
    >
      <ReactLenis root>
  <div id="nav" data-section="nav">
      <NavbarStyleApple
      navItems={[
        {
          name: "Home",          id: "/"},
        {
          name: "About",          id: "/about"},
        {
          name: "Services",          id: "/services"},
        {
          name: "Contact",          id: "/contact"},
      ]}
      brandName="NANDAPE Electrical Supply"
    />
  </div>

  <div id="products-services" data-section="products-services">
      <ProductCardThree
      animationType="slide-up"
      textboxLayout="default"
      gridVariant="uniform-all-items-equal"
      useInvertedBackground={true}
      products={[
        {
          id: "p1",          name: "LV Panels",          price: "Request Quote",          imageSrc: "http://img.b2bpic.net/free-photo/electrician-inspects-switchboard-wiring-check-screwdriver-hand_169016-68211.jpg",          imageAlt: "High-performance LV Electrical Panels"},
        {
          id: "p2",          name: "Star Delta Starters",          price: "Request Quote",          imageSrc: "http://img.b2bpic.net/free-photo/water-pump-automatic-control-box-isolated-white_627829-7495.jpg",          imageAlt: "Industrial Star Delta Starters"},
        {
          id: "p3",          name: "Busbar Chambers",          price: "Request Quote",          imageSrc: "http://img.b2bpic.net/free-photo/water-gas-pipe-engineering-filtered-image-processed-vintage-effect_1232-4931.jpg",          imageAlt: "Reliable Busbar Chambers for power distribution"},
        {
          id: "p4",          name: "Automatic Changeover Switches",          price: "Request Quote",          imageSrc: "http://img.b2bpic.net/free-photo/deep-well-submersible-pump-isolated-white_627829-7503.jpg",          imageAlt: "Automatic Changeover Switches for seamless power"},
        {
          id: "p5",          name: "Power Factor Correction Systems",          price: "Request Quote",          imageSrc: "http://img.b2bpic.net/free-photo/professional-video-camera-movie-set-with-lot-cables_1268-17211.jpg",          imageAlt: "Power Factor Correction Units for energy efficiency"},
        {
          id: "p6",          name: "Pump Control Systems",          price: "Request Quote",          imageSrc: "http://img.b2bpic.net/free-photo/worker-uses-control-panel-factory_140725-7625.jpg",          imageAlt: "Smart Pump Control Systems"},
      ]}
      title="Our Products & Services"
      description="Discover our comprehensive range of electrical solutions, each designed for reliability and performance."
    />
  </div>

  <div id="faq" data-section="faq">
      <FaqBase
      textboxLayout="default"
      useInvertedBackground={false}
      faqs={[
        {
          id: "faq1",          title: "What areas do you serve?",          content: "We are based in Kariakoo, Dar es Salaam, and serve clients across the region for residential, commercial, and industrial needs."},
        {
          id: "faq2",          title: "Do you offer installation services?",          content: "While we primarily supply high-quality equipment, we can connect you with trusted partners for professional installation services."},
        {
          id: "faq3",          title: "How can I request a quote?",          content: "You can request a quote by contacting us directly via phone, WhatsApp, or email. Our team will assist you promptly."},
        {
          id: "faq4",          title: "What brands do you carry?",          content: "We stock a wide range of reputable brands known for their quality and reliability in the electrical supply industry."},
      ]}
      title="Frequently Asked Questions"
      description="Find quick answers to common questions about our electrical products and services."
      faqsAnimation="slide-up"
    />
  </div>

  <div id="footer" data-section="footer">
      <FooterSimple
      columns={[
        {
          title: "Company",          items: [
            {
              label: "Home",              href: "/"},
            {
              label: "About Us",              href: "/about"},
            {
              label: "Contact",              href: "/contact"},
          ],
        },
        {
          title: "Services",          items: [
            {
              label: "Our Products",              href: "/services"},
            {
              label: "LV Panels",              href: "/services#products-services"},
            {
              label: "Star Delta Starters",              href: "/services#products-services"},
          ],
        },
        {
          title: "Support",          items: [
            {
              label: "FAQ",              href: "/services#faq"},
            {
              label: "WhatsApp Support",              href: "https://wa.me/255657353510"},
            {
              label: "Privacy Policy",              href: "#"},
          ],
        },
      ]}
      bottomLeftText="© 2024 NANDAPE Electrical Supply. All rights reserved."
      bottomRightText="Built with Webild"
    />
  </div>
      </ReactLenis>
    </ThemeProvider>
  );
}