"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleMinimal from '@/components/navbar/NavbarStyleMinimal';
import HeroBillboardGallery from '@/components/sections/hero/HeroBillboardGallery';
import ProductCardTwo from '@/components/sections/product/ProductCardTwo';
import TestimonialCardFifteen from '@/components/sections/testimonial/TestimonialCardFifteen';
import FooterBase from '@/components/sections/footer/FooterBase';
import { Sparkles, Award } from 'lucide-react';
import Link from 'next/link';

export default function HomePage() {
  return (
    <ThemeProvider
      defaultButtonVariant="text-stagger"
      defaultTextAnimation="background-highlight"
      borderRadius="soft"
      contentWidth="compact"
      sizing="mediumLargeSizeMediumTitles"
      background="none"
      cardStyle="gradient-radial"
      primaryButtonStyle="primary-glow"
      secondaryButtonStyle="solid"
      headingFontWeight="bold"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleMinimal 
          brandName="LuxeEstate"
          button={{
            text: "View Properties",
            href: "/properties"
          }}
          className="backdrop-blur-md bg-white/80 border-b border-gray-200"
          buttonClassName="bg-black text-white hover:bg-gray-900 transition-all duration-300"
          buttonTextClassName="font-semibold text-sm tracking-wide"
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroBillboardGallery
          title="Discover Luxury Properties in Dubai"
          description="Explore the finest real estate opportunities in Dubai's most prestigious locations"
          tag="Premium Properties"
          tagIcon={Sparkles}
          mediaItems={[
            {
              imageSrc: "https://img.b2bpic.net/free-photo/skyscrapers-from-low-angle-view_1359-1073.jpg",
              imageAlt: "Dubai Skyline"
            },
            {
              imageSrc: "https://img.b2bpic.net/free-photo/modern-spacious-room-with-large-panoramic-window_7502-7289.jpg",
              imageAlt: "Luxury Apartment Interior"
            },
            {
              imageSrc: "https://img.b2bpic.net/free-photo/attractive-woman-reading-magazine-near-panoramic-window_7502-9287.jpg",
              imageAlt: "Modern Villa"
            },
            {
              imageSrc: "https://img.b2bpic.net/free-photo/contemporary-living-room_1150-12613.jpg",
              imageAlt: "Waterfront Property"
            },
            {
              imageSrc: "https://img.b2bpic.net/free-photo/close-up-young-business-team-working_23-2149153838.jpg",
              imageAlt: "Premium Office Space"
            }
          ]}
          buttons={[
            {
              text: "Browse Properties",
              href: "/properties"
            },
            {
              text: "Schedule Tour",
              href: "/contact"
            }
          ]}
          className="min-h-screen flex items-center justify-center"
          containerClassName="max-w-7xl mx-auto"
          titleClassName="text-5xl md:text-6xl font-bold tracking-tight"
          descriptionClassName="text-xl text-gray-700 mt-4 max-w-2xl mx-auto"
          buttonClassName="px-8 py-3 rounded-lg font-semibold transition-all duration-300 hover:scale-105"
        />
      </div>

      <div id="properties" data-section="properties">
        <ProductCardTwo
          title="Featured Properties"
          description="Handpicked luxury properties exclusively available through our platform"
          tag="Exclusive Listings"
          tagIcon={Award}
          products={[
            {
              id: "1",
              brand: "Marina Bay",
              name: "Modern Penthouse with Marina View",
              price: "AED 8,500,000",
              rating: 5,
              reviewCount: "24",
              imageSrc: "https://img.b2bpic.net/free-photo/modern-spacious-room-with-large-panoramic-window_7502-7289.jpg",
              imageAlt: "Modern Penthouse"
            },
            {
              id: "2",
              brand: "Palm Jumeirah",
              name: "Ultra-Luxury Beach Villa",
              price: "AED 12,000,000",
              rating: 5,
              reviewCount: "18",
              imageSrc: "https://img.b2bpic.net/free-photo/attractive-woman-reading-magazine-near-panoramic-window_7502-9287.jpg",
              imageAlt: "Beach Villa"
            },
            {
              id: "3",
              brand: "Downtown Dubai",
              name: "Iconic Tower Luxury Apartment",
              price: "AED 6,200,000",
              rating: 5,
              reviewCount: "31",
              imageSrc: "https://img.b2bpic.net/free-photo/contemporary-living-room_1150-12613.jpg",
              imageAlt: "Downtown Apartment"
            }
          ]}
          textboxLayout="default"
          gridVariant="three-columns-all-equal-width"
          animationType="slide-up"
          useInvertedBackground="invertDefault"
          buttons={[
            {
              text: "View All Properties",
              href: "/properties"
            }
          ]}
          containerClassName="py-20"
          cardClassName="backdrop-blur-md bg-white/40 border border-white/20 rounded-xl p-6 hover:bg-white/50 transition-all duration-300"
          imageClassName="rounded-lg object-cover h-64 w-full"
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardFifteen
          testimonial="LuxeEstate transformed my property investment journey in Dubai. Their expertise, professionalism, and dedication secured me the perfect penthouse in Marina Bay. Highly recommended!"
          rating={5}
          author="Ahmed Al Maktoum, Investment Manager"
          avatars={[
            {
              src: "https://img.b2bpic.net/free-photo/high-angle-buisness-man_23-2148479585.jpg",
              alt: "Customer 1"
            },
            {
              src: "https://img.b2bpic.net/free-photo/portrait-handsome-smiling-stylish-hipster-lambersexual-modelsexy-modern-man-dressed-elegant-suit-fashion-male-posing-studio-near-blue-wall_158538-21048.jpg",
              alt: "Customer 2"
            },
            {
              src: "https://img.b2bpic.net/free-photo/portrait-sexy-handsome-fashion-businessman-model-dressed-elegant-blue-suit-posing-street-background-metrosexual_158538-10527.jpg",
              alt: "Customer 3"
            },
            {
              src: "https://img.b2bpic.net/free-photo/portrait-confident-young-businessman-with-his-arms-crossed_23-2148176206.jpg",
              alt: "Customer 4"
            }
          ]}
          useInvertedBackground="noInvert"
          containerClassName="py-20 backdrop-blur-md bg-white/30 border border-white/20 rounded-2xl p-12"
          testimonialClassName="text-2xl md:text-3xl font-bold italic text-center mb-8"
          avatarGroupClassName="flex justify-center mt-8"
        />
      </div>

      <FooterBase
        logoText="LuxeEstate"
        columns={[
          {
            title: "Properties",
            items: [
              { label: "Buy", href: "/properties" },
              { label: "Rent", href: "/properties" },
              { label: "Commercial", href: "/properties" }
            ]
          },
          {
            title: "Company",
            items: [
              { label: "About Us", href: "/about" },
              { label: "Contact", href: "/contact" },
              { label: "Careers", href: "#" }
            ]
          },
          {
            title: "Legal",
            items: [
              { label: "Privacy Policy", href: "#" },
              { label: "Terms of Service", href: "#" }
            ]
          }
        ]}
        copyrightText="© 2025 LuxeEstate. All rights reserved."
        containerClassName="backdrop-blur-md bg-black/80 text-white border-t border-white/10"
        logoTextClassName="text-2xl font-bold text-white hover:text-gray-300 transition-colors"
      />
    </ThemeProvider>
  );
}