"use client"

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleFullscreen from '@/components/navbar/NavbarStyleFullscreen/NavbarStyleFullscreen';
import HeroBillboardSplit from '@/components/sections/hero/HeroBillboardSplit';
import TestimonialAboutCard from '@/components/sections/about/TestimonialAboutCard';
import ProductCardSeven from '@/components/sections/product/ProductCardSeven';
import TestimonialCardThirteen from '@/components/sections/testimonial/TestimonialCardThirteen';
import ContactCenterForm from '@/components/sections/contact/ContactCenterForm';
import FooterSocial from '@/components/sections/footer/FooterSocial';
import SplitAboutMetric from '@/components/sections/about/SplitAboutMetric';
import FeatureCardEighteen from '@/components/sections/feature/FeatureCardEighteen';
import PricingCardFive from '@/components/sections/pricing/PricingCardFive';
import MetricCardEleven from '@/components/sections/metrics/MetricCardEleven';
import TeamCardOne from '@/components/sections/team/TeamCardOne';
import TestimonialCardTwelve from '@/components/sections/testimonial/TestimonialCardTwelve';
import FaqDouble from '@/components/sections/faq/FaqDouble';
import BlogCardEleven from '@/components/sections/blog/BlogCardEleven';
import ContactText from '@/components/sections/contact/ContactText';
import TimelineProcessFlow from '@/components/cardStack/layouts/timelines/TimelineProcessFlow';
import { Heart, Star, Quote, Instagram, Facebook, MapPin, Phone, Clock, CheckCircle2, Check, Sparkles } from "lucide-react";

