"use client";

import Link from "next/link";
import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarLayoutFloatingInline from '@/components/navbar/NavbarLayoutFloatingInline';
import HeroBillboardGallery from '@/components/sections/hero/HeroBillboardGallery';
import ProductCardFour from '@/components/sections/product/ProductCardFour';
import TestimonialCardTwo from '@/components/sections/testimonial/TestimonialCardTwo';
import FooterBaseReveal from '@/components/sections/footer/FooterBaseReveal';
import { Home, Star } from "lucide-react";

export default function HomePage() {
  return (
    <ThemeProvider
      defaultButtonVariant="directional-hover"
      defaultTextAnimation="background-highlight"
      borderRadius="soft"
      contentWidth="mediumSmall"
      sizing="medium"
      background="aurora"
      cardStyle="glass-depth"
      primaryButtonStyle="inset-glow"
      secondaryButtonStyle="solid"
      headingFontWeight="normal"
    >
      <div id="nav" data-section="nav">
        <NavbarLayoutFloatingInline
          brandName="DubaiLux Properties"
          navItems={[
            { name: "Properties", id: "/properties" },
            { name: "About", id: "/about" },
            { name: "Insights", id: "/insights" },
            { name: "Contact", id: "/contact" }
          ]}
          button={{
            text: "Schedule Viewing",
            href: "/contact"
          }}
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroBillboardGallery
          title="Discover Your Dream Property in Dubai"
          description="Explore premium real estate across Dubai's most coveted locations. From luxury apartments to exclusive villas, find your perfect home in the world's most dynamic city."
          tag="Luxury Real Estate"
          tagIcon={Home}
          mediaItems={[
            {
              imageSrc: "https://img.b2bpic.net/free-photo/business-urban-beautiful-landscape-night_1122-1702.jpg",
              imageAlt: "Dubai luxury skyline"
            },
            {
              imageSrc: "https://img.b2bpic.net/free-photo/chicago-night-panorama_649448-1444.jpg",
              imageAlt: "Modern luxury apartment"
            },
            {
              imageSrc: "https://img.b2bpic.net/free-photo/train-by-night-dubai_641386-1183.jpg",
              imageAlt: "Exclusive villa exterior"
            },
            {
              imageSrc: "https://img.b2bpic.net/free-photo/miami-night-scene_649448-854.jpg",
              imageAlt: "Penthouse with city views"
            },
            {
              imageSrc: "https://img.b2bpic.net/free-photo/landmark-sea-waterfront-dusk-modern_1203-6139.jpg",
              imageAlt: "Waterfront property"
            }
          ]}
          buttons={[
            { text: "Browse Properties", href: "/properties" },
            { text: "Contact Agent", href: "/contact" }
          ]}
        />
      </div>

      <div id="featured" data-section="featured">
        <ProductCardFour
          title="Featured Properties"
          description="Handpicked luxury properties showcasing the finest real estate opportunities in Dubai"
          tag="Premium Selection"
          tagIcon={Star}
          textboxLayout="default"
          gridVariant="uniform-all-items-equal"
          animationType="slide-up"
          useInvertedBackground="invertDefault"
          products={[
            {
              id: "1",
              name: "Marina Luxury Penthouse",
              price: "AED 4,200,000",
              variant: "3 BR · Marina · 2,500 sqft",
              imageSrc: "https://img.b2bpic.net/free-photo/landmark-sea-waterfront-dusk-modern_1203-6139.jpg",
              imageAlt: "Marina penthouse"
            },
            {
              id: "2",
              name: "Downtown Executive Apartment",
              price: "AED 2,800,000",
              variant: "2 BR · Downtown · 1,800 sqft",
              imageSrc: "https://img.b2bpic.net/free-photo/beautiful-long-exposure-amazing-urban-complex_1122-1684.jpg",
              imageAlt: "Downtown apartment"
            },
            {
              id: "3",
              name: "Jumeirah Beachfront Villa",
              price: "AED 8,500,000",
              variant: "5 BR · Jumeirah · 6,000 sqft",
              imageSrc: "https://img.b2bpic.net/free-photo/river-modern-buildings-against-sky_1359-154.jpg",
              imageAlt: "Jumeirah villa"
            }
          ]}
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardTwo
          title="Client Success Stories"
          description="Hear from satisfied buyers and investors who found their perfect property with DubaiLux"
          tag="Client Reviews"
          textboxLayout="default"
          animationType="slide-up"
          useInvertedBackground="noInvert"
          testimonials={[
            {
              id: "1",
              name: "Fatima Al-Mansouri",
              role: "Property Investor",
              testimonial: "DubaiLux Properties helped me navigate the Dubai market with incredible expertise. Found the perfect investment property with excellent rental returns. Highly recommended!",
              imageSrc: "https://img.b2bpic.net/free-photo/front-view-business-woman-suit_23-2148603018.jpg",
              imageAlt: "Fatima Al-Mansouri"
            },
            {
              id: "2",
              name: "Ahmed Hassan",
              role: "Expat Homebuyer",
              testimonial: "As a newcomer to Dubai, I appreciated the personal attention and guidance from the team. They made the entire process smooth and transparent. Couldn't be happier with my new home.",
              imageSrc: "https://img.b2bpic.net/free-photo/front-view-professional-business-woman-suit_23-2148603020.jpg",
              imageAlt: "Ahmed Hassan"
            },
            {
              id: "3",
              name: "Sarah Thompson",
              role: "International Investor",
              testimonial: "Professional, knowledgeable, and trustworthy. DubaiLux Properties guided me through my first investment in Dubai with confidence. Five stars!",
              imageSrc: "https://img.b2bpic.net/free-photo/portrait-elegant-professional-businesswoman_23-2150917266.jpg",
              imageAlt: "Sarah Thompson"
            }
          ]}
        />
      </div>

      <FooterBaseReveal
        columns={[
          {
            title: "Company",
            items: [
              { label: "About Us", href: "/about" },
              { label: "Our Team", href: "/about" },
              { label: "Careers", href: "#" },
              { label: "Blog", href: "#" }
            ]
          },
          {
            title: "Properties",
            items: [
              { label: "Buy Properties", href: "/properties" },
              { label: "Rent Properties", href: "/properties" },
              { label: "Invest", href: "/insights" },
              { label: "Market Insights", href: "/insights" }
            ]
          },
          {
            title: "Support",
            items: [
              { label: "Contact Us", href: "/contact" },
              { label: "FAQ", href: "/contact" },
              { label: "Privacy Policy", href: "#" },
              { label: "Terms & Conditions", href: "#" }
            ]
          }
        ]}
        copyrightText="© 2025 DubaiLux Properties. All rights reserved."
      />
    </ThemeProvider>
  );
}