"use client";

import Link from "next/link";
import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleCentered from "@/components/navbar/NavbarStyleCentered/NavbarStyleCentered";
import HeroBillboardRotatedCarousel from "@/components/sections/hero/HeroBillboardRotatedCarousel";
import InlineImageSplitTextAbout from "@/components/sections/about/InlineImageSplitTextAbout";
import FeatureBorderGlow from "@/components/sections/feature/featureBorderGlow/FeatureBorderGlow";
import MetricCardOne from "@/components/sections/metrics/MetricCardOne";
import ProductCardTwo from "@/components/sections/product/ProductCardTwo";
import TestimonialCardTwo from "@/components/sections/testimonial/TestimonialCardTwo";
import ContactText from "@/components/sections/contact/ContactText";
import FooterSimple from "@/components/sections/footer/FooterSimple";
import {
  TrendingUp,
  Users,
  Heart,
  Award,
  DollarSign,
  Search,
  Code,
  Share2,
  Palette,
  Funnel,
  Zap,
  Briefcase,
  Star,
} from "lucide-react";

const navItems = [
  { name: "Home", id: "/" },
  { name: "Services", id: "/services" },
  { name: "Case Studies", id: "/case-studies" },
  { name: "About", id: "/about" },
  { name: "Contact", id: "/contact" },
];

const navItemsForNav = [
  { name: "Home", id: "home" },
  { name: "Services", id: "services" },
  { name: "Case Studies", id: "case-studies" },
  { name: "About", id: "about" },
  { name: "Contact", id: "contact" },
];

const footerColumns = [
  {
    title: "Services",
    items: [
      { label: "Paid Ads Management", href: "/services" },
      { label: "SEO Services", href: "/services" },
      { label: "Website Design", href: "/services" },
      { label: "Social Media Marketing", href: "/services" },
    ],
  },
  {
    title: "Company",
    items: [
      { label: "About Us", href: "/about" },
      { label: "Case Studies", href: "#case-studies" },
      { label: "Team", href: "/about" },
      { label: "Blog", href: "#" },
    ],
  },
  {
    title: "Support",
    items: [
      { label: "Contact Us", href: "/contact" },
      { label: "FAQ", href: "#" },
      { label: "Resources", href: "#" },
      { label: "Documentation", href: "#" },
    ],
  },
  {
    title: "Legal",
    items: [
      { label: "Privacy Policy", href: "#" },
      { label: "Terms of Service", href: "#" },
      { label: "Cookie Policy", href: "#" },
      { label: "Disclaimer", href: "#" },
    ],
  },
];

