"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import ReactLenis from "lenis/react";
import HeroBillboardRotatedCarousel from '@/components/sections/hero/HeroBillboardRotatedCarousel';
import FooterLogoReveal from '@/components/sections/footer/FooterLogoReveal';
import NavbarStyleApple from '@/components/navbar/NavbarStyleApple/NavbarStyleApple';
import { Link } from "next/link";

export default function HomePage() {
  return (
    <ThemeProvider
      defaultButtonVariant="bounce-effect"
      defaultTextAnimation="entrance-slide"
      borderRadius="rounded"
      contentWidth="medium"
      sizing="medium"
      background="circleGradient"
      cardStyle="glass-elevated"
      primaryButtonStyle="gradient"
      secondaryButtonStyle="glass"
      headingFontWeight="normal"
    >
      <ReactLenis root>
        <div id="nav" data-section="nav">
          <NavbarStyleApple
            brandName="Nexora"
            navItems={[
              { name: "Home", id: "/" },
              { name: "Services", id: "/services" },
              { name: "Portfolio", id: "/portfolio" },
              { name: "About", id: "/about" },
              { name: "Contact", id: "/contact" }
            ]}
          />
        </div>

        <div id="hero" data-section="hero">
          <HeroBillboardRotatedCarousel
            background={{ variant: "rotated-rays-animated" }}
            title="Nexora — Turning Ideas Into Digital Reality"
            description="Creative digital solutions for brands, creators, and businesses."
            buttons={[
              { text: "Start a Project", href: "/contact" },
              { text: "View Portfolio", href: "/portfolio" }
            ]}
            carouselItems={[
              { id: "1", imageSrc: "http://img.b2bpic.net/free-photo/blue-abstract-shape-glowing-grainy-textured_474888-8017.jpg", imageAlt: "Futuristic 3D abstract background" },
              { id: "2", imageSrc: "http://img.b2bpic.net/free-photo/cosmic-background-with-pink-orange-blue-laser-lights_181624-23030.jpg", imageAlt: "Futuristic 3D abstract background" },
              { id: "3", imageSrc: "http://img.b2bpic.net/free-photo/community-rehab-with-therapist-guidance_482257-123780.jpg", imageAlt: "Futuristic 3D abstract background" },
              { id: "4", imageSrc: "http://img.b2bpic.net/free-photo/aesthetic-background-with-light-sunset-projector-lamp_53876-108120.jpg", imageAlt: "Futuristic 3D abstract background" },
              { id: "5", imageSrc: "http://img.b2bpic.net/free-photo/abstract-background-with-colorful-lights_23-2147881545.jpg", imageAlt: "Futuristic 3D abstract background" },
              { id: "6", imageSrc: "http://img.b2bpic.net/free-photo/liquid-prism-wallpaper_23-2151891167.jpg", imageAlt: "Futuristic 3D abstract background" }
            ]}
          />
        </div>

        <div id="footer" data-section="footer">
          <FooterLogoReveal
            logoText="Nexora"
            leftLink={{ text: "Privacy Policy", href: "#" }}
            rightLink={{ text: "Terms of Service", href: "#" }}
          />
        </div>
      </ReactLenis>
    </ThemeProvider>
  );
}