"use client"

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarLayoutFloatingOverlay from '@/components/navbar/NavbarLayoutFloatingOverlay/NavbarLayoutFloatingOverlay';
import HeroBillboardCarouselSplit from '@/components/sections/hero/HeroBillboardCarouselSplit';
import AboutMetric from '@/components/sections/about/AboutMetric';
import FeatureCardFifteen from '@/components/sections/feature/FeatureCardFifteen';
import TestimonialCardFive from '@/components/sections/testimonial/TestimonialCardFive';
import ContactSplit from '@/components/sections/contact/ContactSplit';
import FooterSocial from '@/components/sections/footer/FooterSocial';
import { Coffee, Award, Users, Globe, Instagram, Facebook, Twitter } from 'lucide-react';

export default function LandingPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="icon-arrow"
      defaultTextAnimation="background-highlight"
      borderRadius="rounded"
      contentWidth="small"
      sizing="smallSizeLargeTitles"
      background="dotGrid"
      cardStyle="layered-gradient"
      primaryButtonStyle="flat"
      secondaryButtonStyle="layered"
      headingFontWeight="semibold"
    >
      <div id="nav" data-section="nav">
        <NavbarLayoutFloatingOverlay
          brandName="Brew Haven"
          navItems={[
            { name: "Home", id: "hero" },
            { name: "About", id: "about" },
            { name: "Menu", id: "features" },
            { name: "Reviews", id: "testimonials" },
            { name: "Contact", id: "contact" }
          ]}
          button={{
            text: "Order Now",
            href: "contact"
          }}
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroBillboardCarouselSplit
          title="Discover Your Perfect Coffee"
          buttons={[
            { text: "Explore Menu", href: "features" },
            { text: "Visit Us", href: "contact" }
          ]}
          mediaItems={[
            {
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_30ordogEOn7VO6LZdIWb5atLXky/uploaded-1765471355039-if641208.jpg",
              imageAlt: "Specialty espresso with latte art"
            },
            {
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_30ordogEOn7VO6LZdIWb5atLXky/uploaded-1765471356652-o1pgeoob.jpg",
              imageAlt: "Pour over coffee brewing technique"
            },
            {
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_30ordogEOn7VO6LZdIWb5atLXky/uploaded-1765471358333-1e6brntp.jpg",
              imageAlt: "Fresh cappuccino with foam"
            },
            {
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_30ordogEOn7VO6LZdIWb5atLXky/uploaded-1765471359763-fvw1ifo1.jpg",
              imageAlt: "Refreshing cold brew coffee"
            },
            {
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_30ordogEOn7VO6LZdIWb5atLXky/uploaded-1765471361086-3tty5dqt.jpg",
              imageAlt: "Warm coffee shop interior"
            }
          ]}
        />
      </div>

      <div id="about" data-section="about">
        <AboutMetric
          title="Crafting Excellence Since 2010"
          useInvertedBackground="noInvert"
          metrics={[
            {
              icon: Coffee,
              label: "Cups Served Daily",
              value: "2,500+"
            },
            {
              icon: Award,
              label: "Award Winning Roasts",
              value: "15+"
            },
            {
              icon: Users,
              label: "Loyal Coffee Lovers",
              value: "8,000+"
            },
            {
              icon: Globe,
              label: "Years of Excellence",
              value: "14"
            }
          ]}
        />
      </div>

      <div id="features" data-section="features">
        <FeatureCardFifteen
          title="Our Coffee Selection"
          description="Handpicked beans from sustainable farms around the world, expertly roasted to perfection"
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground="noInvert"
          features={[
            {
              id: "1",
              title: "Espresso",
              description: "Rich and concentrated shots of pure coffee excellence",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_30ordogEOn7VO6LZdIWb5atLXky/uploaded-1765471364389-ggdr2svk.jpg",
              imageAlt: "Espresso machine and espresso shot"
            },
            {
              id: "2",
              title: "Cappuccino",
              description: "Smooth blend of espresso, steamed milk, and silky foam",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_30ordogEOn7VO6LZdIWb5atLXky/uploaded-1765471365972-qj06t9oe.jpg",
              imageAlt: "Cappuccino with latte art"
            },
            {
              id: "3",
              title: "Cold Brew",
              description: "Smooth, refreshing cold brew for warm days",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_30ordogEOn7VO6LZdIWb5atLXky/uploaded-1765471367414-3gcnj4w7.jpg",
              imageAlt: "Cold brew coffee in glass"
            },
            {
              id: "4",
              title: "Pastries & Snacks",
              description: "Fresh baked goods paired perfectly with your coffee",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_30ordogEOn7VO6LZdIWb5atLXky/uploaded-1765471369213-juzcqp6e.jpg",
              imageAlt: "Fresh bakery pastries and croissants"
            }
          ]}
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardFive
          title="What Our Customers Say"
          description="Join thousands of coffee enthusiasts who have made us their favorite spot"
          textboxLayout="default"
          useInvertedBackground="noInvert"
          testimonials={[
            {
              id: "1",
              name: "Sarah Johnson, Regular Customer",
              date: "Date: 15 January 2025",
              title: "Best Coffee in Town!",
              quote: "I've been coming to Brew Haven for three years now. The coffee quality is unmatched and the baristas really know their craft. It's become my second home.",
              tag: "Regular",
              avatarSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_30ordogEOn7VO6LZdIWb5atLXky/uploaded-1765471370162-81jlyxwe.jpg",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_30ordogEOn7VO6LZdIWb5atLXky/uploaded-1765471362895-k7cjd3t9.jpg"
            },
            {
              id: "2",
              name: "Michael Chen, Business Owner",
              date: "Date: 10 January 2025",
              title: "Perfect for Working",
              quote: "The ambiance is perfect for working and the wifi is reliable. Plus, their espresso keeps me focused throughout the day. Highly recommended!",
              tag: "Professional",
              avatarSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_30ordogEOn7VO6LZdIWb5atLXky/uploaded-1765471371322-4guknh7l.jpg",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_30ordogEOn7VO6LZdIWb5atLXky/uploaded-1765471374251-2ibjvort.jpg"
            },
            {
              id: "3",
              name: "David Rodriguez, Coffee Connoisseur",
              date: "Date: 5 January 2025",
              title: "Expertly Roasted Beans",
              quote: "Their single-origin selections are exceptional. The baristas can tell you exactly where each bean comes from and how it was roasted. This is specialty coffee done right.",
              tag: "Enthusiast",
              avatarSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_30ordogEOn7VO6LZdIWb5atLXky/uploaded-1765471372206-0a7oyi8j.jpg",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_30ordogEOn7VO6LZdIWb5atLXky/uploaded-1765471356652-o1pgeoob.jpg"
            },
            {
              id: "4",
              name: "Emily Watson, Student",
              date: "Date: 28 December 2024",
              title: "My Study Sanctuary",
              quote: "The quiet corners and friendly staff make this my go-to study spot. Plus, their seasonal drinks are always something to look forward to!",
              tag: "Student",
              avatarSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_30ordogEOn7VO6LZdIWb5atLXky/uploaded-1765471373264-byaftobd.jpg",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_30ordogEOn7VO6LZdIWb5atLXky/uploaded-1765471358333-1e6brntp.jpg"
            }
          ]}
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactSplit
          tag="Newsletter"
          title="Stay Updated with Brew Haven"
          description="Subscribe to our newsletter for weekly coffee tips, exclusive blends, and special promotions delivered straight to your inbox."
          useInvertedBackground="noInvert"
          imageSrc="https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_30ordogEOn7VO6LZdIWb5atLXky/uploaded-1765471374251-2ibjvort.jpg"
          mediaPosition="right"
          inputPlaceholder="your@email.com"
          buttonText="Subscribe"
          termsText="We respect your privacy. Unsubscribe anytime."
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterSocial
          logoText="Brew Haven"
          columns={[
            {
              title: "About",
              items: [
                { label: "Our Story", href: "about" },
                { label: "Sustainability", href: "#" },
                { label: "Sourcing", href: "#" }
              ]
            },
            {
              title: "Menu",
              items: [
                { label: "Coffee", href: "features" },
                { label: "Pastries", href: "features" },
                { label: "Drinks", href: "features" }
              ]
            },
            {
              title: "Visit",
              items: [
                { label: "Hours", href: "#" },
                { label: "Location", href: "contact" },
                { label: "Reservations", href: "contact" }
              ]
            },
            {
              title: "Connect",
              items: [
                { label: "Contact Us", href: "contact" },
                { label: "Newsletter", href: "contact" },
                { label: "Careers", 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 Co. 2025. All rights reserved."
        />
      </div>
    </ThemeProvider>
  );
}