export default function LandingPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="elastic-effect"
      defaultTextAnimation="reveal-blur"
      borderRadius="sharp"
      contentWidth="medium"
      sizing="largeSmall"
      background="circleGradient"
      cardStyle="gradient-radial"
      primaryButtonStyle="gradient"
      secondaryButtonStyle="layered"
      headingFontWeight="bold"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleFullscreen
          navItems={[
            { name: "Home", id: "home" },
            { name: "About", id: "about" },
            { name: "Products", id: "products" },
            { name: "Contact", id: "contact" }
          ]}
          brandName="Sweet Bakes"
          bottomLeftText="Freshly Baked Daily"
          bottomRightText="hello@sweetbakes.com"
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroBillboardSplit
          title="Sweet Bakery "
          description="Made with love every morning."
          tag=""
          imageSrc="https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766917795607-6sca7wpy.jpg"
          imageAlt="Fresh bakery display with pastries and bread"
          frameStyle="browser"
          buttons={[{"text":"Order","href":"https://google.com"},
            {"text":"Skip","href":"about"}]}
        />
      </div>

      <div id="about" data-section="about">
        <SplitAboutMetric
          title="A Legacy Of Timeless Elegance"
          useInvertedBackground="noInvert"
          description={[
            "Top bakers from all over the world"
          ]}
          metrics={[
            { label: "Various types of landmarks built", value: "75+" },
            { label: "Sq.ft area", value: "15M+" }
          ]}
        />
      </div>

      <div id="feature" data-section="feature">
        <FeatureCardEighteen
          negativeCard={{
            title: "Without Us",
            imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766917795607-6sca7wpy.jpg",
            items: ["Time-consuming processes", "Limited scalability", "Higher costs"]
          }}
          positiveCard={{
            title: "With Us",
            imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766923138738-fu9kdakz.jpg",
            items: ["Streamlined workflow", "Scalable solutions", "Better value"]
          }}
          animationType="slide-up"
          title="What makes us stand out"
          description="See how we compare to traditional approaches"
          textboxLayout="default"
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="products" data-section="products">
        <ProductCardSeven
          title="Our Signature Collection"
          description="Explore our best-selling bakery items made fresh daily with premium ingredients"
          tag="Best Sellers"
          tagIcon={Star}
          textboxLayout="default"
          gridVariant="uniform-all-items-equal"
          animationType="slide-up"
          useInvertedBackground="noInvert"
          products={[
            {
              id: "1",
              name: "Classic Croissant",
              price: "$4.99",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766245914004-rta09f98.jpg",
              imageAlt: "Buttery croissant",
              onProductClick: () => window.location.href = "#contact",
              isFavorited: false
            },
            {
              id: "2",
              name: "Artisan Sourdough",
              price: "$7.99",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766815285364-7q7e9roz.jpg",
              imageAlt: "Artisan sourdough bread",
              onProductClick: () => window.location.href = "#contact",
              isFavorited: false
            },
            {
              id: "3",
              name: "Chocolate Cake",
              price: "$24.99",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766849870204-lmbcrr56.jpg",
              imageAlt: "Decadent chocolate cake",
              onProductClick: () => window.location.href = "#contact",
              isFavorited: false
            },
            {
              id: "4",
              name: "Glazed Donuts",
              price: "$3.99",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766915699751-fy2shocj.jpg",
              imageAlt: "Glazed donuts",
              onProductClick: () => window.location.href = "#contact",
              isFavorited: false
            },
            {
              id: "5",
              name: "Blueberry Muffin",
              price: "$5.99",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766245914004-rta09f98.jpg",
              imageAlt: "Fresh blueberry muffin",
              onProductClick: () => window.location.href = "#contact",
              isFavorited: false
            },
            {
              id: "6",
              name: "Almond Croissant",
              price: "$6.99",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766815285364-7q7e9roz.jpg",
              imageAlt: "Almond-filled croissant",
              onProductClick: () => window.location.href = "#contact",
              isFavorited: false
            },
            {
              id: "7",
              name: "Strawberry Tart",
              price: "$8.99",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766849870204-lmbcrr56.jpg",
              imageAlt: "Fresh strawberry tart",
              onProductClick: () => window.location.href = "#contact",
              isFavorited: false
            },
            {
              id: "8",
              name: "Cinnamon Roll",
              price: "$5.49",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766915699751-fy2shocj.jpg",
              imageAlt: "Warm cinnamon roll",
              onProductClick: () => window.location.href = "#contact",
              isFavorited: false
            },
            {
              id: "9",
              name: "Macarons Assortment",
              price: "$12.99",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766245914004-rta09f98.jpg",
              imageAlt: "Colorful macaron assortment",
              onProductClick: () => window.location.href = "#contact",
              isFavorited: false
            },
            {
              id: "10",
              name: "Baguette",
              price: "$6.49",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766815285364-7q7e9roz.jpg",
              imageAlt: "Traditional French baguette",
              onProductClick: () => window.location.href = "#contact",
              isFavorited: false
            }
          ]}
        />
      </div>

      <div id="pricing" data-section="pricing">
        <PricingCardFive
          plans={[
            {
              id: "monthly",
              tag: "Monthly Retainer Plan",
              price: "$5,000",
              period: "/m",
              description: "Scale design, no-code builds & copy quicker than recruiting in-house.",
              button: { text: "Schedule a call", href: "#contact" },
              featuresTitle: "What's Included:",
              features: ["Unlimited design requests", "48-hour turnaround", "Dedicated project manager"]
            },
            {
              id: "quarterly",
              tag: "Quarterly Plan",
              price: "$12,000",
              period: "/q",
              description: "Ideal for growing teams needing consistent design support.",
              button: { text: "Get started", href: "#contact" },
              featuresTitle: "What's Included:",
              features: ["Priority support", "Strategy sessions", "Brand consistency"]
            }
          ]}
          animationType="slide-up"
          title="Simple, Transparent Pricing"
          description="Choose the plan that fits your needs"
          textboxLayout="default"
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="metrics" data-section="metrics">
        <MetricCardEleven
          metrics={[
            {
              id: "1",
              value: "10M+",
              title: "Organic Views",
              description: "Growth through smart content strategy",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766917795607-6sca7wpy.jpg",
              imageAlt: "Content creator working"
            },
            {
              id: "2",
              value: "500K+",
              title: "New Followers",
              description: "Engaged community members gained",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766923138738-fu9kdakz.jpg",
              imageAlt: "Social media engagement"
            }
          ]}
          title="Our Impact"
          description="See the results we've delivered for our clients"
          textboxLayout="default"
          useInvertedBackground="noInvert"
          animationType="slide-up"
        />
      </div>

      <div id="team" data-section="team">
        <TeamCardOne
          members={[
            { id: "1", name: "Sophie P.", role: "Digital Nomad", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766154635301-vse33sxl.jpg", imageAlt: "Sophie P." },
            { id: "2", name: "Michael C.", role: "Web Designer", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766183842429-uezzjpov.jpg", imageAlt: "Michael C." },
            { id: "3", name: "Emma R.", role: "Brand Strategist", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766184309647-aqbmmuiq.jpg", imageAlt: "Emma R." }
          ]}
          title="Meet Our Team"
          description="Get to know the people behind our success"
          textboxLayout="default"
          animationType="slide-up"
          useInvertedBackground="noInvert"
          gridVariant="uniform-all-items-equal"
        />
      </div>

      <div id="testimonials-simple" data-section="testimonials-simple">
        <TestimonialCardTwelve
          testimonials={[
            { id: "1", name: "Sarah Johnson", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766154635301-vse33sxl.jpg", imageAlt: "Sarah Johnson" },
            { id: "2", name: "Michael Chen", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766183842429-uezzjpov.jpg", imageAlt: "Michael Chen" },
            { id: "3", name: "Emma Davis", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766184309647-aqbmmuiq.jpg", imageAlt: "Emma Davis" },
            { id: "4", name: "James Wilson", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766849444575-td00y2fe.jpg", imageAlt: "James Wilson" }
          ]}
          cardTitle="Over 10,000 customers trust us to deliver exceptional results"
          cardTag="See what they say"
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="faq" data-section="faq">
        <FaqDouble
          faqs={[
            { id: "1", title: "What is your return policy?", content: "We offer a 30-day money-back guarantee on all our products." },
            { id: "2", title: "How long does shipping take?", content: "Standard shipping typically takes 5-7 business days." },
            { id: "3", title: "Do you ship internationally?", content: "Yes, we ship to over 100 countries worldwide." },
            { id: "4", title: "Can I customize my order?", content: "Absolutely! Custom orders are welcome. Please contact us for details." }
          ]}
          title="Frequently Asked Questions"
          description="Find answers to common questions"
          textboxLayout="default"
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="blog" data-section="blog">
        <BlogCardEleven
          blogs={[
            {
              id: "1",
              title: "New Genre Featured in Fonts in Use",
              author: "Leon Brown",
              description: "We have been featured in Fonts in Use for our typography choices.",
              tags: ["Feature", "Design"],
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766917795607-6sca7wpy.jpg",
              imageAlt: "Typography showcase"
            },
            {
              id: "2",
              title: "The Future of Web Design",
              author: "Sarah Mitchell",
              description: "Exploring emerging trends and technologies shaping the future of web design.",
              tags: ["Trends", "Web Design"],
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766923138738-fu9kdakz.jpg",
              imageAlt: "Web design future"
            }
          ]}
          animationType="slide-up"
          title="Latest News"
          description="Stay updated with our latest announcements"
          textboxLayout="default"
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="timeline" data-section="timeline">
        <TimelineProcessFlow
          title="Our Journey"
          description="Discover the milestones that shaped our story"
          tag="Timeline"
          textboxLayout="default"
          animationType="slide-up"
          items={[
            {
              id: "1",
              reverse: false,
              media: <div style={{ width: "100%", height: "100%", backgroundColor: "#f0f0f0", display: "flex", alignItems: "center", justifyContent: "center", borderRadius: "8px" }}><span>Foundation</span></div>,
              content: <><h3 style={{ fontSize: "20px", fontWeight: "600", marginBottom: "8px" }}>Foundation</h3><p style={{ marginBottom: "12px" }}>Started our journey</p><ul style={{ listStyle: "none", paddingLeft: "0" }}><li style={{ marginBottom: "6px" }}>✓ Launched MVP</li><li>✓ First customer</li></ul></>
            },
            {
              id: "2",
              reverse: true,
              media: <div style={{ width: "100%", height: "100%", backgroundColor: "#f0f0f0", display: "flex", alignItems: "center", justifyContent: "center", borderRadius: "8px" }}><span>Growth</span></div>,
              content: <><h3 style={{ fontSize: "20px", fontWeight: "600", marginBottom: "8px" }}>Growth</h3><p style={{ marginBottom: "12px" }}>Expanded our reach</p><ul style={{ listStyle: "none", paddingLeft: "0" }}><li style={{ marginBottom: "6px" }}>✓ Scaled team</li><li>✓ Global expansion</li></ul></>
            }
          ]}
        />
      </div>

      <div id="contact-text" data-section="contact-text">
        <ContactText
          text="Ready to start your next project? Let's create something amazing together."
          animationType="entrance-slide"
          buttons={[{ text: "Get in Touch", href: "#contact" }, { text: "View Portfolio", href: "#products" }]}
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardThirteen
          title="What Our Customers Say"
          description="Join hundreds of satisfied customers who love our fresh-baked treats"
          tag="Reviews"
          tagIcon={Quote}
          textboxLayout="default"
          animationType="slide-up"
          useInvertedBackground="noInvert"
          showRating={true}
          testimonials={[
            {
              id: "1",
              name: "Sarah Mitchell",
              handle: "@sarahmitchell",
              testimonial: "The croissants here are absolutely incredible! Perfectly buttery and fresh every single time. My go-to spot for breakfast.",
              rating: 5,
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766154635301-vse33sxl.jpg",
              imageAlt: "Sarah Mitchell"
            },
            {
              id: "2",
              name: "James Chen",
              handle: "@jameschen92",
              testimonial: "Best sourdough in town! The flavor is incredible and they use only natural ingredients. Worth every penny.",
              rating: 5,
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766183842429-uezzjpov.jpg",
              imageAlt: "James Chen"
            },
            {
              id: "3",
              name: "Emma Rodriguez",
              handle: "@emmarod",
              testimonial: "I order their birthday cakes for all my celebrations. Beautiful designs and absolutely delicious. Highly recommended!",
              rating: 5,
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766184309647-aqbmmuiq.jpg",
              imageAlt: "Emma Rodriguez"
            },
            {
              id: "4",
              name: "David Thompson",
              handle: "@davidthompson",
              testimonial: "Sweet Bakes has become my daily ritual. Their pastries are made with such care and attention to detail. Love this place!",
              rating: 5,
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766849444575-td00y2fe.jpg",
              imageAlt: "David Thompson"
            }
          ]}
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactCenterForm
          title="Place Your Order"
          description="Fill out the form below to order your favorite fresh-baked items. We'll confirm your order within 2 hours."
          useInvertedBackground="noInvert"
          buttonText="Send Order"
          inputs={[
            { name: "name", type: "text", placeholder: "Your Name", required: true },
            { name: "email", type: "email", placeholder: "Email Address", required: true },
            { name: "phone", type: "tel", placeholder: "Phone Number", required: true }
          ]}
          textarea={{ name: "order", placeholder: "What would you like to order? Include quantities and any special requests...", rows: 5, required: true }}
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterSocial
          logoText="Sweet Bakery"
          columns={[
            {
              title: "Company",
              items: [
                { label: "About Us", href: "about" },
                { label: "Contact", href: "contact" }
              ]
            },
            {
              title: "Products",
              items: [
                { label: "Pastries", href: "products" },
                { label: "Custom Orders", 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" }
          ]}
          copyrightText="© Sweet Bakery, 2025. All rights reserved."
        />
      </div>
    </ThemeProvider>
  );
}