"use client";
import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarLayoutFloatingOverlay from '@/components/navbar/NavbarLayoutFloatingOverlay/NavbarLayoutFloatingOverlay';
import HeroBillboardCarousel from '@/components/sections/hero/HeroBillboardCarousel';
import ProductCardFour from '@/components/sections/product/ProductCardFour';
import TestimonialCardFifteen from '@/components/sections/testimonial/TestimonialCardFifteen';
import FooterMedia from '@/components/sections/footer/FooterMedia';
import Link from 'next/link';

export default function HomePage() {
  return (
    <ThemeProvider
      defaultButtonVariant="bounce-effect"
      defaultTextAnimation="entrance-slide"
      borderRadius="sharp"
      contentWidth="mediumSmall"
      sizing="mediumLargeSizeLargeTitles"
      background="none"
      cardStyle="glass-depth"
      primaryButtonStyle="shadow"
      secondaryButtonStyle="solid"
      headingFontWeight="medium"
    >
      <div id="nav" data-section="nav">
        <NavbarLayoutFloatingOverlay
          brandName="Dubai Realty"
          navItems={[
            { name: "Home", id: "/" },
            { name: "Properties", id: "/properties" },
            { name: "About", id: "/about" },
            { name: "Contact", id: "/contact" }
          ]}
          button={{ text: "Schedule Tour", href: "/contact" }}
          className="backdrop-blur-md border border-white/20"
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroBillboardCarousel
          title="Discover Luxury Living in Dubai"
          description="Explore premium properties across Dubai's most exclusive locations. From iconic towers to waterfront villas, find your perfect investment."
          tag="Premium Properties"
          mediaItems={[
            { imageSrc: "https://img.b2bpic.net/free-photo/luxury-architecture-exterior-design_23-2151920926.jpg", imageAlt: "Luxury penthouse with Dubai skyline view" },
            { imageSrc: "https://img.b2bpic.net/free-photo/luxury-architecture-exterior-design_23-2151920931.jpg", imageAlt: "Beachfront villa in Dubai Marina" },
            { imageSrc: "https://img.b2bpic.net/free-photo/attractive-woman-reading-magazine-near-panoramic-window_7502-9287.jpg", imageAlt: "Downtown Dubai apartment" },
            { imageSrc: "https://img.b2bpic.net/free-photo/modern-spacious-room-with-large-panoramic-window_7502-7289.jpg", imageAlt: "Palm Jumeirah luxury residence" },
            { imageSrc: "https://img.b2bpic.net/free-photo/attractive-woman-standing-with-coffee-near-window_7502-9288.jpg", imageAlt: "Business district office building" },
            { imageSrc: "https://img.b2bpic.net/free-photo/cute-young-woman-reading-book-sofa_7502-7285.jpg", imageAlt: "Marina waterfront property" }
          ]}
          buttons={[
            { text: "Browse Listings", href: "/properties" },
            { text: "Get Consultation", href: "/contact" }
          ]}
        />
      </div>

      <div id="properties" data-section="properties">
        <ProductCardFour
          title="Featured Properties"
          description="Handpicked luxury properties across Dubai's most coveted neighborhoods"
          tag="Available Now"
          products={[
            {
              id: "penthouse-001",
              name: "Burj Khalifa Luxury Penthouse",
              price: "AED 8,500,000",
              variant: "4 Beds  Downtown Dubai",
              imageSrc: "https://img.b2bpic.net/free-photo/luxury-architecture-exterior-design_23-2151920926.jpg",
              imageAlt: "Burj Khalifa penthouse"
            },
            {
              id: "villa-002",
              name: "Beachfront Villa Marina",
              price: "AED 6,200,000",
              variant: "5 Beds  Waterfront",
              imageSrc: "https://img.b2bpic.net/free-photo/luxury-architecture-exterior-design_23-2151920931.jpg",
              imageAlt: "Marina beachfront villa"
            },
            {
              id: "apartment-003",
              name: "Downtown Living Apartment",
              price: "AED 3,900,000",
              variant: "3 Beds  Prime Location",
              imageSrc: "https://img.b2bpic.net/free-photo/attractive-woman-reading-magazine-near-panoramic-window_7502-9287.jpg",
              imageAlt: "Downtown apartment"
            },
            {
              id: "palm-004",
              name: "Palm Jumeirah Residence",
              price: "AED 7,100,000",
              variant: "4 Beds  Iconic Address",
              imageSrc: "https://img.b2bpic.net/free-photo/modern-spacious-room-with-large-panoramic-window_7502-7289.jpg",
              imageAlt: "Palm Jumeirah home"
            }
          ]}
          gridVariant="two-columns-alternating-heights"
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground="invertDefault"
          buttons={[
            { text: "View All Properties", href: "/properties" }
          ]}
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardFifteen
          testimonial="Dubai Realty exceeded all expectations. Their expertise in premium properties and professional service made our investment seamless and rewarding."
          rating={5}
          author="Ahmed Al Mansouri, Property Investor"
          avatars={[
            { src: "https://img.b2bpic.net/free-photo/close-up-portrait-young-handsome-successful-man_1163-5475.jpg", alt: "Ahmed Al Mansouri" },
            { src: "https://img.b2bpic.net/free-photo/smiling-homosexual-man-official-suit-looking-camera-close-up-shot-happy-gay-getting-dressed-wedding-ceremony-standing-hotel-room-with-his-partner-background-love-emotion-concept_74855-22675.jpg", alt: "Client review" },
            { src: "https://img.b2bpic.net/free-photo/handsome-groom-classy-black-suit-stands-dark-room_8353-7083.jpg", alt: "Client testimonial" },
            { src: "https://img.b2bpic.net/free-photo/close-up-businessman-with-tie_1098-2867.jpg", alt: "Happy client" }
          ]}
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterMedia
          imageSrc="https://img.b2bpic.net/free-photo/business-urban-beautiful-landscape-night_1122-1702.jpg"
          imageAlt="Dubai skyline at night"
          logoText="Dubai Realty"
          copyrightText="© 2025 Dubai Realty. All rights reserved."
          columns={[
            {
              title: "Properties",
              items: [
                { label: "Apartments", href: "/properties" },
                { label: "Villas", href: "/properties" },
                { label: "Commercial", href: "/properties" },
                { label: "New Launches", href: "/properties" }
              ]
            },
            {
              title: "Company",
              items: [
                { label: "About Us", href: "/about" },
                { label: "Our Team", href: "/about" },
                { label: "Careers", href: "/about" },
                { label: "Contact", href: "/contact" }
              ]
            },
            {
              title: "Resources",
              items: [
                { label: "Market Insights", href: "/about" },
                { label: "Blog", href: "/about" },
                { label: "FAQs", href: "/contact" },
                { label: "Investment Guide", href: "/about" }
              ]
            }
          ]}
        />
      </div>
    </ThemeProvider>
  );
}