"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleApple from "@/components/navbar/NavbarStyleApple/NavbarStyleApple";
import HeroCarouselLogo from "@/components/sections/hero/heroCarouselLogo/HeroCarouselLogo";
import TextAbout from "@/components/sections/about/TextAbout";
import FeatureCardSixteen from "@/components/sections/feature/FeatureCardSixteen";
import ProductCardOne from "@/components/sections/product/ProductCardOne";
import MetricCardTwo from "@/components/sections/metrics/MetricCardTwo";
import TestimonialCardFive from "@/components/sections/testimonial/TestimonialCardFive";
import FaqSplitText from "@/components/sections/faq/FaqSplitText";
import ContactSplit from "@/components/sections/contact/ContactSplit";
import FooterBaseCard from "@/components/sections/footer/FooterBaseCard";
import { CheckCircle, Phone, Sparkles, Star, Wrench, Zap } from "lucide-react";

export default function LandingPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="text-stagger"
      defaultTextAnimation="reveal-blur"
      borderRadius="soft"
      contentWidth="mediumSmall"
      sizing="largeSmall"
      background="aurora"
      cardStyle="subtle-shadow"
      primaryButtonStyle="gradient"
      secondaryButtonStyle="layered"
      headingFontWeight="normal"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleApple
          brandName="TECHNOCHAUF"
          navItems={[
            { name: "Services", id: "services" },
            { name: "About", id: "about" },
            { name: "Testimonials", id: "testimonials" },
            { name: "FAQ", id: "faq" },
            { name: "Contact", id: "contact" }
          ]}
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroCarouselLogo
          logoText="TECHNOCHAUF"
          description="Expert plumbing, heating, and technical services for residential and commercial properties across Rabat, Morocco. Trust our experienced team for professional installation, maintenance, and repairs."
          buttons={[
            { text: "Get Started", href: "#contact" },
            { text: "Learn More", href: "#services" }
          ]}
          slides={[
            {
              imageSrc: "http://img.b2bpic.net/free-photo/woman-calling-plumber-solve-kitchen-problems_23-2150990674.jpg",              imageAlt: "Professional plumbing and heating installation"
            }
          ]}
          autoplayDelay={5000}
          showDimOverlay={true}
          ariaLabel="TECHNOCHAUF hero section"
        />
      </div>

      <div id="about" data-section="about">
        <TextAbout
          tag="About TECHNOCHAUF"
          tagIcon={Wrench}
          tagAnimation="slide-up"
          title="Leading Technical Services Provider in Rabat"
          useInvertedBackground={false}
          buttons={[
            { text: "Our Services", href: "#services" }
          ]}
          buttonAnimation="slide-up"
        />
      </div>

      <div id="services" data-section="services">
        <FeatureCardSixteen
          tag="Our Services"
          tagIcon={Zap}
          tagAnimation="slide-up"
          title="Comprehensive Technical Solutions"
          description="We provide a complete range of professional services tailored to meet the needs of homeowners, construction companies, and property developers. From plumbing systems to heating installation, we deliver excellence with every project."
          textboxLayout="split"
          useInvertedBackground={true}
          animationType="slide-up"
          negativeCard={{
            items: [
              "Generic contractors",              "Unreliable scheduling",              "Poor quality materials",              "Lack of expertise",              "No guarantees"
            ]
          }}
          positiveCard={{
            items: [
              "Certified technicians",              "Professional scheduling",              "Premium materials",              "Proven expertise",              "Full warranties"
            ]
          }}
          buttons={[
            { text: "Contact Us", href: "#contact" }
          ]}
          buttonAnimation="slide-up"
        />
      </div>

      <div id="products" data-section="products">
        <ProductCardOne
          title="Our Service Specializations"
          description="TECHNOCHAUF specializes in multiple technical disciplines. Each service is backed by years of expertise and a commitment to quality workmanship."
          tag="Services"
          tagIcon={CheckCircle}
          tagAnimation="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
          gridVariant="three-columns-all-equal-width"
          animationType="slide-up"
          products={[
            {
              id: "plumbing",              name: "Plumbing Systems",              price: "Expert Installation & Repair",              imageSrc: "http://img.b2bpic.net/free-photo/woman-calling-plumber-solve-kitchen-problems_23-2150990676.jpg",              imageAlt: "Professional plumbing services"
            },
            {
              id: "heating",              name: "Central Heating",              price: "Complete System Solutions",              imageSrc: "http://img.b2bpic.net/free-photo/worker-repairing-water-heater_23-2149334231.jpg",              imageAlt: "Heating system installation"
            },
            {
              id: "pool",              name: "Pool Systems",              price: "Maintenance & Installation",              imageSrc: "http://img.b2bpic.net/free-photo/plumbing-professional-doing-his-job_23-2150721549.jpg",              imageAlt: "Swimming pool technical services"
            },
            {
              id: "gas",              name: "Gas Installation",              price: "Safe & Certified Work",              imageSrc: "http://img.b2bpic.net/free-photo/side-view-travelers-filling-documents_23-2149986622.jpg",              imageAlt: "Professional gas installation"
            },
            {
              id: "water",              name: "Water Systems",              price: "Piping & Treatment",              imageSrc: "http://img.b2bpic.net/free-vector/plumbing-banners-set_1284-7607.jpg",              imageAlt: "Water system solutions"
            },
            {
              id: "general",              name: "General Maintenance",              price: "Building & Commercial",              imageSrc: "http://img.b2bpic.net/free-photo/professional-overalls-with-electrician-s-tool-white-wall-background-home-repair-electrical-installation-concept_169016-7332.jpg",              imageAlt: "General technical maintenance"
            }
          ]}
          buttons={[
            { text: "Request Quote", href: "#contact" }
          ]}
          buttonAnimation="slide-up"
        />
      </div>

      <div id="metrics" data-section="metrics">
        <MetricCardTwo
          title="Proven Track Record"
          description="TECHNOCHAUF has established itself as a trusted partner for technical services across Morocco. Our metrics reflect our commitment to excellence and customer satisfaction."
          tag="Our Impact"
          tagIcon={Sparkles}
          tagAnimation="slide-up"
          textboxLayout="default"
          useInvertedBackground={true}
          gridVariant="uniform-all-items-equal"
          animationType="scale-rotate"
          metrics={[
            {
              id: "projects",              value: "500+",              description: "Successful Projects Completed"
            },
            {
              id: "clients",              value: "98%",              description: "Client Satisfaction Rate"
            },
            {
              id: "experience",              value: "15+",              description: "Years of Industry Experience"
            },
            {
              id: "team",              value: "25+",              description: "Certified Technicians"
            }
          ]}
          buttons={[
            { text: "Work With Us", href: "#contact" }
          ]}
          buttonAnimation="slide-up"
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardFive
          title="What Our Clients Say"
          description="Hear from satisfied homeowners, construction companies, and property developers who have trusted TECHNOCHAUF with their technical service needs."
          tag="Client Success"
          tagIcon={Star}
          tagAnimation="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
          testimonials={[
            {
              id: "1",              name: "Ahmed Hassan",              date: "January 2024",              title: "Construction Manager",              quote: "TECHNOCHAUF completed our entire building's plumbing and heating system on schedule and within budget. Their team is professional and highly skilled. Highly recommended!",              tag: "Residential Project",              avatarSrc: "http://img.b2bpic.net/free-photo/friendly-successful-business-woman-posing-with-arms-crossed_74855-2813.jpg",              avatarAlt: "Ahmed Hassan"
            },
            {
              id: "2",              name: "Fatima Bennani",              date: "December 2023",              title: "Property Developer",              quote: "We've partnered with TECHNOCHAUF on multiple commercial properties. Their reliability and attention to detail are unmatched in Rabat.",              tag: "Commercial",              avatarSrc: "http://img.b2bpic.net/free-photo/modern-woman-taking-selfie_23-2148020565.jpg",              avatarAlt: "Fatima Bennani"
            },
            {
              id: "3",              name: "Mohamed Alaoui",              date: "November 2023",              title: "Building Contractor",              quote: "Exceptional service from start to finish. TECHNOCHAUF handled our gas installation and central heating system with utmost professionalism.",              tag: "Gas & Heating",              avatarSrc: "http://img.b2bpic.net/free-photo/serious-senior-business-woman-office-desk_1262-3824.jpg",              avatarAlt: "Mohamed Alaoui"
            },
            {
              id: "4",              name: "Laila Moroccan",              date: "October 2023",              title: "Homeowner",              quote: "Our swimming pool maintenance is now handled by TECHNOCHAUF. Their expertise ensures our system runs perfectly year-round.",              tag: "Pool Services",              avatarSrc: "http://img.b2bpic.net/free-photo/medium-shot-smiley-woman-posing_23-2149442331.jpg",              avatarAlt: "Laila Moroccan"
            },
            {
              id: "5",              name: "Hassan Bennani",              date: "September 2023",              title: "Real Estate Investor",              quote: "TECHNOCHAUF is our go-to partner for all technical services. Their response time and quality of work are consistently excellent.",              tag: "Real Estate",              avatarSrc: "http://img.b2bpic.net/free-photo/close-up-portrait-engineer-talking-phone_23-2148233674.jpg",              avatarAlt: "Hassan Bennani"
            },
            {
              id: "6",              name: "Noor Kaddah",              date: "August 2023",              title: "Interior Designer",              quote: "I've recommended TECHNOCHAUF to all my clients. Their coordination with design work is seamless, and they treat every project with care.",              tag: "Design Collaboration",              avatarSrc: "http://img.b2bpic.net/free-photo/confident-blonde-young-businesswoman-standing-against-gray-background_23-2148029507.jpg",              avatarAlt: "Noor Kaddah"
            }
          ]}
          buttons={[
            { text: "Get Your Free Quote", href: "#contact" }
          ]}
          buttonAnimation="slide-up"
        />
      </div>

      <div id="faq" data-section="faq">
        <FaqSplitText
          sideTitle="Frequently Asked Questions"
          sideDescription="Get answers to common questions about our services, pricing, and process."
          textPosition="left"
          useInvertedBackground={true}
          faqsAnimation="slide-up"
          faqs={[
            {
              id: "1",              title: "How quickly can TECHNOCHAUF respond to emergency calls?",              content: "We offer 24/7 emergency service. Most emergency calls receive a technician response within 2-4 hours in Rabat. For urgent situations, we prioritize dispatch accordingly."
            },
            {
              id: "2",              title: "Do you provide warranties on your work?",              content: "Yes, all our services come with comprehensive warranties. Most installations include a 2-year warranty on labor and materials, with extended options available."
            },
            {
              id: "3",              title: "What areas in Morocco does TECHNOCHAUF serve?",              content: "We are based in Rabat and primarily serve the greater Rabat-Salé-Kénitra region. We can arrange services for projects in other areas with advance scheduling."
            },
            {
              id: "4",              title: "How do I request a quote for my project?",              content: "Contact us through our website, phone, or email with details about your project. Our team will schedule a site visit to assess the work and provide a detailed, obligation-free quote."
            },
            {
              id: "5",              title: "Are your technicians certified and insured?",              content: "Absolutely. All our technicians are certified professionals with proper licensing. We carry full liability insurance to protect both our team and your property."
            },
            {
              id: "6",              title: "Can you work with existing contractors on my project?",              content: "Yes, we frequently collaborate with architects, contractors, and builders. We're experienced in coordinating with other trades to ensure seamless project execution."
            }
          ]}
          buttons={[
            { text: "Contact Us", href: "#contact" }
          ]}
          buttonAnimation="slide-up"
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactSplit
          tag="Ready to Get Started?"
          title="Contact TECHNOCHAUF Today"
          description="Reach out to our team for a consultation, quote, or emergency service. We're here to help with all your technical service needs in Rabat."
          tagIcon={Phone}
          tagAnimation="slide-up"
          background={{ variant: "gradient-bars" }}
          useInvertedBackground={false}
          mediaAnimation="slide-up"
          mediaPosition="right"
          inputPlaceholder="Enter your email or phone number"
          buttonText="Request Service"
          termsText="By submitting, you agree to be contacted by TECHNOCHAUF regarding your service request."
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterBaseCard
          logoText="TECHNOCHAUF"
          copyrightText="© 2024 TECHNOCHAUF. All rights reserved. Professional Technical Services, Rabat, Morocco."
          columns={[
            {
              title: "Services",              items: [
                { label: "Plumbing", href: "#services" },
                { label: "Heating Systems", href: "#services" },
                { label: "Pool Systems", href: "#services" },
                { label: "Gas Installation", href: "#services" }
              ]
            },
            {
              title: "Company",              items: [
                { label: "About Us", href: "#about" },
                { label: "Our Team", href: "#testimonials" },
                { label: "FAQ", href: "#faq" },
                { label: "Contact", href: "#contact" }
              ]
            },
            {
              title: "Contact Info",              items: [
                { label: "Phone: +212 5 37 XX XX XX", href: "#" },
                { label: "Email: info@technochauf.ma", href: "mailto:info@technochauf.ma" },
                { label: "Rabat, Morocco", href: "#" },
                { label: "Emergency: 24/7 Available", href: "#" }
              ]
            },
            {
              title: "Legal",              items: [
                { label: "Privacy Policy", href: "#" },
                { label: "Terms of Service", href: "#" },
                { label: "Warranty Info", href: "#" }
              ]
            }
          ]}
        />
      </div>
    </ThemeProvider>
  );
}
