"use client"
import NavbarStyleCentered from '@/components/navbar/NavbarStyleCentered/NavbarStyleCentered';
import MediaSplitTabsAbout from '@/components/sections/about/MediaSplitTabsAbout';
import FeatureBento from '@/components/sections/feature/FeatureBento';
import ProductCardFour from '@/components/sections/product/ProductCardFour';
import TestimonialCardSix from '@/components/sections/testimonial/TestimonialCardSix';
import ContactText from '@/components/sections/contact/ContactText';
import FooterLogoReveal from '@/components/sections/footer/FooterLogoReveal';
import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import { Award, Coffee, Flame, Heart, Leaf, Sparkles, Star, Wind, Zap } from "lucide-react";

export default function LandingPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="hover-magnetic"
      defaultTextAnimation="entrance-slide"
      borderRadius="sharp"
      contentWidth="compact"
      sizing="largeSmallSizeLargeTitles"
      background="noiseDiagonalGradient"
      cardStyle="layered-gradient"
      primaryButtonStyle="diagonal-gradient"
      secondaryButtonStyle="radial-glow"
      headingFontWeight="normal"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleCentered 
          brandName="Brew Haven"
          navItems={[
            { name: "Home", id: "hero" },
            { name: "About", id: "about" },
            { name: "Products", id: "products" },
            { name: "Menu", id: "specialty" },
            { name: "Contact", id: "contact" }
          ]}
          button={{
            text: "Order Now",            href: "products"
          }}
        />
      </div>

      <div id="about" data-section="about">
        <MediaSplitTabsAbout 
          title="Our Story"
          description="Brew Haven was born from a passion for exceptional coffee and meaningful connections."
          tabs={[
            {
              id: "craft",              label: "Our Craft",              description: "We source only the finest single-origin and specialty-blend beans from sustainable farms worldwide. Every roast is handled with precision to highlight unique flavor profiles and create memorable moments in every cup."
            },
            {
              id: "community",              label: "Community First",              description: "More than a coffee shop, Brew Haven is a gathering place for creatives, professionals, and coffee enthusiasts. We host open mics, workshops, and build lasting relationships with our neighborhood."
            },
            {
              id: "sustainability",              label: "Sustainability",              description: "Environmental responsibility guides every decision we make. From eco-friendly packaging to carbon-neutral delivery, we're committed to preserving the planet for future generations of coffee lovers."
            }
          ]}
          imageSrc="https://img.b2bpic.net/free-photo/young-barista-eyeglasses-cap-standing-bar-counter-preparing-pour-coffee-while-working-cafe_574295-3460.jpg"
          imageAlt="Expert barista crafting specialty coffee"
          mediaAnimation="blur-reveal"
          imagePosition="right"
          useInvertedBackground={false}
        />
      </div>

      <div id="products" data-section="products">
        <ProductCardFour 
          title="Featured Beverages"
          description="Discover our signature drinks crafted with precision and passion"
          tag="Bestsellers"
          tagIcon={Star}
          tagAnimation="slide-up"
          textboxLayout="default"
          gridVariant="uniform-all-items-equal"
          animationType="slide-up"
          useInvertedBackground={true}
          carouselMode="buttons"
          products={[
            {
              id: "1",              name: "Single Origin Espresso",              price: "$5.00",              variant: "Dark Roast  3 Origins",              imageSrc: "https://img.b2bpic.net/free-photo/cappuccino-latte-with-frothy-foam-with-cookie-wooden-table_23-2147898245.jpg",              imageAlt: "Premium espresso shot",              isFavorited: false
            },
            {
              id: "2",              name: "Artisan Cappuccino",              price: "$6.50",              variant: "Seasonal Variations  Dairy-Free",              imageSrc: "https://img.b2bpic.net/free-photo/tasty-coffee-with-delicious-cookies-wooden-table_23-2148209303.jpg",              imageAlt: "Creamy cappuccino with latte art",              isFavorited: false
            },
            {
              id: "3",              name: "Cold Brew Concentrate",              price: "$7.00",              variant: "House Blend  Ready to Serve",              imageSrc: "https://img.b2bpic.net/free-photo/maple-latte-with-cinnamon-glass-mug_123827-36231.jpg",              imageAlt: "Refreshing cold brew in glass",              isFavorited: false
            }
          ]}
        />
      </div>

      <div id="specialty" data-section="specialty">
        <FeatureBento 
          title="Why Choose Brew Haven"
          description="Experience coffee craftsmanship paired with exceptional service and ambiance"
          tag="Our Advantage"
          tagIcon={Sparkles}
          tagAnimation="slide-up"
          textboxLayout="default"
          animationType="slide-up"
          useInvertedBackground={false}
          features={[
            {
              title: "Ethically Sourced",              description: "Direct partnerships with sustainable farms worldwide",              bentoComponent: "globe"
            },
            {
              title: "Roasted Fresh Daily",              description: "Small-batch roasting for peak flavor and freshness",              bentoComponent: "orbiting-icons",              centerIcon: Flame,
              items: [
                { icon: Leaf, ring: 1 },
                { icon: Coffee, ring: 2 },
                { icon: Wind, ring: 3 }
              ]
            },
            {
              title: "Expert Baristas",              description: "Certified professionals dedicated to your perfect cup",              bentoComponent: "3d-stack-cards",              items: [
                {
                  icon: Award,
                  title: "Training",                  subtitle: "Certified Excellence",                  detail: "International barista certification"
                },
                {
                  icon: Zap,
                  title: "Precision",                  subtitle: "Perfect Every Time",                  detail: "Temperature and timing mastery"
                },
                {
                  icon: Heart,
                  title: "Passion",                  subtitle: "Genuine Care",                  detail: "Personalized beverage crafting"
                }
              ]
            }
          ]}
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardSix 
          title="What Our Community Says"
          description="Real voices from our loyal coffee lovers"
          tag="Customer Love"
          tagIcon={Heart}
          tagAnimation="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
          animationType="slide-up"
          speed={40}
          topMarqueeDirection="left"
          testimonials={[
            {
              id: "1",              name: "Sarah Chen",              handle: "@sarahlovescoffee",              testimonial: "Brew Haven has become my morning sanctuary. The quality is unmatched and the baristas remember my usual order. It's more than coffee, it's community.",              imageSrc: "https://img.b2bpic.net/free-photo/smiling-middle-aged-woman-showing-ok-sign_1262-17571.jpg",              imageAlt: "Sarah Chen"
            },
            {
              id: "2",              name: "Marcus Johnson",              handle: "@mjcoffeeaddict",              testimonial: "Finally found a place that takes coffee as seriously as I do. The single-origin espresso is phenomenal, and the sustainability practices are impressive.",              imageSrc: "https://img.b2bpic.net/free-photo/happy-handsome-guy-showing-call-me-sign_1262-17046.jpg",              imageAlt: "Marcus Johnson"
            },
            {
              id: "3",              name: "Elena Rodriguez",              handle: "@elenasmorningfix",              testimonial: "The atmosphere is perfect for working or catching up with friends. Every visit feels special because of the attention to detail in every aspect.",              imageSrc: "https://img.b2bpic.net/free-photo/closeup-shot-handsome-male-smiling_181624-41237.jpg",              imageAlt: "Elena Rodriguez"
            },
            {
              id: "4",              name: "David Kim",              handle: "@davidthecoffeegeek",              testimonial: "The knowledge of the baristas is incredible. They taught me about different brewing methods and now I appreciate coffee on a completely different level.",              imageSrc: "https://img.b2bpic.net/free-photo/smiling-african-american-man-posing-library_74855-1619.jpg",              imageAlt: "David Kim"
            },
            {
              id: "5",              name: "Jessica Walsh",              handle: "@jwalsh_creative",              testimonial: "Best coffee shop workspace ever. Great wifi, comfortable seating, and the coffee keeps getting better. This is where I do my best work.",              imageSrc: "https://img.b2bpic.net/free-photo/smiling-middle-aged-woman-showing-ok-sign_1262-17571.jpg",              imageAlt: "Jessica Walsh"
            },
            {
              id: "6",              name: "Tom Bradley",              handle: "@tombradbrew",              testimonial: "The cold brew concentrate is a game-changer. I make amazing coffee at home now thanks to their quality products and brewing guidance.",              imageSrc: "https://img.b2bpic.net/free-photo/happy-handsome-guy-showing-call-me-sign_1262-17046.jpg",              imageAlt: "Tom Bradley"
            }
          ]}
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactText 
          text="Ready to experience the perfect cup? Visit Brew Haven today and join our coffee community."
          animationType="entrance-slide"
          background={{ variant: "plain" }}
          useInvertedBackground={false}
          buttons={[
            {
              text: "Find Our Location",              href: "#location"
            },
            {
              text: "Order Online",              href: "#products"
            }
          ]}
        />
      </div>

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