"use client"

import NavbarStyleApple from '@/components/navbar/NavbarStyleApple/NavbarStyleApple';
import HeroSplit from '@/components/sections/hero/HeroSplit';
import InlineImageSplitTextAbout from '@/components/sections/about/InlineImageSplitTextAbout';
import FeatureCardOne from '@/components/sections/feature/FeatureCardOne';
import TestimonialCardFive from '@/components/sections/testimonial/TestimonialCardFive';
import ContactCTA from '@/components/sections/contact/ContactCTA';
import FooterSimple from '@/components/sections/footer/FooterSimple';
import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import { Coffee, MessageSquare } from "lucide-react";

export default function LandingPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="text-stagger"
      defaultTextAnimation="entrance-slide"
      borderRadius="pill"
      contentWidth="medium"
      sizing="largeSmall"
      background="floatingGradient"
      cardStyle="subtle-shadow"
      primaryButtonStyle="gradient"
      secondaryButtonStyle="layered"
      headingFontWeight="bold"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleApple
          brandName="Local Brew"
          navItems={[
            { name: "Home", id: "hero" },
            { name: "About", id: "about" },
            { name: "Products", id: "products" },
            { name: "Merch", id: "merch" },
            { name: "Contact", id: "contact" }
          ]}
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroSplit
          title="Craft Your Perfect Brew"
          description="Experience the rich flavors of our locally sourced coffee beans. Join us for a taste of community and quality."
          background={{ variant: "downward-rays-static" }}
          avatars={[
            { src: "https://images.unsplash.com/photo-1519681393784-d120267933ba?w=800&q=80", alt: "Coffee beans" },
            { src: "https://images.unsplash.com/photo-1519681393784-d120267933ba?w=800&q=80", alt: "Coffee cup" },
            { src: "https://images.unsplash.com/photo-1519681393784-d120267933ba?w=800&q=80", alt: "Coffee machine" }
          ]}
          avatarText="Crafted with care and passion"
          buttons={[
            { text: "Explore Our Menu", href: "products" },
            { text: "Visit Us Today", href: "contact" }
          ]}
          imageSrc="https://images.unsplash.com/photo-1519681393784-d120267933ba?w=800&q=80"
          imageAlt="Coffee beans and cup"
          imagePosition="left"
        />
      </div>

      <div id="about" data-section="about">
        <InlineImageSplitTextAbout
          heading={[
            { type: "text", content: "Crafted with passion in your" },
            { type: "image", src: "https://img.b2bpic.net/free-photo/cup-with-delicious-coffee-table-high-angle_23-2149703756.jpg", alt: "Local Brew Cafe Interior" },
            { type: "text", content: "neighborhood since 2015" }
          ]}
          buttons={[
            { text: "Our Story", href: "#" }
          ]}
          useInvertedBackground="invertDefault"
        />
      </div>

      <div id="features" data-section="features">
        <FeatureCardOne
          title="Why Choose Local Brew"
          description="Experience the difference quality, community, and passion make in every cup and every visit."
          tag="Our Values"
          tagIcon={Coffee}
          features={[
            {
              title: "Ethically Sourced Beans",              description: "We partner with sustainable farms to bring you the finest, responsibly-grown coffee from around the world.",              imageSrc: "https://img.b2bpic.net/free-photo/top-view-portafilter-with-roasted-coffee-beans_23-2148251595.jpg",              imageAlt: "Premium coffee beans"
            },
            {
              title: "Expert Baristas",              description: "Our trained team crafts each drink with precision and care, ensuring consistent excellence in every cup.",              imageSrc: "https://img.b2bpic.net/free-photo/front-view-still-life-hot-water-composition_23-2149055850.jpg",              imageAlt: "Perfect espresso shot"
            },
            {
              title: "Fresh Daily",              description: "All our pastries and food items are baked fresh every morning using premium ingredients.",              imageSrc: "https://img.b2bpic.net/free-photo/fresh-sweet-pastry-is-sprinkled-with-sugar-powder-wooden-surface_78826-2429.jpg",              imageAlt: "Fresh baked pastries"
            }
          ]}
          textboxLayout="default"
          gridVariant="three-columns-all-equal-width"
          animationType="slide-up"
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="cafe-features" data-section="cafe-features">
        <FeatureCardOne
          title="What Makes Us Special"
          description="More than coffee—it's where community comes together."
          tag="The Cafe Experience"
          features={[
            {
              title: "Community Hub",              description: "A welcoming space where locals gather, connect, and build lasting friendships over great coffee.",              imageSrc: "https://img.b2bpic.net/free-photo/close-up-people-eating-break-time_23-2149256934.jpg",              imageAlt: "Community gathering at cafe"
            },
            {
              title: "Curated Selection",              description: "Handpicked coffee blends, specialty drinks, and exclusive pastries you won't find anywhere else.",              imageSrc: "https://img.b2bpic.net/free-photo/fragrant-coffee-beans-beautiful-wooden-spoon-wood_169016-3924.jpg",              imageAlt: "Quality product selection"
            },
            {
              title: "Warm Ambiance",              description: "Cozy seating, soft lighting, and thoughtful decor create the perfect atmosphere to relax or work.",              imageSrc: "https://img.b2bpic.net/free-photo/parisian-coffee-shop-style-with-tasty-coffee-served-wooden-table-coffee-shop-design_482257-18283.jpg",              imageAlt: "Warm cafe ambiance"
            }
          ]}
          textboxLayout="default"
          gridVariant="three-columns-all-equal-width"
          animationType="slide-up"
          useInvertedBackground="invertDefault"
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardFive
          title="What Our Customers Say"
          description="Real stories from the people who make Local Brew their daily destination."
          tag="Testimonials"
          testimonials={[
            {
              id: "1",              name: "Sarah Martinez, Local Designer",              date: "Date: 15 November 2024",              title: "The best coffee spot in town!",              quote: "I've been coming to Local Brew for three years now. The consistency in quality and the genuine friendliness of the staff makes this my happy place. It's the perfect blend of great coffee and community.",              tag: "Regular Customer",              avatarSrc: "https://img.b2bpic.net/free-photo/young-businesswoman-portrait-office_1262-1506.jpg",              imageSrc: "https://img.b2bpic.net/free-photo/cup-with-delicious-coffee-table-high-angle_23-2149703756.jpg"
            },
            {
              id: "2",              name: "James Chen, Business Owner",              date: "Date: 8 November 2024",              title: "Perfect workspace atmosphere",              quote: "As someone who works remotely, Local Brew has become my unofficial office. Fast WiFi, comfortable seating, and excellent coffee make it ideal for productivity. Plus, everyone knows my name!",              tag: "Regular Customer",              avatarSrc: "https://img.b2bpic.net/free-photo/young-businessman-happy-expression_1194-1676.jpg",              imageSrc: "https://img.b2bpic.net/free-photo/parisian-coffee-shop-style-with-tasty-coffee-served-wooden-table-coffee-shop-design_482257-18283.jpg"
            },
            {
              id: "3",              name: "Emily Rodriguez, Artist",              date: "Date: 2 November 2024",              title: "Fueling creativity one cup at a time",              quote: "The vibrant community atmosphere here is incredible. I've met fellow artists, found collaborators, and discovered my favorite coffee blend all in one place. Local Brew is more than a cafe—it's a creative sanctuary.",              tag: "Regular Customer",              avatarSrc: "https://img.b2bpic.net/free-photo/portrait-smiley-business-woman_23-2148603029.jpg",              imageSrc: "https://img.b2bpic.net/free-photo/close-up-people-eating-break-time_23-2149256934.jpg"
            },
            {
              id: "4",              name: "Michael Thompson, Coffee Enthusiast",              date: "Date: 25 October 2024",              title: "Artisanal excellence every visit",              quote: "I'm particular about my coffee, and Local Brew never disappoints. The baristas take pride in their craft, and it shows. The pastries are absolutely divine too. Worth every visit.",              tag: "Loyal Customer",              avatarSrc: "https://img.b2bpic.net/free-photo/happy-business-woman-standing-outdoors_1262-20546.jpg",              imageSrc: "https://img.b2bpic.net/free-photo/front-view-still-life-hot-water-composition_23-2149055850.jpg"
            }
          ]}
          textboxLayout="default"
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactCTA
          tag="Get in Touch"
          tagIcon={MessageSquare}
          title="Ready to Visit Local Brew?"
          description="Join our community of coffee lovers. Stop by today for your favorite blend, or reach out with any questions. We can't wait to welcome you to our cafe family."
          buttons={[
            { text: "Visit Us", href: "#" },
            { text: "Order Online", href: "#" }
          ]}
          background={{ variant: "plain" }}
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterSimple
          columns={[
            {
              title: "Cafe",              items: [
                { label: "Menu", href: "#" },
                { label: "About", href: "#" },
                { label: "Locations", href: "#" }
              ]
            },
            {
              title: "Shop",              items: [
                { label: "Merchandise", href: "#" },
                { label: "Coffee Beans", href: "#" },
                { label: "Gift Cards", href: "#" }
              ]
            },
            {
              title: "Connect",              items: [
                { label: "Contact", href: "#" },
                { label: "Instagram", href: "#" },
                { label: "Newsletter", href: "#" }
              ]
            },
            {
              title: "Legal",              items: [
                { label: "Privacy", href: "#" },
                { label: "Terms", href: "#" }
              ]
            }
          ]}
          bottomLeftText="© 2025 Local Brew. All rights reserved."
          bottomRightText="Made with love for coffee lovers"
        />
      </div>
    </ThemeProvider>
  );
}