"use client"

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleApple from '@/components/navbar/NavbarStyleApple/NavbarStyleApple';
import HeroBillboardRotatedCarousel from '@/components/sections/hero/HeroBillboardRotatedCarousel';
import SplitAbout from '@/components/sections/about/SplitAbout';
import FeatureCardTen from '@/components/sections/feature/FeatureCardTen';
import ProductCardThree from '@/components/sections/product/ProductCardThree';
import TestimonialCardFive from '@/components/sections/testimonial/TestimonialCardFive';
import FaqDouble from '@/components/sections/faq/FaqDouble';
import ContactText from '@/components/sections/contact/ContactText';
import FooterBaseCard from '@/components/sections/footer/FooterBaseCard';
import { Coffee, Heart, Leaf, User, Users, Star, Home, Wifi, CheckCircle, Zap, Award } from "lucide-react";

export default function LandingPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="shift-hover"
      defaultTextAnimation="reveal-blur"
      borderRadius="soft"
      contentWidth="small"
      sizing="mediumLargeSizeMediumTitles"
      background="none"
      cardStyle="gradient-mesh"
      primaryButtonStyle="diagonal-gradient"
      secondaryButtonStyle="glass"
      headingFontWeight="bold"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleApple 
          brandName="Brew Haven"
          navItems={[
            { name: "Home", id: "hero" },
            { name: "About", id: "about" },
            { name: "Menu", id: "products" },
            { name: "Testimonials", id: "testimonials" },
            { name: "Contact", id: "contact" }
          ]}
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroBillboardRotatedCarousel
          title="Discover Your Perfect Cup"
          description="Experience the art of specialty coffee crafted with passion and precision. From single-origin beans to artisanal espresso drinks, every sip tells a story of quality and tradition."
          tag="Specialty Coffee Since 2015"
          tagIcon={Coffee}
          buttons={[
            { text: "Visit Us Today", href: "#contact" },
            { text: "View Our Menu", href: "#products" }
          ]}
          background={{ variant: "plain" }}
          carouselItems={[
            {
              id: "1",              imageSrc: "https://img.b2bpic.net/free-photo/barista-preparing-beverage_23-2149458036.jpg",              imageAlt: "Freshly brewed specialty coffee"
            },
            {
              id: "2",              imageSrc: "https://img.b2bpic.net/free-photo/coffee-maker-coffee-shop_23-2148366609.jpg",              imageAlt: "Artisan coffee preparation"
            },
            {
              id: "3",              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 coffee shop atmosphere"
            },
            {
              id: "4",              imageSrc: "https://img.b2bpic.net/free-photo/close-up-man-pouring-coffee-from-pot-filter_23-2148366666.jpg",              imageAlt: "Community gathering space"
            },
            {
              id: "5",              imageSrc: "https://img.b2bpic.net/free-photo/black-ground-coffee-barista-brews-drink-coffee-glass-jug_1157-47316.jpg",              imageAlt: "Premium coffee beans selection"
            },
            {
              id: "6",              imageSrc: "https://img.b2bpic.net/free-photo/ice-black-coffee-glass-wooden-table_1150-13459.jpg",              imageAlt: "Delicious cappuccino"
            }
          ]}
          autoPlay={true}
          autoPlayInterval={4000}
          ariaLabel="Hero section with coffee showcase carousel"
        />
      </div>

      <div id="about" data-section="about">
        <SplitAbout
          title="Crafted with Care"
          description="At Brew Haven, we believe that great coffee is more than just a beverage—it's a ritual, a moment of connection, and a celebration of craftsmanship. Founded in 2015, our mission has been to source the finest beans and create an inviting space where every guest feels at home."
          tag="Our Story"
          tagIcon={Heart}
          textboxLayout="default"
          useInvertedBackground="noInvert"
          imagePosition="right"
          imageSrc="https://img.b2bpic.net/free-photo/parisian-coffee-shop-style-with-tasty-coffee-served-wooden-table-coffee-shop-design_482257-18283.jpg"
          imageAlt="Brew Haven coffee shop interior"
          bulletPoints={[
            {
              title: "Single-Origin Excellence",              description: "We source premium coffee beans from ethical farms around the world, ensuring exceptional quality in every cup.",              icon: Leaf
            },
            {
              title: "Expert Baristas",              description: "Our skilled baristas are trained in the art and science of coffee, delivering perfectly crafted drinks every time.",              icon: User
            },
            {
              title: "Sustainable Practices",              description: "From compostable cups to renewable energy, we're committed to environmental responsibility and sustainability.",              icon: Leaf
            },
            {
              title: "Community Gathering",              description: "More than a cafe, we're a gathering place where friendships are made and ideas flow as freely as our coffee.",              icon: Users
            }
          ]}
          buttons={[
            { text: "Learn More", href: "#faq" }
          ]}
        />
      </div>

      <div id="features" data-section="features">
        <FeatureCardTen
          title="Why Choose Brew Haven"
          description="We've perfected the craft of coffee through quality ingredients, expert technique, and genuine hospitality. Here's what sets us apart."
          textboxLayout="default"
          useInvertedBackground="invertDefault"
          animationType="slide-up"
          features={[
            {
              id: "1",              title: "Specialty Coffee Selection",              description: "Discover an extensive range of single-origin and blended coffees, carefully curated from sustainable farms across Ethiopia, Colombia, Kenya, and beyond.",              media: { imageSrc: "https://img.b2bpic.net/free-photo/coffee-maker-coffee-shop_23-2148366609.jpg" },
              items: [
                { icon: Star, text: "Award-winning espresso blends" },
                { icon: Leaf, text: "Single-origin beans rotated monthly" },
                { icon: Heart, text: "Ethically sourced and fair-trade" }
              ],
              reverse: false
            },
            {
              id: "2",              title: "Welcoming Atmosphere",              description: "Our beautifully designed space combines warmth and sophistication, featuring comfortable seating, natural lighting, and acoustics perfect for conversation or quiet reflection.",              media: { imageSrc: "https://img.b2bpic.net/free-photo/close-up-man-pouring-coffee-from-pot-filter_23-2148366666.jpg" },
              items: [
                { icon: Home, text: "Cozy wooden interiors" },
                { icon: Wifi, text: "Fast reliable WiFi for remote work" },
                { icon: Users, text: "Events and community gatherings" }
              ],
              reverse: true
            },
            {
              id: "3",              title: "Quality You Can Trust",              description: "From bean selection to your cup, every step is handled with meticulous attention. Our baristas use precision equipment and time-honored techniques to create the perfect extraction.",              media: { imageSrc: "https://img.b2bpic.net/free-photo/black-ground-coffee-barista-brews-drink-coffee-glass-jug_1157-47316.jpg" },
              items: [
                { icon: CheckCircle, text: "Expert roasting and grinding" },
                { icon: Zap, text: "Perfect water temperature control" },
                { icon: Award, text: "Certified specialty coffee baristas" }
              ],
              reverse: false
            }
          ]}
        />
      </div>

      <div id="products" data-section="products">
        <ProductCardThree
          title="Our Menu"
          description="Explore our signature drinks and delicious pastries, crafted fresh daily to complement your coffee experience."
          textboxLayout="default"
          useInvertedBackground="noInvert"
          gridVariant="three-columns-all-equal-width"
          animationType="slide-up"
          products={[
            {
              id: "1",              name: "Double Shot Espresso",              price: "$4.50",              imageSrc: "https://img.b2bpic.net/free-photo/double-espresso-coffee-mug-with-cinnamon-sticks-coffee-beans-wooden-board_181624-57625.jpg",              imageAlt: "Double shot espresso"
            },
            {
              id: "2",              name: "Cappuccino",              price: "$5.50",              imageSrc: "https://img.b2bpic.net/free-photo/ice-black-coffee-glass-wooden-table_1150-13459.jpg",              imageAlt: "Creamy cappuccino with latte art"
            },
            {
              id: "3",              name: "Artisan Pastry",              price: "$6.00",              imageSrc: "https://img.b2bpic.net/free-photo/coffee-cups-coffee-beans-table-international-day-coffee-concept_1150-25507.jpg",              imageAlt: "Fresh baked artisan pastry"
            }
          ]}
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardFive
          title="What Our Regulars Say"
          description="Hear from the coffee lovers who make Brew Haven part of their daily routine."
          textboxLayout="default"
          useInvertedBackground="invertDefault"
          testimonials={[
            {
              id: "1",              name: "Sarah Chen, Marketing Manager",              date: "Date: 15 November 2024",              title: "The Best Coffee in Town",              quote: "Brew Haven has become my sanctuary. The quality of coffee is exceptional, and the baristas remember my order. It's the perfect place to start my morning or meet with friends.",              tag: "Regular Customer",              avatarSrc: "https://img.b2bpic.net/free-photo/smiling-handsome-bearded-african-american-businessman-brown-classic-jacket-isolated-dark-background_613910-6626.jpg",              imageSrc: "https://img.b2bpic.net/free-photo/barista-preparing-beverage_23-2149458036.jpg",              imageAlt: "Coffee shop atmosphere"
            },
            {
              id: "2",              name: "Marcus Johnson, Software Engineer",              date: "Date: 10 November 2024",              title: "Perfect Place to Work",              quote: "I've tried many cafes, but Brew Haven's combination of excellent coffee, WiFi, and ambiance is unmatched. I get my best work done here.",              tag: "Remote Worker",              avatarSrc: "https://img.b2bpic.net/free-photo/young-businessman-happy-expression_1194-1652.jpg",              imageSrc: "https://img.b2bpic.net/free-photo/close-up-man-pouring-coffee-from-pot-filter_23-2148366666.jpg",              imageAlt: "Community workspace"
            },
            {
              id: "3",              name: "Elena Rodriguez, Coffee Enthusiast",              date: "Date: 5 November 2024",              title: "A True Specialty Coffee Haven",              quote: "Finally, a place that takes coffee seriously! Their single-origin selections are thoughtfully curated, and the baristas are genuinely knowledgeable.",              tag: "Coffee Connoisseur",              avatarSrc: "https://img.b2bpic.net/free-photo/young-businessman-happy-expression_1194-1664.jpg",              imageSrc: "https://img.b2bpic.net/free-photo/black-ground-coffee-barista-brews-drink-coffee-glass-jug_1157-47316.jpg",              imageAlt: "Premium coffee preparation"
            },
            {
              id: "4",              name: "David Park, Freelance Designer",              date: "Date: 28 October 2024",              title: "My Creative Home Away from Home",              quote: "The atmosphere here inspires creativity. Great coffee, beautiful space, and friendly staff. I can't imagine working anywhere else.",              tag: "Creative Professional",              avatarSrc: "https://img.b2bpic.net/free-photo/people-working-as-team-company_23-2149136890.jpg",              imageSrc: "https://img.b2bpic.net/free-photo/parisian-coffee-shop-style-with-tasty-coffee-served-wooden-table-coffee-shop-design_482257-18283.jpg",              imageAlt: "Inviting interior design"
            },
            {
              id: "5",              name: "Jessica Williams, Student",              date: "Date: 22 October 2024",              title: "My Study Buddy",              quote: "Perfect for studying! The coffee keeps me focused, the environment is conducive to concentration, and the staff is incredibly friendly and supportive.",              tag: "Student",              avatarSrc: "https://img.b2bpic.net/free-photo/young-businessman-happy-expression_1194-1628.jpg",              imageSrc: "https://img.b2bpic.net/free-photo/coffee-maker-coffee-shop_23-2148366609.jpg",              imageAlt: "Coffee craftsmanship"
            },
            {
              id: "6",              name: "Thomas Anderson, Business Owner",              date: "Date: 18 October 2024",              title: "Business Meetings Made Better",              quote: "I regularly host client meetings at Brew Haven. The professional atmosphere and exceptional service create the perfect setting for meaningful conversations.",              tag: "Business Professional",              avatarSrc: "https://img.b2bpic.net/free-photo/portrait-smiling-blonde-businesswoman-formal-dressed-isolated-dark-textured-background_613910-5399.jpg",              imageSrc: "https://img.b2bpic.net/free-photo/ice-black-coffee-glass-wooden-table_1150-13459.jpg",              imageAlt: "Quality beverage service"
            }
          ]}
        />
      </div>

      <div id="faq" data-section="faq">
        <FaqDouble
          title="Frequently Asked Questions"
          description="Get answers to common questions about Brew Haven, our coffee, and our services."
          textboxLayout="default"
          useInvertedBackground="noInvert"
          animationType="smooth"
          faqs={[
            {
              id: "1",              title: "What makes your coffee special?",              content: "We source premium, ethically-sourced beans from specialty farms worldwide and roast them in-house. Our baristas are extensively trained in precision brewing techniques, ensuring every cup meets our high standards."
            },
            {
              id: "2",              title: "Do you offer dairy-free options?",              content: "Yes! We offer oat, almond, soy, and coconut milk as alternatives. Our baristas can customize any drink to your preferences."
            },
            {
              id: "3",              title: "Can I order for catering or events?",              content: "Absolutely! We offer catering services for events and meetings. Please contact us at least 48 hours in advance to discuss your needs and get a quote."
            },
            {
              id: "4",              title: "What are your opening hours?",              content: "We're open Monday-Friday 6:00 AM - 8:00 PM, Saturday 7:00 AM - 9:00 PM, and Sunday 8:00 AM - 7:00 PM. We're closed on major holidays."
            },
            {
              id: "5",              title: "Do you sell whole beans?",              content: "Yes! We sell a rotating selection of whole bean coffee. You can purchase single-origin or blended bags to enjoy at home. Ask our baristas for recommendations based on your taste preferences."
            },
            {
              id: "6",              title: "Is WiFi available for remote work?",              content: "Yes, we have fast, reliable WiFi perfect for remote work or studying. We ask that you purchase at least one beverage during your visit."
            }
          ]}
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactText
          text="Ready to experience Brew Haven? Visit us today and discover why we're the neighborhood's favorite coffee destination. We look forward to welcoming you!"
          animationType="entrance-slide"
          useInvertedBackground="invertDefault"
          buttons={[
            { text: "Get Directions", href: "https://maps.google.com" },
            { text: "Call Us", href: "tel:+15551234567" }
          ]}
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterBaseCard
          logoText="Brew Haven"
          copyrightText="© 2024 Brew Haven Coffee. All rights reserved. | Located at 123 Main Street, Your City, ST 12345"
          columns={[
            {
              title: "Explore",              items: [
                { label: "About Us", href: "#about" },
                { label: "Our Menu", href: "#products" },
                { label: "Testimonials", href: "#testimonials" },
                { label: "FAQ", href: "#faq" }
              ]
            },
            {
              title: "Visit",              items: [
                { label: "Hours", href: "#" },
                { label: "Location", href: "#" },
                { label: "Parking", href: "#" },
                { label: "Catering", href: "#" }
              ]
            },
            {
              title: "Connect",              items: [
                { label: "Instagram", href: "#" },
                { label: "Facebook", href: "#" },
                { label: "Email", href: "mailto:hello@brewhaven.com" },
                { label: "Contact", href: "#contact" }
              ]
            }
          ]}
        />
      </div>
    </ThemeProvider>
  );
}