"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleFullscreen from '@/components/navbar/NavbarStyleFullscreen/NavbarStyleFullscreen';
import HeroOverlayBottomSplit from '@/components/sections/hero/HeroOverlayBottomSplit';
import TextAbout from '@/components/sections/about/TextAbout';
import ProductCardSix from '@/components/sections/product/ProductCardSix';
import TestimonialCardTen from '@/components/sections/testimonial/TestimonialCardTen';
import SocialProofThree from '@/components/sections/socialProof/SocialProofThree';
import ContactSplit from '@/components/sections/contact/ContactSplit';
import FooterBaseCard from '@/components/sections/footer/FooterBaseCard';
import PricingCardFive from '@/components/sections/pricing/PricingCardFive';
import { Zap } from 'lucide-react';

export default function LandingPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="hover-magnetic"
      defaultTextAnimation="background-highlight"
      borderRadius="pill"
      contentWidth="small"
      sizing="small"
      background="dotGrid"
      cardStyle="elevated-accent"
      primaryButtonStyle="gradient"
      secondaryButtonStyle="layered"
      headingFontWeight="extrabold"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleFullscreen
          navItems={[
            { name: "Home", id: "hero" },
            { name: "Menu", id: "menu" },
            { name: "About", id: "about" },
            { name: "Reviews", id: "testimonials" },
            { name: "Contact", id: "contact" }
          ]}
          logoSrc="https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766140108208-9jx2n5py.jpg"
          logoAlt="Coffeeshop Logo"
          brandName="Brew Haven"
          bottomLeftText="Specialty Coffee & More"
          bottomRightText="hello@brewhaven.com"
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroOverlayBottomSplit
          title="Craft Coffee, Crafted with Care"
          description="Discover specialty coffee roasted fresh daily. We bring the finest beans from around the world to your cup."
          buttons={[
            { text: "Explore Menu", href: "menu" },
            { text: "Visit Us Today", href: "contact" }
          ]}
          imageSrc="https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766140053900-frhkawzl.jpg"
          imageAlt="Specialty coffee in a ceramic cup"
          showDimOverlay={true}
          ariaLabel="Hero section showcasing specialty coffee"
        />
      </div>

      <div id="about" data-section="about">
        <TextAbout
          title="We believe in honest coffee. Every cup tells a story of passion, quality, and connection to the farmers who grew it."
          useInvertedBackground="noInvert"
          buttons={[
            { text: "Our Story", href: "about" },
            { text: "Learn More", href: "contact" }
          ]}
        />
      </div>

      <div id="menu" data-section="menu">
        <ProductCardSix
          title="Menu"
          description="Explore our signature drinks and freshly baked pastries. Each item is crafted with precision and care."
          products={[
            {
              id: "1",
              name: "Single Origin Espresso",
              price: "$4.50",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766183740051-csjqe6w0.jpg",
              imageAlt: "Single origin espresso shot"
            },
            {
              id: "2",
              name: "Artisan Cappuccino",
              price: "$5.75",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766140052116-ugc31hy1.jpg",
              imageAlt: "Cappuccino with latte art"
            },
            {
              id: "3",
              name: "Fresh Pastries",
              price: "$3.50",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766183584228-m2bixr3w.jpg",
              imageAlt: "Assorted fresh baked pastries"
            }
          ]}
          gridVariant="uniform-all-items-equal"
          animationType="slide-up"
          containerStyle="default"
          textboxLayout="default"
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="competitors" data-section="competitors">
        <PricingCardFive
          title="How We Compare"
          description="See why Brew Haven stands out from the competition. We deliver superior quality, service, and value."
          tag="Our Advantage"
          tagIcon={Zap}
          animationType="slide-up"
          variant="card"
          textboxLayout="default"
          useInvertedBackground="noInvert"
          plans={[
            {
              id: "competitor-1",
              tag: "Standard Coffee Shop",
              price: "$3-4",
              period: "/cup",
              description: "Mass-produced, pre-roasted beans with inconsistent quality and limited selections.",
              button: { text: "Learn More", href: "#" },
              featuresTitle: "What You Get:",
              features: [
                "Pre-roasted beans",
                "Limited drink options",
                "Standard service",
                "Basic pastries"
              ]
            },
            {
              id: "competitor-2",
              tag: "Corporate Chain",
              price: "$5-7",
              period: "/cup",
              description: "Branded experience with standardized recipes and high-volume production prioritizing speed over quality.",
              button: { text: "Learn More", href: "#" },
              featuresTitle: "What You Get:",
              features: [
                "Standardized recipes",
                "Quick service",
                "Branded atmosphere",
                "Commercial pastries"
              ]
            },
            {
              id: "brew-haven",
              tag: "Brew Haven",
              tagIcon: Zap,
              price: "$4.50-5.75",
              period: "/cup",
              description: "Specialty-roasted fresh daily with personalized service and artisanal craftsmanship in every cup.",
              button: { text: "Visit Us Today", href: "contact" },
              featuresTitle: "What You Get:",
              features: [
                "Fresh daily roasting",
                "Single-origin selections",
                "Personalized service",
                "Handcrafted pastries",
                "Knowledgeable baristas",
                "Community focus"
              ]
            }
          ]}
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardTen
          title="What Our Customers Say"
          description="Join hundreds of satisfied coffee lovers who have made Brew Haven their daily ritual."
          variant="card"
          textboxLayout="default"
          useInvertedBackground="noInvert"
          testimonials={[
            {
              id: "1",
              title: "The Perfect Morning Ritual",
              quote: "The quality of coffee here is unmatched. Every single cup is perfectly crafted and tastes like pure happiness. This place has become my sanctuary.",
              name: "Sarah Martinez",
              role: "Designer",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766183586665-q5sajrdt.jpg",
              imageAlt: "Sarah Martinez portrait"
            },
            {
              id: "2",
              title: "Atmosphere & Excellence Combined",
              quote: "What sets Brew Haven apart is their commitment to both quality and warmth. The baristas genuinely care, and it shows in every interaction.",
              name: "James Chen",
              role: "Entrepreneur",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766183587552-1pqoe5c0.jpg",
              imageAlt: "James Chen portrait"
            },
            {
              id: "3",
              title: "A Coffee Lover's Dream",
              quote: "I've traveled extensively and tasted coffee everywhere. This is genuinely some of the best I've ever had. The single-origin selections are phenomenal.",
              name: "Emily Rodriguez",
              role: "Travel Writer",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766154634313-y5tjxwwi.jpg",
              imageAlt: "Emily Rodriguez portrait"
            },
            {
              id: "4",
              title: "More Than Just Coffee",
              quote: "It's not just the coffee that brings me back daily. It's the community, the knowledge the team shares, and the genuine care they put into everything.",
              name: "Michael Thompson",
              role: "Graphic Designer",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766182321167-i4kvpj5f.jpg",
              imageAlt: "Michael Thompson portrait"
            }
          ]}
        />
      </div>

      <div id="social-proof" data-section="social-proof">
        <SocialProofThree
          title="Trusted by Coffee Enthusiasts"
          description="We partner with the finest roasters and certification organizations committed to quality and sustainability."
          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-1766162773520-d3l7c32r.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-1766183581068-iklr7ul7.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-1766183582037-814qymx8.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-1766183582950-ea055ote.jpg"
          ]}
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground="noInvert"
          speed={40}
          topMarqueeDirection="left"
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactSplit
          tag="Stay Connected"
          title="Join Our Coffee Community"
          description="Subscribe to our newsletter for new roasts, brewing tips, and exclusive member-only events. We share your passion for great coffee."
          useInvertedBackground="noInvert"
          imageSrc="https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766183585667-fud4izge.jpg"
          imageAlt="Brew Haven coffeeshop interior"
          mediaPosition="right"
          inputPlaceholder="Enter your email"
          buttonText="Subscribe"
          termsText="We respect your inbox. Unsubscribe anytime."
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterBaseCard
          logoText="Brew Haven"
          columns={[
            {
              title: "Coffee",
              items: [
                { label: "Our Menu", href: "#menu" },
                { label: "Brewing Guide", href: "#" },
                { label: "Single Origins", href: "#" }
              ]
            },
            {
              title: "Visit Us",
              items: [
                { label: "Location & Hours", href: "#contact" },
                { label: "Make a Reservation", href: "#" },
                { label: "Gift Cards", href: "#" }
              ]
            },
            {
              title: "About",
              items: [
                { label: "Our Story", href: "#about" },
                { label: "Sustainability", href: "#" },
                { label: "Careers", href: "#" }
              ]
            },
            {
              title: "Connect",
              items: [
                { label: "Instagram", href: "#" },
                { label: "Facebook", href: "#" },
                { label: "Contact Us", href: "#contact" }
              ]
            }
          ]}
          copyrightText="© 2025 Brew Haven. All rights reserved."
        />
      </div>
    </ThemeProvider>
  );
}
