"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarLayoutFloatingOverlay from "@/components/navbar/NavbarLayoutFloatingOverlay/NavbarLayoutFloatingOverlay";
import FeatureCardThree from "@/components/sections/feature/featureCardThree/FeatureCardThree";
import AboutMetric from "@/components/sections/about/AboutMetric";
import ContactSplit from "@/components/sections/contact/ContactSplit";
import FooterLogoReveal from "@/components/sections/footer/FooterLogoReveal";
import Link from "next/link";
import { TrendingUp, Building2, Globe, Users, Mail } from "lucide-react";

export default function SolutionsPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="icon-arrow"
      defaultTextAnimation="background-highlight"
      borderRadius="soft"
      contentWidth="mediumLarge"
      sizing="mediumLargeSizeMediumTitles"
      background="none"
      cardStyle="soft-shadow"
      primaryButtonStyle="gradient"
      secondaryButtonStyle="solid"
      headingFontWeight="extrabold"
    >
      {/* Navbar */}
      <div id="nav" data-section="nav">
        <NavbarLayoutFloatingOverlay
          brandName="SYS AI"
          navItems={[
            { name: "Home", id: "/" },
            { name: "Features", id: "/" },
            { name: "Pricing", id: "/" },
            { name: "Solutions", id: "/solutions" },
            { name: "Testimonials", id: "/" },
          ]}
          button={{
            text: "Get Started",
            href: "https://demo.sys-ai.erp/signup",
          }}
          className="fixed top-4 left-4 right-4 z-50"
          buttonClassName="px-6 py-2"
        />
      </div>

      {/* Solutions Overview */}
      <div id="solutions-overview" data-section="solutions-overview">
        <FeatureCardThree
          title="Comprehensive Enterprise Solutions"
          description="Explore our modular ERP solutions designed for different aspects of your business. Each solution integrates seamlessly with others for complete operational management."
          tag="Modular Platform"
          tagAnimation="slide-up"
          features={[
            {
              id: "01",
              title: "Financial Management Suite",
              description:
                "Complete accounting, budgeting, and financial reporting. Real-time visibility into cash flow, profitability, and financial health across your entire organization.",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AoZJZp3XEyY5WESTIi9eMg0W2K/a-comprehensive-reporting-and-analytics--1773260888049-45fadd00.png?_wi=3",
              imageAlt: "Financial reporting dashboard",
            },
            {
              id: "02",
              title: "Supply Chain & Logistics",
              description:
                "Optimize procurement, inventory management, and distribution. Track goods from suppliers to customers with complete visibility and automated workflows.",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AoZJZp3XEyY5WESTIi9eMg0W2K/a-workflow-automation-visual-showing-pro-1773260887710-955647a7.png?_wi=3",
              imageAlt: "Supply chain workflow",
            },
            {
              id: "03",
              title: "Manufacturing Operations",
              description:
                "Production planning, scheduling, and quality control. Optimize manufacturing processes with real-time monitoring and predictive maintenance capabilities.",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AoZJZp3XEyY5WESTIi9eMg0W2K/a-modern-enterprise-erp-dashboard-interf-1773260887888-cc42326a.png?_wi=5",
              imageAlt: "Manufacturing dashboard",
            },
            {
              id: "04",
              title: "Human Resources & Payroll",
              description:
                "Employee management, payroll processing, and workforce analytics. Streamline HR processes and gain insights into your talent and organizational structure.",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AoZJZp3XEyY5WESTIi9eMg0W2K/a-team-collaboration-interface-showing-r-1773260890636-c0ecafa3.png?_wi=3",
              imageAlt: "HR dashboard",
            },
          ]}
          gridVariant="two-columns-alternating-heights"
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground={true}
          buttons={[
            {
              text: "View All Modules",
              href: "/",
            },
          ]}
        />
      </div>

      {/* Solution Benefits */}
      <div id="solution-benefits" data-section="solution-benefits">
        <AboutMetric
          title="Why Choose Our Modular Solutions"
          metrics={[
            { icon: TrendingUp, label: "ROI Improvement", value: "280%" },
            { icon: Building2, label: "Implementation Speed", value: "65%" },
            { icon: Globe, label: "Operational Cost Reduction", value: "40%" },
            { icon: Users, label: "User Adoption Rate", value: "95%+" },
          ]}
          metricsAnimation="slide-up"
          useInvertedBackground={false}
        />
      </div>

      {/* Solutions CTA */}
      <div id="solutions-cta" data-section="solutions-cta">
        <ContactSplit
          tag="Implementation"
          title="Ready to Transform Your Operations"
          description="Let our enterprise solutions architects work with you to design the perfect ERP implementation for your organization. We'll help you select the right modules and create a tailored deployment strategy."
          tagIcon={Mail}
          tagAnimation="slide-up"
          background={{
            variant: "sparkles-gradient",
          }}
          useInvertedBackground={false}
          imageSrc="https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AoZJZp3XEyY5WESTIi9eMg0W2K/a-modern-office-environment-with-busines-1773260887280-5d90fc23.png?_wi=3"
          imageAlt="Enterprise implementation planning"
          mediaAnimation="slide-up"
          mediaPosition="right"
          inputPlaceholder="Enter your email"
          buttonText="Schedule Consultation"
          termsText="We respect your privacy. Unsubscribe at any time. See our privacy policy for details."
        />
      </div>

      {/* Footer */}
      <div id="footer" data-section="footer">
        <FooterLogoReveal
          logoText="SYS AI"
          leftLink={{
            text: "Privacy Policy",
            href: "/privacy",
          }}
          rightLink={{
            text: "Terms of Service",
            href: "/terms",
          }}
        />
      </div>
    </ThemeProvider>
  );
}