"use client";

import Link from "next/link";
import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleApple from "@/components/navbar/NavbarStyleApple/NavbarStyleApple";
import HeroBillboardRotatedCarousel from "@/components/sections/hero/HeroBillboardRotatedCarousel";
import AboutMetric from "@/components/sections/about/AboutMetric";
import FeatureHoverPattern from "@/components/sections/feature/featureHoverPattern/FeatureHoverPattern";
import TestimonialCardOne from "@/components/sections/testimonial/TestimonialCardOne";
import ContactText from "@/components/sections/contact/ContactText";
import FooterLogoEmphasis from "@/components/sections/footer/FooterLogoEmphasis";
import { Sparkles, TrendingUp, Users, Award, Globe, Code, Palette, Smartphone, BarChart3, Rocket, Shield, Star, Linkedin, Twitter, ChevronRight } from "lucide-react";

export default function HomePage() {
  const navItems = [
    { name: "Home", id: "/" },
    { name: "Services", id: "/services" },
    { name: "Portfolio", id: "/portfolio" },
    { name: "Team", id: "/team" },
    { name: "Contact", id: "/contact" },
  ];

  const footerColumns = [
    {
      items: [
        { label: "Home", href: "/" },
        { label: "Services", href: "/services" },
        { label: "Portfolio", href: "/portfolio" },
      ],
    },
    {
      items: [
        { label: "Team", href: "/team" },
        { label: "About", href: "/" },
        { label: "Contact", href: "/contact" },
      ],
    },
    {
      items: [
        { label: "Privacy Policy", href: "#" },
        { label: "Terms of Service", href: "#" },
        { label: "Cookie Policy", href: "#" },
      ],
    },
    {
      items: [
        { label: "Twitter", href: "https://twitter.com" },
        { label: "LinkedIn", href: "https://linkedin.com" },
        { label: "Instagram", href: "https://instagram.com" },
      ],
    },
  ];

  return (
    <ThemeProvider
      defaultButtonVariant="hover-bubble"
      defaultTextAnimation="background-highlight"
      borderRadius="pill"
      contentWidth="mediumSmall"
      sizing="largeSmall"
      background="noise"
      cardStyle="gradient-bordered"
      primaryButtonStyle="radial-glow"
      secondaryButtonStyle="glass"
      headingFontWeight="light"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleApple brandName="Proof Digital" navItems={navItems} />
      </div>

      <div id="hero" data-section="hero">
        <HeroBillboardRotatedCarousel
          title="Transform Your Digital Vision Into Reality"
          description="At Proof Digital, we combine strategic thinking with cutting-edge technology to deliver digital solutions that drive growth and engagement for your business."
          tag="Digital Excellence"
          tagIcon={Sparkles}
          tagAnimation="slide-up"
          buttons={[
            { text: "Start Your Project", href: "/contact" },
            { text: "Explore Our Work", href: "/portfolio" },
          ]}
          buttonAnimation="slide-up"
          background={{ variant: "sparkles-gradient" }}
          carouselItems={[
            {
              id: "carousel-1",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3APc8tsPVVj4WWtJ1S9JiqjYqYX/a-modern-digital-dashboard-interface-sho-1772497563833-5c80b1ff.png?_wi=1",
              imageAlt: "Digital strategy showcase",
            },
            {
              id: "carousel-2",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3APc8tsPVVj4WWtJ1S9JiqjYqYX/a-contemporary-website-design-mockup-dis-1772497563982-eda4fa9d.png?_wi=1",
              imageAlt: "Web design project",
            },
            {
              id: "carousel-3",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3APc8tsPVVj4WWtJ1S9JiqjYqYX/mobile-application-interface-displayed-o-1772497563404-82624e61.png?_wi=1",
              imageAlt: "Mobile application interface",
            },
            {
              id: "carousel-4",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3APc8tsPVVj4WWtJ1S9JiqjYqYX/brand-identity-design-showcase-featuring-1772497564453-1c09ff84.png?_wi=1",
              imageAlt: "Brand identity design",
            },
            {
              id: "carousel-5",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3APc8tsPVVj4WWtJ1S9JiqjYqYX/digital-marketing-campaign-visual-showin-1772497564664-96a252f5.png?_wi=1",
              imageAlt: "Marketing campaign execution",
            },
            {
              id: "carousel-6",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3APc8tsPVVj4WWtJ1S9JiqjYqYX/digital-transformation-project-visualiza-1772497564050-37f2e4ef.png?_wi=1",
              imageAlt: "Digital transformation project",
            },
          ]}
          autoPlay={true}
          autoPlayInterval={4000}
        />
      </div>

      <div id="about" data-section="about">
        <AboutMetric
          title="We're a team of digital experts dedicated to creating meaningful impact through innovative solutions and strategic thinking"
          metrics={[
            { icon: TrendingUp, label: "Projects Delivered", value: "150+" },
            { icon: Users, label: "Happy Clients", value: "80+" },
            { icon: Award, label: "Industry Awards", value: "25+" },
            { icon: Globe, label: "Global Reach", value: "45" },
          ]}
          metricsAnimation="slide-up"
          useInvertedBackground={false}
        />
      </div>

      <div id="features" data-section="features">
        <FeatureHoverPattern
          title="Our Core Capabilities"
          description="We leverage the latest technologies and best practices to deliver exceptional digital experiences"
          tag="Services"
          tagIcon={Rocket}
          tagAnimation="slide-up"
          features={[
            {
              icon: Code,
              title: "Web Development",
              description: "Custom web applications built with modern frameworks and scalable architecture for optimal performance",
            },
            {
              icon: Palette,
              title: "Brand Design",
              description: "Strategic brand identity and visual design that captures your unique value proposition",
            },
            {
              icon: Smartphone,
              title: "Mobile Solutions",
              description: "Native and cross-platform mobile applications that engage users and drive conversions",
            },
            {
              icon: BarChart3,
              title: "Digital Strategy",
              description: "Data-driven strategies that align technology with business goals for measurable growth",
            },
            {
              icon: Rocket,
              title: "Growth Marketing",
              description: "Integrated marketing campaigns that reach your audience and accelerate business growth",
            },
            {
              icon: Shield,
              title: "Security & Compliance",
              description: "Enterprise-grade security and compliance solutions to protect your digital assets",
            },
          ]}
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground={true}
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardOne
          title="Client Success Stories"
          description="Hear from businesses we've transformed through digital innovation and strategic partnerships"
          tag="Testimonials"
          tagIcon={Star}
          tagAnimation="slide-up"
          testimonials={[
            {
              id: "testimonial-1",
              name: "Sarah Mitchell",
              role: "CEO",
              company: "TechFlow Solutions",
              rating: 5,
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3APc8tsPVVj4WWtJ1S9JiqjYqYX/professional-headshot-of-a-confident-wom-1772497562896-98e62161.png",
              imageAlt: "Sarah Mitchell headshot",
            },
            {
              id: "testimonial-2",
              name: "James Chen",
              role: "Product Manager",
              company: "InnovateLab",
              rating: 5,
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3APc8tsPVVj4WWtJ1S9JiqjYqYX/professional-headshot-of-an-asian-man-we-1772497562854-452815bb.png",
              imageAlt: "James Chen headshot",
            },
            {
              id: "testimonial-3",
              name: "Emily Rodriguez",
              role: "Marketing Director",
              company: "GrowthCo",
              rating: 5,
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3APc8tsPVVj4WWtJ1S9JiqjYqYX/professional-headshot-of-a-latina-woman--1772497562475-dfe83295.png",
              imageAlt: "Emily Rodriguez headshot",
            },
            {
              id: "testimonial-4",
              name: "David Kim",
              role: "Founder",
              company: "StartupXYZ",
              rating: 5,
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3APc8tsPVVj4WWtJ1S9JiqjYqYX/professional-headshot-of-a-korean-man-in-1772497562317-6a681b08.png",
              imageAlt: "David Kim headshot",
            },
            {
              id: "testimonial-5",
              name: "Lisa Anderson",
              role: "VP Strategy",
              company: "Enterprise Digital",
              rating: 5,
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3APc8tsPVVj4WWtJ1S9JiqjYqYX/professional-headshot-of-a-blonde-woman--1772497562552-b591df14.png",
              imageAlt: "Lisa Anderson headshot",
            },
            {
              id: "testimonial-6",
              name: "Michael Torres",
              role: "Managing Partner",
              company: "Digital Ventures",
              rating: 5,
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3APc8tsPVVj4WWtJ1S9JiqjYqYX/professional-headshot-of-a-latino-man-in-1772497563101-40e84f9b.png",
              imageAlt: "Michael Torres headshot",
            },
          ]}
          gridVariant="uniform-all-items-equal"
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactText
          text="Ready to bring your digital vision to life? Let's collaborate and create something extraordinary together."
          animationType="entrance-slide"
          buttons={[
            { text: "Get Started", href: "/contact" },
            { text: "Schedule a Consultation", href: "/contact" },
          ]}
          background={{ variant: "radial-gradient" }}
          useInvertedBackground={false}
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterLogoEmphasis logoText="Proof Digital" columns={footerColumns} />
      </div>
    </ThemeProvider>
  );
}