"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleFullscreen from "@/components/navbar/NavbarStyleFullscreen/NavbarStyleFullscreen";
import HeroSplitTestimonial from "@/components/sections/hero/HeroSplitTestimonial";
import FeatureCardEight from "@/components/sections/feature/FeatureCardEight";
import ProductCardTwo from "@/components/sections/product/ProductCardTwo";
import InlineImageSplitTextAbout from "@/components/sections/about/InlineImageSplitTextAbout";
import MetricCardOne from "@/components/sections/metrics/MetricCardOne";
import TestimonialCardTwelve from "@/components/sections/testimonial/TestimonialCardTwelve";
import FaqSplitMedia from "@/components/sections/faq/FaqSplitMedia";
import ContactText from "@/components/sections/contact/ContactText";
import FooterMedia from "@/components/sections/footer/FooterMedia";
import {
  FileCheck,
  Sparkles,
  CheckCircle,
  TrendingUp,
  Star,
  HelpCircle,
  Building2,
  Users,
  FileText,
  Shield,
} from "lucide-react";
import Link from "next/link";

export default function HomePage() {
  const navItems = [
    { name: "Home", id: "/" },
    { name: "Services", id: "/services" },
    { name: "Features", id: "#benefits" },
    { name: "Pricing", id: "#metrics" },
    { name: "Contact", id: "#contact-cta" },
  ];

  const footerColumns = [
    {
      title: "Product",      items: [
        { label: "Features", href: "#benefits" },
        { label: "Services", href: "/services" },
        { label: "Pricing", href: "#metrics" },
        { label: "Security", href: "#" },
        { label: "API", href: "#" },
      ],
    },
    {
      title: "Company",      items: [
        { label: "About", href: "#" },
        { label: "Blog", href: "#" },
        { label: "Careers", href: "#" },
        { label: "Contact", href: "#contact-cta" },
        { label: "Partners", href: "#" },
      ],
    },
    {
      title: "Resources",      items: [
        { label: "Documentation", href: "#" },
        { label: "Help Center", href: "#" },
        { label: "FAQ", href: "#faq" },
        { label: "Community", href: "#" },
        { label: "Status Page", href: "#" },
      ],
    },
  ];

  return (
    <ThemeProvider
      defaultButtonVariant="hover-magnetic"
      defaultTextAnimation="entrance-slide"
      borderRadius="pill"
      contentWidth="smallMedium"
      sizing="largeSmall"
      background="circleGradient"
      cardStyle="solid"
      primaryButtonStyle="primary-glow"
      secondaryButtonStyle="layered"
      headingFontWeight="normal"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleFullscreen
          navItems={navItems}
          brandName="SponsorDesk"
          bottomLeftText="HR & Legal Solutions"
          bottomRightText="support@sponsordesk.com"
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroSplitTestimonial
          title="Simplify Employee Document Management"
          description="Manage residency renewals, work permits, sponsorship transfers, and visa applications all in one secure platform. Keep track of expiring documents with automated reminders and streamlined workflows."
          tag="Employee Document Platform"
          tagIcon={FileCheck}
          tagAnimation="slide-up"
          background={{ variant: "plain" }}
          testimonials={[
            {
              name: "Ahmed Al-Mansouri",              handle: "HR Director, Gulf Trading Co.",              testimonial:
                "SponsorDesk cut our document processing time by 80%. We now manage 500+ employees effortlessly.",              rating: 5,
              imageSrc:
                "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3Aev8H9mL7eFI9KHWlmK4WotoLx/professional-headshot-of-a-middle-easter-1772966294213-0f643600.png",              imageAlt: "Ahmed Al-Mansouri"},
            {
              name: "Layla Hassan",              handle: "Sponsorship Manager, TechHub ME",              testimonial:
                "The automated reminders ensure we never miss visa renewal deadlines. Game-changer for our HR team.",              rating: 5,
              imageSrc:
                "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3Aev8H9mL7eFI9KHWlmK4WotoLx/professional-headshot-of-a-middle-easter-1772966294494-98e1600a.png",              imageAlt: "Layla Hassan"},
            {
              name: "Mohammed Saeed",              handle: "Operations Manager, BuildMore LLC",              testimonial:
                "From chaos to clarity. SponsorDesk gave us complete visibility over all employee procedures.",              rating: 5,
              imageSrc:
                "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3Aev8H9mL7eFI9KHWlmK4WotoLx/professional-headshot-of-a-middle-easter-1772966295617-9132d86a.png",              imageAlt: "Mohammed Saeed"},
          ]}
          testimonialRotationInterval={5000}
          buttons={[
            { text: "Start Now", href: "#" },
            { text: "Request Demo", href: "#contact-cta" },
          ]}
          buttonAnimation="slide-up"
          imageSrc="https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3Aev8H9mL7eFI9KHWlmK4WotoLx/a-modern-clean-saas-dashboard-interface--1772966296663-693d39b4.png"
          imageAlt="SponsorDesk Dashboard Interface"
          mediaAnimation="blur-reveal"
          imagePosition="right"
          useInvertedBackground={false}
        />
      </div>

      <div id="benefits" data-section="benefits">
        <FeatureCardEight
          title="Why Choose SponsorDesk"
          description="Built specifically for HR managers, company sponsors, and business owners who need reliability and precision in handling governmental procedures."
          tag="Key Benefits"
          tagIcon={Sparkles}
          tagAnimation="slide-up"
          features={[
            {
              id: 1,
              title: "Document Centralization",              description:
                "Store all employee governmental papers, residency permits, work visas, and legal documents in one secure, organized location with version history.",              imageSrc:
                "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3Aev8H9mL7eFI9KHWlmK4WotoLx/icon-or-illustration-representing-reside-1772966294654-23559141.png?_wi=1",              imageAlt: "Document Centralization"},
            {
              id: 2,
              title: "Automated Reminders",              description:
                "Receive notifications before expiry dates. Never miss a renewal deadline for visas, residency permits, or sponsorship transfers again.",              imageSrc:
                "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3Aev8H9mL7eFI9KHWlmK4WotoLx/icon-or-illustration-for-work-permit-ser-1772966295223-374f7a46.png?_wi=1",              imageAlt: "Automated Reminders"},
            {
              id: 3,
              title: "Workflow Automation",              description:
                "Streamline sponsorship transfers, visa applications, and permit renewals with pre-built templates and guided workflows.",              imageSrc:
                "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3Aev8H9mL7eFI9KHWlmK4WotoLx/icon-or-illustration-for-sponsorship-tra-1772966295826-b58f26d0.png?_wi=1",              imageAlt: "Workflow Automation"},
            {
              id: 4,
              title: "Status Tracking",              description:
                "Real-time tracking of each employee's request status. Full visibility from application submission through approval and completion.",              imageSrc:
                "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3Aev8H9mL7eFI9KHWlmK4WotoLx/icon-or-illustration-for-document-tracki-1772966294576-8a5cef46.png?_wi=1",              imageAlt: "Status Tracking"},
          ]}
          textboxLayout="default"
          useInvertedBackground={true}
          buttonAnimation="slide-up"
        />
      </div>

      <div id="services" data-section="services">
        <ProductCardTwo
          title="Services We Handle"
          description="Comprehensive solutions for all employee governmental procedures and legal documentation needs."
          tag="Service Offerings"
          tagIcon={CheckCircle}
          tagAnimation="slide-up"
          products={[
            {
              id: "residency-renewal",              brand: "Government Solutions",              name: "Residency Renewals",              price: "Managed",              rating: 5,
              reviewCount: "2.3k+",              imageSrc:
                "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3Aev8H9mL7eFI9KHWlmK4WotoLx/icon-or-illustration-representing-reside-1772966294654-23559141.png?_wi=2",              imageAlt: "Residency Renewals"},
            {
              id: "work-permits",              brand: "Government Solutions",              name: "Work Permit Updates",              price: "Managed",              rating: 5,
              reviewCount: "1.8k+",              imageSrc:
                "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3Aev8H9mL7eFI9KHWlmK4WotoLx/icon-or-illustration-for-work-permit-ser-1772966295223-374f7a46.png?_wi=2",              imageAlt: "Work Permit Updates"},
            {
              id: "sponsorship-transfer",              brand: "Government Solutions",              name: "Sponsorship Transfers",              price: "Managed",              rating: 5,
              reviewCount: "1.5k+",              imageSrc:
                "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3Aev8H9mL7eFI9KHWlmK4WotoLx/icon-or-illustration-for-sponsorship-tra-1772966295826-b58f26d0.png?_wi=2",              imageAlt: "Sponsorship Transfers"},
            {
              id: "visa-applications",              brand: "Government Solutions",              name: "Visa Applications",              price: "Managed",              rating: 5,
              reviewCount: "3.1k+",              imageSrc:
                "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3Aev8H9mL7eFI9KHWlmK4WotoLx/icon-or-illustration-for-visa-applicatio-1772966294629-b03a22a1.png?_wi=1",              imageAlt: "Visa Applications"},
            {
              id: "document-tracking",              brand: "Government Solutions",              name: "Document Tracking",              price: "Managed",              rating: 5,
              reviewCount: "2.6k+",              imageSrc:
                "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3Aev8H9mL7eFI9KHWlmK4WotoLx/icon-or-illustration-for-document-tracki-1772966294576-8a5cef46.png?_wi=2",              imageAlt: "Document Tracking"},
            {
              id: "file-management",              brand: "Government Solutions",              name: "Employee File Management",              price: "Managed",              rating: 5,
              reviewCount: "2.0k+",              imageSrc:
                "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3Aev8H9mL7eFI9KHWlmK4WotoLx/icon-or-illustration-for-employee-file-m-1772966294452-9ea61a5f.png?_wi=1",              imageAlt: "Employee File Management"},
          ]}
          gridVariant="three-columns-all-equal-width"
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
          buttonAnimation="slide-up"
        />
      </div>

      <div id="dashboard-preview" data-section="dashboard-preview">
        <InlineImageSplitTextAbout
          heading={[
            { type: "text", content: "Your Complete Dashboard for" },
            {
              type: "image",              src: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3Aev8H9mL7eFI9KHWlmK4WotoLx/modern-flat-design-icon-representing-a-d-1772966293950-8666e013.png",              alt: "Dashboard"},
            { type: "text", content: "Employee Management" },
          ]}
          buttons={[
            { text: "View Dashboard Demo", href: "#" },
            { text: "Schedule Demo", href: "#contact-cta" },
          ]}
          buttonAnimation="slide-up"
          useInvertedBackground={true}
        />
      </div>

      <div id="metrics" data-section="metrics">
        <MetricCardOne
          title="Our Impact"
          description="Trusted by leading companies across the Middle East to manage employee governmental procedures."
          tag="By The Numbers"
          tagIcon={TrendingUp}
          tagAnimation="slide-up"
          metrics={[
            {
              id: "companies",              value: "500+",              title: "Companies",              description: "Using SponsorDesk for employee management",              icon: Building2,
            },
            {
              id: "employees",              value: "50K+",              title: "Employees",              description: "Documents managed successfully",              icon: Users,
            },
            {
              id: "documents",              value: "200K+",              title: "Documents",              description: "Processed annually",              icon: FileText,
            },
            {
              id: "uptime",              value: "99.9%",              title: "Uptime",              description: "Enterprise-grade reliability",              icon: Shield,
            },
          ]}
          gridVariant="uniform-all-items-equal"
          animationType="scale-rotate"
          textboxLayout="default"
          useInvertedBackground={false}
          buttonAnimation="slide-up"
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardTwelve
          testimonials={[
            {
              id: "1",              name: "Fatima Al-Dosari",              imageSrc:
                "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3Aev8H9mL7eFI9KHWlmK4WotoLx/professional-headshot-of-a-confident-mid-1772966296012-d9bc1ccb.png",              imageAlt: "Fatima Al-Dosari"},
            {
              id: "2",              name: "Omar Al-Rashid",              imageSrc:
                "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3Aev8H9mL7eFI9KHWlmK4WotoLx/professional-headshot-of-a-middle-easter-1772966294599-cc6d6669.png",              imageAlt: "Omar Al-Rashid"},
            {
              id: "3",              name: "Noura Al-Mansouri",              imageSrc:
                "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3Aev8H9mL7eFI9KHWlmK4WotoLx/professional-headshot-of-a-middle-easter-1772966294425-068b90e4.png",              imageAlt: "Noura Al-Mansouri"},
            {
              id: "4",              name: "Khalid Al-Suwaidi",              imageSrc:
                "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3Aev8H9mL7eFI9KHWlmK4WotoLx/professional-headshot-of-a-middle-easter-1772966294558-4e0e20ae.png",              imageAlt: "Khalid Al-Suwaidi"},
            {
              id: "5",              name: "Aisha Al-Khaleej",              imageSrc:
                "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3Aev8H9mL7eFI9KHWlmK4WotoLx/professional-headshot-of-a-middle-easter-1772966297366-b1980538.png",              imageAlt: "Aisha Al-Khaleej"},
            {
              id: "6",              name: "Hassan Al-Shammari",              imageSrc:
                "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3Aev8H9mL7eFI9KHWlmK4WotoLx/professional-headshot-of-a-middle-easter-1772966294727-2c206b24.png",              imageAlt: "Hassan Al-Shammari"},
          ]}
          cardTitle="Trusted by 10,000+ HR professionals and business leaders across the Middle East"
          cardTag="See what they say"
          cardTagIcon={Star}
          cardAnimation="blur-reveal"
          useInvertedBackground={false}
        />
      </div>

      <div id="faq" data-section="faq">
        <FaqSplitMedia
          title="Frequently Asked Questions"
          description="Everything you need to know about SponsorDesk and how we help manage your employee documentation."
          tag="Help & Support"
          tagIcon={HelpCircle}
          tagAnimation="slide-up"
          faqs={[
            {
              id: "1",              title: "Is my data secure with SponsorDesk?",              content:
                "Yes. We use enterprise-grade encryption, compliance with ISO 27001 standards, and comply with all Middle East data protection regulations. All documents are encrypted at rest and in transit."},
            {
              id: "2",              title: "How do automated reminders work?",              content:
                "Our system continuously monitors expiry dates for all documents. You receive notifications via email and dashboard alerts weeks before expiration, ensuring you never miss critical deadlines."},
            {
              id: "3",              title: "Can I integrate with my existing HR system?",              content:
                "Yes. SponsorDesk offers API integrations with popular HR management systems. Our team can help set up seamless data synchronization for your specific requirements."},
            {
              id: "4",              title: "What support does your team provide?",              content:
                "We offer 24/7 email support, dedicated account managers for enterprise clients, comprehensive documentation, and regular training sessions for your HR team."},
            {
              id: "5",              title: "How quickly can we get started?",              content:
                "Onboarding typically takes 1-2 weeks. Our team handles setup, data migration, and staff training. Most customers are fully operational within 30 days."},
            {
              id: "6",              title: "Do you support bilingual documents?",              content:
                "Absolutely. SponsorDesk fully supports Arabic and English with proper RTL/LTR formatting. All documents, workflows, and the dashboard are available in both languages."},
          ]}
          imageSrc="https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3Aev8H9mL7eFI9KHWlmK4WotoLx/modern-illustration-representing-faq-sup-1772966295233-817188c7.png?_wi=1"
          imageAlt="FAQ Support Team"
          mediaAnimation="blur-reveal"
          mediaPosition="left"
          textboxLayout="default"
          useInvertedBackground={false}
          faqsAnimation="slide-up"
          animationType="smooth"
        />
      </div>

      <div id="contact-cta" data-section="contact-cta">
        <ContactText
          text="Ready to streamline your employee document management? Let's transform how your organization handles governmental procedures and compliance."
          animationType="entrance-slide"
          buttons={[
            { text: "Start Free Trial", href: "#" },
            { text: "Contact Sales", href: "#" },
          ]}
          background={{ variant: "plain" }}
          useInvertedBackground={false}
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterMedia
          imageSrc="https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3Aev8H9mL7eFI9KHWlmK4WotoLx/modern-professional-footer-background-im-1772966297548-b6b1fe45.png?_wi=1"
          imageAlt="Footer background"
          columns={footerColumns}
          logoText="SponsorDesk"
          copyrightText="© 2025 SponsorDesk. All rights reserved."
        />
      </div>
    </ThemeProvider>
  );
}