"use client";

import Link from "next/link";
import { Sparkles, Mail } from "lucide-react";
import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarLayoutFloatingInline from '@/components/navbar/NavbarLayoutFloatingInline';
import HeroLogo from '@/components/sections/hero/HeroLogo';
import ProductCardFour from '@/components/sections/product/ProductCardFour';
import TestimonialCardFifteen from '@/components/sections/testimonial/TestimonialCardFifteen';
import FooterBase from '@/components/sections/footer/FooterBase';

export default function HomePage() {
  return (
    <ThemeProvider
      defaultButtonVariant="hover-bubble"
      defaultTextAnimation="reveal-blur"
      borderRadius="pill"
      contentWidth="mediumSmall"
      sizing="largeSmallSizeMediumTitles"
      background="circleGradient"
      cardStyle="glass-elevated"
      primaryButtonStyle="primary-glow"
      secondaryButtonStyle="solid"
      headingFontWeight="light"
    >
      <div id="nav" data-section="nav">
        <NavbarLayoutFloatingInline 
          brandName="Luxe Dubai"
          navItems={[
            { name: "Properties", id: "/properties" },
            { name: "About", id: "/about" },
            { name: "Services", id: "/services" },
            { name: "Contact", id: "/contact" }
          ]}
          button={{
            text: "Schedule Viewing",
            href: "/contact"
          }}
          className="backdrop-blur-lg bg-white/80 border border-white/20"
          navItemClassName="text-foreground hover:text-primary-cta transition-colors"
          buttonClassName="bg-foreground text-white hover:bg-primary-cta"
          buttonTextClassName="font-semibold"
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroLogo 
          logoText="LUXE DUBAI"
          description="Premium real estate in Dubai's most sought-after locations. Invest in your dream property with expert guidance."
          buttons={[
            { text: "Explore Properties", href: "/properties" },
            { text: "Schedule Consultation", href: "/contact" }
          ]}
          imageSrc="https://img.b2bpic.net/free-photo/buildings-milan-italy_268835-734.jpg"
          imageAlt="Dubai luxury skyline"
          showDimOverlay={true}
          logoLineHeight={1.1}
          containerClassName="relative h-screen flex items-center justify-center"
          logoClassName="text-white drop-shadow-lg font-light tracking-widest"
          descriptionClassName="text-white/90 text-lg font-light"
          buttonClassName="bg-white/20 backdrop-blur-lg border border-white/30 hover:bg-white/30 text-white rounded-full"
          buttonTextClassName="font-light"
        />
      </div>

      <div id="properties" data-section="properties">
        <ProductCardFour 
          title="Featured Properties"
          description="Discover our exclusive collection of luxury properties across Dubai's most prestigious neighborhoods."
          tag="New Listings"
          tagIcon={Sparkles}
          buttons={[
            { text: "View All Properties", href: "/properties" }
          ]}
          textboxLayout="default"
          useInvertedBackground="invertDefault"
          products={[
            {
              id: "prop-1",
              name: "Downtown Dubai Luxury Apartment",
              price: "AED 2,850,000",
              variant: "3 Bedroom | 2,500 sqft",
              imageSrc: "https://img.b2bpic.net/free-photo/contemporary-living-room_1150-12613.jpg",
              imageAlt: "Modern luxury apartment in Downtown Dubai",
              isFavorited: false
            },
            {
              id: "prop-2",
              name: "Palm Jumeirah Villa",
              price: "AED 5,500,000",
              variant: "5 Bedroom | 6,000 sqft",
              imageSrc: "https://img.b2bpic.net/free-photo/luxury-architecture-exterior-design_23-2151920926.jpg",
              imageAlt: "Luxury villa on Palm Jumeirah",
              isFavorited: false
            },
            {
              id: "prop-3",
              name: "Emirates Hills Penthouse",
              price: "AED 8,200,000",
              variant: "4 Bedroom | 4,500 sqft",
              imageSrc: "https://img.b2bpic.net/free-photo/modern-spacious-room-with-large-panoramic-window_7502-7289.jpg",
              imageAlt: "Luxury penthouse in Emirates Hills",
              isFavorited: false
            }
          ]}
          gridVariant="three-columns-all-equal-width"
          animationType="slide-up"
          cardClassName="backdrop-blur-lg bg-white/10 border border-white/20 rounded-2xl hover:bg-white/20 transition-all"
          cardNameClassName="text-foreground font-light text-lg"
          cardPriceClassName="text-primary-cta font-semibold text-xl"
          cardVariantClassName="text-foreground/70 text-sm font-light"
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardFifteen 
          testimonial="Luxe Dubai helped us find our dream villa in Emirates Hills. Their professionalism and attention to detail made the entire process seamless. Highly recommended!"
          rating={5}
          author="Sarah Al-Mansoori, Property Investor"
          avatars={[
            { src: "https://img.b2bpic.net/free-photo/front-view-business-woman-suit_23-2148603018.jpg", alt: "Client testimonial" },
            { src: "https://img.b2bpic.net/free-photo/closeup-young-female-professional-making-eye-contact-against-colored-background_662251-651.jpg", alt: "Client testimonial" },
            { src: "https://img.b2bpic.net/free-photo/front-view-professional-business-woman-suit_23-2148603020.jpg", alt: "Client testimonial" },
            { src: "https://img.b2bpic.net/free-photo/portrait-business-woman-office_1398-6.jpg", alt: "Client testimonial" },
            { src: "https://img.b2bpic.net/free-photo/positive-confident-businesswoman-wearing-formal-suit-standing-with-arms-folded_74855-10328.jpg", alt: "Client testimonial" },
            { src: "https://img.b2bpic.net/free-photo/young-beautiful-woman-smiling-posing-purple-wall_176420-2852.jpg", alt: "Client testimonial" }
          ]}
          useInvertedBackground="noInvert"
          containerClassName="py-20 bg-white"
          testimonialClassName="text-foreground font-light text-3xl md:text-4xl"
          ratingClassName="flex justify-center gap-2 mb-8"
        />
      </div>

      <FooterBase 
        logoText="Luxe Dubai"
        copyrightText="© 2025 Luxe Dubai Real Estate. All rights reserved."
        columns={[
          {
            title: "Properties",
            items: [
              { label: "Buy", href: "/properties" },
              { label: "Rent", href: "/properties" },
              { label: "Invest", href: "/properties" }
            ]
          },
          {
            title: "Company",
            items: [
              { label: "About Us", href: "/about" },
              { label: "Our Team", href: "/about" },
              { label: "Careers", href: "/about" }
            ]
          },
          {
            title: "Contact",
            items: [
              { label: "Email: info@luxedubai.ae", href: "/contact" },
              { label: "Phone: +971 4 XXX XXXX", href: "/contact" },
              { label: "Dubai, UAE", href: "/contact" }
            ]
          }
        ]}
        containerClassName="bg-foreground text-white py-16"
        logoTextClassName="text-white font-light text-2xl"
        columnTitleClassName="text-white font-light text-lg mb-4"
        columnItemClassName="text-white/70 hover:text-white font-light transition-colors"
        copyrightTextClassName="text-white/50 font-light"
      />
    </ThemeProvider>
  );
}