"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarLayoutFloatingInline from '@/components/navbar/NavbarLayoutFloatingInline';
import HeroBillboardRotatedCarousel from '@/components/sections/hero/HeroBillboardRotatedCarousel';
import SplitAbout from '@/components/sections/about/SplitAbout';
import FeatureCardTwentySix from '@/components/sections/feature/FeatureCardTwentySix';
import ProductCardThree from '@/components/sections/product/ProductCardThree';
import TestimonialCardFive from '@/components/sections/testimonial/TestimonialCardFive';
import SocialProofOne from '@/components/sections/socialProof/SocialProofOne';
import ContactCTA from '@/components/sections/contact/ContactCTA';
import FooterBase from '@/components/sections/footer/FooterBase';
import { Coffee, Heart, Leaf, Users, Home, Sparkles, ShoppingBag, Star, Mail, Award, ArrowRight } from 'lucide-react';

export default function LandingPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="icon-arrow"
      defaultTextAnimation="background-highlight"
      borderRadius="pill"
      contentWidth="mediumLarge"
      sizing="largeSmall"
      background="none"
      cardStyle="soft-shadow"
      primaryButtonStyle="radial-glow"
      secondaryButtonStyle="layered"
      headingFontWeight="medium"
    >
      <div id="nav" data-section="nav">
        <NavbarLayoutFloatingInline
          navItems={[
            { name: "Menu", id: "features" },
            { name: "About", id: "about" },
            { name: "Locations", id: "contact" },
            { name: "Blog", id: "/blog" }
          ]}
          brandName="Brew Haven"
          button={{
            text: "Order Now",            href: "#product"
          }}
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroBillboardRotatedCarousel
          title="Craft Coffee, Crafted for You"
          description="Experience premium single-origin espresso blends and artisanal pastries in our cozy haven. Join us for the perfect coffee moment every day."
          tag="Specialty Coffee"
          tagIcon={Coffee}
          tagAnimation="slide-up"
          buttons={[
            { text: "View Menu", href: "#features" },
            { text: "Reserve Table", href: "#contact" }
          ]}
          buttonAnimation="slide-up"
          background={{ variant: "plain" }}
          carouselItems={[
            {
              id: "1",              imageSrc: "http://img.b2bpic.net/free-photo/barista-pours-freshly-made-turkish-coffee-into-cup-closeup-professional-barista-prepares-coffee-by-hand-traditional-way-sand-selective-focus-space-text_166373-2978.jpg",              imageAlt: "Premium espresso brew"
            },
            {
              id: "2",              imageSrc: "http://img.b2bpic.net/free-photo/close-up-hands-barista-make-latte-coffee-art-paint_1150-12161.jpg",              imageAlt: "Latte art presentation"
            },
            {
              id: "3",              imageSrc: "http://img.b2bpic.net/free-photo/top-view-fresh-frappe-composition-white-table_23-2148623242.jpg",              imageAlt: "Cold brew specialty"
            },
            {
              id: "4",              imageSrc: "http://img.b2bpic.net/free-photo/barista-work-coffee-shop_158595-2328.jpg",              imageAlt: "Cappuccino crafting"
            },
            {
              id: "5",              imageSrc: "http://img.b2bpic.net/free-photo/breakfast-with-fresh-coissants-with-coffe-milk-rustic-wooden-table-golden-croissant_482257-18381.jpg",              imageAlt: "Pastry with coffee"
            },
            {
              id: "6",              imageSrc: "http://img.b2bpic.net/free-photo/empty-wood-chair-restaurant_1339-5949.jpg",              imageAlt: "Coffee shop interior"
            }
          ]}
          autoPlay={true}
          autoPlayInterval={4000}
        />
      </div>

      <div id="about" data-section="about">
        <SplitAbout
          title="Our Story"
          description="Founded in 2015, Brew Haven has been serving the finest specialty coffee and building community connections one cup at a time."
          tag="About Us"
          tagIcon={Heart}
          tagAnimation="slide-up"
          bulletPoints={[
            {
              title: "Ethically Sourced",              description: "We partner directly with coffee farmers to ensure fair trade and sustainable practices.",              icon: Leaf
            },
            {
              title: "Expert Baristas",              description: "Our team undergoes rigorous training in espresso crafting and latte art techniques.",              icon: Users
            },
            {
              title: "Community Hub",              description: "More than just coffee—we're a gathering space for creativity, conversation, and connection.",              icon: Home
            }
          ]}
          imageSrc="http://img.b2bpic.net/free-photo/cafe-interior-with-orange-sofa-three-tables-three-black-chairs_181624-8624.jpg"
          imageAlt="Brew Haven café interior with warm ambiance"
          mediaAnimation="slide-up"
          imagePosition="right"
          textboxLayout="default"
          useInvertedBackground={false}
        />
      </div>

      <div id="features" data-section="features">
        <FeatureCardTwentySix
          title="Signature Beverages"
          description="Discover our hand-crafted coffee collection, expertly prepared to perfection."
          tag="Menu Highlights"
          tagIcon={Sparkles}
          tagAnimation="slide-up"
          features={[
            {
              title: "Ethiopian Yirgacheffe",              description: "Bright, fruity notes with a smooth finish. A customer favorite.",              imageSrc: "http://img.b2bpic.net/free-photo/coffee-beans-lie-cezve-hessian_8353-1480.jpg",              imageAlt: "Ethiopian Yirgacheffe coffee",              buttonIcon: ArrowRight
            },
            {
              title: "Signature Espresso Blend",              description: "Rich, balanced, and bold. The perfect foundation for any coffee drink.",              imageSrc: "http://img.b2bpic.net/free-photo/brown-gold-double-bar-steel_1172-321.jpg",              imageAlt: "Signature espresso blend",              buttonIcon: ArrowRight
            },
            {
              title: "Caramel Macchiato",              description: "Velvety steamed milk with shots of espresso, topped with caramel drizzle.",              imageSrc: "http://img.b2bpic.net/free-photo/2-latte-wooden-table_501050-1095.jpg",              imageAlt: "Caramel macchiato specialty",              buttonIcon: ArrowRight
            },
            {
              title: "Cold Brew Classic",              description: "Smooth, refreshing, and naturally sweet. Served over ice year-round.",              imageSrc: "http://img.b2bpic.net/free-photo/freshness-beverage-iced-ice-milkshake_1203-3929.jpg",              imageAlt: "Cold brew on ice",              buttonIcon: ArrowRight
            },
            {
              title: "Lavender Latte",              description: "Delicate floral notes blended with creamy steamed milk and espresso shots.",              imageSrc: "http://img.b2bpic.net/free-photo/coffee-flowers_23-2148134355.jpg",              imageAlt: "Lavender latte specialty",              buttonIcon: ArrowRight
            },
            {
              title: "Honey Cappuccino",              description: "Classic cappuccino elevated with raw honey and a touch of vanilla.",              imageSrc: "http://img.b2bpic.net/free-photo/breakfast-composition_23-2148104773.jpg",              imageAlt: "Honey cappuccino drink",              buttonIcon: ArrowRight
            }
          ]}
          textboxLayout="default"
          useInvertedBackground={true}
        />
      </div>

      <div id="product" data-section="product">
        <ProductCardThree
          title="Shop Coffee Beans"
          description="Take home our premium single-origin and specialty blend beans."
          tag="Available Online"
          tagIcon={ShoppingBag}
          tagAnimation="slide-up"
          products={[
            {
              id: "1",              name: "Ethiopian Yirgacheffe Beans - 12oz",              price: "$14.99",              imageSrc: "http://img.b2bpic.net/free-photo/top-view-brown-coffee-seeds-with-macarons_140725-27789.jpg?_wi=1",              imageAlt: "Ethiopian Yirgacheffe coffee beans",              initialQuantity: 1
            },
            {
              id: "2",              name: "Colombian Medium Roast - 12oz",              price: "$12.99",              imageSrc: "http://img.b2bpic.net/free-photo/vertical-shot-container-full-coffee-beans-wooden-surface_181624-58235.jpg",              imageAlt: "Colombian medium roast beans",              initialQuantity: 1
            },
            {
              id: "3",              name: "Brew Haven House Blend - 1lb",              price: "$16.99",              imageSrc: "http://img.b2bpic.net/free-photo/top-view-brown-coffee-seeds-with-macarons_140725-27789.jpg?_wi=2",              imageAlt: "Brew Haven signature house blend",              initialQuantity: 1
            },
            {
              id: "4",              name: "Dark Roast Espresso - 12oz",              price: "$13.99",              imageSrc: "http://img.b2bpic.net/free-photo/smoke-rises-from-roasted-coffee-beans-coffee-mug-lies-fragrant-coffee-selective-focus-beans_166373-2305.jpg",              imageAlt: "Dark roast espresso beans",              initialQuantity: 1
            }
          ]}
          gridVariant="two-columns-alternating-heights"
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
        />
      </div>

      <div id="testimonial" data-section="testimonial">
        <TestimonialCardFive
          title="Loved by Coffee Enthusiasts"
          description="See what our regulars and visitors have to say about their Brew Haven experience."
          tag="Customer Reviews"
          tagIcon={Star}
          tagAnimation="slide-up"
          testimonials={[
            {
              id: "1",              name: "Sarah Mitchell, Coffee Blogger",              date: "Date: 15 November 2024",              title: "Best specialty coffee in town!",              quote: "The baristas at Brew Haven truly understand their craft. Every shot of espresso is perfectly pulled, and the latte art is absolutely stunning. I've become a regular and I can't imagine getting my morning coffee anywhere else.",              tag: "Daily Regular",              avatarSrc: "http://img.b2bpic.net/free-photo/confident-beautiful-young-businesswoman-looking-camera-head-shot-portrait_1163-4928.jpg",              imageSrc: "http://img.b2bpic.net/free-photo/smiley-friends-cafe-enjoying-their-time_23-2148735439.jpg"
            },
            {
              id: "2",              name: "James Rodriguez, Business Owner",              date: "Date: 08 November 2024",              title: "Perfect workspace atmosphere",              quote: "I often meet clients at Brew Haven. The ambiance is professional yet welcoming, WiFi is reliable, and the coffee keeps me focused all afternoon. It's become my second office.",              tag: "Business Customer",              avatarSrc: "http://img.b2bpic.net/free-photo/young-businessman-happy-expression_1194-1674.jpg",              imageSrc: "http://img.b2bpic.net/free-photo/business-concept-with-copy-space-office-desk-table-with-pen-focus-analysis-chart-computer-notebook-cup-coffee-desk-vintage-tone-retro-filter-selective-focus_1418-667.jpg"
            },
            {
              id: "3",              name: "Emma Chen, Art Student",              date: "Date: 02 November 2024",              title: "Creative energy and great vibes",              quote: "Brew Haven is where I find my inspiration. The community here is amazing, and I love supporting local businesses. Plus, their seasonal drinks are always innovative and delicious.",              tag: "Student & Artist",              avatarSrc: "http://img.b2bpic.net/free-photo/woman-overalls-sitting-casually-yellow-couch_24972-2976.jpg",              imageSrc: "http://img.b2bpic.net/free-photo/paper-cutout-light-bulb-coffee-cup-with-message-chalkboard_23-2147874160.jpg"
            },
            {
              id: "4",              name: "Michael Torres, Coffee Connoisseur",              date: "Date: 25 October 2024",              title: "Single-origin excellence",              quote: "Finally, a place that takes single-origin coffee seriously! The sourcing information is transparent, the beans are fresh, and you can taste the care in every cup. Brew Haven sets the standard for specialty coffee.",              tag: "Coffee Enthusiast",              avatarSrc: "http://img.b2bpic.net/free-photo/medium-shot-smiley-business-man_23-2149271089.jpg",              imageSrc: "http://img.b2bpic.net/free-photo/close-up-barista-with-coffee-beans_23-2149045783.jpg"
            },
            {
              id: "5",              name: "Lisa Wong, Remote Worker",              date: "Date: 18 October 2024",              title: "My favorite caffeine sanctuary",              quote: "The perfect spot for remote work sessions. Comfortable seating, great coffee, and friendly staff who actually remember regular customers' names. I'm here three times a week!",              tag: "Frequent Visitor",              avatarSrc: "http://img.b2bpic.net/free-photo/young-woman-holding-laptop_23-2148205553.jpg",              imageSrc: "http://img.b2bpic.net/free-photo/image-young-digital-nomad-man-glasses-sits-cafe-works-from-coffee-shop-uses-laptop_1258-245402.jpg"
            },
            {
              id: "6",              name: "David Park, Marketing Manager",              date: "Date: 11 October 2024",              title: "Exceptional customer service",              quote: "The team at Brew Haven goes above and beyond. They know their beans inside and out, offer thoughtful recommendations, and make everyone feel valued. This is what specialty coffee should be about.",              tag: "Loyal Customer",              avatarSrc: "http://img.b2bpic.net/free-photo/blond-businessman-happy-expression_1194-3797.jpg",              imageSrc: "http://img.b2bpic.net/free-photo/happy-smiling-cafe-owner-girl-barista-apron-making-cappuccino-latte-art-with-steamed-milk-standin_1258-134420.jpg"
            }
          ]}
          textboxLayout="default"
          useInvertedBackground={true}
        />
      </div>

      <div id="socialproof" data-section="socialproof">
        <SocialProofOne
          title="Featured In"
          description="Brew Haven has been recognized by leading publications and organizations."
          tag="Press & Recognition"
          tagIcon={Award}
          tagAnimation="slide-up"
          names={[
            "Coffee Magazine Monthly",            "Local Business Journal",            "Urban Coffee Guide",            "Specialty Beverage Review",            "Best Cafés Nationwide",            "Community Excellence Award",            "Artisan Coffee Collective",            "Independent Café Network"
          ]}
          textboxLayout="default"
          useInvertedBackground={false}
          speed={40}
          showCard={true}
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactCTA
          tag="Get in Touch"
          tagIcon={Mail}
          tagAnimation="slide-up"
          title="Ready for Your Perfect Cup?"
          description="Visit us today or reserve your spot. We're located at 125 Main Street, open 7 AM - 9 PM daily. Follow us on social media for daily specials and new menu releases."
          buttons={[
            { text: "Visit Us", href: "https://maps.google.com" },
            { text: "Contact Us", href: "#" }
          ]}
          buttonAnimation="slide-up"
          background={{ variant: "plain" }}
          useInvertedBackground={false}
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterBase
          logoText="Brew Haven"
          copyrightText="© 2025 | Brew Haven Coffee Co."
          columns={[
            {
              title: "Menu",              items: [
                { label: "Coffee", href: "#features" },
                { label: "Pastries", href: "#features" },
                { label: "Shop Beans", href: "#product" }
              ]
            },
            {
              title: "Company",              items: [
                { label: "About Us", href: "#about" },
                { label: "Locations", href: "#contact" },
                { label: "Careers", href: "#" }
              ]
            },
            {
              title: "Connect",              items: [
                { label: "Instagram", href: "https://instagram.com" },
                { label: "Contact", href: "#contact" },
                { label: "Newsletter", href: "#" }
              ]
            }
          ]}
        />
      </div>
    </ThemeProvider>
  );
}