export default function HomePage() {
  return (
    <ThemeProvider
      defaultButtonVariant="text-stagger"
      defaultTextAnimation="reveal-blur"
      borderRadius="pill"
      contentWidth="mediumSmall"
      sizing="mediumLarge"
      background="floatingGradient"
      cardStyle="gradient-bordered"
      primaryButtonStyle="double-inset"
      secondaryButtonStyle="glass"
      headingFontWeight="light"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleCentered
          navItems={navItemsForNav}
          button={{
            text: "Get Free Strategy Call",
            href: "/contact",
          }}
          brandName="PrimeXpert"
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroBillboardRotatedCarousel
          title="Scaling Brands with Data-Driven Digital Marketing"
          description="Unlock explosive growth through ROI-focused campaigns, transparent reporting, and strategic expertise. We transform businesses with proven digital marketing solutions that deliver measurable results."
          tag="Results-Driven Strategy"
          tagIcon={TrendingUp}
          tagAnimation="slide-up"
          buttons={[
            { text: "Get Free Strategy Call", href: "/contact" },
            { text: "View Our Work", href: "#case-studies" },
          ]}
          buttonAnimation="slide-up"
          background={{ variant: "floatingGradient" }}
          carouselItems={[
            {
              id: "1",
              imageSrc:
                "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AQKl53Da0H9PeH3bdi25k6wwRg/modern-analytics-dashboard-showing-marke-1772519761923-8053cf0d.png",
              imageAlt: "Modern analytics dashboard showing marketing metrics and KPIs",
            },
            {
              id: "2",
              imageSrc:
                "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AQKl53Da0H9PeH3bdi25k6wwRg/digital-marketing-campaign-management-da-1772519761990-3c0340b6.png",
              imageAlt: "Digital marketing campaign management dashboard",
            },
            {
              id: "3",
              imageSrc:
                "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AQKl53Da0H9PeH3bdi25k6wwRg/advanced-seo-and-analytics-dashboard-sho-1772519761283-cab3987e.png",
              imageAlt: "Advanced SEO and analytics dashboard",
            },
            {
              id: "4",
              imageSrc:
                "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AQKl53Da0H9PeH3bdi25k6wwRg/paid-advertising-campaign-builder-interf-1772519760378-cf3f2602.png",
              imageAlt: "Paid advertising campaign builder interface",
            },
            {
              id: "5",
              imageSrc:
                "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AQKl53Da0H9PeH3bdi25k6wwRg/growth-metrics-and-kpi-dashboard-with-up-1772519761511-bac83848.png",
              imageAlt: "Growth metrics and KPI dashboard",
            },
            {
              id: "6",
              imageSrc:
                "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AQKl53Da0H9PeH3bdi25k6wwRg/seo-performance-dashboard-with-organic-t-1772519763218-b90abb0e.png",
              imageAlt: "SEO performance dashboard",
            },
          ]}
          autoPlay={true}
          autoPlayInterval={4000}
        />
      </div>

      <div id="about" data-section="about">
        <InlineImageSplitTextAbout
          heading={[
            { type: "text", content: "We're a USA-based" },
            {
              type: "image",
              src: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AQKl53Da0H9PeH3bdi25k6wwRg/modern-digital-marketing-agency-logo-fea-1772519759702-3b265d07.png",
              alt: "PrimeXpert logo",
            },
            { type: "text", content: "digital marketing powerhouse dedicated to scaling your business" },
          ]}
          buttons={[{ text: "Learn More", href: "/about" }]}
          buttonAnimation="slide-up"
          useInvertedBackground={false}
        />
      </div>

      <div id="services" data-section="services">
        <FeatureBorderGlow
          title="Our Services"
          description="Comprehensive digital marketing solutions tailored to your business goals. From paid advertising to organic growth strategies, we deliver results."
          tag="Full-Service Agency"
          tagIcon={Zap}
          tagAnimation="slide-up"
          features={[
            {
              icon: DollarSign,
              title: "Paid Ads Management",
              description:
                "Strategic campaigns across Google, Facebook, Instagram, TikTok, and LinkedIn Ads optimized for maximum ROI and conversion.",
            },
            {
              icon: Search,
              title: "Search Engine Optimization",
              description:
                "Data-driven SEO strategies to boost organic visibility, drive qualified traffic, and improve search rankings.",
            },
            {
              icon: Code,
              title: "Website Design & Development",
              description:
                "High-converting, mobile-responsive websites built with modern technology and best practices for user experience.",
            },
            {
              icon: Share2,
              title: "Social Media Marketing",
              description:
                "Engaging content strategies and community management that build brand loyalty and amplify your message.",
            },
            {
              icon: Palette,
              title: "Branding & Creative Design",
              description:
                "Compelling visual identities, graphics, and creative assets that make your brand stand out in a crowded market.",
            },
            {
              icon: Funnel,
              title: "Sales Funnel Development",
              description:
                "Strategic funnels designed to nurture leads, increase conversions, and maximize customer lifetime value.",
            },
          ]}
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
        />
      </div>

      <div id="why-choose-us" data-section="why-choose-us">
        <MetricCardOne
          title="Why Choose PrimeXpert"
          description="We combine expertise, innovation, and proven results to deliver growth for your business."
          tag="Our Advantage"
          tagIcon={Award}
          tagAnimation="slide-up"
          metrics={[
            {
              id: "1",
              value: "500",
              title: "million+",
              description: "Total revenue generated for clients",
              icon: TrendingUp,
            },
            {
              id: "2",
              value: "850",
              title: "clients served",
              description: "Across diverse industries and markets",
              icon: Users,
            },
            {
              id: "3",
              value: "98",
              title: "client retention",
              description: "Year-over-year satisfaction rate",
              icon: Heart,
            },
            {
              id: "4",
              value: "15",
              title: "years",
              description: "Of proven digital marketing excellence",
              icon: Award,
            },
          ]}
          gridVariant="uniform-all-items-equal"
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
        />
      </div>

      <div id="case-studies" data-section="case-studies">
        <ProductCardTwo
          title="Case Studies & Results"
          description="See how we've transformed businesses through strategic digital marketing and data-driven campaigns."
          tag="Portfolio"
          tagIcon={Briefcase}
          tagAnimation="slide-up"
          products={[
            {
              id: "1",
              brand: "E-Commerce Retail",
              name: "300% Revenue Growth in 6 Months",
              price: "$2.8M Generated",
              rating: 5,
              reviewCount: "47k+ monthly visitors",
              imageSrc:
                "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AQKl53Da0H9PeH3bdi25k6wwRg/e-commerce-business-success-visual-showi-1772519761868-94dc5408.png",
              imageAlt: "E-commerce revenue growth dashboard",
            },
            {
              id: "2",
              brand: "SaaS Technology",
              name: "200% Lead Increase & 45% Cost Reduction",
              price: "$1.5M Revenue",
              rating: 5,
              reviewCount: "2.3k qualified leads",
              imageSrc:
                "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AQKl53Da0H9PeH3bdi25k6wwRg/saas-product-dashboard-showing-lead-gene-1772519760790-e70ff407.png",
              imageAlt: "SaaS lead generation metrics",
            },
            {
              id: "3",
              brand: "Professional Services",
              name: "1,200% ROAS on Paid Ads",
              price: "$850K+ Revenue",
              rating: 5,
              reviewCount: "156 high-value clients",
              imageSrc:
                "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AQKl53Da0H9PeH3bdi25k6wwRg/professional-services-firm-success-visua-1772519760328-d6037fc0.png",
              imageAlt: "Professional services campaign performance",
            },
          ]}
          gridVariant="uniform-all-items-equal"
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardTwo
          title="Client Testimonials"
          description="Hear from businesses that have transformed their growth with PrimeXpert's strategic expertise."
          tag="Success Stories"
          tagIcon={Star}
          tagAnimation="slide-up"
          testimonials={[
            {
              id: "1",
              name: "Sarah Chen",
              role: "CEO & Founder",
              testimonial:
                "PrimeXpert transformed our marketing strategy completely. Their data-driven approach helped us achieve 300% ROI growth in just 6 months. The team is responsive, knowledgeable, and truly invested in our success.",
              imageSrc:
                "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AQKl53Da0H9PeH3bdi25k6wwRg/professional-headshot-of-a-confident-fem-1772519759523-3db60f50.png",
              imageAlt: "Sarah Chen, CEO of TechFlow Inc",
            },
            {
              id: "2",
              name: "Michael Rodriguez",
              role: "VP of Marketing",
              testimonial:
                "Working with PrimeXpert has been a game-changer for our business. Their SEO and paid ads expertise brought us qualified leads consistently. The transparency in reporting and communication is outstanding.",
              imageSrc:
                "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AQKl53Da0H9PeH3bdi25k6wwRg/professional-headshot-of-a-confident-mal-1772519760062-2bb53b1d.png",
              imageAlt: "Michael Rodriguez, VP of Marketing at GrowthCo",
            },
            {
              id: "3",
              name: "Emily Watson",
              role: "Founder",
              testimonial:
                "The PrimeXpert team doesn't just execute campaigns—they strategize. Their insights helped us identify untapped market opportunities that generated millions in revenue. Highly recommended.",
              imageSrc:
                "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AQKl53Da0H9PeH3bdi25k6wwRg/professional-headshot-of-a-successful-fe-1772519760200-595ba3f8.png",
              imageAlt: "Emily Watson, Founder of Digital Ventures",
            },
            {
              id: "4",
              name: "David Kim",
              role: "Director of Operations",
              testimonial:
                "We were overwhelmed by digital marketing options, but PrimeXpert simplified everything and delivered results. Their holistic approach from branding to ads management is exactly what we needed for rapid scaling.",
              imageSrc:
                "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AQKl53Da0H9PeH3bdi25k6wwRg/professional-headshot-of-a-focused-male--1772519759545-dad5c249.png",
              imageAlt: "David Kim, Director at StartupXYZ",
            },
            {
              id: "5",
              name: "Jessica Martinez",
              role: "CMO",
              testimonial:
                "PrimeXpert's social media and influencer marketing strategy took our brand awareness to new heights. The team's creativity combined with analytics is rare and powerful.",
              imageSrc:
                "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AQKl53Da0H9PeH3bdi25k6wwRg/professional-headshot-of-a-creative-fema-1772519760154-bc9e5796.png",
              imageAlt: "Jessica Martinez, CMO of Fashion Forward",
            },
            {
              id: "6",
              name: "Robert Thompson",
              role: "President",
              testimonial:
                "As an enterprise, we needed an agency that could handle complexity. PrimeXpert exceeded our expectations across all channels. Their strategic guidance has become integral to our growth plan.",
              imageSrc:
                "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AQKl53Da0H9PeH3bdi25k6wwRg/professional-headshot-of-a-distinguished-1772519759411-166651b9.png",
              imageAlt: "Robert Thompson, President of Enterprise Solutions",
            },
          ]}
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
        />
      </div>

      <div id="cta" data-section="cta">
        <ContactText
          text="Ready to Scale Your Business? Let's create a data-driven growth strategy tailored to your goals."
          animationType="entrance-slide"
          buttons={[
            { text: "Schedule Your Free Consultation", href: "/contact" },
            { text: "View Pricing & Plans", href: "/services" },
          ]}
          background={{ variant: "floatingGradient" }}
          useInvertedBackground={false}
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterSimple
          columns={footerColumns}
          bottomLeftText="© 2025 PrimeXpert. All rights reserved."
          bottomRightText="Scaling Brands with Data-Driven Marketing"
        />
      </div>
    </ThemeProvider>
  );
}