"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import Link from "next/link";
import NavbarLayoutFloatingOverlay from "@/components/navbar/NavbarLayoutFloatingOverlay/NavbarLayoutFloatingOverlay";
import HeroSplitDualMedia from "@/components/sections/hero/HeroSplitDualMedia";
import AboutMetric from "@/components/sections/about/AboutMetric";
import FeatureCardThree from "@/components/sections/feature/featureCardThree/FeatureCardThree";
import ProductCardOne from "@/components/sections/product/ProductCardOne";
import PricingCardEight from "@/components/sections/pricing/PricingCardEight";
import TestimonialCardSixteen from "@/components/sections/testimonial/TestimonialCardSixteen";
import FooterBase from "@/components/sections/footer/FooterBase";
import { Sparkles, Zap, CheckCircle, Star, Users, Globe, Package, DollarSign, ShoppingCart, Quote } from "lucide-react";

const navItems = [
  { name: "Home", id: "/" },
  { name: "Services", id: "/services" },
  { name: "Products", id: "/products" },
  { name: "Pricing", id: "/pricing" },
  { name: "About", id: "/about" },
  { name: "Contact", id: "/contact" },
];

const footerColumns = [
  {
    title: "Company",    items: [
      { label: "About Us", href: "/about" },
      { label: "Our Services", href: "/services" },
      { label: "Products", href: "/products" },
      { label: "Blog", href: "#" },
    ],
  },
  {
    title: "Solutions",    items: [
      { label: "Web Development", href: "/services" },
      { label: "Mobile Apps", href: "/services" },
      { label: "Cloud Services", href: "/services" },
      { label: "E-commerce", href: "/services" },
    ],
  },
  {
    title: "Contact",    items: [
      { label: "Email: connect@codesniffs.com", href: "mailto:connect@codesniffs.com" },
      { label: "Phone: +91 91676 20778", href: "tel:+919167620778" },
      { label: "Mumbai, India", href: "#" },
      { label: "Get in Touch", href: "/contact" },
    ],
  },
];

