"use client"

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarLayoutFloatingInline from '@/components/navbar/NavbarLayoutFloatingInline';
import HeroBillboard from '@/components/sections/hero/HeroBillboard';
import TextAbout from '@/components/sections/about/TextAbout';
import FeatureBento from '@/components/sections/feature/FeatureBento';
import FeatureCardTwentySix from '@/components/sections/feature/FeatureCardTwentySix';
import FeatureCardSixteen from '@/components/sections/feature/FeatureCardSixteen';
import FaqSplitMedia from '@/components/sections/faq/FaqSplitMedia';
import FooterLogoReveal from '@/components/sections/footer/FooterLogoReveal';
import { Camera, CheckCircle, HelpCircle, Play, Sparkles, Star, TrendingUp, Zap, Flame, Users, MessageSquare, Lock } from "lucide-react";
import ProductCatalog from '@/components/ecommerce/productCatalog/ProductCatalog';
import MetricCardSeven from '@/components/sections/metrics/MetricCardSeven';

export default function LandingPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="expand-hover"
      defaultTextAnimation="entrance-slide"
      borderRadius="pill"
      contentWidth="medium"
      sizing="medium"
      background="none"
      cardStyle="inset"
      primaryButtonStyle="diagonal-gradient"
      secondaryButtonStyle="glass"
      headingFontWeight="medium"
    >
      <div id="nav" data-section="nav">
        <NavbarLayoutFloatingInline
          brandName="ClipVerse"
          navItems={[
            { name: "Features", id: "features" },
            { name: "Services", id: "services" },
            { name: "FAQ", id: "faq" },
            { name: "Contact", id: "contact" }
          ]}
          button={{
            text: "Start Clipping",            href: "https://clipverse.io/signup"
          }}
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroBillboard
          title="Professional UGC Clipping for Gen Z Creators"
          description="Transform raw footage into stunning clips. Fast turnaround, premium quality, built for creators who demand excellence."
          background={{ variant: "sparkles-gradient" }}
          tag="AI-Powered Editing"
          tagIcon={Sparkles}
          imageSrc="https://img.b2bpic.net/free-photo/woman-taking-photos-ceramic-kitchenware_23-2149060844.jpg"
          imageAlt="UGC creator with professional photography setup"
          buttons={[
            { text: "Start Your Free Trial", href: "https://clipverse.io/trial" },
            { text: "View Samples", href: "#services" }
          ]}
          marqueeItems={[
            { type: "text", text: "TikTok Editing" },
            { type: "text", text: "YouTube Shorts" },
            { type: "text", text: "Instagram Reels" },
            { type: "text", text: "Quick Turnaround" },
            { type: "text", text: "Premium Quality" }
          ]}
        />
      </div>

      <div id="about" data-section="about">
        <TextAbout
          tag="About ClipVerse"
          tagIcon={Zap}
          title="We turn hours of footage into seconds of viral content. ClipVerse is the fastest, most intuitive UGC clipping platform for creators who refuse to compromise on quality."
          useInvertedBackground="invertDefault"
          buttons={[
            { text: "Learn More", href: "https://clipverse.io/about" }
          ]}
        />
      </div>

      <div id="features" data-section="features">
        <FeatureBento
          title="Powerful Clipping Tools"
          description="Everything you need to create professional UGC content in minutes, not hours."
          tag="Features"
          tagIcon={CheckCircle}
          textboxLayout="default"
          useInvertedBackground="noInvert"
          animationType="slide-up"
          features={[
            {
              title: "AI Scene Detection",              description: "Automatically identify the best moments in your footage",              bentoComponent: "animated-bar-chart"
            },
            {
              title: "One-Click Export",              description: "Export to TikTok, Instagram, YouTube with optimal settings",              bentoComponent: "globe"
            },
            {
              title: "Effect Library",              description: "Trending effects and transitions built in and ready to use",              bentoComponent: "orbiting-icons",              centerIcon: Sparkles,
              items: [
                { icon: Zap, ring: 1 },
                { icon: Star, ring: 2 },
                { icon: Flame, ring: 3 }
              ]
            },
            {
              title: "Collaboration Mode",              description: "Work with your team in real-time on projects",              bentoComponent: "3d-stack-cards",              items: [
                {
                  icon: Users,
                  title: "Real-time",                  subtitle: "Collaboration",                  detail: "Edit together instantly"
                },
                {
                  icon: MessageSquare,
                  title: "Comments",                  subtitle: "Feedback",                  detail: "Built-in feedback system"
                },
                {
                  icon: Lock,
                  title: "Secure",                  subtitle: "Projects",                  detail: "Your content protected"
                }
              ]
            }
          ]}
        />
      </div>

      <div id="services" data-section="services">
        <FeatureCardTwentySix
          title="Clipping Services Showcase"
          description="Premium UGC clipping samples across all major platforms"
          tag="Our Work"
          tagIcon={Camera}
          textboxLayout="default"
          useInvertedBackground="invertDefault"
          features={[
            {
              title: "Viral TikTok Clips",              description: "30-60 second clips optimized for viral growth",              imageSrc: "https://img.b2bpic.net/free-photo/woman-taking-photos-ceramic-kitchenware_23-2149060842.jpg",              imageAlt: "TikTok clipping sample",              buttonIcon: Play,
              buttonHref: "https://clipverse.io/samples/tiktok"
            },
            {
              title: "YouTube Shorts",              description: "Vertical video format with captions and effects",              imageSrc: "https://img.b2bpic.net/free-photo/high-angle-woman-recording-herself_23-2148360111.jpg",              imageAlt: "YouTube Shorts sample",              buttonIcon: Play,
              buttonHref: "https://clipverse.io/samples/youtube"
            },
            {
              title: "Instagram Reels",              description: "Trending audio matched with your best moments",              imageSrc: "https://img.b2bpic.net/free-photo/online-sport-fitness-instructor-recording-her-session_23-2149204420.jpg",              imageAlt: "Instagram Reels sample",              buttonIcon: Play,
              buttonHref: "https://clipverse.io/samples/instagram"
            },
            {
              title: "Custom Branding",              description: "Your logo, colors, and watermark integrated",              imageSrc: "https://img.b2bpic.net/free-photo/woman-taking-photos-her-business-with-ceramic-kitchenware_23-2149060811.jpg",              imageAlt: "Custom branded clips",              buttonIcon: Play,
              buttonHref: "https://clipverse.io/samples/branded"
            },
            {
              title: "Fast Turnaround",              description: "Clips delivered within 24 hours guaranteed",              imageSrc: "https://img.b2bpic.net/free-photo/close-up-smiley-influencer-with-flowers_23-2149172444.jpg",              imageAlt: "Fast editing service",              buttonIcon: Play,
              buttonHref: "https://clipverse.io/samples/fast"
            },
            {
              title: "Premium Quality",              description: "4K resolution with professional color grading",              imageSrc: "https://img.b2bpic.net/free-photo/medium-shot-woman-repairing-photo-camera_23-2149893864.jpg",              imageAlt: "Premium quality clips",              buttonIcon: Play,
              buttonHref: "https://clipverse.io/samples/premium"
            }
          ]}
        />
      </div>

      <div id="comparison" data-section="comparison">
        <FeatureCardSixteen
          title="Why ClipVerse Beats Manual Editing"
          description="See how our platform saves time while delivering professional results"
          tag="Comparison"
          tagIcon={TrendingUp}
          textboxLayout="default"
          useInvertedBackground="noInvert"
          animationType="slide-up"
          negativeCard={{
            items: [
              "Hours spent manually editing",              "Inconsistent quality output",              "Steep learning curve",              "Expensive software subscriptions",              "No collaboration features"
            ]
          }}
          positiveCard={{
            items: [
              "AI editing in minutes",              "Professional results every time",              "Intuitive creator-friendly interface",              "Affordable, transparent pricing",              "Real-time team collaboration"
            ]
          }}
        />
      </div>

      <div id="faq" data-section="faq">
        <FaqSplitMedia
          title="Frequently Asked Questions"
          description="Everything you need to know about ClipVerse clipping services"
          tag="Help & Support"
          tagIcon={HelpCircle}
          textboxLayout="default"
          useInvertedBackground="invertDefault"
          imageSrc="https://img.b2bpic.net/free-photo/medium-shot-photographer-taking-fruit-photos_23-2150506092.jpg"
          imageAlt="Professional support team"
          mediaPosition="right"
          animationType="smooth"
          faqs={[
            {
              id: "1",              title: "How long does it take to get my clips?",              content: "Most clips are delivered within 24 hours. Rush orders (same-day) are available for premium members. Our AI-powered process is fast, so you can get content ready for posting almost immediately."
            },
            {
              id: "2",              title: "What formats can I export?",              content: "We support all major formats: MP4, MOV, WebM, and platform-specific optimizations for TikTok, Instagram, YouTube, and Twitch. One-click export sends files directly to your account."
            },
            {
              id: "3",              title: "Can I add my own music and effects?",              content: "Absolutely. Our platform lets you layer custom audio, add effects, adjust colors, and apply filters. You maintain complete creative control while leveraging our AI clipping suggestions."
            },
            {
              id: "4",              title: "Is my content secure?",              content: "Yes. All content is encrypted end-to-end, stored securely, and only accessible to you and invited collaborators. We never use your clips for training or other purposes."
            },
            {
              id: "5",              title: "Do you offer API integration?",              content: "Yes, enterprise customers can integrate ClipVerse via our API. Contact our sales team for details on custom integration and workflow automation."
            },
            {
              id: "6",              title: "What if I'm not happy with the results?",              content: "We offer unlimited revisions on all clips within 7 days of delivery. If you're not satisfied, we'll work with you until it meets your standards or offer a full refund."
            }
          ]}
        />
      </div>

      <div id="ecommerce" data-section="ecommerce">
        <ProductCatalog
            layout="section"
            products={[
                {
                    id: "1",
                    name: "ClipVerse Pro",
                    price: 29.99,
                    imageSrc: "https://images.unsplash.com/photo-1519681393784-d120267933ba?w=800&q=80",
                    imageAlt: "ClipVerse Pro",
                    rating: 4.8,
                    reviewCount: 120,
                    category: "ClipVerse",
                    onProductClick: () => {}
                },
                {
                    id: "2",
                    name: "ClipVerse Basic",
                    price: 19.99,
                    imageSrc: "https://images.unsplash.com/photo-1519681393784-d120267933ba?w=800&q=80",
                    imageAlt: "ClipVerse Basic",
                    rating: 4.5,
                    reviewCount: 85,
                    category: "ClipVerse",
                    onProductClick: () => {}
                },
                {
                    id: "3",
                    name: "ClipVerse Elite",
                    price: 39.99,
                    imageSrc: "https://images.unsplash.com/photo-1519681393784-d120267933ba?w=800&q=80",
                    imageAlt: "ClipVerse Elite",
                    rating: 4.9,
                    reviewCount: 150,
                    category: "ClipVerse",
                    onProductClick: () => {}
                }
            ]}
            searchPlaceholder="Search ClipVerse products..."
            emptyMessage="No ClipVerse products found"
            className="mt-10"
            gridClassName="grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-6"
            cardClassName="bg-white rounded-lg shadow-md overflow-hidden"
            imageClassName="w-full h-48 object-cover"
            searchClassName="mb-4"
            filterClassName="mb-4"
            toolbarClassName="mb-4"
        />
      </div>

      <div id="metric" data-section="metric">
        <MetricCardSeven
            metrics={[
                {
                    id: "1",
                    value: "500+",
                    title: "Trusted by",
                    items: [
                        "https://images.unsplash.com/photo-1519681393784-d120267933ba?w=800&q=80",
                        "https://images.unsplash.com/photo-1519681393784-d120267933ba?w=800&q=80",
                        "https://images.unsplash.com/photo-1519681393784-d120267933ba?w=800&q=80",
                        "https://images.unsplash.com/photo-1519681393784-d120267933ba?w=800&q=80"
                    ]
                }
            ]}
            carouselMode="auto"
            animationType="slide"
            title="ClipVerse"
            description="Experience seamless video editing with ClipVerse. Trusted by over 500 satisfied clients."
            textboxLayout="left"
            useInvertedBackground="none"
            textBoxTitleClassName="text-4xl font-bold"
            textBoxDescriptionClassName="text-lg"
            valueClassName="text-5xl font-extrabold"
            metricTitleClassName="text-2xl font-semibold"
            featureItemClassName="flex items-center gap-2"
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterLogoReveal
          logoText="ClipVerse"
          leftLink={{
            text: "Privacy Policy",            href: "https://clipverse.io/privacy"
          }}
          rightLink={{
            text: "Terms of Service",            href: "https://clipverse.io/terms"
          }}
        />
      </div>
    </ThemeProvider>
  );
}