"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleFullscreen from "@/components/navbar/NavbarStyleFullscreen/NavbarStyleFullscreen";
import HeroBillboardCarousel from "@/components/sections/hero/HeroBillboardCarousel";
import ProductCardThree from "@/components/sections/product/ProductCardThree";
import FeatureCardSix from "@/components/sections/feature/FeatureCardSix";
import TestimonialCardTwelve from "@/components/sections/testimonial/TestimonialCardTwelve";
import SocialProofOne from "@/components/sections/socialProof/SocialProofOne";
import FooterLogoReveal from "@/components/sections/footer/FooterLogoReveal";
import Link from "next/link";
import { Sparkles, Award, Zap } from "lucide-react";

export default function HomePage() {
  const navItems = [
    { name: "Home", id: "/" },
    { name: "Products", id: "/products" },
    { name: "Features", id: "/features" },
    { name: "Pricing", id: "/pricing" },
    { name: "Contact", id: "/contact" },
  ];

  return (
    <ThemeProvider
      defaultButtonVariant="text-shift"
      defaultTextAnimation="background-highlight"
      borderRadius="rounded"
      contentWidth="smallMedium"
      sizing="large"
      background="floatingGradient"
      cardStyle="inset"
      primaryButtonStyle="shadow"
      secondaryButtonStyle="radial-glow"
      headingFontWeight="bold"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleFullscreen
          navItems={navItems}
          brandName="Samsung Mobile"
          bottomLeftText="Innovation in Every Frame"
          bottomRightText="support@samsung-mobile.com"
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroBillboardCarousel
          title="Experience Innovation"
          description="Discover the latest flagship smartphones with cutting-edge technology, stunning displays, and revolutionary camera systems"
          tag="2025 Collection"
          tagIcon={Sparkles}
          background={{ variant: "sparkles-gradient" }}
          buttons={[
            { text: "Shop Now", href: "/products" },
            { text: "Learn More", href: "/features" },
          ]}
          mediaItems={[
            {
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AQJ7B8mYEMeFibP8zUealCeNvW/a-stunning-samsung-galaxy-s25-ultra-smar-1772521651964-05327bfe.png",
              imageAlt: "Samsung Galaxy S25 Ultra - Titanium Black",
            },
            {
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AQJ7B8mYEMeFibP8zUealCeNvW/samsung-galaxy-s25-pro-smartphone-in-pea-1772521647468-5c76be43.png",
              imageAlt: "Samsung Galaxy S25 Pro - Pearl White",
            },
            {
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AQJ7B8mYEMeFibP8zUealCeNvW/samsung-galaxy-z-fold-foldable-smartphon-1772521647739-53c0e17e.png",
              imageAlt: "Samsung Galaxy Z Fold - Sapphire Blue",
            },
            {
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AQJ7B8mYEMeFibP8zUealCeNvW/samsung-galaxy-z-flip-clamshell-foldable-1772521646838-7a922197.png",
              imageAlt: "Samsung Galaxy Z Flip - Phantom Black",
            },
            {
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AQJ7B8mYEMeFibP8zUealCeNvW/samsung-galaxy-a95-smartphone-in-coral-r-1772521647576-b8dd4ae3.png",
              imageAlt: "Samsung Galaxy A95 - Coral Red",
            },
            {
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AQJ7B8mYEMeFibP8zUealCeNvW/samsung-galaxy-tab-s10-tablet-in-silver--1772521647078-4b63f4aa.png",
              imageAlt: "Samsung Galaxy Tab S10 - Silver",
            },
          ]}
        />
      </div>

      <div id="products" data-section="products">
        <ProductCardThree
          title="Featured Smartphones"
          description="Our most popular and innovative mobile devices with exclusive features and premium build quality"
          tag="Best Sellers"
          tagIcon={Award}
          textboxLayout="default"
          useInvertedBackground={false}
          products={[
            {
              id: "s25-ultra",
              name: "Galaxy S25 Ultra",
              price: "$1,299",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AQJ7B8mYEMeFibP8zUealCeNvW/samsung-galaxy-s25-ultra-smartphone-prod-1772521648355-55a1ec47.png?_wi=1",
              imageAlt: "Samsung Galaxy S25 Ultra with premium titanium finish",
              initialQuantity: 1,
            },
            {
              id: "s25-pro",
              name: "Galaxy S25 Pro",
              price: "$999",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AQJ7B8mYEMeFibP8zUealCeNvW/samsung-galaxy-s25-pro-smartphone-produc-1772521647796-43823797.png?_wi=1",
              imageAlt: "Samsung Galaxy S25 Pro smartphone",
              initialQuantity: 1,
            },
            {
              id: "z-fold",
              name: "Galaxy Z Fold 6",
              price: "$1,899",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AQJ7B8mYEMeFibP8zUealCeNvW/samsung-galaxy-z-fold-6-foldable-smartph-1772521647493-dde3272c.png?_wi=1",
              imageAlt: "Samsung Galaxy Z Fold 6 foldable phone",
              initialQuantity: 1,
            },
            {
              id: "z-flip",
              name: "Galaxy Z Flip 6",
              price: "$799",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AQJ7B8mYEMeFibP8zUealCeNvW/samsung-galaxy-z-flip-6-clamshell-phone--1772521647781-60c89b43.png?_wi=1",
              imageAlt: "Samsung Galaxy Z Flip 6 clamshell phone",
              initialQuantity: 1,
            },
            {
              id: "a95",
              name: "Galaxy A95",
              price: "$499",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AQJ7B8mYEMeFibP8zUealCeNvW/samsung-galaxy-a95-smartphone-product-sh-1772521647140-ae802e4b.png?_wi=1",
              imageAlt: "Samsung Galaxy A95 affordable smartphone",
              initialQuantity: 1,
            },
          ]}
          gridVariant="three-columns-all-equal-width"
          animationType="slide-up"
          buttons={[{ text: "View All Products", href: "/products" }]}
        />
      </div>

      <div id="features" data-section="features">
        <FeatureCardSix
          title="Advanced Technology Inside"
          description="Explore the cutting-edge features that make Samsung devices stand out in the market"
          tag="Innovation"
          tagIcon={Zap}
          textboxLayout="default"
          useInvertedBackground={false}
          features={[
            {
              id: 1,
              title: "120Hz AMOLED Display",
              description: "Ultra-smooth 120Hz refresh rate with vibrant colors and deep blacks for immersive viewing experience",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AQJ7B8mYEMeFibP8zUealCeNvW/close-up-of-a-samsung-amoled-display-sho-1772521647449-b0f7ecb6.png?_wi=1",
              imageAlt: "Samsung AMOLED display showcase",
            },
            {
              id: 2,
              title: "Advanced Camera System",
              description: "Professional-grade camera with 200MP sensor, AI processing, and night mode for stunning photography",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AQJ7B8mYEMeFibP8zUealCeNvW/samsung-galaxy-camera-system-showcase-cl-1772521648032-93b08fd0.png?_wi=1",
              imageAlt: "Samsung camera system",
            },
            {
              id: 3,
              title: "All-Day Battery Life",
              description: "5000mAh battery with fast charging technology keeps you powered throughout the day and beyond",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AQJ7B8mYEMeFibP8zUealCeNvW/samsung-smartphone-battery-technology-vi-1772521647769-75d6a436.png?_wi=1",
              imageAlt: "Samsung battery technology",
            },
            {
              id: 4,
              title: "5G Connectivity",
              description: "Next-generation 5G technology for ultra-fast internet speeds and seamless streaming capabilities",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AQJ7B8mYEMeFibP8zUealCeNvW/samsung-5g-connectivity-technology-visua-1772521649024-bf264598.png?_wi=1",
              imageAlt: "Samsung 5G technology",
            },
          ]}
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardTwelve
          cardTitle="Trusted by over 50 million customers worldwide who love their Samsung devices"
          cardTag="Customer Testimonials"
          cardTagIcon={Award}
          cardAnimation="slide-up"
          useInvertedBackground={false}
          testimonials={[
            {
              id: "1",
              name: "Sarah Chen",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AQJ7B8mYEMeFibP8zUealCeNvW/portrait-photo-of-a-professional-woman-s-1772521647697-cc715510.png",
              imageAlt: "Sarah Chen",
            },
            {
              id: "2",
              name: "Marcus Johnson",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AQJ7B8mYEMeFibP8zUealCeNvW/portrait-photo-of-a-professional-man-mar-1772521647363-4bb5f98a.png",
              imageAlt: "Marcus Johnson",
            },
            {
              id: "3",
              name: "Emma Rodriguez",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AQJ7B8mYEMeFibP8zUealCeNvW/portrait-photo-of-a-professional-woman-e-1772521647514-93fd43c2.png",
              imageAlt: "Emma Rodriguez",
            },
            {
              id: "4",
              name: "David Kim",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AQJ7B8mYEMeFibP8zUealCeNvW/portrait-photo-of-a-professional-man-dav-1772521647752-a15f17f2.png",
              imageAlt: "David Kim",
            },
            {
              id: "5",
              name: "Lisa Anderson",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AQJ7B8mYEMeFibP8zUealCeNvW/portrait-photo-of-a-professional-woman-l-1772521647294-fb6c5418.png",
              imageAlt: "Lisa Anderson",
            },
            {
              id: "6",
              name: "James Wilson",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AQJ7B8mYEMeFibP8zUealCeNvW/portrait-photo-of-a-professional-man-jam-1772521646700-0390af18.png",
              imageAlt: "James Wilson",
            },
          ]}
        />
      </div>

      <div id="social-proof" data-section="social-proof">
        <SocialProofOne
          title="Trusted by Leading Tech Organizations"
          description="Samsung partners with industry leaders and tech enthusiasts worldwide"
          tag="Our Partners"
          tagIcon={Award}
          textboxLayout="default"
          useInvertedBackground={false}
          names={[
            "Tech Review Weekly",
            "Mobile Excellence",
            "Digital Innovations",
            "Consumer Choice Awards",
            "Best Tech Magazine",
            "Innovation Hub",
            "Future Forward",
            "Tech Leaders",
          ]}
          showCard={true}
          speed={40}
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterLogoReveal
          logoText="Samsung Mobile"
          leftLink={{ text: "Privacy Policy", href: "#" }}
          rightLink={{ text: "Terms of Service", href: "#" }}
        />
      </div>
    </ThemeProvider>
  );
}