"use client";
import NavbarStyleCentered from '@/components/navbar/NavbarStyleCentered/NavbarStyleCentered';
import HeroOverlay from '@/components/sections/hero/HeroOverlay';
import MediaAbout from '@/components/sections/about/MediaAbout';
import FeatureHoverPattern from '@/components/sections/feature/featureHoverPattern/FeatureHoverPattern';
import ProductCardOne from '@/components/sections/product/ProductCardOne';
import MetricCardFourteen from '@/components/sections/metrics/MetricCardFourteen';
import SocialProofOne from '@/components/sections/socialProof/SocialProofOne';
import ContactSplit from '@/components/sections/contact/ContactSplit';
import FooterLogoReveal from '@/components/sections/footer/FooterLogoReveal';
import { ThemeProvider } from '@/providers/themeProvider/ThemeProvider';
import { Shield, Droplet, Leaf, Palette, HardHat, Sun, Hammer, Ruler, Sparkles, Paintbrush, Bolt, Utensils, SquareStack, Brush, Wind, Anchor, Award, ShoppingCart, Layers, Briefcase } from 'lucide-react';
import Link from 'next/link';

export default function HomePage() {
  return (
    <ThemeProvider
      defaultButtonVariant="expand-hover"
      defaultTextAnimation="background-highlight"
      borderRadius="rounded"
      contentWidth="mediumLarge"
      sizing="mediumLarge"
      background="blurBottom"
      cardStyle="outline"
      primaryButtonStyle="gradient"
      secondaryButtonStyle="layered"
      headingFontWeight="light"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleCentered
          brandName="Adirondack Peaks Furniture"
          logoSrc="https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=q3wgwc"
          logoAlt="Adirondack Peaks Furniture Logo"
          navItems={[
            { name: "Home", id: "/" },
            { name: "About Us", id: "/about" },
            { name: "Collections", id: "/collections" },
            { name: "Dealer Portal", id: "/dealer-portal" },
            { name: "Catalogs", id: "/catalogs" },
            { name: "Warranty", id: "/warranty" },
            { name: "Contact Us", id: "/contact" }
          ]}
          button={{
            text: "Become a Dealer",            href: "/dealer-portal"
          }}
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroOverlay
          title="Premium Amish-Made Outdoor Furniture"
          description="Experience the unmatched quality of Adirondack Peaks Furniture. Handcrafted in the USA for lasting beauty and comfort."
          tag="Wholesale Manufacturer"
          buttons={[
            { text: "Explore Collections", href: "/collections" },
            { text: "Become a Dealer", href: "/dealer-portal" }
          ]}
          imageSrc="http://img.b2bpic.net/free-photo/two-empty-chairs-wooden-pier-overlooking-mountains-sunset-light_169016-9949.jpg"
          imageAlt="adirondack chairs lake view sunset"
          textPosition="bottom"
        />
      </div>

      <div id="about" data-section="about">
        <MediaAbout
          title="Our Story: Quality, Craftsmanship, Legacy"
          description="Adirondack Peaks Furniture is a proud Upstate New York wholesale manufacturer and distributor of authentic Amish-made poly outdoor furniture. With a deep commitment to tradition and excellence, we bring you durable, beautiful pieces perfect for any outdoor setting."
          tag="About Us"
          imageSrc="http://img.b2bpic.net/free-photo/young-woman-crafting-wood_23-2148742361.jpg"
          imageAlt="amish craftsman building furniture"
          useInvertedBackground={true}
        />
      </div>

      <div id="features-poly-benefits" data-section="features-poly-benefits">
        <FeatureHoverPattern
          title="The Enduring Benefits of Poly Furniture"
          description="Discover why poly lumber is the superior choice for outdoor living, offering unparalleled durability and minimal upkeep."
          tag="Smart Investment"
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
          features={[
            { icon: Shield, title: "Unrivaled Durability", description: "Resistant to weather, rot, and insects, ensuring your furniture lasts for decades with minimal wear." },
            { icon: Droplet, title: "Low Maintenance", description: "Never needs painting, staining, or waterproofing. Simply clean with soap and water to keep it looking new." },
            { icon: Leaf, title: "Eco-Friendly", description: "Made from recycled plastics, diverting waste from landfills and contributing to a greener planet." },
            { icon: Palette, title: "Fade-Resistant Colors", description: "UV-stabilized pigments prevent fading, maintaining vibrant colors season after season." },
            { icon: HardHat, title: "Heavy-Duty Construction", description: "Built with robust materials and hardware for exceptional strength and stability." }
          ]}
        />
      </div>

      <div id="products-featured" data-section="products-featured">
        <ProductCardOne
          title="Explore Our Signature Collections"
          description="From classic Adirondack chairs to elegant dining sets, find the perfect pieces for every outdoor space."
          tag="Featured Products"
          gridVariant="two-columns-alternating-heights"
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground={true}
          products={[
            { id: "p1", name: "Adirondack Chairs", price: "Wholesale Pricing", imageSrc: "http://img.b2bpic.net/free-photo/outdoor-patio-garden-with-chairs-pillows_74190-10010.jpg", imageAlt: "adirondack chairs collection outdoor patio" },
            { id: "p2", name: "Dining Collections", price: "Wholesale Pricing", imageSrc: "http://img.b2bpic.net/free-photo/mid-century-modern-dining-room-with-wooden-furniture_23-2152001396.jpg", imageAlt: "outdoor dining set garden patio" },
            { id: "p3", name: "Gliders & Swings", price: "Wholesale Pricing", imageSrc: "http://img.b2bpic.net/free-photo/woman-talking-phone-hammock_23-2148155024.jpg", imageAlt: "poly lumber glider porch swing" },
            { id: "p4", name: "Porch Furniture", price: "Wholesale Pricing", imageSrc: "http://img.b2bpic.net/free-photo/young-attractive-woman-sitting-deck-chair-summer-fashion-outfit-white-dress-blue-cape-sunglasses-smiling-drinking-lemonade-stylish-accessories-relaxing-vacation_285396-31.jpg", imageAlt: "classic adirondack chair poly lumber green" },
            { id: "p5", name: "Fire Pit Seating", price: "Wholesale Pricing", imageSrc: "http://img.b2bpic.net/free-photo/family-taking-lunch-outside-caravan_23-2148659454.jpg", imageAlt: "large outdoor dining set poly lumber" },
            { id: "p6", name: "Pavilions & Pergolas", price: "Wholesale Pricing", imageSrc: "http://img.b2bpic.net/free-photo/couch-comfortable-loft-bright-sofa_1203-4576.jpg", imageAlt: "poly lumber porch glider two seater" }
          ]}
        />
      </div>

      <div id="metrics-craftsmanship" data-section="metrics-craftsmanship">
        <MetricCardFourteen
          title="Why Amish Craftsmanship Matters"
          tag="Heritage of Quality"
          metricsAnimation="slide-up"
          useInvertedBackground={false}
          metrics={[
            { id: "m1", value: "100%", description: "Amish Handcrafted in the USA" },
            { id: "m2", value: "20+", description: "Years of Durability Guarantee" },
            { id: "m3", value: "500+", description: "Satisfied Dealer Partners" }
          ]}
        />
      </div>

      <div id="social-proof" data-section="social-proof">
        <SocialProofOne
          title="Trusted by Leading Retailers & Hospitality"
          description="Our commitment to quality and service has earned the trust of partners across the Northeast. Join our growing network of satisfied dealers."
          tag="Our Partners"
          textboxLayout="default"
          useInvertedBackground={true}
          names={["Garden & Patio Co.", "Luxury Outdoor Living", "Resort & Hospitality Solutions", "Landscape Supply Pros", "The Patio Place", "Northeast Home & Garden", "Urban Oasis Retail", "Green Thumb Centers"]}
          buttons={[
            { text: "Hear from our Dealers", href: "/dealer-portal#testimonials" }
          ]}
        />
      </div>

      <div id="contact-home" data-section="contact-home">
        <ContactSplit
          tag="Partner with Us"
          title="Ready to Carry Adirondack Peaks Furniture?"
          description="Fill out the form below or contact us directly to learn more about becoming an authorized dealer. We look forward to growing together!"
          background={{ variant: "plain" }}
          useInvertedBackground={false}
          imageSrc="http://img.b2bpic.net/free-photo/woman-getting-her-driver-s-licence_23-2149891362.jpg"
          imageAlt="business handshake outdoor setting"
          mediaAnimation="slide-up"
          mediaPosition="left"
          inputPlaceholder="Enter your email for inquiries"
          buttonText="Send Inquiry"
          termsText="By sending an inquiry, you agree to our terms and conditions."
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterLogoReveal
          logoSrc="https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=q3wgwc"
          logoAlt="Adirondack Peaks Furniture Logo"
          logoText="Adirondack Peaks Furniture"
          leftLink={{ text: "Privacy Policy", href: "#" }}
          rightLink={{ text: "Terms of Service", href: "#" }}
        />
      </div>
    </ThemeProvider>
  );
}