"use client"

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleCentered from '@/components/navbar/NavbarStyleCentered/NavbarStyleCentered';
import HeroLogoBillboard from '@/components/sections/hero/HeroLogoBillboard';
import FeatureCardTen from '@/components/sections/feature/FeatureCardTen';
import PricingCardOne from '@/components/sections/pricing/PricingCardOne';
import MetricCardOne from '@/components/sections/metrics/MetricCardOne';
import TestimonialCardTwo from '@/components/sections/testimonial/TestimonialCardTwo';
import ContactSplit from '@/components/sections/contact/ContactSplit';
import FooterSimple from '@/components/sections/footer/FooterSimple';
import { CheckCircle, DollarSign, Headphones, Mail, MessageSquare, Shield, Sparkles, Star, TrendingUp, Users, Zap } from "lucide-react";

export default function LandingPage() {
  const handleNewsletterSubmit = (email: string) => {
    console.log('Newsletter subscription:', email);
  };

  return (
    <ThemeProvider
      defaultButtonVariant="shift-hover"
      defaultTextAnimation="background-highlight"
      borderRadius="soft"
      contentWidth="mediumLarge"
      sizing="medium"
      background="floatingGradient"
      cardStyle="glass-depth"
      primaryButtonStyle="inset-glow"
      secondaryButtonStyle="glass"
      headingFontWeight="semibold"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleCentered
          navItems={[
            { name: "Features", id: "features" },
            { name: "Pricing", id: "pricing" },
            { name: "About", id: "about" },
            { name: "Testimonials", id: "testimonials" },
            { name: "Contact", id: "contact" }
          ]}
          button={{ text: "Get Started", href: "contact" }}
          brandName="SaaS Hub"
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroLogoBillboard
          logoText="SaaS Hub"
          description="Streamline your workflow with our powerful, intuitive platform designed for modern teams. Automate tasks, collaborate seamlessly, and scale your business with confidence."
          buttons={[
            { text: "Start Free Trial", href: "pricing" },
            { text: "Watch Demo", href: "#" }
          ]}
          background={{ variant: "sparkles-gradient" }}
          imageSrc="https://img.b2bpic.net/free-vector/professional-dashboard-user-panel_23-2148368370.jpg"
          imageAlt="SaaS Dashboard Interface"
          frameStyle="browser"
          ariaLabel="Hero section showcasing SaaS platform"
        />
      </div>

      <div id="features" data-section="features">
        <FeatureCardTen
          title="Powerful Features Built for Success"
          description="Everything you need to transform your business operations and drive growth with our comprehensive feature set."
          tag="Features"
          tagIcon={Zap}
          features={[
            {
              id: "1",              title: "Advanced Automation",              description: "Automate repetitive tasks and workflows to save time and reduce errors. Set up complex automation rules without any coding required.",              media: {
                imageSrc: "https://img.b2bpic.net/free-photo/information-technology-connection-graphics-concept_53876-121040.jpg",                imageAlt: "Automation workflow interface"
              },
              items: [
                { icon: CheckCircle, text: "Trigger-based actions" },
                { icon: CheckCircle, text: "Custom workflow builder" },
                { icon: CheckCircle, text: "Integration with 500+ apps" }
              ],
              reverse: false
            },
            {
              id: "2",              title: "Real-Time Analytics",              description: "Get instant insights into your business metrics with beautiful, customizable dashboards. Track performance and make data-driven decisions faster.",              media: {
                imageSrc: "https://img.b2bpic.net/free-photo/standard-quality-control-collage-concept_23-2149595844.jpg",                imageAlt: "Analytics dashboard with charts"
              },
              items: [
                { icon: CheckCircle, text: "Real-time data visualization" },
                { icon: CheckCircle, text: "Custom report generation" },
                { icon: CheckCircle, text: "Predictive analytics" }
              ],
              reverse: true
            },
            {
              id: "3",              title: "Team Collaboration",              description: "Keep your team aligned with built-in collaboration tools. Share files, communicate, and manage projects all in one place.",              media: {
                imageSrc: "https://img.b2bpic.net/free-photo/automation-production-system-operation-precess-concept_53876-138637.jpg",                imageAlt: "Team collaboration workspace"
              },
              items: [
                { icon: CheckCircle, text: "Real-time commenting" },
                { icon: CheckCircle, text: "File sharing and versioning" },
                { icon: CheckCircle, text: "Project management tools" }
              ],
              reverse: false
            }
          ]}
          textboxLayout="default"
          animationType="slide-up"
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="pricing" data-section="pricing">
        <PricingCardOne
          title="Simple, Transparent Pricing"
          description="Choose the perfect plan for your team. No hidden fees, cancel anytime."
          tag="Pricing"
          tagIcon={DollarSign}
          plans={[
            {
              id: "starter",              badge: "Great to Start",              badgeIcon: Sparkles,
              price: "$29/mo",              subtitle: "Perfect for small teams and startups",              features: [
                "Up to 5 team members",                "Basic automation",                "Email support",                "10GB storage",                "Core analytics"
              ]
            },
            {
              id: "professional",              badge: "Most Popular",              badgeIcon: Star,
              price: "$79/mo",              subtitle: "Best for growing businesses",              features: [
                "Up to 25 team members",                "Advanced automation",                "Priority support",                "100GB storage",                "Advanced analytics",                "Custom integrations",                "API access"
              ]
            },
            {
              id: "enterprise",              badge: "For Scale",              badgeIcon: Zap,
              price: "Custom",              subtitle: "Unlimited everything for enterprises",              features: [
                "Unlimited team members",                "Full automation suite",                "Dedicated support",                "Unlimited storage",                "Enterprise analytics",                "White-label options",                "SLA guarantee"
              ]
            }
          ]}
          textboxLayout="default"
          animationType="slide-up"
          useInvertedBackground="invertDefault"
        />
      </div>

      <div id="metrics" data-section="metrics">
        <MetricCardOne
          title="Our Impact at a Glance"
          description="Join thousands of teams already transforming their business with SaaS Hub"
          tag="Statistics"
          tagIcon={TrendingUp}
          metrics={[
            {
              id: "1",              value: "10K",              title: "Active Users",              description: "Growing every single day across the globe",              icon: Users
            },
            {
              id: "2",              value: "99.9",              title: "Uptime",              description: "Reliable platform you can depend on",              icon: Shield
            },
            {
              id: "3",              value: "500+",              title: "Integrations",              description: "Connect with all your favorite tools",              icon: Zap
            },
            {
              id: "4",              value: "24/7",              title: "Support",              description: "Always here to help your team succeed",              icon: Headphones
            }
          ]}
          gridVariant="uniform-all-items-equal"
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardTwo
          title="Loved by Teams Everywhere"
          description="See what industry leaders are saying about SaaS Hub"
          tag="Reviews"
          tagIcon={MessageSquare}
          testimonials={[
            {
              id: "1",              name: "Sarah Johnson",              role: "CEO, TechStart Inc",              testimonial: "SaaS Hub has completely transformed how our team collaborates. We've increased productivity by 40% and saved countless hours on repetitive tasks.",              imageSrc: "https://img.b2bpic.net/free-photo/happy-young-professional-posing-office_1262-21170.jpg",              imageAlt: "Sarah Johnson"
            },
            {
              id: "2",              name: "Michael Chen",              role: "Founder, Digital Ventures",              testimonial: "The analytics features are incredibly powerful. We now have real-time visibility into every aspect of our business operations.",              imageSrc: "https://img.b2bpic.net/free-photo/confident-middle-aged-businesswoman-posing-near-office-building_1262-21023.jpg",              imageAlt: "Michael Chen"
            },
            {
              id: "3",              name: "Emily Rodriguez",              role: "Director of Operations, Growth Co",              testimonial: "Outstanding support team and seamless integrations. SaaS Hub is exactly what we needed to scale our operations efficiently.",              imageSrc: "https://img.b2bpic.net/free-photo/content-beautiful-businesswoman-standing-window_1262-1778.jpg",              imageAlt: "Emily Rodriguez"
            },
            {
              id: "4",              name: "David Kim",              role: "Product Manager, InnovateLab",              testimonial: "The user interface is intuitive and the automation capabilities are unmatched. Our team was productive within the first day.",              imageSrc: "https://img.b2bpic.net/free-photo/young-businessman-happy-expression_1194-1674.jpg",              imageAlt: "David Kim"
            },
            {
              id: "5",              name: "Jessica Martinez",              role: "COO, Enterprise Solutions",              testimonial: "Best investment we've made for our infrastructure. The ROI was evident within the first month of implementation.",              imageSrc: "https://img.b2bpic.net/free-photo/serious-beautiful-businesswoman-standing-window_1262-1913.jpg",              imageAlt: "Jessica Martinez"
            },
            {
              id: "6",              name: "Robert Thompson",              role: "Entrepreneur, Next Generation Startup",              testimonial: "From onboarding to ongoing support, SaaS Hub made everything incredibly easy. Highly recommended for any growing business.",              imageSrc: "https://img.b2bpic.net/free-photo/african-american-curly-businesswoman-standing-with-folded-hands-portrait-successful-confident-young-pretty-female-office-employer-suit-posing-work-business-company-management-concept_74855-6735.jpg",              imageAlt: "Robert Thompson"
            }
          ]}
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground="noInvert"
          carouselMode="buttons"
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactSplit
          tag="Newsletter"
          tagIcon={Mail}
          title="Stay Updated with Our Latest Features"
          description="Subscribe to our newsletter and get exclusive tips, product updates, and special offers delivered right to your inbox."
          background={{ variant: "radial-gradient" }}
          useInvertedBackground="noInvert"
          imageSrc="https://img.b2bpic.net/free-vector/computer-with-social-profile-social-community_24877-53905.jpg"
          imageAlt="Newsletter subscription"
          mediaPosition="right"
          inputPlaceholder="Enter your email"
          buttonText="Subscribe"
          termsText="We respect your privacy. Unsubscribe at any time."
          onSubmit={handleNewsletterSubmit}
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterSimple
          columns={[
            {
              title: "Product",              items: [
                { label: "Features", href: "#features" },
                { label: "Pricing", href: "#pricing" },
                { label: "Security", href: "#" },
                { label: "Roadmap", href: "#" }
              ]
            },
            {
              title: "Company",              items: [
                { label: "About", href: "#" },
                { label: "Blog", href: "#" },
                { label: "Careers", href: "#" },
                { label: "Contact", href: "#contact" }
              ]
            },
            {
              title: "Resources",              items: [
                { label: "Documentation", href: "#" },
                { label: "API Reference", href: "#" },
                { label: "Status", href: "#" },
                { label: "Support", href: "#" }
              ]
            },
            {
              title: "Legal",              items: [
                { label: "Privacy", href: "#" },
                { label: "Terms", href: "#" },
                { label: "Cookies", href: "#" }
              ]
            }
          ]}
          bottomLeftText="© 2025 SaaS Hub. All rights reserved."
          bottomRightText="Made with care for modern teams"
        />
      </div>
    </ThemeProvider>
  );
}