export default function HomePage() {
  return (
    <ThemeProvider
      defaultButtonVariant="directional-hover"
      defaultTextAnimation="reveal-blur"
      borderRadius="pill"
      contentWidth="small"
      sizing="largeSmallSizeMediumTitles"
      background="aurora"
      cardStyle="gradient-radial"
      primaryButtonStyle="shadow"
      secondaryButtonStyle="layered"
      headingFontWeight="normal"
    >
      <div id="nav" data-section="nav">
        <NavbarLayoutFloatingOverlay
          brandName="CodeSniffs"
          navItems={navItems.map((item) => ({
            name: item.name,
            id: item.id,
          }))}
          button={{
            text: "Start Project",            href: "/contact"}}
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroSplitDualMedia
          title="Build Your Digital Future"
          description="Software & Digital Solutions for Businesses - Web Development, Mobile Apps, Cloud Services, and E-commerce Solutions tailored for your success."
          tag="Software Solutions Agency"
          tagIcon={Sparkles}
          tagAnimation="slide-up"
          buttons={[
            {
              text: "Start Project",              href: "/contact"},
            {
              text: "View Services",              href: "/services"},
          ]}
          buttonAnimation="slide-up"
          mediaItems={[
            {
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3Ac9KYusPGO1ATYFX67WtPqJV0Y/modern-software-development-dashboard-in-1772881146832-c38c4fb4.png",              imageAlt: "Software Development Dashboard"},
            {
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3Ac9KYusPGO1ATYFX67WtPqJV0Y/professional-developer-workspace-showing-1772881145511-1086675a.png",              imageAlt: "Professional Development Environment"},
          ]}
          mediaAnimation="blur-reveal"
          rating={5}
          ratingText="Trusted by 250+ Projects"
          background={{
            variant: "plain"}}
        />
      </div>

      <div id="metrics" data-section="metrics">
        <AboutMetric
          title="CodeSniffs by the Numbers - Delivering Excellence in Software Solutions"
          metrics={[
            {
              icon: CheckCircle,
              label: "Completed Projects",              value: "250+"},
            {
              icon: Star,
              label: "Client Satisfaction",              value: "98%"},
            {
              icon: Users,
              label: "Engineering Team",              value: "50+"},
            {
              icon: Globe,
              label: "Based in Mumbai",              value: "India"},
          ]}
          metricsAnimation="slide-up"
          useInvertedBackground={false}
        />
      </div>

      <div id="services" data-section="services">
        <FeatureCardThree
          title="Our Services"
          description="Comprehensive digital solutions designed to transform your business and accelerate growth."
          tag="What We Offer"
          tagIcon={Zap}
          tagAnimation="slide-up"
          features={[
            {
              id: "01",              title: "Web Development",              description: "Custom web applications and responsive websites built with modern technologies for optimal performance.",              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3Ac9KYusPGO1ATYFX67WtPqJV0Y/professional-web-development-workspace-s-1772881146240-2fb6b6ed.png",              imageAlt: "Web Development Services"},
            {
              id: "02",              title: "Mobile App Development",              description: "Native and cross-platform mobile applications for iOS and Android with exceptional user experience.",              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3Ac9KYusPGO1ATYFX67WtPqJV0Y/mobile-app-development-interface-showing-1772881146088-1847b2f6.png",              imageAlt: "Mobile App Development"},
            {
              id: "03",              title: "Cloud Solutions",              description: "Scalable cloud infrastructure and services for secure, reliable, and cost-effective operations.",              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3Ac9KYusPGO1ATYFX67WtPqJV0Y/cloud-infrastructure-visualization-with--1772881145860-51526f1c.png",              imageAlt: "Cloud Solutions Services"},
            {
              id: "04",              title: "E-commerce Solutions",              description: "Complete e-commerce platforms with payment gateways, inventory management, and analytics.",              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3Ac9KYusPGO1ATYFX67WtPqJV0Y/e-commerce-platform-interface-showing-pr-1772881147877-b050d391.png",              imageAlt: "E-commerce Solutions"},
          ]}
          textboxLayout="default"
          animationType="slide-up"
          gridVariant="two-columns-alternating-heights"
          useInvertedBackground={false}
        />
      </div>

      <div id="products" data-section="products">
        <ProductCardOne
          title="Ready-Made Products"
          description="Pre-built software solutions ready to deploy for your business needs."
          tag="Templates & Systems"
          tagIcon={Package}
          tagAnimation="slide-up"
          products={[
            {
              id: "1",              name: "E-commerce Website Template",              price: "₹25,000",              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3Ac9KYusPGO1ATYFX67WtPqJV0Y/beautiful-e-commerce-website-template-sh-1772881147161-e4e3be9f.png",              imageAlt: "E-commerce Template"},
            {
              id: "2",              name: "Restaurant Management System",              price: "₹20,000",              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3Ac9KYusPGO1ATYFX67WtPqJV0Y/restaurant-management-system-dashboard-s-1772881146965-fe0d37e9.png",              imageAlt: "Restaurant Management System"},
            {
              id: "3",              name: "Hotel Booking System",              price: "₹28,000",              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3Ac9KYusPGO1ATYFX67WtPqJV0Y/hotel-booking-system-interface-showing-r-1772881146124-0e38bfeb.png",              imageAlt: "Hotel Booking System"},
            {
              id: "4",              name: "Gym Management System",              price: "₹22,000",              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3Ac9KYusPGO1ATYFX67WtPqJV0Y/gym-management-system-dashboard-showing--1772881146792-a9c8e2bc.png",              imageAlt: "Gym Management System"},
            {
              id: "5",              name: "School Management System",              price: "₹35,000",              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3Ac9KYusPGO1ATYFX67WtPqJV0Y/school-management-system-dashboard-showi-1772881146774-042cc105.png",              imageAlt: "School Management System"},
            {
              id: "6",              name: "CRM System",              price: "₹30,000",              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3Ac9KYusPGO1ATYFX67WtPqJV0Y/customer-relationship-management-system--1772881146893-d8fb9bbb.png",              imageAlt: "CRM System"},
          ]}
          textboxLayout="default"
          animationType="slide-up"
          gridVariant="three-columns-all-equal-width"
          useInvertedBackground={false}
        />
      </div>

      <div id="pricing" data-section="pricing">
        <PricingCardEight
          title="Transparent Pricing"
          description="Flexible pricing packages for websites and services. Customizable solutions for every business size."
          tag="Pricing Plans"
          tagIcon={DollarSign}
          tagAnimation="slide-up"
          plans={[
            {
              id: "static",              badge: "Starter",              badgeIcon: Zap,
              price: "₹5,000",              subtitle: "Perfect for simple web presence",              buttons: [
                {
                  text: "Get Quote",                  href: "/contact"},
              ],
              features: [
                "1 Page Website",                "Responsive Design",                "Basic SEO",                "Contact Form",                "Mobile Optimized"],
            },
            {
              id: "business",              badge: "Popular",              badgeIcon: Star,
              price: "₹15,000",              subtitle: "Ideal for small businesses",              buttons: [
                {
                  text: "Get Quote",                  href: "/contact"},
              ],
              features: [
                "2-4 Pages",                "Contact Form",                "Admin Panel",                "Responsive Design",                "SEO Optimization",                "Analytics Setup"],
            },
            {
              id: "dynamic",              badge: "Professional",              badgeIcon: Sparkles,
              price: "₹20,000",              subtitle: "For dynamic content management",              buttons: [
                {
                  text: "Get Quote",                  href: "/contact"},
              ],
              features: [
                "CMS Platform",                "Admin Dashboard",                "Payment Gateway",                "Multiple Pages",                "Email Integration",                "SEO Ready"],
            },
            {
              id: "enterprise",              badge: "Enterprise",              price: "₹50,000",              subtitle: "Complete business solution",              buttons: [
                {
                  text: "Get Quote",                  href: "/contact"},
              ],
              features: [
                "5+ Pages",                "Advanced Admin Panel",                "Multi-user System",                "API Integration",                "Custom Features",                "Premium Support"],
            },
            {
              id: "ecommerce",              badge: "E-Commerce",              badgeIcon: ShoppingCart,
              price: "₹80,000",              subtitle: "Full e-commerce platform",              buttons: [
                {
                  text: "Get Quote",                  href: "/contact"},
              ],
              features: [
                "Product Management",                "Payment Gateway",                "Inventory System",                "Order Tracking",                "Customer Portal",                "Analytics Dashboard"],
            },
          ]}
          textboxLayout="default"
          animationType="slide-up"
          useInvertedBackground={true}
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardSixteen
          title="What Our Clients Say"
          description="Real feedback from satisfied clients who've transformed their business with our software solutions."
          tag="Client Stories"
          tagIcon={Quote}
          tagAnimation="slide-up"
          testimonials={[
            {
              id: "1",              name: "Rajesh Kumar",              role: "CEO",              company: "TechFlow Solutions",              rating: 5,
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3Ac9KYusPGO1ATYFX67WtPqJV0Y/professional-portrait-photograph-of-a-co-1772881145274-12e7a02d.png",              imageAlt: "Rajesh Kumar"},
            {
              id: "2",              name: "Priya Sharma",              role: "Founder",              company: "Digital Innovations Ltd",              rating: 5,
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3Ac9KYusPGO1ATYFX67WtPqJV0Y/professional-portrait-photograph-of-a-co-1772881144961-0bd0dd2c.png",              imageAlt: "Priya Sharma"},
            {
              id: "3",              name: "Amit Patel",              role: "Operations Manager",              company: "E-Commerce Hub",              rating: 5,
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3Ac9KYusPGO1ATYFX67WtPqJV0Y/professional-portrait-photograph-of-a-ma-1772881145220-281dfd92.png",              imageAlt: "Amit Patel"},
            {
              id: "4",              name: "Neha Verma",              role: "Business Head",              company: "StartUp Ventures",              rating: 5,
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3Ac9KYusPGO1ATYFX67WtPqJV0Y/professional-portrait-photograph-of-a-fe-1772881146562-40a0127f.png",              imageAlt: "Neha Verma"},
          ]}
          kpiItems={[
            {
              value: "250+",              label: "Projects Delivered"},
            {
              value: "98%",              label: "Satisfaction Rate"},
            {
              value: "5+",              label: "Years in Industry"},
          ]}
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterBase
          logoText="CodeSniffs"
          copyrightText="© 2025 CodeSniffs. All rights reserved. Software Solutions Agency, Mumbai, India."
          columns={footerColumns}
        />
      </div>
    </ThemeProvider>
  );
}