"use client";

import Link from "next/link";
import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarLayoutFloatingInline from '@/components/navbar/NavbarLayoutFloatingInline';
import HeroOverlay from '@/components/sections/hero/HeroOverlay';
import TextAbout from '@/components/sections/about/TextAbout';
import ProductCardTwo from '@/components/sections/product/ProductCardTwo';
import FeatureCardSixteen from '@/components/sections/feature/FeatureCardSixteen';
import MetricCardThree from '@/components/sections/metrics/MetricCardThree';
import TestimonialCardFifteen from '@/components/sections/testimonial/TestimonialCardFifteen';
import FooterLogoEmphasis from '@/components/sections/footer/FooterLogoEmphasis';
import { Home, Users, TrendingUp, Award } from 'lucide-react';

export default function HomePage() {
  return (
    <ThemeProvider
      defaultButtonVariant="hover-bubble"
      defaultTextAnimation="background-highlight"
      borderRadius="pill"
      contentWidth="mediumSmall"
      sizing="mediumLargeSizeMediumTitles"
      background="floatingGradient"
      cardStyle="outline"
      primaryButtonStyle="inset-glow"
      secondaryButtonStyle="glass"
      headingFontWeight="light"
    >
      {/* Navbar */}
      <div id="nav" data-section="nav">
        <NavbarLayoutFloatingInline
          brandName="Luxury Estates Dubai"
          navItems={[
            { name: "Home", id: "/" },
            { name: "Properties", id: "/properties" },
            { name: "About", id: "/about" },
            { name: "Contact", id: "/contact" }
          ]}
          button={{
            text: "Schedule Viewing",
            href: "/contact"
          }}
        />
      </div>

      {/* Hero Section */}
      <div id="hero" data-section="hero">
        <HeroOverlay
          title="Discover Luxury Living in Dubai"
          description="Explore the finest residential properties in Dubai's most prestigious locations. Your dream property awaits."
          tag="Premium Real Estate"
          imageSrc="https://img.b2bpic.net/free-photo/skyscrapers-from-low-angle-view_1359-1073.jpg?id=1193675"
          imageAlt="Luxury penthouse with Dubai skyline view"
          textPosition="bottom-left"
          showBlur={true}
          showDimOverlay={true}
          buttons={[
            { text: "Browse Properties", href: "/properties" },
            { text: "Schedule Viewing", href: "/contact" }
          ]}
        />
      </div>

      {/* About Section */}
      <div id="about" data-section="about">
        <TextAbout
          title="Luxury Estates Dubai is your premier partner in finding the perfect high-end property in Dubai's most coveted locations"
          useInvertedBackground="invertDefault"
          buttons={[
            { text: "Learn More", href: "/about" }
          ]}
        />
      </div>

      {/* Properties Section */}
      <div id="properties" data-section="properties">
        <ProductCardTwo
          title="Featured Properties"
          description="Handpicked luxury properties across Dubai's most exclusive neighborhoods"
          textboxLayout="default"
          animationType="slide-up"
          useInvertedBackground="noInvert"
          gridVariant="three-columns-all-equal-width"
          carouselMode="buttons"
          products={[
            {
              id: "1",
              brand: "Marina District",
              name: "Luxury Marina Penthouse",
              price: "AED 3,500,000",
              rating: 5,
              reviewCount: "12",
              imageSrc: "https://img.b2bpic.net/free-photo/luxury-architecture-exterior-design_23-2151920926.jpg",
              imageAlt: "Luxury Marina penthouse with waterfront views"
            },
            {
              id: "2",
              brand: "Downtown Dubai",
              name: "Burj Khalifa View Apartment",
              price: "AED 2,800,000",
              rating: 5,
              reviewCount: "18",
              imageSrc: "https://img.b2bpic.net/free-photo/attractive-woman-standing-with-coffee-near-window_7502-9288.jpg",
              imageAlt: "Downtown Dubai apartment with Burj Khalifa views"
            },
            {
              id: "3",
              brand: "Emirates Hills",
              name: "Exclusive Villa Estate",
              price: "AED 5,200,000",
              rating: 5,
              reviewCount: "9",
              imageSrc: "https://img.b2bpic.net/free-photo/attractive-woman-reading-magazine-near-panoramic-window_7502-9287.jpg",
              imageAlt: "Luxury villa with private garden and modern architecture"
            }
          ]}
        />
      </div>

      {/* Features Section */}
      <div id="features" data-section="features">
        <FeatureCardSixteen
          title="Why Choose Luxury Estates Dubai"
          description="Experience the difference of working with Dubai's premier luxury real estate specialists"
          textboxLayout="default"
          animationType="slide-up"
          useInvertedBackground="invertDefault"
          negativeCard={{
            items: [
              "Generic property listings",
              "Limited market knowledge",
              "Slow response times",
              "Lack of personalized service"
            ]
          }}
          positiveCard={{
            items: [
              "Curated luxury portfolio",
              "Expert market insights",
              "24/7 dedicated support",
              "Bespoke investment guidance"
            ]
          }}
        />
      </div>

      {/* Metrics Section */}
      <div id="metrics" data-section="metrics">
        <MetricCardThree
          title="By The Numbers"
          description="Proven track record in luxury real estate transactions"
          textboxLayout="default"
          animationType="slide-up"
          useInvertedBackground="noInvert"
          metrics={[
            {
              id: "1",
              icon: Home,
              title: "Properties Sold",
              value: "500+"
            },
            {
              id: "2",
              icon: Users,
              title: "Satisfied Clients",
              value: "1,200+"
            },
            {
              id: "3",
              icon: TrendingUp,
              title: "Portfolio Value",
              value: "AED 2.5B+"
            },
            {
              id: "4",
              icon: Award,
              title: "Years Experience",
              value: "20+"
            }
          ]}
        />
      </div>

      {/* Testimonials Section */}
      <div id="testimonials" data-section="testimonials">
        <TestimonialCardFifteen
          testimonial="Luxury Estates Dubai helped me find the perfect penthouse in Marina. Their expertise and personalized service made the entire process seamless and enjoyable. Highly recommended!"
          rating={5}
          author="Ahmed Al Maktoum, Investment Executive"
          useInvertedBackground="invertDefault"
          avatars={[
            { src: "https://img.b2bpic.net/free-photo/close-up-portrait-young-handsome-successful-man_1163-5475.jpg", alt: "Ahmed Al Maktoum" },
            { 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: "Sarah Johnson" },
            { src: "https://img.b2bpic.net/free-photo/handsome-groom-classy-black-suit-stands-dark-room_8353-7083.jpg", alt: "Michael Chen" },
            { src: "https://img.b2bpic.net/free-photo/successful-businessman-imagines-great-career_1163-5478.jpg", alt: "Emma Davis" }
          ]}
        />
      </div>

      {/* Footer */}
      <FooterLogoEmphasis
        logoText="Luxury Estates Dubai"
        columns={[
          {
            items: [
              { label: "Home", href: "/" },
              { label: "Properties", href: "/properties" },
              { label: "About Us", href: "/about" }
            ]
          },
          {
            items: [
              { label: "Services", href: "/properties" },
              { label: "Testimonials", href: "/" },
              { label: "FAQ", href: "/about" }
            ]
          },
          {
            items: [
              { label: "Contact Us", href: "/contact" },
              { label: "Privacy Policy", href: "https://example.com/privacy" },
              { label: "Terms of Service", href: "https://example.com/terms" }
            ]
          }
        ]}
      />
    </ThemeProvider>
  );
}