"use client"

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarLayoutFloatingInline from '@/components/navbar/NavbarLayoutFloatingInline';
import HeroSplit from '@/components/sections/hero/HeroSplit';
import ProductCardFour from '@/components/sections/product/ProductCardFour';
import FeatureCardTwentyFive from '@/components/sections/feature/FeatureCardTwentyFive';
import TestimonialCardTen from '@/components/sections/testimonial/TestimonialCardTen';
import PricingCardOne from '@/components/sections/pricing/PricingCardOne';
import MetricCardEleven from '@/components/sections/metrics/MetricCardEleven';
import FaqBase from '@/components/sections/faq/FaqBase';
import ContactCTA from '@/components/sections/contact/ContactCTA';
import FooterCard from '@/components/sections/footer/FooterCard';
import { Award, Camera, DollarSign, Facebook, Heart, HelpCircle, Instagram, Linkedin, Mail, Package, Sparkles, Star, TrendingUp, Twitter, Zap } from "lucide-react";

export default function LandingPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="elastic-effect"
      defaultTextAnimation="reveal-blur"
      borderRadius="sharp"
      contentWidth="smallMedium"
      sizing="largeSmallSizeMediumTitles"
      background="aurora"
      cardStyle="glass-elevated"
      primaryButtonStyle="shadow"
      secondaryButtonStyle="solid"
      headingFontWeight="normal"
    >
      <div id="nav" data-section="nav">
        <NavbarLayoutFloatingInline
          brandName="Apple iPhone"
          navItems={[
            { name: "Products", id: "products" },
            { name: "Features", id: "features" },
            { name: "Pricing", id: "pricing" },
            { name: "Support", id: "faq" }
          ]}
          button={{
            text: "Shop Now",            href: "products"
          }}
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroSplit
          title="Experience the Future of Mobile Technology"
          description="Discover the latest iPhone with revolutionary camera technology, blazing-fast performance, and stunning all-day battery life. Upgrade to innovation today."
          background={{ variant: "glowing-orb" }}
          tag="New Release 2025"
          tagIcon={Sparkles}
          imageSrc="https://img.b2bpic.net/free-photo/mockup-mobile-phone-screen_53876-63379.jpg"
          imageAlt="Latest iPhone model"
          imagePosition="right"
          buttons={[
            { text: "Shop Now", href: "products" },
            { text: "Learn More", href: "features" }
          ]}
        />
      </div>

      <div id="products" data-section="products">
        <ProductCardFour
          title="Choose Your Perfect iPhone"
          description="Select from our comprehensive lineup of iPhones, each engineered for excellence and designed with premium materials. Find the model that matches your lifestyle."
          tag="Featured Collection"
          tagIcon={Package}
          products={[
            {
              id: "iphone-pro-max",              name: "iPhone Pro Max",              price: "$1,199",              variant: "Space Black • 256GB",              imageSrc: "https://img.b2bpic.net/free-psd/smartphone-16-pro-discount-sale-banner-social-media-design-template_47987-25305.jpg",              imageAlt: "iPhone Pro Max"
            },
            {
              id: "iphone-pro",              name: "iPhone Pro",              price: "$999",              variant: "Deep Purple • 256GB",              imageSrc: "https://img.b2bpic.net/free-photo/back-position-smartphone-device-tech-generative-ai_188544-12116.jpg",              imageAlt: "iPhone Pro"
            },
            {
              id: "iphone-standard",              name: "iPhone 15",              price: "$799",              variant: "Midnight • 128GB",              imageSrc: "https://img.b2bpic.net/free-photo/low-angle-man-using-smartphone-outdoors_23-2150747684.jpg",              imageAlt: "iPhone 15"
            }
          ]}
          textboxLayout="default"
          gridVariant="uniform-all-items-equal"
          animationType="slide-up"
          useInvertedBackground="noInvert"
          carouselMode="buttons"
        />
      </div>

      <div id="features" data-section="features">
        <FeatureCardTwentyFive
          title="Why Choose iPhone?"
          description="Cutting-edge technology meets elegant design. Experience features that redefine mobile excellence."
          tag="Core Features"
          tagIcon={Star}
          features={[
            {
              title: "Advanced Camera System",              description: "Capture stunning photos and 4K videos with our Pro camera technology and enhanced night mode.",              icon: Camera,
              mediaItems: [
                {
                  imageSrc: "https://img.b2bpic.net/free-photo/young-couple-taking-photos-with-mobile_1301-5146.jpg",                  imageAlt: "Advanced camera technology"
                },
                {
                  imageSrc: "https://img.b2bpic.net/free-photo/two-friends-taking-selfie-smartphone_23-2147828216.jpg",                  imageAlt: "Premium phone design"
                }
              ]
            },
            {
              title: "All-Day Battery Life",              description: "Intelligent battery management keeps you powered from morning to night with industry-leading endurance.",              icon: Zap,
              mediaItems: [
                {
                  imageSrc: "https://img.b2bpic.net/free-photo/woman-using-smartphone-technology_23-2149263977.jpg",                  imageAlt: "Battery performance"
                },
                {
                  imageSrc: "https://img.b2bpic.net/free-photo/man-hands-taking-picture-with-mobile-phone-sunset_657883-728.jpg",                  imageAlt: "Device performance"
                }
              ]
            },
            {
              title: "Lightning-Fast Performance",              description: "Experience blazing-fast processing with our latest chip, designed for seamless multitasking and gaming.",              icon: Zap,
              mediaItems: [
                {
                  imageSrc: "https://img.b2bpic.net/free-photo/man-hands-taking-picture-with-mobile-phone-sunset_657883-728.jpg",                  imageAlt: "Processing power"
                },
                {
                  imageSrc: "https://img.b2bpic.net/free-photo/young-couple-taking-photos-with-mobile_1301-5146.jpg",                  imageAlt: "Performance optimization"
                }
              ]
            },
            {
              title: "Premium Design",              description: "Crafted with aerospace-grade materials and precision engineering for a phone that feels as premium as it performs.",              icon: Award,
              mediaItems: [
                {
                  imageSrc: "https://img.b2bpic.net/free-photo/two-friends-taking-selfie-smartphone_23-2147828216.jpg",                  imageAlt: "Premium materials"
                },
                {
                  imageSrc: "https://img.b2bpic.net/free-photo/mockup-mobile-phone-screen_53876-63379.jpg",                  imageAlt: "Design excellence"
                }
              ]
            }
          ]}
          textboxLayout="default"
          animationType="depth-3d"
          useInvertedBackground="invertDefault"
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardTen
          title="Trusted by Millions Worldwide"
          description="See what iPhone users love about their devices. Real stories from real customers."
          tag="Customer Love"
          tagIcon={Heart}
          textboxLayout="default"
          useInvertedBackground="noInvert"
          testimonials={[
            {
              id: "1",              title: "A game-changer for my photography business",              quote: "The camera quality is absolutely phenomenal. I've been able to reduce my professional camera usage and shoot everything on my iPhone. The computational photography is incredible.",              name: "Sarah Johnson",              role: "Professional Photographer",              imageSrc: "https://img.b2bpic.net/free-photo/smiling-beautiful-middle-aged-business-woman_1262-3085.jpg",              imageAlt: "Sarah Johnson"
            },
            {
              id: "2",              title: "Battery life that actually lasts",              quote: "I can go through my entire day without worrying about charging. The battery management is intelligently designed and the fast charging is a lifesaver.",              name: "Michael Chen",              role: "Tech Entrepreneur",              imageSrc: "https://img.b2bpic.net/free-photo/middle-aged-businesswoman-smiling_1262-21181.jpg",              imageAlt: "Michael Chen"
            },
            {
              id: "3",              title: "Premium design worth every penny",              quote: "The build quality feels luxurious. Every detail, from the titanium frame to the glass back, screams premium. It's not just a phone, it's a statement.",              name: "Emily Rodriguez",              role: "Design Director",              imageSrc: "https://img.b2bpic.net/free-photo/smiling-businessman-standing-airport_107420-85035.jpg",              imageAlt: "Emily Rodriguez"
            },
            {
              id: "4",              title: "Seamless integration with my ecosystem",              quote: "The way it works with my Mac, iPad, and Apple Watch is seamless. Everything syncs instantly and the handoff feature saves me so much time.",              name: "David Kim",              role: "Product Manager",              imageSrc: "https://img.b2bpic.net/free-photo/smiling-woman-sitting-cafe-with-closed-laptop_1262-1151.jpg",              imageAlt: "David Kim"
            },
            {
              id: "5",              title: "Best investment in technology",              quote: "Three years later and it still runs smoothly. The software updates keep adding new features. It's the best value for a premium smartphone.",              name: "Jessica Martinez",              role: "Business Consultant",              imageSrc: "https://img.b2bpic.net/free-photo/positive-businesswoman-work_1098-3861.jpg",              imageAlt: "Jessica Martinez"
            },
            {
              id: "6",              title: "Customer support is exceptional",              quote: "When I needed help, the support was quick and professional. They genuinely care about customer satisfaction and stand behind their product.",              name: "Robert Thompson",              role: "Software Developer",              imageSrc: "https://img.b2bpic.net/free-photo/close-up-successful-entrepreneur_1098-3855.jpg",              imageAlt: "Robert Thompson"
            }
          ]}
        />
      </div>

      <div id="pricing" data-section="pricing">
        <PricingCardOne
          title="Simple, Transparent Pricing"
          description="Choose the storage capacity and color that suits your needs. All iPhones come with the same premium features and support."
          tag="Pricing"
          tagIcon={DollarSign}
          plans={[
            {
              id: "storage-128",              badge: "Popular Choice",              badgeIcon: Sparkles,
              price: "From $799",              subtitle: "128GB storage for everyday use",              features: [
                "Perfect for regular photography and apps",                "Cloud backup with iCloud",                "All camera features included",                "Fast charging support",                "2-year warranty"
              ]
            },
            {
              id: "storage-256",              badge: "Best Value",              badgeIcon: Star,
              price: "From $899",              subtitle: "256GB for power users",              features: [
                "Ample space for 4K videos",                "Advanced computational photography",                "ProRAW support on Pro models",                "Priority 24/7 support",                "AppleCare+ available"
              ]
            },
            {
              id: "storage-512",              badge: "Professional",              badgeIcon: Zap,
              price: "From $1,099",              subtitle: "512GB for professionals",              features: [
                "Unlimited creative freedom",                "Professional-grade ProRes video",                "8K video recording",                "Priority support line",                "Extended AppleCare+ options"
              ]
            }
          ]}
          textboxLayout="default"
          animationType="slide-up"
          useInvertedBackground="invertDefault"
          carouselMode="buttons"
        />
      </div>

      <div id="metrics" data-section="metrics">
        <MetricCardEleven
          title="Proven Excellence"
          description="iPhone's impact by the numbers. Industry-leading performance and customer satisfaction."
          tag="By The Numbers"
          tagIcon={TrendingUp}
          textboxLayout="default"
          animationType="slide-up"
          useInvertedBackground="noInvert"
          metrics={[
            {
              id: "1",              value: "2B+",              title: "Active Devices",              description: "Trusted by billions worldwide",              imageSrc: "https://img.b2bpic.net/free-photo/mockup-mobile-phone-screen_53876-63379.jpg",              imageAlt: "Global user base"
            },
            {
              id: "2",              value: "99%",              title: "Customer Satisfaction",              description: "Industry-leading happiness score",              imageSrc: "https://img.b2bpic.net/free-photo/two-friends-taking-selfie-smartphone_23-2147828216.jpg",              imageAlt: "Customer satisfaction metrics"
            }
          ]}
        />
      </div>

      <div id="faq" data-section="faq">
        <FaqBase
          title="Frequently Asked Questions"
          description="Find answers to common questions about iPhone features, pricing, and support."
          tag="Help & Support"
          tagIcon={HelpCircle}
          textboxLayout="default"
          useInvertedBackground="invertDefault"
          faqs={[
            {
              id: "1",              title: "What is the warranty coverage?",              content: "All new iPhones come with a one-year limited warranty covering hardware defects and malfunctions. You can extend coverage with AppleCare+, which includes accidental damage protection and extended support for up to 3 years."
            },
            {
              id: "2",              title: "How long does the battery last?",              content: "iPhone batteries are designed to retain up to 80% of their original capacity after 1,000 charge cycles. With typical daily use, you can expect excellent battery life lasting all day on a single charge, and up to several years before significant degradation occurs."
            },
            {
              id: "3",              title: "Can I upgrade from my current iPhone?",              content: "Yes! We offer excellent trade-in values for your current device. Bring your old iPhone to any Apple Store or visit our website to start the trade-in process. You'll receive instant credit toward your new purchase."
            },
            {
              id: "4",              title: "What storage capacity should I choose?",              content: "For casual users with basic apps and photos, 128GB is sufficient. For those taking lots of videos or using professional apps, 256GB is recommended. Professional photographers and content creators should consider 512GB or higher for maximum flexibility."
            },
            {
              id: "5",              title: "Is AppleCare+ worth it?",              content: "AppleCare+ provides valuable protection including accidental damage coverage, priority support, and extended warranty. If you use your iPhone heavily or want comprehensive peace of mind, AppleCare+ is highly recommended."
            },
            {
              id: "6",              title: "How often should I upgrade?",              content: "Most users upgrade every 2-3 years to experience the latest features and performance improvements. However, iPhones are built to last, and many users keep theirs for 4-5 years with proper care and occasional battery replacement."
            }
          ]}
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactCTA
          tag="Get Started"
          tagIcon={Mail}
          title="Ready to Upgrade Your iPhone?"
          description="Contact our sales team for personalized recommendations, trade-in appraisals, and financing options. We're here to help you find the perfect iPhone."
          background={{ variant: "radial-gradient" }}
          useInvertedBackground="noInvert"
          buttons={[
            { text: "Contact Sales", href: "contact" },
            { text: "Schedule Demo", href: "features" }
          ]}
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterCard
          logoText="Apple iPhone"
          copyrightText="© 2025 Apple Inc. All rights reserved. | Premium Mobile Experience"
          socialLinks={[
            { icon: Twitter, href: "https://twitter.com/apple", ariaLabel: "Twitter" },
            { icon: Facebook, href: "https://facebook.com/apple", ariaLabel: "Facebook" },
            { icon: Instagram, href: "https://instagram.com/apple", ariaLabel: "Instagram" },
            { icon: Linkedin, href: "https://linkedin.com/company/apple", ariaLabel: "LinkedIn" }
          ]}
        />
      </div>
    </ThemeProvider>
  );
}