"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleCentered from '@/components/navbar/NavbarStyleCentered/NavbarStyleCentered';
import HeroBillboardRotatedCarousel from '@/components/sections/hero/HeroBillboardRotatedCarousel';
import FeatureCardSeven from '@/components/sections/feature/FeatureCardSeven';
import ProductCardOne from '@/components/sections/product/ProductCardOne';
import SocialProofOne from '@/components/sections/socialProof/SocialProofOne';
import MetricCardThree from '@/components/sections/metrics/MetricCardThree';
import FaqSplitText from '@/components/sections/faq/FaqSplitText';
import ContactCTA from '@/components/sections/contact/ContactCTA';
import FooterBase from '@/components/sections/footer/FooterBase';
import { Award, CheckCircle, Crown, Leaf, Mail, Zap, Globe } from 'lucide-react';

export default function LandingPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="bounce-effect"
      defaultTextAnimation="entrance-slide"
      borderRadius="rounded"
      contentWidth="compact"
      sizing="mediumLargeSizeMediumTitles"
      background="noiseDiagonalGradient"
      cardStyle="glass-elevated"
      primaryButtonStyle="primary-glow"
      secondaryButtonStyle="layered"
      headingFontWeight="bold"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleCentered
          brandName="PureDelight"
          navItems={[
            { name: "Products", id: "products" },
            { name: "Process", id: "process" },
            { name: "About", id: "about" },
            { name: "FAQ", id: "faq" },
            { name: "Contact", id: "contact" }
          ]}
          button={{ text: "Shop Now", href: "#products" }}
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroBillboardRotatedCarousel
          title="Premium Dehydrated Fruits"
          description="From Nature, For You. Experience the purity of nature's harvest, expertly dehydrated to lock in flavor and nutrition."
          tag="100% Natural"
          tagIcon={Leaf}
          tagAnimation="slide-up"
          buttons={[
            { text: "Shop Now", href: "#products" },
            { text: "Learn More", href: "#process" }
          ]}
          buttonAnimation="slide-up"
          carouselItems={[
            { id: "carousel-1", imageSrc: "http://img.b2bpic.net/free-photo/close-up-food-preservation-method_23-2149185619.jpg", imageAlt: "Dehydrated Mango Slices" },
            { id: "carousel-2", imageSrc: "http://img.b2bpic.net/free-photo/delightful-pineapple-slices-top-view-old-wood-grunge_176474-5283.jpg", imageAlt: "Dried Pineapple Rings" },
            { id: "carousel-3", imageSrc: "http://img.b2bpic.net/free-photo/close-up-corn-flakes_23-2148407073.jpg", imageAlt: "Dried Jackfruit Chips" },
            { id: "carousel-4", imageSrc: "http://img.b2bpic.net/free-photo/top-view-dried-kiwi-slices-white-background-with-copy-space_141793-9026.jpg", imageAlt: "Mixed Premium Dried Fruits" },
            { id: "carousel-5", imageSrc: "http://img.b2bpic.net/free-photo/top-view-wooden-box-with-various-dried-fruits-wooden-background-with-copy-space_141793-9334.jpg", imageAlt: "Artisan Dried Fruit Display" },
            { id: "carousel-6", imageSrc: "http://img.b2bpic.net/free-photo/top-view-dried-banana-chips-arranged-bottom-black-background-with-copy-space_141793-8997.jpg", imageAlt: "Premium Dried Fruit Texture" }
          ]}
          autoPlay={true}
          autoPlayInterval={5000}
          background={{ variant: "radial-gradient" }}
        />
      </div>

      <div id="process" data-section="process">
        <FeatureCardSeven
          title="Experience the Purity"
          description="Our AI-powered dehydration process locks in the natural flavors and nutritional integrity of every fruit, ensuring you get the best quality premium dried fruits delivered to your doorstep."
          tag="Advanced Technology"
          tagIcon={Zap}
          tagAnimation="slide-up"
          buttons={[
            { text: "Discover Process", href: "#" }
          ]}
          buttonAnimation="slide-up"
          features={[
            {
              id: 1,
              title: "AI-Powered Selection",              description: "Advanced computer vision technology selects only the finest, ripest fruits for dehydration, ensuring consistent premium quality in every batch.",              imageSrc: "http://img.b2bpic.net/free-photo/hand-adjusting-dough-machine_1170-2318.jpg?_wi=1",              imageAlt: "AI-powered fruit selection process"
            },
            {
              id: 2,
              title: "Precision Temperature Control",              description: "Our state-of-the-art dehydration chambers maintain precise temperature and humidity levels to preserve nutrients, color, and authentic fruit flavors.",              imageSrc: "http://img.b2bpic.net/free-photo/hand-adjusting-dough-machine_1170-2318.jpg?_wi=2",              imageAlt: "Precision dehydration technology"
            },
            {
              id: 3,
              title: "Zero Additives Guarantee",              description: "100% natural dehydration without preservatives, artificial flavors, or chemical treatments. Pure fruit, pure nutrition, pure taste.",              imageSrc: "http://img.b2bpic.net/free-photo/hand-adjusting-dough-machine_1170-2318.jpg?_wi=3",              imageAlt: "Natural dehydration guarantee"
            }
          ]}
          textboxLayout="default"
          useInvertedBackground={false}
          animationType="slide-up"
        />
      </div>

      <div id="products" data-section="products">
        <ProductCardOne
          title="Premium Product Collection"
          description="Handpicked, expertly dehydrated fruits that deliver pure natural flavor and optimal nutrition. Each product is carefully curated for quality and taste."
          tag="Exclusively Sourced"
          tagIcon={Crown}
          tagAnimation="slide-up"
          buttons={[
            { text: "View All", href: "#" }
          ]}
          buttonAnimation="slide-up"
          gridVariant="three-columns-all-equal-width"
          animationType="slide-up"
          products={[
            { id: "mango-premium", name: "Premium Dried Mango", price: "$18.99", imageSrc: "http://img.b2bpic.net/free-photo/dried-pineapples-basket-kitchen-towel_176474-8584.jpg", imageAlt: "Premium Dried Mango Slices" },
            { id: "pineapple-premium", name: "Dried Pineapple Rings", price: "$16.99", imageSrc: "http://img.b2bpic.net/free-photo/side-view-close-up-dried-pineapple-fresh-pineapple-wooden-table_176474-3261.jpg", imageAlt: "Premium Dried Pineapple Rings" },
            { id: "jackfruit-premium", name: "Crispy Jackfruit Chips", price: "$19.99", imageSrc: "http://img.b2bpic.net/free-photo/pineapples-with-candied-rings-wooden-surface_176474-8794.jpg", imageAlt: "Premium Dried Jackfruit Chips" },
            { id: "mixed-fruit-1", name: "Deluxe Fruit Mix", price: "$24.99", imageSrc: "http://img.b2bpic.net/free-photo/flavorful-dried-fruits-bowls-towel-marble-background_114579-51609.jpg", imageAlt: "Assorted Premium Dried Fruits" },
            { id: "mixed-fruit-2", name: "Gourmet Trio Pack", price: "$29.99", imageSrc: "http://img.b2bpic.net/free-photo/top-view-cake-slices-with-grapes-cookies-whtie-surface_140725-61807.jpg", imageAlt: "Luxury Dried Fruit Combination" },
            { id: "smoothie-bowl", name: "Smoothie Bowl Bundle", price: "$22.99", imageSrc: "http://img.b2bpic.net/free-photo/top-close-up-view-berries-spoons-bowl-grapes-red-currants-oatmeal-cherries-tablecloth_140725-72188.jpg", imageAlt: "Breakfast Bowl with Dried Fruits" }
          ]}
          textboxLayout="default"
          useInvertedBackground={true}
        />
      </div>

      <div id="social-proof" data-section="social-proof">
        <SocialProofOne
          title="Trusted By Wellness Leaders"
          description="Our premium dried fruits are certified organic, sustainably sourced from Bangladesh, and trusted by health-conscious consumers worldwide."
          tag="Global Trust"
          tagIcon={Award}
          tagAnimation="slide-up"
          names={[
            "Organic Certified",            "100% Natural",            "Premium Quality",            "Sustainably Sourced",            "Health Approved",            "Ethically Harvested",            "Worldwide Shipping"
          ]}
          logos={[
            "http://img.b2bpic.net/free-vector/assortment-with-variety-organic-food-labels_23-2147633882.jpg",            "http://img.b2bpic.net/free-vector/best-qaulity-natural-product-label-stocker_1017-26203.jpg",            "http://img.b2bpic.net/free-vector/collection-premium-golden-round-badges_23-2147635852.jpg",            "http://img.b2bpic.net/free-vector/hand-drawn-fair-trade-label-collection_23-2149487196.jpg",            "http://img.b2bpic.net/free-vector/flat-design-compostable-labels-stamps_23-2149412990.jpg",            "http://img.b2bpic.net/free-vector/indian-independence-day-badges_1142-83.jpg",            "http://img.b2bpic.net/free-vector/logoypes-modern-style_23-2147550167.jpg"
          ]}
          showCard={true}
          speed={35}
          textboxLayout="default"
          useInvertedBackground={false}
        />
      </div>

      <div id="metrics" data-section="metrics">
        <MetricCardThree
          title="Why Choose PureDelight"
          description="Our commitment to excellence is reflected in every metric that defines our premium dried fruit brand."
          tag="Excellence Guaranteed"
          tagIcon={CheckCircle}
          tagAnimation="slide-up"
          buttons={[]}
          buttonAnimation="slide-up"
          metrics={[
            { id: "metric-1", icon: Leaf, title: "100% Natural", value: "Zero Additives" },
            { id: "metric-2", icon: Globe, title: "Worldwide Shipping", value: "150+ Countries" },
            { id: "metric-3", icon: Zap, title: "Nutrient Retention", value: "95% Preserved" },
            { id: "metric-4", icon: Award, title: "Premium Quality", value: "Certified Organic" }
          ]}
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground={true}
        />
      </div>

      <div id="faq" data-section="faq">
        <FaqSplitText
          sideTitle="Frequently Asked Questions"
          sideDescription="Everything you need to know about our premium dehydrated fruits, our process, and our commitment to quality."
          buttons={[]}
          buttonAnimation="slide-up"
          faqs={[
            { id: "faq-1", title: "Are your fruits 100% natural?", content: "Yes! All PureDelight dried fruits are 100% natural with zero additives, preservatives, or artificial flavors. We use only premium, ripened fruits that are carefully selected and gently dehydrated using our advanced AI-powered process." },
            { id: "faq-2", title: "How long do your dried fruits stay fresh?", content: "Our premium dried fruits stay fresh for up to 12 months when stored in a cool, dry place. Once opened, we recommend consuming within 2-3 weeks for optimal flavor and texture. Our airtight packaging helps maintain freshness longer." },
            { id: "faq-3", title: "Where are your fruits sourced from?", content: "All our fruits are ethically sourced from Bangladesh, where we work directly with sustainable farms that follow organic farming practices. We ensure fair trade practices and support local communities throughout our supply chain." },
            { id: "faq-4", title: "Are the products suitable for dietary restrictions?", content: "Our dried fruits are naturally vegan, gluten-free, and paleo-friendly. They contain no GMOs, soy, dairy, or nuts (processed in a facility that handles nuts). Perfect for most dietary preferences and restrictions." },
            { id: "faq-5", title: "What are the shipping times?", content: "We ship worldwide! Standard shipping typically takes 7-14 business days. Express shipping options are available for an additional fee. All packages are carefully packaged to ensure your fruits arrive in perfect condition." },
            { id: "faq-6", title: "Do you offer bulk or wholesale orders?", content: "Absolutely! We offer special pricing for bulk and wholesale orders. Please contact our sales team at wholesale@puredelight.com or call our customer service for custom quotes and partnership opportunities." }
          ]}
          faqsAnimation="slide-up"
          textPosition="left"
          useInvertedBackground={false}
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactCTA
          tag="Get in Touch"
          tagIcon={Mail}
          tagAnimation="slide-up"
          title="Ready to Experience Premium Quality?"
          description="Join thousands of satisfied customers enjoying pure, natural, deliciously healthy dried fruits. Shop now and discover the PureDelight difference."
          buttons={[
            { text: "Shop Premium Fruits", href: "#products" },
            { text: "Contact Us", href: "mailto:hello@puredelight.com" }
          ]}
          buttonAnimation="slide-up"
          background={{ variant: "sparkles-gradient" }}
          useInvertedBackground={true}
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterBase
          logoText="PureDelight"
          copyrightText="© 2025 PureDelight Premium Dried Fruits | Ethically Sourced in Bangladesh | Worldwide Shipping"
          columns={[
            {
              title: "Shop",              items: [
                { label: "All Products", href: "#products" },
                { label: "Dried Mangoes", href: "#products" },
                { label: "Pineapple Rings", href: "#products" },
                { label: "Jackfruit Chips", href: "#products" }
              ]
            },
            {
              title: "Company",              items: [
                { label: "About Us", href: "#process" },
                { label: "Our Process", href: "#process" },
                { label: "Sustainability", href: "#" },
                { label: "Careers", href: "#" }
              ]
            },
            {
              title: "Support",              items: [
                { label: "FAQ", href: "#faq" },
                { label: "Contact Us", href: "mailto:hello@puredelight.com" },
                { label: "Shipping Info", href: "#" },
                { label: "Returns", href: "#" }
              ]
            },
            {
              title: "Legal",              items: [
                { label: "Privacy Policy", href: "#" },
                { label: "Terms of Service", href: "#" },
                { label: "Cookie Policy", href: "#" },
                { label: "Contact", href: "mailto:hello@puredelight.com" }
              ]
            }
          ]}
        />
      </div>
    </ThemeProvider>
  );
}