"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import ReactLenis from "lenis/react";
import FeatureCardNineteen from '@/components/sections/feature/FeatureCardNineteen';
import FeatureCardTen from '@/components/sections/feature/FeatureCardTen';
import FooterBase from '@/components/sections/footer/FooterBase';
import MetricCardOne from '@/components/sections/metrics/MetricCardOne';
import NavbarStyleApple from '@/components/navbar/NavbarStyleApple/NavbarStyleApple';
import TestimonialCardTwo from '@/components/sections/testimonial/TestimonialCardTwo';
import { Award, CheckCircle, FileText, Palette, Smile, Hammer, CalendarCheck, LayoutTemplate, HardHat, Hourglass } from "lucide-react";

export default function LandingPage() {
  return (
    <ThemeProvider
        defaultButtonVariant="text-shift"
        defaultTextAnimation="background-highlight"
        borderRadius="rounded"
        contentWidth="compact"
        sizing="medium"
        background="grid"
        cardStyle="gradient-bordered"
        primaryButtonStyle="double-inset"
        secondaryButtonStyle="layered"
        headingFontWeight="bold"
    >
      <ReactLenis root>
  <div id="nav" data-section="nav">
      <NavbarStyleApple
      navItems={[
        {
          name: "Home",          id: "home"},
        {
          name: "Services",          id: "services"},
        {
          name: "Products",          id: "products"},
        {
          name: "Testimonials",          id: "testimonials"},
        {
          name: "FAQ",          id: "faq"},
        {
          name: "Contact",          id: "contact"},
      ]}
      brandName="Rebuild Texas"
    />
  </div>

  <div id="services" data-section="services">
      <FeatureCardNineteen
      textboxLayout="default"
      useInvertedBackground={false}
      features={[
        {
          id: 1,
          tag: "Roofing",          title: "Premium Roof Replacement",          subtitle: "Durable solutions for lasting protection.",          description: "Upgrade your home with a high-quality new roof. We offer a variety of materials including asphalt, metal, and tile, ensuring superior protection and enhanced curb appeal.",          imageSrc: "https://pixabay.com/get/g6f30f4dc5baa42e9366a28bbea0234a9227d04545c5aca5d89a17c234945c97c5576ae1ed555a204a7dd7b60e0b451092bcfd18cd7274d9758bf236a57279145_1280.jpg",          imageAlt: "new roof installation residential home",          buttons: [
            {
              text: "Learn More",              href: "#"},
          ],
        },
        {
          id: 2,
          tag: "Restoration",          title: "Expert Storm Damage Repair",          subtitle: "Rapid response, stress-free claims.",          description: "Texas weather can be harsh. Our specialists provide swift, comprehensive repair services for hail, wind, and storm damage, guiding you through insurance claims with ease.",          imageSrc: "https://pixabay.com/get/gf8976c0b69d4043804eebfe9239b2d96aa854b27c0443518c33ce2d8bca5704a94165ffad977630a83d049ba4db633042c90e2e69f945e47fa2ba501505e5_1280.jpg",          imageAlt: "storm damaged roof repair inspection",          buttons: [
            {
              text: "Get Help Now",              href: "#"},
          ],
        },
        {
          id: 3,
          tag: "Windows",          title: "Energy-Efficient Window Installation",          subtitle: "Enhance comfort and reduce costs.",          description: "Transform your home with new windows that offer superior insulation, noise reduction, and modern aesthetics. Choose from a wide selection of styles and materials.",          imageSrc: "https://pixabay.com/get/g463625ceffe5d2f4604e7b457ca0b27e50cc2d656ff2b9e78da36d8eabbea02dcb8d3fdc0a31f0b3f90f222df919a228c8c0138419a2e58552129d75d9d205c4_1280.jpg",          imageAlt: "new window installation home exterior",          buttons: [
            {
              text: "Explore Options",              href: "#"},
          ],
        },
        {
          id: 4,
          tag: "Gutters",          title: "Seamless Gutter Systems",          subtitle: "Protecting your home from the ground up.",          description: "Effective gutter systems are crucial for water management. We install durable, seamless gutters that protect your foundation, landscaping, and exterior from water damage.",          imageSrc: "https://pixabay.com/get/g53b18cb7117c4c26e1d20dcb262834c7dcbbd446b120bc7555f010ebce6e1c65aca9561fcc23c5d91c374eb801e04469964d2d3fb52961d687af71101381d53c_1280.jpg",          imageAlt: "modern house with new gutters",          buttons: [
            {
              text: "View Details",              href: "#"},
          ],
        },
      ]}
      title="Our Comprehensive Exterior Solutions"
      description="From expert roof replacements to energy-efficient window installations, Rebuild Texas offers a full spectrum of services designed to enhance your home's durability, beauty, and value."
      tag="Services"
      tagIcon={Hammer}
    />
  </div>

  <div id="our-process" data-section="our-process">
      <FeatureCardTen
      animationType="slide-up"
      textboxLayout="default"
      useInvertedBackground={false}
      features={[
        {
          id: "1",          title: "Initial Consultation & Estimate",          description: "We begin with a thorough inspection and a detailed, no-obligation estimate tailored to your specific needs and budget.",          media: {
            imageSrc: "https://pixabay.com/get/ga45c6bc2ac35131f2b4e7c956e864a2fde35f37498afddfbe3fd11cb3ecd7c85c2ef215779c3742d41e222d5f1d204e52b161d18d3e864b3d61115e5717a3e69_1280.jpg",            imageAlt: "handshake agreement on blueprints"},
          items: [
            {
              icon: CalendarCheck,
              text: "Schedule a visit"},
            {
              icon: FileText,
              text: "Detailed project scope"},
          ],
          reverse: false,
        },
        {
          id: "2",          title: "Material & Design Selection",          description: "Choose from our extensive range of premium materials and design options with expert guidance to match your home's aesthetic.",          media: {
            imageSrc: "https://pixabay.com/get/gdde4734a366aa38609b15feb25e8abf7391aa5972d0158258cd95fc5aaf1d9f29889d62c22b4e89512cf978587341026fb0115030e622812bc25a3bbe41f31e4_1280.jpg",            imageAlt: "premium asphalt shingles texture"},
          items: [
            {
              icon: Palette,
              text: "Material samples"},
            {
              icon: LayoutTemplate,
              text: "Design mock-ups"},
          ],
          reverse: true,
        },
        {
          id: "3",          title: "Professional Installation",          description: "Our certified craftsmen execute your project with precision, efficiency, and adherence to the highest industry standards.",          media: {
            imageSrc: "https://pixabay.com/get/g6f30f4dc5baa42e9366a28bbea0234a9227d04545c5aca5d89a17c234945c97c5576ae1ed555a204a7dd7b60e0b451092bcfd18cd7274d9758bf236a57279145_1280.jpg",            imageAlt: "new roof installation residential home"},
          items: [
            {
              icon: HardHat,
              text: "Experienced crew"},
            {
              icon: Hammer,
              text: "Quality workmanship"},
          ],
          reverse: false,
        },
        {
          id: "4",          title: "Final Inspection & Warranty",          description: "We ensure your complete satisfaction with a final walk-through and provide robust warranties for peace of mind.",          media: {
            imageSrc: "https://pixabay.com/get/g231120b758f139e5ed4c9e18f113994341747df01dd8190fcb1cff349ff73e491105b8e07df2d51f9244b5142f622ee4b777f09705dee791f47aa1c393cb7474_1280.jpg",            imageAlt: "modern house exterior clean lines"},
          items: [
            {
              icon: CheckCircle,
              text: "Quality assurance"},
            {
              icon: Award,
              text: "Comprehensive warranty"},
          ],
          reverse: true,
        },
      ]}
      title="Our Streamlined Process"
      description="We make your home exterior project smooth and stress-free, from initial consultation to final inspection. Our transparent approach keeps you informed every step of the way."
      tag="How We Work"
    />
  </div>

  <div id="service-metrics" data-section="service-metrics">
      <MetricCardOne
      textboxLayout="default"
      gridVariant="uniform-all-items-equal"
      useInvertedBackground={false}
      animationType="slide-up"
      metrics={[
        {
          id: "1",          value: "15+",          title: "Years of Experience",          description: "Serving Texas homeowners with unparalleled expertise since 2008.",          icon: Hourglass,
        },
        {
          id: "2",          value: "99%",          title: "Customer Satisfaction",          description: "Our clients consistently rave about our service and craftsmanship.",          icon: Smile,
        },
        {
          id: "3",          value: "A+",          title: "BBB Rating",          description: "Proudly maintaining a top rating with the Better Business Bureau.",          icon: CheckCircle,
        },
      ]}
      title="Delivering Excellence Across Texas"
      description="Our commitment to quality and customer satisfaction is reflected in every project we undertake, ensuring lasting value and peace of mind."
      tag="Our Impact"
    />
  </div>

  <div id="service-testimonials" data-section="service-testimonials">
      <TestimonialCardTwo
      animationType="slide-up"
      textboxLayout="default"
      useInvertedBackground={false}
      testimonials={[
        {
          id: "1",          name: "Sarah J.",          role: "Austin Homeowner",          testimonial: "Rebuild Texas replaced our entire roof after a hailstorm. Their team was incredibly professional, efficient, and made the insurance process so simple. The new roof looks fantastic!",          imageSrc: "https://pixabay.com/get/g752b05ebad4baaeb423e26b55b5716ad1b2b2180528f4384d0a25f0326d07895df57334cd1892b006464d553f97a1145a7e1d78aa537b48a2166b478edc9045f_1280.jpg",          imageAlt: "happy homeowner portrait smiling"},
        {
          id: "2",          name: "Michael D.",          role: "Dallas Resident",          testimonial: "The window installation crew was amazing! They were quick, clean, and the new energy-efficient windows have made a huge difference in our home's comfort and utility bills.",          imageSrc: "https://pixabay.com/get/gd1c7060e93b37cccea3966de0d57b5e72faf21b4a4bda33826d7e4b76b56977fffb0e12076b756c1ab4a88931a32209c0548407ec8d068c3186a8c372e33a1d1_1280.jpg",          imageAlt: "content man smiling portrait"},
        {
          id: "3",          name: "Emily R.",          role: "Houston Property Owner",          testimonial: "After hurricane damage, Rebuild Texas was a godsend. They handled everything from start to finish, and their communication was excellent. Highly recommend!",          imageSrc: "https://pixabay.com/get/ge6b1e952018a07dda16ad1b27b696107e4310f362922c44b104e4554d190eff37544520d5cb75b85b1a9dbc2760cbce6579e4b7353c86d489d20e85b023d1b09_1280.jpg",          imageAlt: "smiling woman homeowner professional"},
        {
          id: "4",          name: "David W.",          role: "San Antonio Investor",          testimonial: "I've used Rebuild Texas for multiple properties. Their consistency in quality and fair pricing keeps me coming back. Always a smooth experience.",          imageSrc: "https://pixabay.com/get/gabd785e21850575bbc01346aeb97384ab29c21dc420853d72d03cb58bad9a460046ec82be1d13a8d1efa9de5c975f51ccd13678b2fe6f639781f7c5f32670a8b_1280.jpg",          imageAlt: "professional man smiling headshot"},
      ]}
      title="Hear From Our Happy Customers"
      description="Trusted by homeowners across Texas for superior craftsmanship and reliable service. Your satisfaction is our priority."
      tag="Client Stories"
    />
  </div>

  <div id="footer" data-section="footer">
      <FooterBase
      columns={[
        {
          title: "Services",          items: [
            {
              label: "Roof Replacement",              href: "/services#roofing"},
            {
              label: "Storm Damage Repair",              href: "/services#storm-damage"},
            {
              label: "Window Installation",              href: "/services#windows"},
            {
              label: "Gutter Systems",              href: "/services#gutters"},
          ],
        },
        {
          title: "Company",          items: [
            {
              label: "About Us",              href: "/about"},
            {
              label: "Contact",              href: "/contact"},
            {
              label: "Careers",              href: "#careers"},
          ],
        },
        {
          title: "Resources",          items: [
            {
              label: "Blog",              href: "#blog"},
            {
              label: "FAQs",              href: "/contact#faq"},
            {
              label: "Client Portal",              href: "#portal"},
          ],
        },
      ]}
      copyrightText="© 2024 Rebuild Texas Roofing & Windows. All rights reserved."
    />
  </div>
      </ReactLenis>
    </ThemeProvider>
  );
}
