"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleFullscreen from "@/components/navbar/NavbarStyleFullscreen/NavbarStyleFullscreen";
import FeatureCardEight from "@/components/sections/feature/FeatureCardEight";
import MetricCardOne from "@/components/sections/metrics/MetricCardOne";
import ContactText from "@/components/sections/contact/ContactText";
import FooterMedia from "@/components/sections/footer/FooterMedia";
import Link from "next/link";
import { TrendingUp, Users, FileText, Shield, CheckCircle, Sparkles, HelpCircle } from "lucide-react";

export default function FeaturesPage() {
  const navItems = [
    { name: "Home", id: "/" },
    { name: "Services", id: "/services" },
    { name: "Features", id: "/features" },
    { name: "Pricing", id: "/pricing" },
    { name: "Contact", id: "/contact" },
  ];

  const footerColumns = [
    {
      title: "Product",      items: [
        { label: "Features", href: "/features" },
        { label: "Services", href: "/services" },
        { label: "Pricing", href: "/pricing" },
        { label: "Security", href: "#" },
        { label: "API", href: "#" },
      ],
    },
    {
      title: "Company",      items: [
        { label: "About", href: "/about" },
        { label: "Blog", href: "#" },
        { label: "Careers", href: "#" },
        { label: "Contact", href: "/contact" },
        { 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={[
            { name: "Home", id: "/" },
            { name: "Services", id: "/services" },
            { name: "Features", id: "/features" },
            { name: "Pricing", id: "/pricing" },
            { name: "Contact", id: "/contact" },
          ]}
          brandName="SponsorDesk"
          bottomLeftText="HR & Legal Solutions"
          bottomRightText="support@sponsordesk.com"
        />
      </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-for-employee-file-m-1772966294452-9ea61a5f.png?_wi=3",              imageAlt: "Document Centralization Feature"},
            {
              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-document-tracki-1772966294576-8a5cef46.png?_wi=4",              imageAlt: "Automated Reminders Feature"},
            {
              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=5",              imageAlt: "Workflow Automation Feature"},
            {
              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=5",              imageAlt: "Status Tracking Feature"},
          ]}
          textboxLayout="default"
          useInvertedBackground={true}
          buttonAnimation="slide-up"
        />
      </div>

      <div id="metrics" data-section="metrics">
        <MetricCardOne
          metrics={[
            {
              id: "companies",              value: "500+",              title: "Companies",              description: "Using SponsorDesk for employee management",              icon: Users,
            },
            {
              id: "employees",              value: "50K+",              title: "Employees",              description: "Document managed successfully",              icon: FileText,
            },
            {
              id: "documents",              value: "200K+",              title: "Documents",              description: "Processed annually",              icon: CheckCircle,
            },
            {
              id: "uptime",              value: "99.9%",              title: "Uptime",              description: "Enterprise-grade reliability",              icon: Shield,
            },
          ]}
          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"
          gridVariant="uniform-all-items-equal"
          animationType="scale-rotate"
          textboxLayout="default"
          useInvertedBackground={false}
          buttonAnimation="slide-up"
        />
      </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: "/signup"},
            {
              text: "Contact Sales",              href: "/contact"},
          ]}
          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=3"
          imageAlt="Footer background"
          columns={footerColumns}
          logoText="SponsorDesk"
          copyrightText="© 2025 SponsorDesk. All rights reserved."
        />
      </div>
    </ThemeProvider>
  );
}