"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleCentered from '@/components/navbar/NavbarStyleCentered/NavbarStyleCentered';
import HeroBillboardRotatedCarousel from '@/components/sections/hero/HeroBillboardRotatedCarousel';
import SplitAboutCards from '@/components/sections/about/SplitAboutCards';
import ProductCardTwo from '@/components/sections/product/ProductCardTwo';
import TestimonialCardFive from '@/components/sections/testimonial/TestimonialCardFive';
import SocialProofThree from '@/components/sections/socialProof/SocialProofThree';
import FaqDouble from '@/components/sections/faq/FaqDouble';
import ContactSplit from '@/components/sections/contact/ContactSplit';
import FooterSocial from '@/components/sections/footer/FooterSocial';
import { Coffee, Instagram, Facebook, Twitter } from "lucide-react";

export default function LandingPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="text-stagger"
      defaultTextAnimation="background-highlight"
      borderRadius="soft"
      contentWidth="medium"
      sizing="largeSizeExtraLargeSpacing"
      background="aurora"
      cardStyle="solid-accent-light"
      primaryButtonStyle="diagonal-gradient"
      secondaryButtonStyle="radial-glow"
      headingFontWeight="extrabold"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleCentered
          brandName="Brew Haven"
          navItems={[
            { name: "Home", id: "hero" },
            { name: "About", id: "about" },
            { name: "Menu", id: "products" },
            { name: "Contact", id: "contact" },
            { name: "FAQ", id: "faq" }
          ]}
          button={{ text: "Order Now", href: "contact" }}
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroBillboardRotatedCarousel
          title="Craft Coffee. Crafted Moments."
          description="Discover the perfect blend of premium coffee, warm ambiance, and exceptional service. Every cup tells a story."
          tag="Specialty Coffee"
          tagIcon={Coffee}
          buttons={[
            { text: "Explore Menu", href: "products" },
            { text: "Visit Us", href: "contact" }
          ]}
          carouselItems={[
            {
              id: "1",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766140052116-ugc31hy1.jpg",
              imageAlt: "caffeine, coffee, cup, coffee cup, latte, latte art, morning coffee, coffee break, beverage, cappuccino, drink, mug, coffee, coffee, coffee, coffee, coffee, coffee cup, latte, latte, cappuccino"
            },
            {
              id: "2",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766488000328-vko4euai.jpg",
              imageAlt: "coffee, caffeine, cafe, food, drink, cup, beverage, cappuccino, hot, fresh, espresso, coffee cup, doppio, brown food, brown coffee, brown cafe, brown cup"
            },
            {
              id: "3",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766140060621-29xib9f7.jpg",
              imageAlt: "coffee, cup, cappuccino, latte, latte art, coffee cup, caffeine, morning coffee, coffee break, drink, beverage, hot, cafe, morning, coffee, coffee, coffee, coffee, coffee, cafe, morning"
            },
            {
              id: "4",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766140053900-frhkawzl.jpg",
              imageAlt: "coffee, cup, caffeine, drink, latte, latte art, coffee cup, morning coffee, coffee break, hot coffee, beverage, hot, mug, rustic, saucer, table, wooden table, coffee, coffee, coffee, coffee, coffee, table, table"
            },
            {
              id: "5",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766140053029-sd9wbrql.jpg",
              imageAlt: "coffee, coffee beans, cup, mug, beans, roasted, roasted coffee, roasted coffee beans, brown, caffeine, coffee cup, food, cafe, roast, aroma"
            },
            {
              id: "6",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766488001309-og2nwex8.jpg",
              imageAlt: "caffeine, cappuccino, coffee, cup, drink, mug, wooden table, coffee cup, beverage, hot coffee, cafe, morning coffee, coffee break, cappuccino, cappuccino, coffee, coffee, coffee, coffee, coffee, coffee cup, cafe, cafe, cafe, cafe"
            }
          ]}
          autoPlay={true}
          autoPlayInterval={5000}
        />
      </div>

      <div id="about" data-section="about">
        <SplitAboutCards
          title="About Brew Haven"
          description="Founded in 2015, we've been committed to bringing the finest specialty coffee to our community. Every bean is carefully sourced and roasted to perfection."
          tag="Our Story"
          features={[
            {
              id: "ethically-sourced",
              title: "Ethically Sourced",
              description: "Direct relationships with coffee farmers ensure quality and fair trade practices. We believe in supporting sustainable farming communities.",
              label: "100+ Partners Worldwide"
            },
            {
              id: "artisan-crafted",
              title: "Artisan Crafted",
              description: "Small batch roasting techniques bring out unique flavor profiles. Each roast is a masterpiece of taste and aroma.",
              label: "5 Expert Roasters"
            }
          ]}
          buttons={[{ text: "Learn More", href: "contact" }]}
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="products" data-section="products">
        <ProductCardTwo
          title="Signature Menu"
          description="Our carefully curated selection of specialty coffee drinks, each crafted with precision and passion."
          tag="Featured"
          textboxLayout="default"
          animationType="slide-up"
          gridVariant="three-columns-all-equal-width"
          containerStyle="default"
          useInvertedBackground="noInvert"
          products={[
            {
              id: "1",
              brand: "Brew Haven",
              name: "Signature Cappuccino",
              price: "$5.50",
              rating: 5,
              reviewCount: "2.3k",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766140057278-kkdp2r1r.jpg",
              imageAlt: "barista, coffee cup, coffee, pouring, espresso, latte, cafe, restaurant, cappuccino, drink, caffeine, waiter, hot, aroma, beverage, cup, breakfast, morning, bar, mocha, cafeteria, fresh, brown, brown coffee, brown restaurant, brown cafe, brown cup, brown breakfast, brown morning"
            },
            {
              id: "2",
              brand: "Brew Haven",
              name: "Bold Americano",
              price: "$4.50",
              rating: 5,
              reviewCount: "1.8k",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766140059770-hkqb0x9d.jpg",
              imageAlt: "coffee, pen, notebook, open notebook, empty notebook, caffeine, cup, cafe, coffee cup, latte, latte art, cappuccino, morning coffee, coffee break, beverage, coffee, coffee, coffee, coffee, coffee"
            },
            {
              id: "3",
              brand: "Brew Haven",
              name: "Decadent Mocha",
              price: "$6.50",
              rating: 5,
              reviewCount: "3.1k",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766140058956-okqwoo8n.jpg",
              imageAlt: "coffee, cappuccino, café, closeup, drink, coffee cup, scented, caffeine, breakfast, brown, mocha, espresso, cup, drink coffee, book, read, latté, cream, coffee, coffee, coffee, coffee, coffee, book"
            },
            {
              id: "4",
              brand: "Brew Haven",
              name: "Creamy Macchiato",
              price: "$5.75",
              rating: 5,
              reviewCount: "2.7k",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766488002482-2nfpcoxi.jpg",
              imageAlt: "caffeine, cappuccino, coffee, cup, drink, mug, beverage, aroma, coffee cup, brown coffee, brown cup, coffee, coffee, coffee, coffee, coffee, coffee cup"
            }
          ]}
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardFive
          title="What Our Customers Say"
          description="Join thousands of coffee lovers who have made Brew Haven their favorite spot."
          tag="Reviews"
          textboxLayout="default"
          useInvertedBackground="noInvert"
          testimonials={[
            {
              id: "1",
              name: "Sarah Mitchell, Coffee Enthusiast",
              date: "Date: 15 December 2024",
              title: "Best Cappuccino in Town!",
              quote: "I've tried coffee shops across the city, and Brew Haven consistently delivers the best cappuccino I've ever had. The baristas truly know their craft.",
              tag: "Regular Customer",
              avatarSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766183586665-q5sajrdt.jpg",
              avatarAlt: "pottery, man, delivery, hoi an, craftsman, craftsmanship, clay pots, earthenware, asian man, vietnamese man, portrait, smile, smiling, pottery, delivery, delivery, delivery, delivery, delivery, asian man",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766488003604-v4xj6rf0.jpg",
              imageAlt: "cup of coffee, laptop, office, macbook, workspace, coffee break, technology, wooden table, computer, coffee, espresso, flat lay, laptop, laptop, laptop, office, office, office, office, technology, computer, computer, computer, computer, coffee, coffee, coffee, coffee, coffee"
            },
            {
              id: "2",
              name: "James Chen, Business Owner",
              date: "Date: 10 December 2024",
              title: "My Daily Ritual",
              quote: "More than just coffee, Brew Haven is where I start my day. The warm atmosphere and excellent service make it the perfect workspace for meetings.",
              tag: "Daily Visitor",
              avatarSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766183587552-1pqoe5c0.jpg",
              avatarAlt: "woman, snow, nature, winter, portrait, snowflakes, smiling, cold",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766488004476-3c7b85sy.jpg",
              imageAlt: "coffee, caffeine, cafe, aroma, roasted, beverage, brown, aromatic, food photography, coffee seeds, roasted coffee, cappuccino, product, arabica, lavazza, coffee beans, in the store, cafe shop, black coffee, taste of coffee, brewed coffee, bitter taste, coffee time, coffe time, small things"
            },
            {
              id: "3",
              name: "Emily Rodriguez, Creative Director",
              date: "Date: 5 December 2024",
              title: "Inspiring Space for Ideas",
              quote: "The ambiance here is perfect for creative work. Brew Haven has become my go-to spot for brainstorming and productivity sessions.",
              tag: "Work-From-Cafe Member",
              avatarSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766154634313-y5tjxwwi.jpg",
              avatarAlt: "merry christmas, man, woman, dog, pet, pug, owners, couple, relationship, warm clothes, cozy, scarf, jackets, jeans, boots, fashion, people, happy, love, female, young, animal, male, adult, caucasian, happiness, romantic, portrait, smile, smiling, girlfriend, date, boyfriend, together, person, lovers, sitting, relaxing, rustic, cushions, couch, laughing, enjoying, coffee",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766488005357-9beefs8k.jpg",
              imageAlt: "pc, computer, mac, screen, desktop computer, business, web, internet, equipment, technology, work, art, artist, home office, office, keyboard, mouse, to write, to study, studies, digital, workplace, organization, imac, concept, computer, computer, computer, mac, mac, business, business, business, web, web, web, web, internet, technology, artist, office, office, office, office, office, keyboard, keyboard, mouse, digital, organization, organization, organization"
            },
            {
              id: "4",
              name: "Michael Torres, Social Event Planner",
              date: "Date: 28 November 2024",
              title: "Perfect Gathering Place",
              quote: "We host all our coffee dates and celebrations here. The quality of coffee combined with the welcoming atmosphere makes it special every time.",
              tag: "Event Host",
              avatarSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766163678723-295psgl3.jpg",
              avatarAlt: "portrait, adult, woman, facial expression, girl, beautiful, model, young, face, hair, pretty",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766488006236-nj07kuzk.jpg",
              imageAlt: "cafe, interior, furniture, tables, chairs, coffee shop, cafeteria, cafe, cafe, cafe, cafe, cafe, coffee shop, coffee shop, cafeteria"
            }
          ]}
        />
      </div>

      <div id="social-proof" data-section="social-proof">
        <SocialProofThree
          title="Trusted by Coffee Connoisseurs"
          description="Featured in and partnered with leading specialty coffee brands and publications."
          tag="Partners"
          textboxLayout="default"
          useInvertedBackground="noInvert"
          animationType="slide-up"
          logos={[
            "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766183580042-1z23mdom.jpg",
            "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766140109921-m508s0az.jpg",
            "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766488007707-3h91izjg.jpg",
            "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766140106374-le5uxrj5.jpg",
            "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766140107205-4bafhl5z.jpg",
            "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766140109000-ndb7534s.jpg",
            "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766488008617-4r37dpj3.jpg",
            "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766488009507-ncm6fr9r.jpg"
          ]}
          speed={40}
          topMarqueeDirection="left"
        />
      </div>

      <div id="faq" data-section="faq">
        <FaqDouble
          title="Frequently Asked Questions"
          description="Find answers to common questions about our coffee shop, menu, and services."
          tag="Help"
          textboxLayout="default"
          useInvertedBackground="noInvert"
          animationType="smooth"
          faqs={[
            {
              id: "1",
              title: "What are your operating hours?",
              content: "We're open Monday to Friday from 6:00 AM to 8:00 PM, Saturday 7:00 AM to 9:00 PM, and Sunday 8:00 AM to 7:00 PM. Holidays may have special hours."
            },
            {
              id: "2",
              title: "Do you offer plant-based milk options?",
              content: "Yes! We offer oat, almond, soy, and coconut milk as alternatives to dairy. All our specialty drinks can be customized with any of these options."
            },
            {
              id: "3",
              title: "Can I order online or for delivery?",
              content: "Currently, we offer in-cafe ordering and limited local delivery through our website. Visit us or call to place orders for delivery."
            },
            {
              id: "4",
              title: "Do you have WiFi available?",
              content: "Absolutely! Free high-speed WiFi is available to all our guests. Perfect for working, studying, or just browsing."
            },
            {
              id: "5",
              title: "What beans do you currently use?",
              content: "Our seasonal selection features single-origin beans from Ethiopia, Colombia, and Peru. We rotate our menu quarterly to showcase different roasts and flavors."
            },
            {
              id: "6",
              title: "Can I buy beans to take home?",
              content: "Yes! We sell our premium roasted beans in 1/2 lb and 1 lb bags. Ask our baristas for recommendations based on your brewing method."
            }
          ]}
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactSplit
          tag="Stay Connected"
          title="Subscribe to Our Newsletter"
          description="Get exclusive offers, brewing tips, and updates about our latest roasts delivered to your inbox."
          useInvertedBackground="noInvert"
          imageSrc="https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766478629120-iqvbvy87.jpg"
          imageAlt="coffee, milk, sugar, cup of coffee, coffee cup, coffee beans, aroma, black coffee, caffeine, cafe, coffee break, coffee, coffee, coffee, coffee, coffee, sugar, sugar"
          mediaPosition="right"
          inputPlaceholder="Your email address"
          buttonText="Subscribe"
          termsText="We respect your privacy. Unsubscribe anytime."
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterSocial
          logoText="Brew Haven"
          columns={[
            {
              title: "Location",
              items: [
                { label: "123 Coffee Street", href: "#" },
                { label: "Downtown District", href: "#" },
                { label: "Phone: (555) 123-4567", href: "#" }
              ]
            },
            {
              title: "Hours",
              items: [
                { label: "Mon-Fri: 6 AM - 8 PM", href: "#" },
                { label: "Sat: 7 AM - 9 PM", href: "#" },
                { label: "Sun: 8 AM - 7 PM", href: "#" }
              ]
            },
            {
              title: "Connect",
              items: [
                { label: "Instagram", href: "https://instagram.com" },
                { label: "Facebook", href: "https://facebook.com" },
                { label: "Contact Us", href: "contact" }
              ]
            },
            {
              title: "Legal",
              items: [
                { label: "Privacy Policy", href: "#" },
                { label: "Terms of Service", href: "#" }
              ]
            }
          ]}
          socialLinks={[
            { icon: Instagram, href: "https://instagram.com", ariaLabel: "Instagram" },
            { icon: Facebook, href: "https://facebook.com", ariaLabel: "Facebook" },
            { icon: Twitter, href: "https://twitter.com", ariaLabel: "Twitter" }
          ]}
          copyrightText="© Brew Haven Coffee, Inc. 2024. All rights reserved."
        />
      </div>
    </ThemeProvider>
  );
}