"use client";
import Link from 'next/link';
import { Sparkles, Crown, Phone } from 'lucide-react';
import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarLayoutFloatingOverlay from '@/components/navbar/NavbarLayoutFloatingOverlay/NavbarLayoutFloatingOverlay';
import HeroBillboardRotatedCarousel from '@/components/sections/hero/HeroBillboardRotatedCarousel';
import ProductCardTwo from '@/components/sections/product/ProductCardTwo';
import FooterLogoReveal from '@/components/sections/footer/FooterLogoReveal';

export default function HomePage() {
  return (
    <ThemeProvider
      defaultButtonVariant="elastic-effect"
      defaultTextAnimation="background-highlight"
      borderRadius="sharp"
      contentWidth="mediumLarge"
      sizing="mediumLargeSizeMediumTitles"
      background="none"
      cardStyle="solid"
      primaryButtonStyle="inset-glow"
      secondaryButtonStyle="radial-glow"
      headingFontWeight="semibold"
    >
      <div id="nav" data-section="nav">
        <NavbarLayoutFloatingOverlay
          brandName="Luxe Properties Dubai"
          navItems={[
            { name: "Home", id: "/" },
            { name: "Properties", id: "/properties" },
            { name: "About", id: "/about" },
            { name: "Contact", id: "/contact" }
          ]}
          button={{
            text: "Schedule Tour",
            href: "/contact"
          }}
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroBillboardRotatedCarousel
          title="Discover Luxury Living in Dubai"
          description="Explore our exclusive collection of premium properties in Dubai's most coveted locations. From stunning penthouses to sprawling villas with beachfront views, we offer unparalleled luxury and investment opportunities."
          tag="Premium Properties"
          tagIcon={Sparkles}
          buttons={[
            { text: "Explore Properties", href: "/properties" },
            { text: "Schedule a Viewing", href: "/contact" }
          ]}
          carouselItems={[
            {
              id: "1",
              imageSrc: "https://img.b2bpic.net/free-photo/blue-sun-loungers-swimming-pool_198523-20.jpg",
              imageAlt: "Luxury Penthouse with City Views"
            },
            {
              id: "2",
              imageSrc: "https://img.b2bpic.net/free-photo/place-relax-sunny-beach-black-sea-bulgaria-summer-vacation-travel-holiday_627829-9817.jpg",
              imageAlt: "Beachfront Villa with Private Pool"
            },
            {
              id: "3",
              imageSrc: "https://img.b2bpic.net/free-photo/beach-chair-hotel_1150-17975.jpg",
              imageAlt: "Downtown Modern Apartment"
            },
            {
              id: "4",
              imageSrc: "https://img.b2bpic.net/free-photo/mosque-pictures-moroccan-wall-pattern_1203-5080.jpg",
              imageAlt: "Resort-style Villa with Landscaping"
            },
            {
              id: "5",
              imageSrc: "https://img.b2bpic.net/free-photo/luxury-architecture-exterior-design_23-2151920949.jpg",
              imageAlt: "Grand Mansion Estate"
            },
            {
              id: "6",
              imageSrc: "https://img.b2bpic.net/free-photo/palm-trees-line-water_23-2148107102.jpg",
              imageAlt: "Contemporary Luxury Townhouse"
            }
          ]}
          autoPlay={true}
          autoPlayInterval={4000}
        />
      </div>

      <div id="properties" data-section="properties">
        <ProductCardTwo
          title="Featured Luxury Properties"
          description="Handpicked properties showcasing the finest residential opportunities in Dubai"
          tag="Exclusive Listings"
          tagIcon={Crown}
          textboxLayout="default"
          useInvertedBackground="invertDefault"
          animationType="slide-up"
          gridVariant="three-columns-all-equal-width"
          products={[
            {
              id: "1",
              brand: "Downtown Dubai",
              name: "Luxury Penthouse",
              price: "AED 8.5M",
              rating: 5,
              reviewCount: "156",
              imageSrc: "https://img.b2bpic.net/free-photo/blue-sun-loungers-swimming-pool_198523-20.jpg",
              imageAlt: "Modern Luxury Penthouse"
            },
            {
              id: "2",
              brand: "Palm Jumeirah",
              name: "Beachfront Villa",
              price: "AED 12.2M",
              rating: 5,
              reviewCount: "203",
              imageSrc: "https://img.b2bpic.net/free-photo/place-relax-sunny-beach-black-sea-bulgaria-summer-vacation-travel-holiday_627829-9817.jpg",
              imageAlt: "Beachfront Luxury Villa"
            },
            {
              id: "3",
              brand: "Emirates Hills",
              name: "Grand Estate",
              price: "AED 15.8M",
              rating: 5,
              reviewCount: "189",
              imageSrc: "https://img.b2bpic.net/free-photo/beach-chair-hotel_1150-17975.jpg",
              imageAlt: "Grand Estate Home"
            }
          ]}
        />
      </div>

      <FooterLogoReveal logoText="Luxe Properties Dubai" />
    </ThemeProvider>
  );
}