"use client";

import Link from "next/link";
import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarLayoutFloatingInline from '@/components/navbar/NavbarLayoutFloatingInline';
import ContactCenter from '@/components/sections/contact/ContactCenter';
import MetricCardThree from '@/components/sections/metrics/MetricCardThree';
import TextAbout from '@/components/sections/about/TextAbout';
import FooterLogoEmphasis from '@/components/sections/footer/FooterLogoEmphasis';
import { Phone, Mail, MapPin, Clock } from 'lucide-react';

export default function ContactPage() {
  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>

      {/* Contact Form Section */}
      <div id="contact" data-section="contact">
        <ContactCenter
          tag="Get In Touch"
          title="Ready to Find Your Dream Property?"
          description="Connect with our luxury real estate specialists today. We're here to help you discover the perfect property in Dubai."
          useInvertedBackground="noInvert"
          inputPlaceholder="Your email address"
          buttonText="Schedule Consultation"
          termsText="We respect your privacy. Your information is secure and will only be used to contact you about your property inquiry."
        />
      </div>

      {/* Contact Information */}
      <div id="contact-info" data-section="contact-info">
        <MetricCardThree
          title="Get in Touch"
          description="Multiple ways to connect with our luxury real estate specialists. We're available 24/7 to assist with your property needs."
          textboxLayout="default"
          animationType="slide-up"
          useInvertedBackground="invertDefault"
          metrics={[
            {
              id: "1",
              icon: Phone,
              title: "Phone",
              value: "+971 4 123 4567"
            },
            {
              id: "2",
              icon: Mail,
              title: "Email",
              value: "hello@luxuryestates.ae"
            },
            {
              id: "3",
              icon: MapPin,
              title: "Office",
              value: "Downtown Dubai"
            },
            {
              id: "4",
              icon: Clock,
              title: "Hours",
              value: "24/7 Available"
            }
          ]}
        />
      </div>

      {/* CTA Section */}
      <div id="cta" data-section="cta">
        <TextAbout
          title="Experience Dubai's finest properties with personalized service from the city's most trusted luxury real estate specialists. Let us help you find your perfect home or investment opportunity."
          useInvertedBackground="noInvert"
          buttons={[
            { text: "Browse Properties", href: "/properties" },
            { text: "Schedule Viewing", href: "/contact" }
          ]}
        />
      </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>
  );
}