"use client"

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarLayoutFloatingOverlay from '@/components/navbar/NavbarLayoutFloatingOverlay/NavbarLayoutFloatingOverlay';
import HeroBillboardGallery from '@/components/sections/hero/HeroBillboardGallery';
import FeatureCardMedia from '@/components/sections/feature/FeatureCardMedia';
import MediaAbout from '@/components/sections/about/MediaAbout';
import MetricCardTen from '@/components/sections/metrics/MetricCardTen';
import TestimonialCardFive from '@/components/sections/testimonial/TestimonialCardFive';
import FaqDouble from '@/components/sections/faq/FaqDouble';
import ContactSplitForm from '@/components/sections/contact/ContactSplitForm';
import FooterBaseReveal from '@/components/sections/footer/FooterBaseReveal';
import { CheckCircle } from "lucide-react";

export default function LandingPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="shift-hover"
      defaultTextAnimation="background-highlight"
      borderRadius="rounded"
      contentWidth="mediumSmall"
      sizing="largeSmallSizeLargeTitles"
      background="none"
      cardStyle="glass-depth"
      primaryButtonStyle="gradient"
      secondaryButtonStyle="radial-glow"
      headingFontWeight="light"
    >
      <div id="nav" data-section="nav">
        <NavbarLayoutFloatingOverlay
          brandName="Kenya e-Reg"
          navItems={[
            { name: "Services", id: "services" },
            { name: "About", id: "about" },
            { name: "Categories", id: "categories" },
            { name: "FAQ", id: "faq" },
            { name: "Contact", id: "contact" }
          ]}
          button={{
            text: "Register Now",            href: "https://e-registration.kenya.go.ke"
          }}
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroBillboardGallery
          title="Kenya's Official e-Registration Platform"
          description="Simplify your business registration journey with Kenya's trusted government e-registration portal. Access all licensing, permits, and compliance services in one secure digital platform."
          background={{ variant: "radial-gradient" }}
          tag="Government Services"
          tagIcon={CheckCircle}
          buttons={[
            { text: "Explore Services", href: "services" },
            { text: "Learn More", href: "about" }
          ]}
          mediaItems={[
            { imageSrc: "https://img.b2bpic.net/free-photo/businessman-consulting-legal-expert_74855-1103.jpg", imageAlt: "Kenya e-Registration Portal" },
            { imageSrc: "https://img.b2bpic.net/free-photo/start-up-business-goals-strategy_53876-124798.jpg", imageAlt: "Business Registration Services" },
            { imageSrc: "https://img.b2bpic.net/free-photo/person-using-tablet_53876-13420.jpg", imageAlt: "Licensing and Compliance" },
            { imageSrc: "https://img.b2bpic.net/free-photo/target-development-business-investment_53876-124850.jpg", imageAlt: "Government Permits" },
            { imageSrc: "https://img.b2bpic.net/free-photo/crop-ethnic-businessman-signing-papers_23-2147768593.jpg", imageAlt: "Official Government Authority" }
          ]}
        />
      </div>

      <div id="services" data-section="services">
        <FeatureCardMedia
          title="Comprehensive Business Services"
          description="Access all government business registration and licensing services through our integrated platform"
          tag="Available Services"
          features={[
            {
              id: "1",              title: "Business Name Registration",              description: "Register your business name with the Kenya Business Registry. Quick, secure, and officially recognized registration process.",              tag: "Registration",              imageSrc: "https://img.b2bpic.net/free-photo/start-up-business-goals-strategy_53876-124798.jpg"
            },
            {
              id: "2",              title: "Company Incorporation",              description: "Incorporate your limited company with complete compliance documentation. Full digital processing with instant approval.",              tag: "Incorporation",              imageSrc: "https://img.b2bpic.net/free-photo/person-using-tablet_53876-13420.jpg"
            },
            {
              id: "3",              title: "Trade License Application",              description: "Apply for trade licenses across all sectors. Streamlined application with real-time status tracking.",              tag: "Licensing",              imageSrc: "https://img.b2bpic.net/free-photo/target-development-business-investment_53876-124850.jpg"
            },
            {
              id: "4",              title: "Tax Registration (TPIN)",              description: "Register for tax purposes with the Kenya Revenue Authority. Secure digital submission and instant verification.",              tag: "Tax Compliance",              imageSrc: "https://img.b2bpic.net/free-photo/business-people-dining-restaurant_53876-46892.jpg"
            },
            {
              id: "5",              title: "Work Permit Issuance",              description: "Apply for work permits for foreign nationals. Secure processing with comprehensive verification.",              tag: "Immigration",              imageSrc: "https://img.b2bpic.net/free-photo/confident-pleased-female-applicant-signing-employment-contract-meeting-with-hr-manager-showing_482257-133730.jpg"
            },
            {
              id: "6",              title: "Professional Licenses",              description: "Obtain licenses for regulated professions. Full compliance tracking and renewal management included.",              tag: "Professionals",              imageSrc: "https://img.b2bpic.net/free-photo/people-working-call-center_23-2149288189.jpg"
            }
          ]}
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground="invertDefault"
        />
      </div>

      <div id="about" data-section="about">
        <MediaAbout
          title="Official Government Authority"
          description="Kenya's e-Registration platform is operated by the Department of Trade, Industry and Cooperatives in partnership with the State Law Office. We ensure all registrations meet national standards and legal requirements, providing you with verified, secure, and officially recognized business registration."
          tag="About This Service"
          imageSrc="https://img.b2bpic.net/free-photo/crop-ethnic-businessman-signing-papers_23-2147768593.jpg"
          imageAlt="Government Authority and Official Seal"
          buttons={[
            { text: "Learn About Regulations", href: "https://www.tradeandoperations.go.ke" }
          ]}
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="categories" data-section="categories">
        <MetricCardTen
          title="Service Categories"
          description="Browse our complete range of government business services organized by category"
          tag="Explore"
          metrics={[
            {
              id: "1",              title: "Business Registration",              subtitle: "Register business names, companies, and cooperatives with the government registry",              category: "Registration",              value: "6 Services",              buttons: [{ text: "Apply Now", href: "services" }]
            },
            {
              id: "2",              title: "Licensing & Permits",              subtitle: "Obtain trade licenses, permits, and sector-specific approvals",              category: "Licensing",              value: "8 Services",              buttons: [{ text: "Apply Now", href: "services" }]
            },
            {
              id: "3",              title: "Tax & Revenue",              subtitle: "Register for TPIN, file returns, and manage tax compliance",              category: "Tax",              value: "5 Services",              buttons: [{ text: "Apply Now", href: "services" }]
            },
            {
              id: "4",              title: "Employment & Immigration",              subtitle: "Work permits, foreign worker registration, and compliance certifications",              category: "Immigration",              value: "4 Services",              buttons: [{ text: "Apply Now", href: "services" }]
            },
            {
              id: "5",              title: "Professional Services",              subtitle: "Licenses for regulated professions, memberships, and certifications",              category: "Professional",              value: "7 Services",              buttons: [{ text: "Apply Now", href: "services" }]
            },
            {
              id: "6",              title: "Compliance & Renewals",              subtitle: "Annual renewals, compliance filings, and regulatory updates",              category: "Compliance",              value: "10 Services",              buttons: [{ text: "Apply Now", href: "services" }]
            }
          ]}
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground="invertDefault"
        />
      </div>

      <div id="benefits" data-section="benefits">
        <FeatureCardMedia
          title="Why Use Kenya e-Registration"
          description="Experience the benefits of digital government services designed for efficiency and security"
          features={[
            {
              id: "1",              title: "Lightning-Fast Processing",              description: "Complete your registration in minutes, not weeks. Our digital system processes applications instantly with automated verification.",              tag: "Efficiency",              imageSrc: "https://img.b2bpic.net/free-photo/confident-pleased-female-applicant-signing-employment-contract-meeting-with-hr-manager-showing_482257-133730.jpg"
            },
            {
              id: "2",              title: "Bank-Level Security",              description: "Your data is protected with enterprise-grade encryption and secure digital vaults. All communications are encrypted end-to-end.",              tag: "Security",              imageSrc: "https://img.b2bpic.net/free-photo/business-people-dining-restaurant_53876-46892.jpg"
            },
            {
              id: "3",              title: "24/7 Professional Support",              description: "Access our dedicated support team anytime. Live chat, email, and phone support available in English and Swahili.",              tag: "Support",              imageSrc: "https://img.b2bpic.net/free-photo/people-working-call-center_23-2149288189.jpg"
            },
            {
              id: "4",              title: "Official Recognition",              description: "All registrations are fully legal and officially recognized by the Kenyan government with digital certificates.",              tag: "Legitimacy",              imageSrc: "https://img.b2bpic.net/free-photo/crop-ethnic-businessman-signing-papers_23-2147768593.jpg"
            }
          ]}
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardFive
          title="Success Stories from Kenyan Business Owners"
          description="Hear from entrepreneurs and business leaders who've successfully registered through our platform"
          tag="Testimonials"
          testimonials={[
            {
              id: "1",              name: "James Kipchoge, CEO of TechNairobi Solutions",              date: "Date: 15 November 2024",              title: "The fastest registration I've ever experienced",              quote: "I was amazed at how quickly our company got registered. What usually takes 3-4 weeks with manual processes took us just 45 minutes online. The platform is intuitive and the support team was incredibly helpful throughout.",              tag: "Company Registration",              avatarSrc: "https://img.b2bpic.net/free-photo/smiling-businessman-standing-airport-terminal_107420-85070.jpg",              imageSrc: "https://img.b2bpic.net/free-photo/start-up-business-goals-strategy_53876-124798.jpg"
            },
            {
              id: "2",              name: "Grace Mwangi, Founder of GraceGoods Retail",              date: "Date: 22 October 2024",              title: "Security and professionalism at its finest",              quote: "As someone who was cautious about digital registration, I was impressed by the security measures in place. The platform feels official and trustworthy. My trade license was approved within 24 hours. Highly recommended!",              tag: "Trade License",              avatarSrc: "https://img.b2bpic.net/free-photo/people-having-dinner-luxurious-restaurants_23-2151081912.jpg",              imageSrc: "https://img.b2bpic.net/free-photo/person-using-tablet_53876-13420.jpg"
            },
            {
              id: "3",              name: "Peter Omondi, Managing Director of Omondi Industries",              date: "Date: 08 September 2024",              title: "Complete solution for compliance management",              quote: "We used the platform for multiple services - business registration, tax TPIN, and work permits. Everything was centralized and the tracking feature helped us stay on top of all requirements. Saved us significant time and money.",              tag: "Multiple Services",              avatarSrc: "https://img.b2bpic.net/free-photo/inspiring-new-boss_1098-93.jpg",              imageSrc: "https://img.b2bpic.net/free-photo/target-development-business-investment_53876-124850.jpg"
            },
            {
              id: "4",              name: "Sarah Kimani, Owner of Kimani & Associates Consulting",              date: "Date: 27 July 2024",              title: "Professional support made the difference",              quote: "I had questions throughout my application process, and the support team was always there to help. They guided me through every step and ensured I submitted correct documentation. Excellent customer service!",              tag: "Professional License",              avatarSrc: "https://img.b2bpic.net/free-photo/businessman-smiling-camera_107420-95907.jpg",              imageSrc: "https://img.b2bpic.net/free-photo/people-working-call-center_23-2149288189.jpg"
            },
            {
              id: "5",              name: "David Kariuki, Founder of KariukiFarm Cooperative",              date: "Date: 14 June 2024",              title: "Cooperative registration made simple",              quote: "Registering our agricultural cooperative was straightforward and affordable. The digital certificates are officially recognized, and the renewal reminders help us stay compliant. This is the future of government services.",              tag: "Cooperative Registration",              avatarSrc: "https://img.b2bpic.net/free-photo/smiling-middle-aged-business-leader-window_1262-5674.jpg",              imageSrc: "https://img.b2bpic.net/free-photo/confident-pleased-female-applicant-signing-employment-contract-meeting-with-hr-manager-showing_482257-133730.jpg"
            },
            {
              id: "6",              name: "Amina Hassan, Director of Hassan Trading Company",              date: "Date: 03 May 2024",              title: "Game-changer for small business owners",              quote: "As a small business owner, this platform is a game-changer. No expensive consultants needed, no confusing paperwork. Everything is clear, organized, and the fees are transparent. Highly satisfied with the entire experience.",              tag: "Business Name",              avatarSrc: "https://img.b2bpic.net/free-photo/closeup-happy-middle-aged-business-leader_1262-4823.jpg",              imageSrc: "https://img.b2bpic.net/free-photo/business-people-dining-restaurant_53876-46892.jpg"
            }
          ]}
          textboxLayout="default"
          useInvertedBackground="invertDefault"
        />
      </div>

      <div id="faq" data-section="faq">
        <FaqDouble
          title="Frequently Asked Questions"
          description="Find answers to common questions about Kenya's e-Registration platform and services"
          tag="Help & Support"
          faqs={[
            {
              id: "1",              title: "Is Kenya e-Registration platform official?",              content: "Yes, Kenya e-Registration is the official government platform operated by the Department of Trade, Industry and Cooperatives. All registrations are legally binding and recognized nationwide. You can verify our status on the official government website."
            },
            {
              id: "2",              title: "How long does registration take?",              content: "Most registrations are completed within 24-48 hours. Business name registrations are often instant. Processing time depends on the service type and completeness of your application. You'll receive email updates at each stage."
            },
            {
              id: "3",              title: "What payment methods are accepted?",              content: "We accept all major Kenyan payment methods including M-Pesa, bank transfer, debit cards, and credit cards. Payment is secure and encrypted. You'll receive an instant payment confirmation and invoice."
            },
            {
              id: "4",              title: "Is my information secure?",              content: "Yes. We use bank-level encryption (SSL/TLS), secure data centers, and comply with Kenya's data protection regulations. Your information is never shared with third parties. Regular security audits ensure maximum protection."
            },
            {
              id: "5",              title: "Can I get help with my application?",              content: "Absolutely. Our support team is available 24/7 via live chat, email, and phone. We offer free guidance on document preparation, application completion, and any technical issues you may encounter."
            },
            {
              id: "6",              title: "What documents do I need?",              content: "Required documents vary by service type. The application will guide you through a checklist of needed documents. Common requirements include ID copies, business addresses, and supporting certifications. Full details are provided before you start."
            },
            {
              id: "7",              title: "Can I renew my registration online?",              content: "Yes, all renewals can be done online. We'll send you renewal reminders before expiration. The renewal process is faster than initial registration, often taking just a few minutes. You can renew anytime before expiration."
            },
            {
              id: "8",              title: "What if I need to change information?",              content: "You can update registration details anytime through your account dashboard. Changes like business address, contact information, or registered officers can be modified. Some significant changes may require supporting documentation."
            },
            {
              id: "9",              title: "Are there any hidden fees?",              content: "No. All fees are transparent and displayed before you pay. You'll see an itemized breakdown of all charges. No additional fees are charged unless you request additional services or expedited processing."
            },
            {
              id: "10",              title: "How do I access my registration certificate?",              content: "Once approved, your digital certificate is instantly available in your account dashboard. You can download, print, or email it directly. Digital certificates have the same legal validity as physical ones."
            }
          ]}
          animationType="smooth"
          textboxLayout="default"
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactSplitForm
          title="Get in Touch"
          description="Have questions about our services? Contact our support team and we'll help you get started with your registration journey."
          inputs={[
            { name: "fullName", type: "text", placeholder: "Full Name", required: true },
            { name: "email", type: "email", placeholder: "Email Address", required: true },
            { name: "phone", type: "tel", placeholder: "Phone Number", required: true },
            { name: "businessType", type: "text", placeholder: "Type of Business/Service", required: false }
          ]}
          textarea={{
            name: "message",            placeholder: "How can we help you? Tell us about your registration needs...",            rows: 5,
            required: true
          }}
          useInvertedBackground="invertDefault"
          imageSrc="https://img.b2bpic.net/free-photo/businessman-checking-bankbook_53876-40975.jpg"
          imageAlt="Contact our support team"
          mediaPosition="right"
          buttonText="Send Message"
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterBaseReveal
          columns={[
            {
              title: "Services",              items: [
                { label: "Business Registration", href: "services" },
                { label: "Licensing & Permits", href: "services" },
                { label: "Tax Registration", href: "services" },
                { label: "Work Permits", href: "services" }
              ]
            },
            {
              title: "Quick Links",              items: [
                { label: "About Us", href: "about" },
                { label: "FAQ", href: "faq" },
                { label: "Contact Support", href: "contact" },
                { label: "Service Status", href: "https://status.e-registration.kenya.go.ke" }
              ]
            },
            {
              title: "Government",              items: [
                { label: "Ministry of Trade", href: "https://www.tradeandoperations.go.ke" },
                { label: "Kenya Revenue Authority", href: "https://www.kra.go.ke" },
                { label: "State Law Office", href: "https://www.statelaw.go.ke" },
                { label: "Official Government Portal", href: "https://www.kenya.go.ke" }
              ]
            }
          ]}
          copyrightText="© 2025 Kenya e-Registration Platform | Government of Kenya"
        />
      </div>
    </ThemeProvider>
  );
}