"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarLayoutFloatingInline from "@/components/navbar/NavbarLayoutFloatingInline";
import HeroSplit from "@/components/sections/hero/HeroSplit";
import FeatureCardTwentyThree from "@/components/sections/feature/FeatureCardTwentyThree";
import ProductCardThree from "@/components/sections/product/ProductCardThree";
import TestimonialCardTen from "@/components/sections/testimonial/TestimonialCardTen";
import MetricCardTwo from "@/components/sections/metrics/MetricCardTwo";
import FaqDouble from "@/components/sections/faq/FaqDouble";
import ContactText from "@/components/sections/contact/ContactText";
import FooterLogoEmphasis from "@/components/sections/footer/FooterLogoEmphasis";
import { Sparkles, Zap, Star, TrendingUp, HelpCircle } from "lucide-react";

export default function LandingPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="shift-hover"
      defaultTextAnimation="background-highlight"
      borderRadius="soft"
      contentWidth="medium"
      sizing="large"
      background="circleGradient"
      cardStyle="gradient-mesh"
      primaryButtonStyle="radial-glow"
      secondaryButtonStyle="glass"
      headingFontWeight="light"
    >
      <div id="nav" data-section="nav">
        <NavbarLayoutFloatingInline
          brandName="B2B Traders"
          navItems={[
            { name: "Products", id: "products" },
            { name: "About", id: "about" },
            { name: "Testimonials", id: "testimonials" },
            { name: "FAQ", id: "faq" }
          ]}
          button={{
            text: "Get In Touch",            href: "contact"
          }}
          animateOnLoad={true}
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroSplit
          title="Premium B2B Trading Solutions"
          description="Discover our curated catalog of high-quality products for your business. Fast shipping, competitive pricing, and exceptional service."
          background={{ variant: "glowing-orb" }}
          tag="New Collection"
          tagIcon={Sparkles}
          tagAnimation="slide-up"
          buttons={[
            { text: "Shop Now", href: "products" },
            { text: "Learn More", href: "about" }
          ]}
          buttonAnimation="slide-up"
          imageSrc="http://img.b2bpic.net/free-photo/two-office-workers-with-tablet-office-late-night-young-businessmen-talking-while-viewing-presentation-digital-touchscreen-tablet_549566-692.jpg"
          imageAlt="B2B Traders Premium Products"
          mediaAnimation="slide-up"
          imagePosition="right"
          fixedMediaHeight={true}
        />
      </div>

      <div id="featured-products" data-section="featured-products">
        <FeatureCardTwentyThree
          title="Featured Collections"
          description="Explore our handpicked selection of premium products across various categories."
          tag="Popular"
          tagIcon={Zap}
          tagAnimation="slide-up"
          features={[
            {
              id: "1",              title: "Premium Electronics & Components",              tags: ["Electronics", "Latest"],
              imageSrc: "http://img.b2bpic.net/free-photo/side-view-man-reading-newspaper_23-2149887916.jpg",              imageAlt: "Premium electronics"
            },
            {
              id: "2",              title: "Industrial Equipment & Tools",              tags: ["Equipment", "Durable"],
              imageSrc: "http://img.b2bpic.net/free-photo/top-view-male-self-care-items_23-2150347105.jpg",              imageAlt: "Industrial equipment"
            },
            {
              id: "3",              title: "Bulk Supplies & Inventory",              tags: ["Supplies", "Wholesale"],
              imageSrc: "http://img.b2bpic.net/free-photo/mid-adult-engineer-using-touchpad-communicating-with-african-american-worker-about-product-reports-industrial-building_637285-4098.jpg",              imageAlt: "Bulk supplies"
            }
          ]}
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
        />
      </div>

      <div id="products" data-section="products">
        <ProductCardThree
          title="Shop Our Products"
          description="Browse our complete catalog with fast checkout and secure transactions."
          products={[
            {
              id: "1",              name: "Professional Networking Equipment",              price: "$1,299.00",              imageSrc: "http://img.b2bpic.net/free-photo/side-view-man-reading-newspaper_23-2149887916.jpg",              imageAlt: "Networking Equipment",              initialQuantity: 1
            },
            {
              id: "2",              name: "Industrial Grade Tools Set",              price: "$899.00",              imageSrc: "http://img.b2bpic.net/free-photo/top-view-male-self-care-items_23-2150347105.jpg",              imageAlt: "Tools Set",              initialQuantity: 1
            },
            {
              id: "3",              name: "Premium Supplies Bundle",              price: "$599.00",              imageSrc: "http://img.b2bpic.net/free-photo/mid-adult-engineer-using-touchpad-communicating-with-african-american-worker-about-product-reports-industrial-building_637285-4098.jpg",              imageAlt: "Supplies Bundle",              initialQuantity: 1
            },
            {
              id: "4",              name: "Business Electronics Package",              price: "$2,499.00",              imageSrc: "http://img.b2bpic.net/free-vector/modern-business-brochure-template-with-abstract-blue-shapes_1361-3310.jpg",              imageAlt: "Electronics Package",              initialQuantity: 1
            },
            {
              id: "5",              name: "Commercial Hardware Kit",              price: "$749.00",              imageSrc: "http://img.b2bpic.net/free-photo/i-m-posting-this-picture-business-social-media-young-man-taking-picture-thank-you-note-package-customer_662251-2156.jpg",              imageAlt: "Hardware Kit",              initialQuantity: 1
            },
            {
              id: "6",              name: "Enterprise Solutions Bundle",              price: "$3,199.00",              imageSrc: "http://img.b2bpic.net/free-photo/seller-man-mobile-phone-professional-consultant-tech-store-shop-hold-new-smartphone-hand_627829-4967.jpg",              imageAlt: "Solutions Bundle",              initialQuantity: 1
            }
          ]}
          gridVariant="bento-grid"
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
          carouselMode="buttons"
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardTen
          title="Trusted by Industry Leaders"
          description="See what our valued customers have to say about their experience with B2B Traders."
          textboxLayout="default"
          useInvertedBackground={false}
          tag="Reviews"
          tagIcon={Star}
          tagAnimation="slide-up"
          testimonials={[
            {
              id: "1",              title: "Exceptional Quality and Service",              quote: "B2B Traders has been our trusted supplier for over 5 years. Their products are consistently high-quality and their customer service is outstanding.",              name: "Sarah Johnson",              role: "Supply Chain Manager, TechCorp",              imageSrc: "http://img.b2bpic.net/free-photo/close-up-portrait-young-handsome-successful-man_1163-5475.jpg",              imageAlt: "Sarah Johnson"
            },
            {
              id: "2",              title: "Best Pricing in the Market",              quote: "We've compared with other suppliers and B2B Traders offers the best combination of quality, pricing, and reliability. Highly recommended.",              name: "Michael Chen",              role: "Procurement Director, InnovateLab",              imageSrc: "http://img.b2bpic.net/free-photo/close-up-portrait-young-handsome-successful-man_1163-5475.jpg",              imageAlt: "Michael Chen"
            },
            {
              id: "3",              title: "Fast Shipping and Support",              quote: "Their logistics team is incredibly efficient. Orders arrive on time, every time. Plus, their support team responds within hours.",              name: "Emily Rodriguez",              role: "Operations Manager, GrowthCo",              imageSrc: "http://img.b2bpic.net/free-photo/close-up-portrait-young-handsome-successful-man_1163-5475.jpg",              imageAlt: "Emily Rodriguez"
            },
            {
              id: "4",              title: "Perfect for Bulk Orders",              quote: "We place large bulk orders regularly and B2B Traders handles everything flawlessly. Their wholesale pricing is unbeatable.",              name: "David Kim",              role: "CEO, StartupXYZ",              imageSrc: "http://img.b2bpic.net/free-photo/close-up-portrait-young-handsome-successful-man_1163-5475.jpg",              imageAlt: "David Kim"
            }
          ]}
        />
      </div>

      <div id="metrics" data-section="metrics">
        <MetricCardTwo
          title="Why Choose B2B Traders"
          description="Our track record speaks for itself with industry-leading metrics."
          tag="Performance"
          tagIcon={TrendingUp}
          tagAnimation="slide-up"
          metrics={[
            { id: "1", value: "10,000+", description: "Active Business Customers" },
            { id: "2", value: "99.8%", description: "Order Fulfillment Rate" },
            { id: "3", value: "48hrs", description: "Average Delivery Time" },
            { id: "4", value: "15 Years", description: "Industry Experience" }
          ]}
          gridVariant="uniform-all-items-equal"
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
        />
      </div>

      <div id="faq" data-section="faq">
        <FaqDouble
          title="Frequently Asked Questions"
          description="Find answers to common questions about our products, shipping, and services."
          tag="Help"
          tagIcon={HelpCircle}
          tagAnimation="slide-up"
          faqs={[
            {
              id: "1",              title: "What is your minimum order quantity?",              content: "We accept orders of any size. Whether you need 1 unit or 1,000 units, we have flexible ordering options to meet your business needs."
            },
            {
              id: "2",              title: "Do you offer bulk discounts?",              content: "Yes, we offer competitive bulk pricing. The more you order, the better the discount. Contact our sales team for custom quotes on large orders."
            },
            {
              id: "3",              title: "How long does shipping typically take?",              content: "Standard shipping takes 2-5 business days within South Africa. We also offer expedited shipping options. International orders are processed within 7-14 business days."
            },
            {
              id: "4",              title: "What is your return policy?",              content: "We offer a 30-day return policy on all products. Items must be in original condition with packaging. Returns are processed quickly and refunds issued within 5 business days."
            },
            {
              id: "5",              title: "Do you provide product warranties?",              content: "Yes, all products come with manufacturer warranties. Extended warranties are available for select items. Our support team can provide detailed warranty information for any product."
            },
            {
              id: "6",              title: "Can I track my order?",              content: "Absolutely. Once your order ships, you'll receive a tracking number via email. You can track your shipment in real-time through our portal or directly with our logistics partner."
            }
          ]}
          faqsAnimation="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
          animationType="smooth"
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactText
          text="Ready to elevate your business? Get in touch with our team today for personalized solutions and competitive pricing."
          animationType="entrance-slide"
          buttons={[
            { text: "Contact Us Now", href: "#" },
            { text: "Request a Quote", href: "#" }
          ]}
          background={{ variant: "radial-gradient" }}
          useInvertedBackground={false}
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterLogoEmphasis
          logoText="B2B Traders"
          columns={[
            {
              items: [
                { label: "Shop", href: "#products" },
                { label: "About Us", href: "#about" },
                { label: "Testimonials", href: "#testimonials" }
              ]
            },
            {
              items: [
                { label: "FAQ", href: "#faq" },
                { label: "Contact", href: "#contact" },
                { label: "Track Order", href: "#" }
              ]
            },
            {
              items: [
                { label: "Privacy Policy", href: "#" },
                { label: "Terms of Service", href: "#" },
                { label: "Return Policy", href: "#" }
              ]
            }
          ]}
        />
      </div>
    </ThemeProvider>
  );
}
