"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleCentered from '@/components/navbar/NavbarStyleCentered/NavbarStyleCentered';
import HeroLogoBillboard from '@/components/sections/hero/HeroLogoBillboard';
import FeatureBento from '@/components/sections/feature/FeatureBento';
import MetricCardThree from '@/components/sections/metrics/MetricCardThree';
import PricingCardTwo from '@/components/sections/pricing/PricingCardTwo';
import TestimonialCardOne from '@/components/sections/testimonial/TestimonialCardOne';
import MediaAbout from '@/components/sections/about/MediaAbout';
import FooterLogoReveal from '@/components/sections/footer/FooterLogoReveal';
import { Zap, Shield, Database, Mail, Smartphone, Cloud, Settings, Users, MessageCircle, Share2, GitBranch, Bell, TrendingUp, Award, Sparkles, Crown } from "lucide-react";

export default function LandingPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="slide-background"
      defaultTextAnimation="background-highlight"
      borderRadius="sharp"
      contentWidth="compact"
      sizing="mediumLargeSizeMediumTitles"
      background="circleGradient"
      cardStyle="glass-depth"
      primaryButtonStyle="double-inset"
      secondaryButtonStyle="glass"
      headingFontWeight="medium"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleCentered
          brandName="Innovate"
          navItems={[
            { name: "Features", id: "features" },
            { name: "Pricing", id: "pricing" },
            { name: "Testimonials", id: "testimonials" },
            { name: "About", id: "about" },
            { name: "Contact", id: "contact" }
          ]}
          button={{ text: "Start Free Trial", href: "contact" }}
        />
      </div>
      
      <div id="hero" data-section="hero">
        <HeroLogoBillboard
          logoText="Innovate"
          description="Empower your business with intelligent automation, real-time analytics, and seamless integrations. Transform how your team works and accelerate growth."
          buttons={[
            { text: "Start Free Trial", href: "contact" },
            { text: "Watch Demo" }
          ]}
          background={{ variant: "sparkles-gradient" }}
          imageSrc="https://img.b2bpic.net/free-vector/professional-dashboard-user-panel_23-2148368370.jpg"
          imageAlt="SaaS dashboard interface"
          frameStyle="browser"
        />
      </div>
      
      <div id="features" data-section="features">
        <FeatureBento
          title="Powerful Features Built for Growth"
          description="Everything you need to streamline operations, gain insights, and scale your business with confidence."
          tag="Platform"
          textboxLayout="default"
          animationType="slide-up"
          useInvertedBackground="invertDefault"
          features={[
            {
              title: "Advanced Analytics",              description: "Real-time insights into your business performance with customizable dashboards",              bentoComponent: "animated-bar-chart"
            },
            {
              title: "Global Integration Hub",              description: "Connect with 500+ tools and services to automate your entire workflow",              bentoComponent: "orbiting-icons",              centerIcon: Zap,
              items: [
                { icon: Shield, ring: 1 },
                { icon: Database, ring: 1 },
                { icon: Mail, ring: 2 },
                { icon: Smartphone, ring: 2 },
                { icon: Cloud, ring: 3 },
                { icon: Settings, ring: 3 }
              ]
            },
            {
              title: "Enterprise Security",              description: "Bank-level encryption, compliance certifications, and dedicated security infrastructure",              bentoComponent: "reveal-icon",              icon: Shield
            },
            {
              title: "Team Collaboration",              description: "Real-time collaboration features with role-based access controls and audit logs",              bentoComponent: "3d-card-grid",              centerIcon: Users,
              items: [
                { name: "Comments", icon: MessageCircle },
                { name: "Sharing", icon: Share2 },
                { name: "Workflows", icon: GitBranch },
                { name: "Notifications", icon: Bell }
              ]
            }
          ]}
          carouselMode="buttons"
        />
      </div>
      
      <div id="metrics" data-section="metrics">
        <MetricCardThree
          title="Trusted by Industry Leaders"
          description="Join thousands of companies scaling with Innovate's intelligent platform"
          textboxLayout="default"
          animationType="scale-rotate"
          useInvertedBackground="noInvert"
          metrics={[
            {
              id: "1",              icon: TrendingUp,
              title: "Revenue Growth",              value: "340%"
            },
            {
              id: "2",              icon: Users,
              title: "Active Users",              value: "50K+"
            },
            {
              id: "3",              icon: Zap,
              title: "Uptime Guarantee",              value: "99.99%"
            },
            {
              id: "4",              icon: Award,
              title: "Customer Rating",              value: "4.8★"
            }
          ]}
        />
      </div>
      
      <div id="pricing" data-section="pricing">
        <PricingCardTwo
          title="Simple, Transparent Pricing"
          description="Choose the plan that fits your needs. All plans include a 14-day free trial."
          tag="Pricing"
          textboxLayout="default"
          animationType="slide-up"
          useInvertedBackground="invertDefault"
          plans={[
            {
              id: "starter",              badge: "Starter",              badgeIcon: Sparkles,
              price: "$99/mo",              subtitle: "Perfect for small teams just getting started",              buttons: [
                { text: "Start Free Trial", href: "contact" },
                { text: "Contact Sales", href: "contact" }
              ],
              features: [
                "Up to 5 team members",                "Basic analytics dashboard",                "100GB storage",                "Email support",                "Standard integrations"
              ]
            },
            {
              id: "professional",              badge: "Professional",              badgeIcon: Zap,
              price: "$299/mo",              subtitle: "Most popular choice for growing companies",              buttons: [
                { text: "Start Free Trial", href: "contact" },
                { text: "Contact Sales", href: "contact" }
              ],
              features: [
                "Up to 25 team members",                "Advanced analytics & custom dashboards",                "1TB storage",                "Priority email & chat support",                "500+ integrations",                "Custom workflows"
              ]
            },
            {
              id: "enterprise",              badge: "Enterprise",              badgeIcon: Crown,
              price: "Custom",              subtitle: "For large-scale operations with custom needs",              buttons: [
                { text: "Schedule Demo", href: "contact" },
                { text: "Contact Sales", href: "contact" }
              ],
              features: [
                "Unlimited team members",                "Custom analytics & AI-powered insights",                "Unlimited storage",                "24/7 dedicated support",                "Custom integrations",                "Advanced security & compliance",                "SLA guarantee"
              ]
            }
          ]}
        />
      </div>
      
      <div id="testimonials" data-section="testimonials">
        <TestimonialCardOne
          title="What Our Customers Say"
          description="Real feedback from teams using Innovate to transform their business operations"
          tag="Testimonials"
          textboxLayout="default"
          gridVariant="uniform-all-items-equal"
          animationType="blur-reveal"
          useInvertedBackground="noInvert"
          testimonials={[
            {
              id: "1",              name: "Sarah Johnson",              role: "CEO",              company: "TechVenture Inc",              rating: 5,
              imageSrc: "https://img.b2bpic.net/free-photo/happy-young-professional-posing-office_1262-21170.jpg",              imageAlt: "Sarah Johnson, CEO"
            },
            {
              id: "2",              name: "Michael Chen",              role: "Operations Director",              company: "Global Solutions Ltd",              rating: 5,
              imageSrc: "https://img.b2bpic.net/free-photo/confident-middle-aged-businesswoman-posing-near-office-building_1262-21023.jpg",              imageAlt: "Michael Chen, Operations Director"
            },
            {
              id: "3",              name: "Emily Rodriguez",              role: "Founder",              company: "StartupXYZ",              rating: 5,
              imageSrc: "https://img.b2bpic.net/free-photo/content-beautiful-businesswoman-standing-window_1262-1778.jpg",              imageAlt: "Emily Rodriguez, Founder"
            },
            {
              id: "4",              name: "David Kim",              role: "CTO",              company: "InnovateLab",              rating: 5,
              imageSrc: "https://img.b2bpic.net/free-photo/young-businessman-happy-expression_1194-1674.jpg",              imageAlt: "David Kim, CTO"
            },
            {
              id: "5",              name: "Jessica Thompson",              role: "Product Lead",              company: "Digital Dynamics",              rating: 5,
              imageSrc: "https://img.b2bpic.net/free-photo/serious-beautiful-businesswoman-standing-window_1262-1913.jpg",              imageAlt: "Jessica Thompson, Product Lead"
            },
            {
              id: "6",              name: "Robert Martinez",              role: "VP of Growth",              company: "ScaleUp Partners",              rating: 5,
              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 Martinez, VP of Growth"
            }
          ]}
        />
      </div>
      
      <div id="cta" data-section="cta">
        <MediaAbout
          title="Ready to Transform Your Business?"
          description="Join the next generation of companies using Innovate to scale intelligently. Get started with a free 14-day trial—no credit card required."
          tag="Get Started"
          buttons={[
            { text: "Start Your Free Trial", href: "contact" },
            { text: "Schedule a Demo" }
          ]}
          imageSrc="https://img.b2bpic.net/free-vector/professional-dashboard-user-panel_23-2148368370.jpg"
          imageAlt="Start your free trial"
          useInvertedBackground="noInvert"
        />
      </div>
      
      <div id="footer" data-section="footer">
        <FooterLogoReveal
          logoText="Innovate"
          leftLink={{ text: "Privacy Policy", href: "#privacy" }}
          rightLink={{ text: "Terms of Service", href: "#terms" }}
        />
      </div>
    </ThemeProvider>
  );
}