"use client";

import Link from "next/link";
import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarLayoutFloatingOverlay from "@/components/navbar/NavbarLayoutFloatingOverlay/NavbarLayoutFloatingOverlay";
import HeroBillboardTestimonial from "@/components/sections/hero/HeroBillboardTestimonial";
import FeatureBorderGlow from "@/components/sections/feature/featureBorderGlow/FeatureBorderGlow";
import ProductCardOne from "@/components/sections/product/ProductCardOne";
import SocialProofOne from "@/components/sections/socialProof/SocialProofOne";
import TestimonialCardSix from "@/components/sections/testimonial/TestimonialCardSix";
import ContactCTA from "@/components/sections/contact/ContactCTA";
import FooterLogoEmphasis from "@/components/sections/footer/FooterLogoEmphasis";
import {
  Truck,
  Shield,
  RotateCcw,
  Headphones,
  Zap,
  Gift,
  Sparkles,
  TrendingUp,
  Award,
  Globe,
  MessageSquare,
  ShoppingCart,
} from "lucide-react";

const navItems = [
  { name: "Home", id: "/" },
  { name: "Products", id: "/products" },
  { name: "About", id: "/about" },
  { name: "Contact", id: "/contact" },
];

export default function HomePage() {
  return (
    <ThemeProvider
      defaultButtonVariant="text-shift"
      defaultTextAnimation="entrance-slide"
      borderRadius="soft"
      contentWidth="smallMedium"
      sizing="mediumLargeSizeMediumTitles"
      background="circleGradient"
      cardStyle="glass-depth"
      primaryButtonStyle="radial-glow"
      secondaryButtonStyle="glass"
      headingFontWeight="light"
    >
      <div id="nav" data-section="nav">
        <NavbarLayoutFloatingOverlay
          brandName="Storefront"
          navItems={navItems}
          button={{
            text: "Shop Now",            href: "/products"}}
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroBillboardTestimonial
          title="Discover Premium Products Curated Just for You"
          description="Shop our exclusive collection of high-quality items with exceptional customer service and fast shipping. Experience modern e-commerce at its finest."
          tag="New Arrivals"
          tagIcon={Sparkles}
          tagAnimation="slide-up"
          background={{ variant: "glowing-orb" }}
          imageSrc="http://img.b2bpic.net/free-photo/person-setting-up-online-store-uploading-products-laptop_73899-54387.jpg"
          imageAlt="Premium product showcase"
          mediaAnimation="slide-up"
          testimonials={[
            {
              name: "Sarah Johnson",              handle: "Fashion Enthusiast",              testimonial:
                "The quality and selection are unmatched. I found exactly what I was looking for!",              rating: 5,
              imageSrc:
                "http://img.b2bpic.net/free-photo/young-businesswoman-portrait-office_1262-1506.jpg",              imageAlt: "Sarah Johnson"},
            {
              name: "Michael Chen",              handle: "Verified Buyer",              testimonial:
                "Fast shipping and excellent customer service. Highly recommend this store!",              rating: 5,
              imageSrc:
                "http://img.b2bpic.net/free-photo/alone-specialist-handsome-daydreaming-collar_1262-870.jpg",              imageAlt: "Michael Chen"},
            {
              name: "Emily Rodriguez",              handle: "Regular Customer",              testimonial:
                "Amazing products at great prices. This is my go-to online store.",              rating: 5,
              imageSrc:
                "http://img.b2bpic.net/free-photo/young-businesswoman-portrait-office_1262-1506.jpg",              imageAlt: "Emily Rodriguez"},
            {
              name: "David Kim",              handle: "Premium Member",              testimonial:
                "Outstanding experience from browsing to checkout. Will definitely shop again!",              rating: 5,
              imageSrc:
                "http://img.b2bpic.net/free-photo/smiling-man-sitting-cafe-table-gesturing_1262-1141.jpg",              imageAlt: "David Kim"},
          ]}
          testimonialRotationInterval={5000}
          useInvertedBackground={false}
          buttons={[
            { text: "Start Shopping", href: "/products" },
            { text: "View Collection", href: "#products" },
          ]}
        />
      </div>

      <div id="features" data-section="features">
        <FeatureBorderGlow
          title="Why Shop With Us"
          description="Experience the best in online shopping with our premium features and customer-focused services"
          tag="Our Advantages"
          tagIcon={Award}
          tagAnimation="slide-up"
          textboxLayout="default"
          animationType="slide-up"
          useInvertedBackground={false}
          features={[
            {
              icon: Truck,
              title: "Fast & Free Shipping",              description:
                "Complimentary shipping on orders over $50 with delivery in 2-3 business days"},
            {
              icon: Shield,
              title: "Secure Checkout",              description:
                "SSL-encrypted payments with multiple payment options for your safety"},
            {
              icon: RotateCcw,
              title: "Easy Returns",              description:
                "30-day money-back guarantee with hassle-free return process"},
            {
              icon: Headphones,
              title: "24/7 Support",              description:
                "Dedicated customer service team ready to help whenever you need"},
            {
              icon: Zap,
              title: "Premium Quality",              description:
                "All products sourced from trusted brands and verified sellers"},
            {
              icon: Gift,
              title: "Loyalty Rewards",              description:
                "Earn points on every purchase and enjoy exclusive member benefits"},
          ]}
        />
      </div>

      <div id="products" data-section="products">
        <ProductCardOne
          title="Featured Products"
          description="Browse our handpicked selection of premium items available for immediate purchase"
          tag="Best Sellers"
          tagIcon={TrendingUp}
          tagAnimation="slide-up"
          textboxLayout="default"
          animationType="slide-up"
          useInvertedBackground={false}
          gridVariant="uniform-all-items-equal"
          products={[
            {
              id: "1",              name: "Premium Wireless Headphones",              price: "$129.99",              imageSrc:
                "http://img.b2bpic.net/free-photo/headset-table_417767-238.jpg",              imageAlt: "Wireless headphones"},
            {
              id: "2",              name: "Elegant Watch Collection",              price: "$249.99",              imageSrc:
                "http://img.b2bpic.net/free-photo/fashion-portrait-young-businessman-handsome-model-man-casual-cloth-suit-with-accesories-hands_158538-9460.jpg",              imageAlt: "Designer watch"},
            {
              id: "3",              name: "Smart Phone Stand",              price: "$39.99",              imageSrc:
                "http://img.b2bpic.net/free-photo/high-angle-smartphone-desk-with-headphones_23-2149404198.jpg",              imageAlt: "Phone stand"},
            {
              id: "4",              name: "Premium Backpack",              price: "$159.99",              imageSrc:
                "http://img.b2bpic.net/free-photo/leather-bag-travel-with-earphones-passport_23-2149433932.jpg",              imageAlt: "Travel backpack"},
          ]}
        />
      </div>

      <div id="social-proof" data-section="social-proof">
        <SocialProofOne
          title="Trusted By Millions"
          description="Join thousands of satisfied customers shopping at our store every day"
          tag="Global Leaders"
          tagIcon={Globe}
          tagAnimation="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
          names={[
            "Apple",            "Samsung",            "Sony",            "Canon",            "Nikon",            "Microsoft",            "Google",            "Amazon"]}
          speed={40}
          showCard={true}
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardSix
          title="Customer Stories"
          description="Read what our satisfied customers have to say about their shopping experience"
          tag="Real Feedback"
          tagIcon={MessageSquare}
          tagAnimation="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
          animationType="slide-up"
          testimonials={[
            {
              id: "1",              name: "Jessica Lopez",              handle: "@jessicalopez",              testimonial:
                "Outstanding quality and incredible prices! I've been shopping here for over a year and never had a single issue.",              imageSrc:
                "http://img.b2bpic.net/free-photo/young-businesswoman-portrait-office_1262-1506.jpg",              imageAlt: "Jessica Lopez"},
            {
              id: "2",              name: "Marcus Thompson",              handle: "@marcusthompson",              testimonial:
                "The customer service team is phenomenal. They resolved my question within hours!",              imageSrc:
                "http://img.b2bpic.net/free-photo/handsome-happy-young-guy-with-glasses-posing_176420-30005.jpg",              imageAlt: "Marcus Thompson"},
            {
              id: "3",              name: "Amanda Park",              handle: "@amandapark",              testimonial:
                "Best online shopping experience ever. Fast delivery and the products are exactly as described.",              imageSrc:
                "http://img.b2bpic.net/free-photo/young-businesswoman-portrait-office_1262-1506.jpg",              imageAlt: "Amanda Park"},
            {
              id: "4",              name: "Robert Singh",              handle: "@robertsingh",              testimonial:
                "Love the loyalty program! I earn rewards on every purchase and get exclusive discounts.",              imageSrc:
                "http://img.b2bpic.net/free-photo/young-handsome-man-grey-shirt-looking-up-thinking-positive-smiling-broadly_141793-55034.jpg",              imageAlt: "Robert Singh"},
            {
              id: "5",              name: "Sofia Martinez",              handle: "@sofiam",              testimonial:
                "Fantastic selection and unbeatable prices. This is my favorite place to shop online!",              imageSrc:
                "http://img.b2bpic.net/free-photo/photo-young-woman-with-open-mouth-excited-about-something_114579-70645.jpg",              imageAlt: "Sofia Martinez"},
            {
              id: "6",              name: "James Wilson",              handle: "@jameswilson",              testimonial:
                "The website is so easy to navigate. Finding products and checking out is a breeze!",              imageSrc:
                "http://img.b2bpic.net/free-photo/close-up-portrait-young-handsome-successful-man_1163-5475.jpg",              imageAlt: "James Wilson"},
          ]}
          speed={40}
        />
      </div>

      <div id="cta" data-section="cta">
        <ContactCTA
          tag="Ready to Shop?"
          tagIcon={ShoppingCart}
          tagAnimation="slide-up"
          title="Start Your Shopping Journey Today"
          description="Browse our extensive catalog, find exactly what you need, and enjoy a seamless checkout experience with our secure payment options."
          background={{ variant: "plain" }}
          useInvertedBackground={false}
          buttons={[
            { text: "Explore Store", href: "/products" },
            { text: "Contact Support", href: "/contact" },
          ]}
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterLogoEmphasis
          logoText="Storefront"
          columns={[
            {
              items: [
                { label: "Shop", href: "/products" },
                { label: "New Arrivals", href: "/products" },
                { label: "Best Sellers", href: "/products" },
                { label: "Sale Items", href: "/products" },
              ],
            },
            {
              items: [
                { label: "About Us", href: "/about" },
                { label: "Our Story", href: "/about" },
                { label: "Careers", href: "/" },
                { label: "Blog", href: "/" },
              ],
            },
            {
              items: [
                { label: "Customer Service", href: "/contact" },
                { label: "Contact Us", href: "/contact" },
                { label: "FAQ", href: "/" },
                { label: "Track Order", href: "/" },
              ],
            },
            {
              items: [
                { label: "Privacy Policy", href: "/" },
                { label: "Terms of Service", href: "/" },
                { label: "Shipping Info", href: "/" },
                { label: "Returns", href: "/" },
              ],
            },
            {
              items: [
                {
                  label: "Facebook",                  href: "https://facebook.com"},
                {
                  label: "Twitter",                  href: "https://twitter.com"},
                {
                  label: "Instagram",                  href: "https://instagram.com"},
                {
                  label: "LinkedIn",                  href: "https://linkedin.com"},
              ],
            },
          ]}
        />
      </div>
    </ThemeProvider>
  );
}