"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleCentered from "@/components/navbar/NavbarStyleCentered/NavbarStyleCentered";
import HeroSplitDoubleCarousel from "@/components/sections/hero/HeroSplitDoubleCarousel";
import TestimonialAboutCard from "@/components/sections/about/TestimonialAboutCard";
import FeatureCardTwentyThree from "@/components/sections/feature/FeatureCardTwentyThree";
import ProductCardOne from "@/components/sections/product/ProductCardOne";
import MetricCardOne from "@/components/sections/metrics/MetricCardOne";
import TestimonialCardTen from "@/components/sections/testimonial/TestimonialCardTen";
import ContactFaq from "@/components/sections/contact/ContactFaq";
import FooterBaseCard from "@/components/sections/footer/FooterBaseCard";
import { Award, CheckCircle, Phone, Quote, Shield, Wrench, Zap } from "lucide-react";

export default function LandingPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="icon-arrow"
      defaultTextAnimation="background-highlight"
      borderRadius="pill"
      contentWidth="smallMedium"
      sizing="largeSmallSizeMediumTitles"
      background="noise"
      cardStyle="layered-gradient"
      primaryButtonStyle="primary-glow"
      secondaryButtonStyle="radial-glow"
      headingFontWeight="semibold"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleCentered
          brandName="JD Excavations"
          navItems={[
            { name: "Home", id: "hero" },
            { name: "Services", id: "services" },
            { name: "Portfolio", id: "portfolio" },
            { name: "About", id: "about" },
            { name: "Contact", id: "contact" },
          ]}
          button={{
            text: "Get Your Free Quote",            href: "contact"}}
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroSplitDoubleCarousel
          title="Precision Earthworks Honest Service Built for Tasmania"
          description="JD Excavations delivers expert site preparation, land clearing, and landscaping across Southern Tasmania with the equipment, integrity, and local knowledge your project deserves. From residential to commercial, we get it done right—on time, every time."
          tag="Southern Tasmania's Trusted Partner"
          tagIcon={Zap}
          tagAnimation="slide-up"
          background={{ variant: "glowing-orb" }}
          leftCarouselItems={[
            {
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3APmj1IMIo3IerIGnGl5TsSUIN8/uploaded-1772502851197-5n0pegex.jpg?_wi=1",              imageAlt: "Excavator performing precise site preparation in Tasmanian landscape"},
            {
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3APmj1IMIo3IerIGnGl5TsSUIN8/uploaded-1772502851198-69hp2huw.jpg?_wi=1",              imageAlt: "Land clearing and drainage work on residential property"},
            {
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3APmj1IMIo3IerIGnGl5TsSUIN8/uploaded-1772502851198-an4mlge2.jpg?_wi=1",              imageAlt: "Professional earthmoving equipment at water management site"},
            {
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3APmj1IMIo3IerIGnGl5TsSUIN8/uploaded-1772502851198-n5ui0e7f.jpg?_wi=1",              imageAlt: "Fleet of excavators ready for deployment"},
          ]}
          rightCarouselItems={[
            {
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3APmj1IMIo3IerIGnGl5TsSUIN8/uploaded-1772502851198-n5ui0e7f.jpg?_wi=2",              imageAlt: "Multiple excavators and trucks on job site"},
            {
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3APmj1IMIo3IerIGnGl5TsSUIN8/uploaded-1772502851197-5n0pegex.jpg?_wi=2",              imageAlt: "Precision excavation work in mountain terrain"},
            {
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3APmj1IMIo3IerIGnGl5TsSUIN8/uploaded-1772502851198-an4mlge2.jpg?_wi=2",              imageAlt: "Drainage installation at rural property"},
            {
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3APmj1IMIo3IerIGnGl5TsSUIN8/uploaded-1772502851198-69hp2huw.jpg?_wi=2",              imageAlt: "Site preparation and trench work"},
          ]}
          buttons={[
            { text: "Get Your Free Quote", href: "contact" },
            { text: "View Our Services", href: "services" },
          ]}
          buttonAnimation="slide-up"
          carouselPosition="right"
        />
      </div>

      <div id="about" data-section="about">
        <TestimonialAboutCard
          tag="About JD Excavations"
          tagIcon={Award}
          tagAnimation="slide-up"
          title="Locally Trusted Excavation Expert Since Day One"
          description="JD and Team"
          subdescription="Serving Southern Tasmania with Integrity"
          icon={Shield}
          imageSrc="https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3APmj1IMIo3IerIGnGl5TsSUIN8/uploaded-1772502851197-5n0pegex.jpg?_wi=3"
          imageAlt="JD Excavations team with equipment"
          mediaAnimation="slide-up"
          useInvertedBackground={false}
        />
      </div>

      <div id="services" data-section="services">
        <FeatureCardTwentyThree
          title="Expert Services Built for Every Project Type"
          description="From residential property renovations to large-scale commercial developments, we deliver specialized earthworks solutions tailored to your exact needs."
          tag="Comprehensive Solutions"
          tagIcon={Wrench}
          tagAnimation="slide-up"
          textboxLayout="default"
          useInvertedBackground={true}
          animationType="slide-up"
          features={[
            {
              id: "1",              title: "Site Preparation & Land Clearing",              tags: ["Residential", "Commercial"],
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3APmj1IMIo3IerIGnGl5TsSUIN8/uploaded-1772502851198-69hp2huw.jpg?_wi=3",              imageAlt: "Site preparation work clearing land for new project"},
            {
              id: "2",              title: "Drainage Installation & Water Management",              tags: ["Agricultural", "Drainage"],
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3APmj1IMIo3IerIGnGl5TsSUIN8/uploaded-1772502851198-an4mlge2.jpg?_wi=3",              imageAlt: "Professional drainage system installation"},
            {
              id: "3",              title: "Precision Excavation & Earthmoving",              tags: ["Equipment", "Expertise"],
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3APmj1IMIo3IerIGnGl5TsSUIN8/uploaded-1772502851197-5n0pegex.jpg?_wi=4",              imageAlt: "Excavator performing precise earthmoving operations"},
            {
              id: "4",              title: "Road & Driveway Construction",              tags: ["Infrastructure", "Quality"],
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3APmj1IMIo3IerIGnGl5TsSUIN8/uploaded-1772502851198-n5ui0e7f.jpg?_wi=3",              imageAlt: "Road construction and preparation services"},
          ]}
        />
      </div>

      <div id="portfolio" data-section="portfolio">
        <ProductCardOne
          title="Recent Projects Showcasing Our Excellence"
          description="Professional excavation and earthworks completed across Southern Tasmania for homeowners, builders, and developers."
          tag="Proven Track Record"
          tagIcon={CheckCircle}
          tagAnimation="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
          animationType="slide-up"
          gridVariant="uniform-all-items-equal"
          products={[
            {
              id: "1",              name: "Residential Land Clearing",              price: "Completed",              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3APmj1IMIo3IerIGnGl5TsSUIN8/uploaded-1772502851198-69hp2huw.jpg?_wi=4",              imageAlt: "Completed residential land clearing project"},
            {
              id: "2",              name: "Drainage System Installation",              price: "Completed",              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3APmj1IMIo3IerIGnGl5TsSUIN8/uploaded-1772502851198-an4mlge2.jpg?_wi=4",              imageAlt: "Professional drainage installation work"},
            {
              id: "3",              name: "Commercial Site Preparation",              price: "Completed",              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3APmj1IMIo3IerIGnGl5TsSUIN8/uploaded-1772502851198-n5ui0e7f.jpg?_wi=4",              imageAlt: "Large scale commercial site preparation"},
          ]}
        />
      </div>

      <div id="metrics" data-section="metrics">
        <MetricCardOne
          title="Why Choose JD Excavations"
          description="Trusted expertise and results that speak for themselves across Southern Tasmania."
          tag="Our Commitment"
          tagIcon={Zap}
          tagAnimation="slide-up"
          textboxLayout="default"
          useInvertedBackground={true}
          animationType="slide-up"
          gridVariant="uniform-all-items-equal"
          metrics={[
            {
              id: "1",              value: "20+",              title: "Years",              description: "Professional excavation expertise in Tasmania",              icon: Award,
            },
            {
              id: "2",              value: "500+",              title: "Projects",              description: "Successfully completed across the region",              icon: CheckCircle,
            },
            {
              id: "3",              value: "100%",              title: "Insured",              description: "Fully certified and compliant operations",              icon: Shield,
            },
            {
              id: "4",              value: "24h",              title: "Response",              description: "Quick turnaround on quote requests",              icon: Zap,
            },
          ]}
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardTen
          title="Trusted by Local Professionals"
          description="Real testimonials from homeowners, builders, and developers across Southern Tasmania."
          tag="Client Testimonials"
          tagIcon={Quote}
          tagAnimation="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
          testimonials={[
            {
              id: "1",              title: "Exceptional Professionalism",              quote: "JD Excavations handled our site preparation flawlessly. Their team was punctual, professional, and left the site immaculate. Highly recommend for any excavation work.",              name: "Michael Thompson",              role: "Homeowner",              imageSrc: "http://img.b2bpic.net/free-photo/close-up-portrait-young-handsome-successful-man_1163-5475.jpg",              imageAlt: "Michael Thompson"},
            {
              id: "2",              title: "On-Time, Every Time",              quote: "As a builder managing multiple projects, reliability is critical. JD Excavations consistently delivers on schedule and within budget. They're our go-to partner.",              name: "Sarah Bennett",              role: "Project Manager, Southern Builders",              imageSrc: "http://img.b2bpic.net/free-photo/portrait-female-mechanic-repair-garage_107420-95937.jpg",              imageAlt: "Sarah Bennett"},
            {
              id: "3",              title: "Expert Local Knowledge",              quote: "Their understanding of Tasmanian terrain and drainage requirements is unmatched. They solved complex site challenges we'd been worried about.",              name: "James Robertson",              role: "Property Developer",              imageSrc: "http://img.b2bpic.net/free-photo/man-portrait-posing-loft-modern-space_158595-5365.jpg",              imageAlt: "James Robertson"},
            {
              id: "4",              title: "Professional Communication",              quote: "From the initial quote to project completion, communication was transparent and regular. No surprises, just solid professional service.",              name: "Emma Lawson",              role: "Estate Agent",              imageSrc: "http://img.b2bpic.net/free-photo/portrait-business-woman-office_1398-6.jpg",              imageAlt: "Emma Lawson"},
            {
              id: "5",              title: "Quality Work, Fair Pricing",              quote: "We compared quotes from several companies. JD Excavations offered the best value without compromising on quality or safety standards.",              name: "Robert Martin",              role: "Rural Property Owner",              imageSrc: "http://img.b2bpic.net/free-photo/portrait-young-man-wearing-hat-looking-camera-sitting-grass_23-2148203071.jpg",              imageAlt: "Robert Martin"},
            {
              id: "6",              title: "Safety First Always",              quote: "Their commitment to safety protocols and compliance is evident in every aspect of their work. Peace of mind comes standard.",              name: "Victoria Chen",              role: "Council Compliance Officer",              imageSrc: "http://img.b2bpic.net/free-photo/happy-professional_1098-12931.jpg",              imageAlt: "Victoria Chen"},
          ]}
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactFaq
          ctaTitle="Ready for Your Free Excavation Quote?"
          ctaDescription="Contact JD Excavations today. We'll assess your project requirements and provide a transparent, competitive quote within 24 hours."
          ctaButton={{
            text: "Request Free Quote",            href: "https://example.com/quote"}}
          ctaIcon={Phone}
          useInvertedBackground={true}
          animationType="slide-up"
          accordionAnimationType="smooth"
          faqs={[
            {
              id: "1",              title: "How quickly can you provide a quote?",              content: "We aim to provide detailed quotes within 24 hours of site assessment. For straightforward projects, we can often provide initial estimates on the same day."},
            {
              id: "2",              title: "Are you fully insured and certified?",              content: "Yes, JD Excavations is fully insured with comprehensive public liability and professional indemnity coverage. All operators hold current licenses and safety certifications."},
            {
              id: "3",              title: "What areas of Tasmania do you service?",              content: "We service all of Southern Tasmania, including Hobart, Launceston regions, and surrounding areas. We're happy to discuss projects outside our typical service area."},
            {
              id: "4",              title: "Do you handle environmental/drainage compliance?",              content: "Absolutely. We have expertise in council compliance requirements, environmental considerations, and drainage regulations specific to Tasmanian properties."},
            {
              id: "5",              title: "Can you work on residential properties?",              content: "Yes, we specialize in residential work including land clearing, site preparation, drainage, and landscaping for homeowners at all scales."},
            {
              id: "6",              title: "What's your typical project timeline?",              content: "Project timelines vary based on scope and site conditions. We'll provide a detailed schedule during the quote phase and keep you updated throughout."},
          ]}
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterBaseCard
          logoText="JD Excavations"
          columns={[
            {
              title: "Services",              items: [
                { label: "Site Preparation", href: "#services" },
                { label: "Land Clearing", href: "#services" },
                { label: "Drainage Systems", href: "#services" },
                { label: "Earthmoving", href: "#services" },
              ],
            },
            {
              title: "Company",              items: [
                { label: "About Us", href: "#about" },
                { label: "Portfolio", href: "#portfolio" },
                { label: "Contact", href: "#contact" },
                { label: "Testimonials", href: "#testimonials" },
              ],
            },
            {
              title: "Contact",              items: [
                { label: "Get a Free Quote", href: "#contact" },
                { label: "Support", href: "#" },
                { label: "Emergency Service", href: "#" },
                { label: "Team", href: "#about" },
              ],
            },
            {
              title: "Follow Us",              items: [
                { label: "Facebook", href: "https://facebook.com" },
                { label: "Instagram", href: "https://instagram.com" },
                { label: "LinkedIn", href: "https://linkedin.com" },
                { label: "YouTube", href: "https://youtube.com" },
              ],
            },
          ]}
          copyrightText="© 2025 JD Excavations | Southern Tasmania's Trusted Earthworks Partner"
        />
      </div>
    </ThemeProvider>
  );
}
