"use client"

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarLayoutFloatingInline from '@/components/navbar/NavbarLayoutFloatingInline';
import HeroBillboard from '@/components/sections/hero/HeroBillboard';
import ProductCardThree from '@/components/sections/product/ProductCardThree';
import FeatureCardTwentyThree from '@/components/sections/feature/FeatureCardTwentyThree';
import MetricCardEleven from '@/components/sections/metrics/MetricCardEleven';
import TestimonialCardSix from '@/components/sections/testimonial/TestimonialCardSix';
import PricingCardOne from '@/components/sections/pricing/PricingCardOne';
import ContactSplit from '@/components/sections/contact/ContactSplit';
import FooterLogoEmphasis from '@/components/sections/footer/FooterLogoEmphasis';
import { Zap, Sparkles, Star, Mail } from "lucide-react";

export default function LandingPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="bounce-effect"
      defaultTextAnimation="background-highlight"
      borderRadius="rounded"
      contentWidth="compact"
      sizing="largeSmall"
      background="aurora"
      cardStyle="gradient-mesh"
      primaryButtonStyle="flat"
      secondaryButtonStyle="glass"
      headingFontWeight="extrabold"
    >
      <div id="nav" data-section="nav">
        <NavbarLayoutFloatingInline
          brandName="iPhone"
          navItems={[
            { name: "Products", id: "products" },
            { name: "Features", id: "features" },
            { name: "Pricing", id: "pricing" },
            { name: "Reviews", id: "testimonials" }
          ]}
          button={{
            text: "Shop Now",            href: "products"
          }}
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroBillboard
          title="The Future of Mobile Technology"
          description="Experience the latest iPhone with revolutionary camera technology, ultra-fast processor, and all-day battery life. Designed with precision. Built to last."
          background={{ variant: "plain" }}
          tag="iPhone 15 Pro"
          tagIcon={Zap}
          buttons={[
            { text: "Explore Now", href: "products" },
            { text: "Learn More", href: "features" }
          ]}
          imageSrc="https://img.b2bpic.net/free-psd/new-smartphone-a18-bionic-social-media-banner-design-template_47987-33085.jpg"
          imageAlt="Latest iPhone with premium design"
        />
      </div>

      <div id="products" data-section="products">
        <ProductCardThree
          title="Our Latest iPhone Lineup"
          description="Choose from our premium selection of iPhones, each engineered for performance and elegance."
          products={[
            {
              id: "1",              name: "iPhone 15 Pro Max",              price: "$1,199",              imageSrc: "https://img.b2bpic.net/free-psd/new-smartphone-17-pro-social-media-banner-design-template_47987-33075.jpg",              imageAlt: "iPhone 15 Pro Max with stunning 6.7-inch display"
            },
            {
              id: "2",              name: "iPhone 15 Pro",              price: "$999",              imageSrc: "https://img.b2bpic.net/free-photo/mockup-mobile-phone-screen_53876-63379.jpg",              imageAlt: "iPhone 15 Pro with advanced camera system"
            },
            {
              id: "3",              name: "iPhone 15",              price: "$799",              imageSrc: "https://img.b2bpic.net/free-photo/view-electronic-product-balancing-podium_23-2150141321.jpg",              imageAlt: "iPhone 15 with powerful performance"
            }
          ]}
          gridVariant="three-columns-all-equal-width"
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="features" data-section="features">
        <FeatureCardTwentyThree
          title="Industry-Leading Features"
          description="Discover what makes iPhone the most advanced smartphone in the world."
          tag="Technology"
          tagIcon={Sparkles}
          features={[
            {
              id: "1",              title: "Advanced Camera System",              tags: ["Pro Features", "Photography"],
              imageSrc: "https://img.b2bpic.net/free-photo/vertical-shot-person-taking-photo-leaf-with-cellphone-camera_181624-59213.jpg",              imageAlt: "Professional camera technology"
            },
            {
              id: "2",              title: "Lightning-Fast Performance",              tags: ["A17 Pro Chip", "Speed"],
              imageSrc: "https://img.b2bpic.net/free-photo/girl-taking-photo-yellow-house_23-2147615270.jpg",              imageAlt: "High-performance processor chip"
            },
            {
              id: "3",              title: "All-Day Battery Life",              tags: ["Long Battery", "Efficiency"],
              imageSrc: "https://img.b2bpic.net/free-photo/senior-woman-traveling-areound-world_23-2149172097.jpg",              imageAlt: "Extended battery technology"
            },
            {
              id: "4",              title: "Stunning Display Technology",              tags: ["OLED Screen", "120Hz"],
              imageSrc: "https://img.b2bpic.net/free-photo/woman-s-hand-taking-picture-her-friend-holding-camera_23-2147847167.jpg",              imageAlt: "Advanced OLED display technology"
            }
          ]}
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="metrics" data-section="metrics">
        <MetricCardEleven
          title="Trusted by Millions Worldwide"
          description="See the numbers behind iPhone's success and innovation."
          metrics={[
            {
              id: "1",              value: "2B+",              title: "Active Users",              description: "Global iPhone user base growing every day",              imageSrc: "https://img.b2bpic.net/free-photo/girl-taking-photo-yellow-house_23-2147615270.jpg",              imageAlt: "Global user statistics"
            },
            {
              id: "2",              value: "98%",              title: "Satisfaction Rate",              description: "Customer satisfaction with iPhone products",              imageSrc: "https://img.b2bpic.net/free-photo/vertical-shot-person-taking-photo-leaf-with-cellphone-camera_181624-59213.jpg",              imageAlt: "Customer satisfaction metrics"
            }
          ]}
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardSix
          title="What Our Customers Say"
          description="Real experiences from iPhone users around the world."
          testimonials={[
            {
              id: "1",              name: "Sarah Chen",              handle: "@sarahchen",              testimonial: "The iPhone 15 Pro has completely transformed my photography workflow. The camera system is absolutely incredible.",              imageSrc: "https://img.b2bpic.net/free-photo/selfie-portrait-videocall_23-2149186122.jpg",              imageAlt: "Sarah Chen"
            },
            {
              id: "2",              name: "Marcus Johnson",              handle: "@mjohnson",              testimonial: "Best smartphone I've ever owned. The performance, design, and battery life are unmatched.",              imageSrc: "https://img.b2bpic.net/free-photo/portrait-man-laughing_23-2148859448.jpg",              imageAlt: "Marcus Johnson"
            },
            {
              id: "3",              name: "Emma Rodriguez",              handle: "@emmarod",              testimonial: "The display quality is stunning. Everything looks crisp and vibrant. Worth every penny.",              imageSrc: "https://img.b2bpic.net/free-photo/closeup-young-female-professional-making-eye-contact-against-colored-background_662251-651.jpg",              imageAlt: "Emma Rodriguez"
            },
            {
              id: "4",              name: "David Kim",              handle: "@davidkim",              testimonial: "Fast, reliable, and beautifully designed. iPhone continues to set the standard for smartphones.",              imageSrc: "https://img.b2bpic.net/free-photo/portrait-smiley-woman_23-2148827181.jpg",              imageAlt: "David Kim"
            },
            {
              id: "5",              name: "Lisa Wong",              handle: "@lisawong",              testimonial: "The ecosystem integration is seamless. Works perfectly with my Mac and iPad.",              imageSrc: "https://img.b2bpic.net/free-photo/smiling-millennial-man-looking-camera-cafe-headshot-portrait_1163-5163.jpg",              imageAlt: "Lisa Wong"
            },
            {
              id: "6",              name: "James Sullivan",              handle: "@jsullivan",              testimonial: "Premium quality at its finest. The craftsmanship and attention to detail are exceptional.",              imageSrc: "https://img.b2bpic.net/free-photo/close-up-young-person-barbeque_23-2149271990.jpg",              imageAlt: "James Sullivan"
            }
          ]}
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="pricing" data-section="pricing">
        <PricingCardOne
          title="Simple, Transparent Pricing"
          description="Choose the iPhone that fits your needs and budget."
          plans={[
            {
              id: "1",              badge: "Best Value",              badgeIcon: Sparkles,
              price: "$799",              subtitle: "Perfect for everyday excellence",              features: [
                "6.1-inch display",                "A16 Bionic chip",                "Dual camera system",                "All-day battery life",                "Water resistant"
              ]
            },
            {
              id: "2",              badge: "Most Popular",              badgeIcon: Star,
              price: "$999",              subtitle: "Premium performance and camera",              features: [
                "6.1-inch ProMotion display",                "A17 Pro chip",                "Advanced triple camera",                "Extended battery life",                "Titanium design"
              ]
            },
            {
              id: "3",              badge: "Ultimate",              badgeIcon: Zap,
              price: "$1,199",              subtitle: "Maximum screen and power",              features: [
                "6.7-inch ProMotion display",                "A17 Pro chip",                "Professional camera system",                "All-day+ battery",                "Premium titanium build"
              ]
            }
          ]}
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactSplit
          tag="Newsletter"
          tagIcon={Mail}
          title="Stay Updated with iPhone News"
          description="Subscribe to get the latest product updates, exclusive offers, and innovative technology insights delivered to your inbox."
          background={{ variant: "sparkles-gradient" }}
          useInvertedBackground="noInvert"
          imageSrc="https://img.b2bpic.net/free-photo/close-up-woman-taking-photograph-mobile_23-2147862937.jpg"
          imageAlt="Newsletter signup section"
          inputPlaceholder="Enter your email address"
          buttonText="Subscribe"
          termsText="We respect your privacy. Unsubscribe at any time from our marketing emails."
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterLogoEmphasis
          logoText="iPhone"
          columns={[
            {
              items: [
                { label: "iPhone 15", href: "products" },
                { label: "iPhone 15 Pro", href: "products" },
                { label: "Compare Models", href: "products" }
              ]
            },
            {
              items: [
                { label: "Features", href: "features" },
                { label: "Camera", href: "features" },
                { label: "Performance", href: "features" }
              ]
            },
            {
              items: [
                { label: "Support", href: "#" },
                { label: "Contact Us", href: "contact" },
                { label: "Warranty", href: "#" }
              ]
            },
            {
              items: [
                { label: "About", href: "#" },
                { label: "Press", href: "#" },
                { label: "Careers", href: "#" }
              ]
            }
          ]}
        />
      </div>
    </ThemeProvider>
  );
}