"use client";
import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import { Beer } from "lucide-react";
import NavbarLayoutFloatingInline from '@/components/navbar/NavbarLayoutFloatingInline';
import HeroSplitKpi from '@/components/sections/hero/HeroSplitKpi';
import TestimonialCardSix from '@/components/sections/testimonial/TestimonialCardSix';
import FooterBase from '@/components/sections/footer/FooterBase';
import Link from "next/link";

export default function HomePage() {
  return (
    <ThemeProvider
      defaultButtonVariant="bounce-effect"
      defaultTextAnimation="reveal-blur"
      borderRadius="soft"
      contentWidth="mediumLarge"
      sizing="largeSmallSizeLargeTitles"
      background="plain"
      cardStyle="gradient-mesh"
      primaryButtonStyle="double-inset"
      secondaryButtonStyle="radial-glow"
      headingFontWeight="normal"
    >
      <div id="nav" data-section="nav">
        <NavbarLayoutFloatingInline
          brandName="Local Brewery"
          navItems={[
            { name: "Home", id: "/" },
            { name: "Our Beers", id: "/products" },
            { name: "About", id: "/about" },
            { name: "Contact", id: "/contact" }
          ]}
          button={{
            text: "Visit Us",
            href: "/contact"
          }}
        />
      </div>

      <div id="hero" data-section="hero" className="mx-auto px-4 md:px-6">
        <HeroSplitKpi
          title="Craft Beer Crafted with Passion"
          description="Local brewery dedicated to brewing exceptional craft beers using the finest ingredients and time-honored techniques. Experience the taste of quality and tradition."
          tag="Premium Local Craft Brewery"
          tagIcon={Beer}
          imageSrc="https://img.b2bpic.net/free-photo/mid-section-bar-tender-filling-beer-from-bar-pump_107420-65345.jpg"
          imageAlt="Local brewery brewing equipment and atmosphere"
          imagePosition="right"
          enableKpiAnimation={true}
          kpis={[
            { value: "15+", label: "Signature Brews" },
            { value: "10k+", label: "Happy Customers" },
            { value: "5 Yrs", label: "Brewing Excellence" }
          ]}
          buttons={[
            { text: "Explore Our Beers", href: "/products" },
            { text: "Book a Tour", href: "/contact" }
          ]}
        />
      </div>

      <div id="testimonials" data-section="testimonials" className="mx-auto px-4 md:px-6">
        <TestimonialCardSix
          title="What Our Customers Say"
          description="Join thousands of craft beer enthusiasts who love our locally-brewed beers and community-focused brewery."
          tag="Customer Reviews"
          textboxLayout="default"
          useInvertedBackground="invertDefault"
          animationType="slide-up"
          speed={40}
          topMarqueeDirection="left"
          testimonials={[
            {
              id: "1",
              name: "Sarah Mitchell",
              handle: "@sarahbeerluver",
              testimonial: "Best local brewery I've ever visited! The Golden Hop IPA is absolutely incredible. Authentic craft beer made with real passion.",
              imageSrc: "https://img.b2bpic.net/free-photo/selfie-portrait-videocall_23-2149186122.jpg",
              imageAlt: "Sarah Mitchell"
            },
            {
              id: "2",
              name: "James Rodriguez",
              handle: "@craftbeerexplorer",
              testimonial: "Finally found a brewery that truly cares about quality and community. Every beer tastes amazing and the team is super friendly.",
              imageSrc: "https://img.b2bpic.net/free-photo/portrait-smiley-woman_23-2148827181.jpg",
              imageAlt: "James Rodriguez"
            },
            {
              id: "3",
              name: "Emily Chen",
              handle: "@hopheadlife",
              testimonial: "The brewery tour was fantastic! Learning about their brewing process and sustainable practices makes the beer taste even better.",
              imageSrc: "https://img.b2bpic.net/free-photo/front-view-smiley-woman-home_23-2150062545.jpg",
              imageAlt: "Emily Chen"
            },
            {
              id: "4",
              name: "Michael Thompson",
              handle: "@localbeeradvocate",
              testimonial: "Supporting local has never been easier with beers this good. Their commitment to the community is inspiring and genuine.",
              imageSrc: "https://img.b2bpic.net/free-photo/smiling-millennial-man-looking-camera-cafe-headshot-portrait_1163-5163.jpg",
              imageAlt: "Michael Thompson"
            },
            {
              id: "5",
              name: "Jessica Walsh",
              handle: "@craft_beverage_fan",
              testimonial: "Tried the Smooth Lager and I'm hooked! This is what craft beer should taste like - smooth, flavorful, and made with care.",
              imageSrc: "https://img.b2bpic.net/free-photo/smiling-young-handsome-guy-wearing-green-shirt_141793-122624.jpg",
              imageAlt: "Jessica Walsh"
            },
            {
              id: "6",
              name: "David Park",
              handle: "@breweryscene",
              testimonial: "The Rich Stout has become my go-to. Outstanding depth of flavor and I love that I'm supporting a local business.",
              imageSrc: "https://img.b2bpic.net/free-photo/close-up-young-person-barbeque_23-2149271990.jpg",
              imageAlt: "David Park"
            }
          ]}
        />
      </div>

      <FooterBase
        logoText="Local Brewery"
        copyrightText="© 2025 Local Brewery. All rights reserved."
        columns={[
          {
            title: "Product",
            items: [
              { label: "Our Beers", href: "/products" },
              { label: "Seasonal Releases", href: "/products" },
              { label: "Gift Sets", href: "/products" }
            ]
          },
          {
            title: "Company",
            items: [
              { label: "About Us", href: "/about" },
              { label: "Our Story", href: "/about" },
              { label: "Sustainability", href: "/about" },
              { label: "Careers", href: "/about" }
            ]
          },
          {
            title: "Support",
            items: [
              { label: "Contact Us", href: "/contact" },
              { label: "Brewery Tours", href: "/contact" },
              { label: "Events", href: "/contact" },
              { label: "FAQ", href: "/faq" }
            ]
          }
        ]}
      />
    </ThemeProvider>
  );
}