"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleApple from '@/components/navbar/NavbarStyleApple/NavbarStyleApple';
import HeroSplitAvatars from '@/components/sections/hero/HeroSplitAvatars';
import AboutPhoneTimeline from '@/components/sections/about/AboutPhoneTimeline';
import FeatureCardSix from '@/components/sections/feature/FeatureCardSix';
import ProductCardTwo from '@/components/sections/product/ProductCardTwo';
import TestimonialCardTen from '@/components/sections/testimonial/TestimonialCardTen';
import FaqSplitMedia from '@/components/sections/faq/FaqSplitMedia';
import ContactFaq from '@/components/sections/contact/ContactFaq';
import FooterMedia from '@/components/sections/footer/FooterMedia';
import { Coffee, Calendar } from "lucide-react";

export default function LandingPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="text-stagger"
      defaultTextAnimation="reveal-blur"
      borderRadius="pill"
      contentWidth="medium"
      sizing="mediumLarge"
      background="animatedGrid"
      cardStyle="glass-depth"
      primaryButtonStyle="diagonal-gradient"
      secondaryButtonStyle="radial-glow"
      headingFontWeight="light"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleApple
          brandName="Artisan Coffee"
          navItems={[
            { name: "About", id: "about" },
            { name: "Menu", id: "products" },
            { name: "Process", id: "features" },
            { name: "Reviews", id: "testimonials" },
            { name: "Contact", id: "contact" }
          ]}
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroSplitAvatars
          title="Exceptional Coffee, Crafted with Care"
          description="Discover our single-origin, artisan-roasted coffee sourced directly from premium farms around the world. Every cup tells a story of dedication and excellence."
          tag="Premium Coffee Shop"
          tagIcon={Coffee}
          imageSrc="https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1767778232695-4ni3mtux.jpg"
          imageAlt="Premium artisan coffee preparation"
          imagePosition="right"
          avatars={[
            { src: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1767698836114-ric6d4b4.jpg", alt: "Customer 1" },
            { src: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1767698836698-ror4nxcc.jpg", alt: "Customer 2" },
            { src: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1767703279125-zt9y9jcg.jpg", alt: "Customer 3" },
            { src: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1767703279840-uicmktru.jpg", alt: "Customer 4" },
            { src: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1767703280295-jyqaitc4.jpg", alt: "Customer 5" }
          ]}
          avatarText="Join 2,000+ coffee enthusiasts"
          buttons={[
            { text: "Explore Menu", href: "products" },
            { text: "Reserve Table", href: "contact" }
          ]}
        />
      </div>

      <div id="about" data-section="about">
        <AboutPhoneTimeline
          tag="Our Story"
          title="Rooted in Passion, Built on Excellence"
          description="Since 2015, we've been on a mission to bring the world's finest coffee directly to your cup. Our commitment to quality, sustainability, and craftsmanship defines every aspect of our business."
          textboxLayout="default"
          phoneOne={{
            imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1767778565196-x6rm7cqo.jpg",            imageAlt: "Coffee bean selection process"
          }}
          phoneTwo={{
            imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1767703271475-umhy63yr.jpg",            imageAlt: "Expert barista preparation"
          }}
          useInvertedBackground="invertDefault"
          buttons={[
            { text: "Learn More", href: "#" },
            { text: "Visit Us", href: "contact" }
          ]}
        />
      </div>

      <div id="features" data-section="features">
        <FeatureCardSix
          title="Our Coffee Crafting Process"
          description="From farm to cup, we control every step to ensure uncompromising quality"
          tag="Three-Step Excellence"
          textboxLayout="default"
          useInvertedBackground="invertCard"
          features={[
            {
              id: 1,
              title: "Ethical Sourcing",              description: "We partner directly with farmers who share our values, ensuring fair prices and sustainable practices across our entire supply chain.",              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1767703277333-up8r95tt.jpg"
            },
            {
              id: 2,
              title: "Expert Roasting",              description: "Each batch is roasted to perfection by our master roasters using traditional techniques combined with modern precision.",              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1767703278274-2ffy31vt.jpg"
            },
            {
              id: 3,
              title: "Artisan Preparation",              description: "Our skilled baristas craft every beverage with meticulous attention to detail, honoring the beans' unique characteristics.",              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1767703272014-5h5ktmee.jpg"
            }
          ]}
        />
      </div>

      <div id="products" data-section="products">
        <ProductCardTwo
          title="Our Signature Collection"
          description="Handpicked varieties from the world's most renowned coffee regions"
          tag="Premium Blends"
          textboxLayout="default"
          useInvertedBackground="noInvert"
          animationType="slide-up"
          gridVariant="three-columns-all-equal-width"
          products={[
            {
              id: "1",              brand: "Artisan Coffee Co.",              name: "Ethiopian Yirgacheffe",              price: "$18.99",              rating: 5,
              reviewCount: "342",              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1767703272607-hrdg3apt.jpg",              imageAlt: "Ethiopian Yirgacheffe coffee"
            },
            {
              id: "2",              brand: "Artisan Coffee Co.",              name: "Colombian Geisha",              price: "$24.99",              rating: 5,
              reviewCount: "198",              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1767703273196-zxvl103k.jpg",              imageAlt: "Colombian Geisha coffee"
            },
            {
              id: "3",              brand: "Artisan Coffee Co.",              name: "Kenyan AA Reserve",              price: "$21.99",              rating: 5,
              reviewCount: "267",              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1767703273752-lopf7a1d.jpg",              imageAlt: "Kenyan AA Reserve coffee"
            }
          ]}
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardTen
          title="Loved by Coffee Connoisseurs"
          description="Hear from our community of passionate coffee enthusiasts and loyal customers"
          tag="Customer Stories"
          textboxLayout="default"
          useInvertedBackground="invertDefault"
          testimonials={[
            {
              id: "1",              title: "Life-Changing Coffee Experience",              quote: "I've tried countless coffee shops, but nothing compares to the quality and care here. Every cup is a revelation.",              name: "Marcus Chen",              role: "Coffee Enthusiast",              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1767698836114-ric6d4b4.jpg",              imageAlt: "Marcus Chen"
            },
            {
              id: "2",              title: "The Baristas Really Know Their Craft",              quote: "The expertise of the team here is remarkable. They helped me discover new flavor profiles I never knew existed.",              name: "Sarah Williams",              role: "Marketing Executive",              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1767698836698-ror4nxcc.jpg",              imageAlt: "Sarah Williams"
            },
            {
              id: "3",              title: "Sustainable and Delicious",              quote: "I love knowing that my coffee purchase directly supports ethical farming practices. Taste and values aligned.",              name: "James Rodriguez",              role: "Sustainability Advocate",              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1767703279125-zt9y9jcg.jpg",              imageAlt: "James Rodriguez"
            },
            {
              id: "4",              title: "My Daily Sanctuary",              quote: "This place has become my favorite retreat. The atmosphere, service, and coffee are all exceptional.",              name: "Elena Kovac",              role: "Artist",              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1767703279840-uicmktru.jpg",              imageAlt: "Elena Kovac"
            },
            {
              id: "5",              title: "Finally Found Quality I Trust",              quote: "Transparent sourcing, fair pricing, and genuinely excellent coffee. Everything a specialty shop should be.",              name: "David Park",              role: "Business Owner",              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1767703280295-jyqaitc4.jpg",              imageAlt: "David Park"
            },
            {
              id: "6",              title: "Worth Every Penny",              quote: "The premium price point is completely justified by the quality. This is coffee at its finest.",              name: "Victoria Thompson",              role: "Food Critic",              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1767703280834-xotu673s.jpg",              imageAlt: "Victoria Thompson"
            }
          ]}
        />
      </div>

      <div id="faq" data-section="faq">
        <FaqSplitMedia
          title="Common Questions"
          description="Everything you need to know about our coffee and services"
          tag="FAQ"
          textboxLayout="default"
          useInvertedBackground="invertCard"
          imageSrc="https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1767703274565-gomx2kvu.jpg"
          imageAlt="Our cozy coffee shop atmosphere"
          mediaPosition="left"
          animationType="smooth"
          faqs={[
            {
              id: "1",              title: "Where do you source your coffee beans?",              content: "We work directly with farmers in Ethiopia, Colombia, Kenya, and other premier coffee regions. We maintain long-term relationships with our partners to ensure consistent quality and fair compensation."
            },
            {
              id: "2",              title: "What's your brewing method?",              content: "Our baristas are trained in multiple brewing methods including espresso, pour-over, French press, and AeroPress. We recommend the brewing method that best highlights each coffee's unique characteristics."
            },
            {
              id: "3",              title: "Do you offer decaffeinated options?",              content: "Yes! We offer water-processed decaf options from select origins. The decaf is crafted with the same care and attention as our regular coffee."
            },
            {
              id: "4",              title: "Can I buy whole beans for home brewing?",              content: "Absolutely. We offer whole beans in 1lb, 5lb, and 10lb bags. We also provide fresh grinding to your preferred coarseness at no additional charge."
            },
            {
              id: "5",              title: "Do you have loyalty or subscription programs?",              content: "Yes! Our Coffee Club members receive 15% off all purchases, early access to limited releases, and monthly tasting events. Subscriptions start at just $49/month."
            },
            {
              id: "6",              title: "What are your hours and do you have seating?",              content: "We're open Monday-Friday 6am-8pm, Saturday 7am-9pm, and Sunday 8am-7pm. We have comfortable seating for 40+ guests, free WiFi, and a welcoming atmosphere for studying or meetings."
            }
          ]}
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactFaq
          ctaTitle="Reserve Your Table Today"
          ctaDescription="Book an intimate coffee experience with our expert team. Small groups welcome."
          ctaButton={{
            text: "Book Now",            href: "#"
          }}
          ctaIcon={Calendar}
          useInvertedBackground="noInvert"
          animationType="slide-up"
          accordionAnimationType="smooth"
          faqs={[
            {
              id: "1",              title: "How do I place an order?",              content: "Orders can be placed in-person at our shop, via phone at (555) 123-4567, or through our website. We also accept online orders for pickup and shipping."
            },
            {
              id: "2",              title: "Do you offer wholesale or corporate accounts?",              content: "Yes! We work with offices, restaurants, and retailers. Contact our corporate team at corporate@artisancoffee.com for volume pricing and custom solutions."
            },
            {
              id: "3",              title: "What's your return or refund policy?",              content: "We stand behind our products. If you're not satisfied with whole bean coffee, we offer a full refund or replacement within 30 days of purchase."
            }
          ]}
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterMedia
          imageSrc="https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1767703275444-ucdenu9j.jpg"
          imageAlt="Coffee beans texture background"
          logoText="Artisan Coffee"
          copyrightText="© 2025 Artisan Coffee Co. | Crafting Excellence Since 2015"
          columns={[
            {
              title: "Shop",              items: [
                { label: "Browse Menu", href: "products" },
                { label: "Subscription Plans", href: "#" },
                { label: "Wholesale", href: "#" },
                { label: "Gift Cards", href: "#" }
              ]
            },
            {
              title: "Company",              items: [
                { label: "About Us", href: "about" },
                { label: "Our Story", href: "about" },
                { label: "Sustainability", href: "#" },
                { label: "Careers", href: "#" }
              ]
            },
            {
              title: "Connect",              items: [
                { label: "Contact", href: "contact" },
                { label: "Instagram", href: "#" },
                { label: "Newsletter", href: "#" },
                { label: "Events", href: "#" }
              ]
            }
          ]}
        />
      </div>
    </ThemeProvider>
  );
}