"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarLayoutFloatingInline from "@/components/navbar/NavbarLayoutFloatingInline";
import HeroSplitKpi from "@/components/sections/hero/HeroSplitKpi";
import TextAbout from "@/components/sections/about/TextAbout";
import FeatureCardSix from "@/components/sections/feature/FeatureCardSix";
import ProductCardOne from "@/components/sections/product/ProductCardOne";
import MetricCardTen from "@/components/sections/metrics/MetricCardTen";
import TestimonialCardThirteen from "@/components/sections/testimonial/TestimonialCardThirteen";
import ContactCTA from "@/components/sections/contact/ContactCTA";
import FooterLogoReveal from "@/components/sections/footer/FooterLogoReveal";
import { MapPin, Building2, Hammer, Images, Phone } from "lucide-react";

export default function LandingPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="text-shift"
      defaultTextAnimation="reveal-blur"
      borderRadius="soft"
      contentWidth="mediumLarge"
      sizing="medium"
      background="circleGradient"
      cardStyle="layered-gradient"
      primaryButtonStyle="flat"
      secondaryButtonStyle="radial-glow"
      headingFontWeight="medium"
    >
      <div id="nav" data-section="nav">
        <NavbarLayoutFloatingInline
          brandName="Concordia Building"
          navItems={[
            { name: "Services", id: "services" },
            { name: "Projects", id: "projects" },
            { name: "About", id: "about" },
            { name: "Contact", id: "contact" },
          ]}
          button={{
            text: "Get Quote",            href: "#contact"
          }}
          animateOnLoad={true}
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroSplitKpi
          title="Premium Building Solutions in Holly Springs"
          description="Concordia Building Company delivers exceptional residential and commercial construction with 20+ years of expertise. We transform your vision into quality structures built to last."
          background={{ variant: "animated-grid" }}
          kpis={[
            { value: "500+", label: "Projects Completed" },
            { value: "20+", label: "Years Experience" },
            { value: "98%", label: "Client Satisfaction" },
          ]}
          enableKpiAnimation={true}
          tag="Holly Springs, NC"
          tagIcon={MapPin}
          buttons={[
            { text: "Start Your Project", href: "#contact" },
            { text: "View Portfolio", href: "#projects" },
          ]}
          imageSrc="http://img.b2bpic.net/free-photo/engineer-two-workers-looking-camera_259150-57625.jpg"
          imageAlt="Modern construction site in Holly Springs"
          mediaAnimation="slide-up"
          imagePosition="right"
        />
      </div>

      <div id="about" data-section="about">
        <TextAbout
          tag="About Us"
          tagIcon={Building2}
          title="Building Trust Through Quality Craftsmanship Since 2004"
          useInvertedBackground={false}
          buttons={[
            { text: "Learn More", href: "#services" },
          ]}
        />
      </div>

      <div id="services" data-section="services">
        <FeatureCardSix
          title="Our Services"
          description="Comprehensive building solutions tailored to your needs"
          tag="What We Offer"
          tagIcon={Hammer}
          textboxLayout="default"
          useInvertedBackground={false}
          features={[
            {
              id: 1,
              title: "Residential Construction",              description: "Custom homes and residential projects built with precision and attention to detail. From single-family homes to multi-unit developments.",              imageSrc: "http://img.b2bpic.net/free-photo/view-modern-construction-site_23-2151317321.jpg",              imageAlt: "Residential construction project"
            },
            {
              id: 2,
              title: "Commercial Building",              description: "Professional commercial construction for offices, retail spaces, and industrial facilities. Meeting all compliance and timeline requirements.",              imageSrc: "http://img.b2bpic.net/free-photo/modern-mirror-building_1150-12657.jpg",              imageAlt: "Commercial building project"
            },
            {
              id: 3,
              title: "Renovations & Remodeling",              description: "Transform existing spaces with expert renovations. Kitchen remodels, bathroom updates, and complete home transformations.",              imageSrc: "http://img.b2bpic.net/free-photo/manual-worker-grinding-metal-steel-objects-workshop-with-tools_1163-3130.jpg",              imageAlt: "Home renovation project"
            },
          ]}
        />
      </div>

      <div id="projects" data-section="projects">
        <ProductCardOne
          title="Featured Projects"
          description="Showcase of our best work across residential and commercial sectors"
          tag="Portfolio"
          tagIcon={Images}
          textboxLayout="default"
          useInvertedBackground={false}
          animationType="slide-up"
          gridVariant="three-columns-all-equal-width"
          products={[
            {
              id: "1",              name: "Maple Ridge Residence",              price: "Custom Build",              imageSrc: "http://img.b2bpic.net/free-photo/modern-country-houses-construction_1385-18.jpg",              imageAlt: "Maple Ridge residential project"
            },
            {
              id: "2",              name: "Oak Valley Homes",              price: "Development",              imageSrc: "http://img.b2bpic.net/free-photo/frog-s-eye-view-architectural-twin-buildings-against-clear-blue-sky_181624-59777.jpg",              imageAlt: "Oak Valley homes project"
            },
            {
              id: "3",              name: "Commerce Park Plaza",              price: "Commercial",              imageSrc: "http://img.b2bpic.net/free-photo/modern-mirror-building_1150-12657.jpg",              imageAlt: "Commerce Park commercial project"
            },
          ]}
        />
      </div>

      <div id="metrics" data-section="metrics">
        <MetricCardTen
          title="Our Achievements"
          description="Proven track record of success and client satisfaction"
          tag="Milestones"
          textboxLayout="default"
          useInvertedBackground={false}
          animationType="slide-up"
          metrics={[
            {
              id: "1",              title: "Residential Projects",              subtitle: "Holly Springs and surrounding areas",              category: "Housing",              value: "350+"
            },
            {
              id: "2",              title: "Commercial Builds",              subtitle: "Office and retail developments",              category: "Commercial",              value: "150+"
            },
            {
              id: "3",              title: "Awards & Recognition",              subtitle: "Industry and client recognition",              category: "Excellence",              value: "25+"
            },
            {
              id: "4",              title: "Team Members",              subtitle: "Skilled professionals and craftspeople",              category: "Team",              value: "45+"
            },
          ]}
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardThirteen
          title="Client Testimonials"
          description="What our satisfied clients have to say about working with Concordia Building"
          tag="Reviews"
          textboxLayout="default"
          useInvertedBackground={false}
          showRating={true}
          animationType="slide-up"
          testimonials={[
            {
              id: "1",              name: "James Mitchell",              handle: "@jamesmitchell",              testimonial: "Concordia Building exceeded all our expectations. The team was professional, punctual, and delivered exactly what we envisioned. Our new home is perfect!",              rating: 5,
              imageSrc: "http://img.b2bpic.net/free-photo/close-up-portrait-young-handsome-successful-man_1163-5475.jpg",              imageAlt: "James Mitchell"
            },
            {
              id: "2",              name: "Sarah Chen",              handle: "@sarahchen_",              testimonial: "Outstanding quality and attention to detail. The renovation transformed our space beautifully. Highly recommend Concordia for any project.",              rating: 5,
              imageSrc: "http://img.b2bpic.net/free-photo/close-up-portrait-young-handsome-successful-man_1163-5475.jpg",              imageAlt: "Sarah Chen"
            },
            {
              id: "3",              name: "Michael Rodriguez",              handle: "@mrodriguez",              testimonial: "Professional team, fair pricing, and excellent communication throughout the entire process. Best decision we made for our commercial project.",              rating: 5,
              imageSrc: "http://img.b2bpic.net/free-photo/close-up-portrait-young-handsome-successful-man_1163-5475.jpg",              imageAlt: "Michael Rodriguez"
            },
            {
              id: "4",              name: "Emily Watson",              handle: "@emilywatson",              testimonial: "From initial consultation to final walkthrough, Concordia demonstrated expertise and dedication. Our office building is beautiful and functional.",              rating: 5,
              imageSrc: "http://img.b2bpic.net/free-photo/close-up-portrait-young-handsome-successful-man_1163-5475.jpg",              imageAlt: "Emily Watson"
            },
          ]}
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactCTA
          tag="Ready to Build?"
          tagIcon={Phone}
          title="Get Your Free Project Quote Today"
          description="Contact Concordia Building Company to discuss your construction project. Our team is ready to help bring your vision to life with quality craftsmanship and professional service."
          buttons={[
            { text: "Request Quote", href: "tel:+19198675309" },
            { text: "Email Us", href: "mailto:info@concordiabuilding.com" },
          ]}
          background={{ variant: "plain" }}
          useInvertedBackground={false}
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterLogoReveal
          logoText="Concordia Building"
          leftLink={{
            text: "Privacy Policy",            href: "#"
          }}
          rightLink={{
            text: "Terms of Service",            href: "#"
          }}
        />
      </div>
    </ThemeProvider>
  );
}
