"use client"

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarLayoutFloatingInline from '@/components/navbar/NavbarLayoutFloatingInline';
import HeroSplit from '@/components/sections/hero/HeroSplit';
import FeatureCardTwentyOne from '@/components/sections/feature/FeatureCardTwentyOne';
import ProductCardTwo from '@/components/sections/product/ProductCardTwo';
import PricingCardNine from '@/components/sections/pricing/PricingCardNine';
import AboutMetric from '@/components/sections/about/AboutMetric';
import TestimonialCardTwelve from '@/components/sections/testimonial/TestimonialCardTwelve';
import ContactSplit from '@/components/sections/contact/ContactSplit';
import FooterBase from '@/components/sections/footer/FooterBase';
import { Sparkles, Package, DollarSign, Users, TrendingUp, Globe, Zap, Award, Mail } from "lucide-react";

export default function LandingPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="directional-hover"
      defaultTextAnimation="background-highlight"
      borderRadius="rounded"
      contentWidth="mediumSmall"
      sizing="mediumLargeSizeLargeTitles"
      background="circleGradient"
      cardStyle="soft-shadow"
      primaryButtonStyle="shadow"
      secondaryButtonStyle="layered"
      headingFontWeight="semibold"
    >
      <div id="nav" data-section="nav">
        <NavbarLayoutFloatingInline
          brandName="SaasFlow"
          navItems={[
            { name: "Features", id: "features" },
            { name: "Pricing", id: "pricing" },
            { name: "About", id: "about" },
            { name: "Contact", id: "contact" }
          ]}
          button={{
            text: "Start Free Trial",            href: "contact"
          }}
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroSplit
          title="Streamline Your Workflow with SaasFlow"
          description="Automate repetitive tasks, collaborate seamlessly, and boost productivity with our intelligent SaaS platform. Built for modern teams."
          tag="SaaS Solution"
          tagIcon={Sparkles}
          background={{ variant: "glowing-orb" }}
          buttons={[
            { text: "Start Free Trial", href: "contact" },
            { text: "View Demo", href: "features" }
          ]}
          imageSrc="https://img.b2bpic.net/free-photo/close-up-modern-laptop-with-rate-charts-display-while-man-woman-working-business-project-design-computer-screen-with-data-chart-information-finance-analysis-desk_482257-40065.jpg"
          imageAlt="SaasFlow product dashboard interface"
          imagePosition="right"
          fixedMediaHeight={true}
        />
      </div>

      <div id="features" data-section="features">
        <FeatureCardTwentyOne
          title="Powerful Features Built for Growth"
          description="Everything you need to manage your business efficiently, all in one place."
          tag="Features"
          imageSrc="https://img.b2bpic.net/free-photo/information-technology-connection-graphics-concept_53876-121040.jpg"
          imageAlt="Workflow automation features"
          mediaPosition="left"
          useInvertedBackground="noInvert"
          accordionItems={[
            {
              id: "1",              title: "Intelligent Automation",              content: "Automate workflows and eliminate manual tasks. Save hours every week with smart triggers and actions that learn from your patterns."
            },
            {
              id: "2",              title: "Real-time Analytics",              content: "Track performance metrics across all your operations. Get actionable insights with customizable dashboards and detailed reports."
            },
            {
              id: "3",              title: "Team Collaboration",              content: "Work together seamlessly with built-in communication tools, file sharing, and project management features."
            },
            {
              id: "4",              title: "Enterprise Security",              content: "Your data is protected with military-grade encryption, SSO, and compliance with GDPR, SOC2, and ISO standards."
            }
          ]}
          buttons={[
            { text: "Explore Features", href: "#" }
          ]}
        />
      </div>

      <div id="products" data-section="products">
        <ProductCardTwo
          title="Solution Packages"
          description="Choose the perfect package for your business needs"
          tag="Products"
          tagIcon={Package}
          textboxLayout="default"
          useInvertedBackground="invertDefault"
          gridVariant="three-columns-all-equal-width"
          animationType="slide-up"
          products={[
            {
              id: "1",              brand: "SaasFlow",              name: "Starter Pack",              price: "$29/month",              rating: 5,
              reviewCount: "247",              imageSrc: "https://img.b2bpic.net/free-photo/information-technology-connection-graphics-concept_53876-121040.jpg",              imageAlt: "Starter package solution"
            },
            {
              id: "2",              brand: "SaasFlow",              name: "Professional",              price: "$79/month",              rating: 5,
              reviewCount: "512",              imageSrc: "https://img.b2bpic.net/free-photo/standard-quality-control-collage-concept_23-2149595844.jpg",              imageAlt: "Professional package solution"
            },
            {
              id: "3",              brand: "SaasFlow",              name: "Enterprise",              price: "Custom",              rating: 5,
              reviewCount: "189",              imageSrc: "https://img.b2bpic.net/free-photo/standard-quality-control-concept-m_23-2150041843.jpg",              imageAlt: "Enterprise package solution"
            }
          ]}
        />
      </div>

      <div id="pricing" data-section="pricing">
        <PricingCardNine
          title="Simple, Transparent Pricing"
          description="Choose the plan that fits your business. Always flexible, no hidden fees."
          tag="Pricing"
          tagIcon={DollarSign}
          textboxLayout="default"
          useInvertedBackground="noInvert"
          animationType="slide-up"
          plans={[
            {
              id: "basic",              title: "Starter",              price: "$29",              period: "/month",              imageSrc: "https://img.b2bpic.net/free-vector/pricing-table-template-website-application_1017-23590.jpg",              imageAlt: "Starter plan",              features: [
                "Up to 5 users",                "Basic automation",                "Standard support",                "10GB storage",                "Core integrations"
              ],
              button: {
                text: "Get Started",                href: "contact"
              }
            },
            {
              id: "professional",              title: "Professional",              price: "$79",              period: "/month",              imageSrc: "https://img.b2bpic.net/free-photo/standard-quality-control-collage-concept_23-2149595844.jpg",              imageAlt: "Professional plan",              features: [
                "Up to 25 users",                "Advanced automation",                "Priority support",                "500GB storage",                "Premium integrations",                "Custom workflows"
              ],
              button: {
                text: "Start Trial",                href: "contact"
              }
            },
            {
              id: "enterprise",              title: "Enterprise",              price: "Custom",              period: "pricing",              imageSrc: "https://img.b2bpic.net/free-photo/standard-quality-control-concept-m_23-2150041843.jpg",              imageAlt: "Enterprise plan",              features: [
                "Unlimited users",                "Enterprise automation",                "24/7 dedicated support",                "Unlimited storage",                "Custom integrations",                "White-label options",                "SLA guarantee"
              ],
              button: {
                text: "Contact Sales",                href: "contact"
              }
            }
          ]}
        />
      </div>

      <div id="about" data-section="about">
        <AboutMetric
          title="Trusted by thousands of businesses worldwide to transform their operations and achieve measurable growth"
          useInvertedBackground="invertDefault"
          metrics={[
            {
              icon: Users,
              label: "Active Users",              value: "50,000+"
            },
            {
              icon: TrendingUp,
              label: "Growth Rate",              value: "150%"
            },
            {
              icon: Globe,
              label: "Countries",              value: "120+"
            },
            {
              icon: Zap,
              label: "Tasks Automated",              value: "10M+"
            }
          ]}
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardTwelve
          cardTitle="Join over 10,000 satisfied customers who have transformed their business with SaasFlow"
          cardTag="Trusted by industry leaders"
          cardTagIcon={Award}
          useInvertedBackground="noInvert"
          testimonials={[
            {
              id: "1",              name: "Sarah Johnson",              imageSrc: "https://img.b2bpic.net/free-photo/close-up-portrait-young-handsome-successful-man_1163-5475.jpg",              imageAlt: "Sarah Johnson"
            },
            {
              id: "2",              name: "Michael Chen",              imageSrc: "https://img.b2bpic.net/free-photo/smiling-homosexual-man-official-suit-looking-camera-close-up-shot-happy-gay-getting-dressed-wedding-ceremony-standing-hotel-room-with-his-partner-background-love-emotion-concept_74855-22675.jpg",              imageAlt: "Michael Chen"
            },
            {
              id: "3",              name: "Emily Rodriguez",              imageSrc: "https://img.b2bpic.net/free-photo/close-up-competitive-employee_1098-2870.jpg",              imageAlt: "Emily Rodriguez"
            },
            {
              id: "4",              name: "David Kim",              imageSrc: "https://img.b2bpic.net/free-photo/closeup-handsome-middle-aged-business-leader_1262-4822.jpg",              imageAlt: "David Kim"
            }
          ]}
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactSplit
          tag="Get Started"
          title="Ready to transform your workflow?"
          description="Sign up for your free trial today and discover how SaasFlow can streamline your operations. No credit card required."
          tagIcon={Mail}
          background={{ variant: "sparkles-gradient" }}
          useInvertedBackground="invertDefault"
          imageSrc="https://img.b2bpic.net/free-vector/three-column-price-table-layout-website-subscription_1017-51772.jpg"
          imageAlt="Start your SaasFlow journey"
          mediaPosition="right"
          inputPlaceholder="Enter your email"
          buttonText="Start Free Trial"
          termsText="We respect your privacy. You can unsubscribe anytime."
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterBase
          logoText="SaasFlow"
          copyrightText="© 2025 SaasFlow. All rights reserved."
          columns={[
            {
              title: "Product",              items: [
                { label: "Features", href: "features" },
                { label: "Pricing", href: "pricing" },
                { label: "Security", href: "#" },
                { label: "Roadmap", href: "#" }
              ]
            },
            {
              title: "Company",              items: [
                { label: "About", href: "about" },
                { label: "Blog", href: "#" },
                { label: "Careers", href: "#" },
                { label: "Contact", href: "contact" }
              ]
            },
            {
              title: "Resources",              items: [
                { label: "Documentation", href: "#" },
                { label: "API Reference", href: "#" },
                { label: "Support", href: "#" },
                { label: "Community", href: "#" }
              ]
            }
          ]}
        />
      </div>
    </ThemeProvider>
  );
}