"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleCentered from '@/components/navbar/NavbarStyleCentered/NavbarStyleCentered';
import HeroLogoBillboardSplit from '@/components/sections/hero/HeroLogoBillboardSplit';
import AboutMetric from '@/components/sections/about/AboutMetric';
import FeatureBento from '@/components/sections/feature/FeatureBento';
import TestimonialCardTwo from '@/components/sections/testimonial/TestimonialCardTwo';
import ContactFaq from '@/components/sections/contact/ContactFaq';
import FooterBase from '@/components/sections/footer/FooterBase';
import Link from 'next/link';
import { Star, Users, Award, Globe, Plane, MapPin, Phone } from 'lucide-react';

export default function HomePage() {
  return (
    <ThemeProvider
      defaultButtonVariant="bounce-effect"
      defaultTextAnimation="background-highlight"
      borderRadius="pill"
      contentWidth="mediumSmall"
      sizing="largeSmallSizeMediumTitles"
      background="aurora"
      cardStyle="soft-shadow"
      primaryButtonStyle="primary-glow"
      secondaryButtonStyle="radial-glow"
      headingFontWeight="extrabold"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleCentered 
          brandName="Serenity Hotels"
          navItems={[
            { name: "Home", id: "/" },
            { name: "Rooms", id: "/rooms" },
            { name: "Amenities", id: "/amenities" },
            { name: "Reviews", id: "/reviews" },
            { name: "Contact", id: "/contact" }
          ]}
          button={{ text: "Book Now", href: "/booking" }}
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroLogoBillboardSplit 
          logoText="SERENITY"
          description="Experience unparalleled luxury and comfort at our five-star hotel. Nestled in a breathtaking location, we offer world-class amenities, exceptional service, and unforgettable moments for every guest."
          background={{ variant: "radial-gradient" }}
          buttons={[
            { text: "Book Your Stay", href: "/booking" },
            { text: "Explore Rooms", href: "/rooms" }
          ]}
          layoutOrder="default"
          imageSrc="https://img.b2bpic.net/free-photo/luxury-hotel-reception-hall-office-with-decor-shelf_105762-1676.jpg"
          imageAlt="Luxury hotel lobby with elegant interior design"
          frameStyle="browser"
        />
      </div>

      <div id="about" data-section="about">
        <AboutMetric 
          title="Serenity Hotels: A Legacy of Excellence and Hospitality Since 1995"
          useInvertedBackground="invertDefault"
          metrics={[
            { icon: Star, label: "5-Star Rating", value: "4.9/5" },
            { icon: Users, label: "Happy Guests", value: "500K+" },
            { icon: Award, label: "Awards Won", value: "47" },
            { icon: Globe, label: "Global Locations", value: "12" }
          ]}
        />
      </div>

      <div id="amenities" data-section="amenities">
        <FeatureBento 
          title="World-Class Amenities"
          description="Indulge in our extensive array of premium facilities designed to enhance your stay and provide the ultimate hospitality experience."
          textboxLayout="default"
          useInvertedBackground="noInvert"
          animationType="slide-up"
          features={[
            {
              title: "Olympic-Size Swimming Pool",              description: "Relax and swim in our pristine heated pool overlooking the landscape.",              bentoComponent: "globe"
            },
            {
              title: "Spa & Wellness Center",              description: "Experience rejuvenation with world-class spa treatments and wellness programs.",              bentoComponent: "animated-bar-chart"
            },
            {
              title: "Fine Dining Restaurant",              description: "Savor exceptional cuisine crafted by our award-winning culinary team.",              bentoComponent: "map"
            },
            {
              title: "24/7 Fitness Center",              description: "Stay active with our state-of-the-art gym and personal training services.",              bentoComponent: "line-chart"
            },
            {
              title: "Concierge Services",              description: "Our dedicated team assists with reservations, tours, and special requests.",              bentoComponent: "icon-info-cards",              items: [
                { icon: Plane, label: "Airport Transfer", value: "24/7" },
                { icon: MapPin, label: "City Tours", value: "Daily" },
                { icon: Phone, label: "Support", value: "Always" }
              ]
            }
          ]}
        />
      </div>

      <div id="reviews" data-section="reviews">
        <TestimonialCardTwo 
          title="Guest Testimonials"
          description="Hear from our valued guests about their unforgettable experiences at Serenity Hotels."
          textboxLayout="default"
          useInvertedBackground="invertDefault"
          animationType="slide-up"
          testimonials={[
            {
              id: "1",              name: "Margaret Johnson",              role: "Business Executive",              testimonial: "An absolutely magnificent hotel. The attention to detail, impeccable service, and stunning views made our anniversary stay truly unforgettable. We'll definitely be back!",              imageSrc: "https://img.b2bpic.net/free-photo/portrait-beautiful-business-office-business-center_1303-20365.jpg",              imageAlt: "Margaret Johnson"
            },
            {
              id: "2",              name: "David Chen",              role: "Travel Blogger",              testimonial: "Serenity Hotels exceeded all expectations. The spa treatments were transformative, the food was exquisite, and the staff anticipated every need. Pure luxury!",              imageSrc: "https://img.b2bpic.net/free-photo/casual-smile-street-style-background-spring_1139-777.jpg",              imageAlt: "David Chen"
            },
            {
              id: "3",              name: "Elizabeth Rodriguez",              role: "Corporate Manager",              testimonial: "The perfect destination for our corporate retreat. Professional amenities, luxurious accommodations, and seamless event coordination made everything exceptional.",              imageSrc: "https://img.b2bpic.net/free-photo/business-lady-looking-copyspace-with-interest_1262-2957.jpg",              imageAlt: "Elizabeth Rodriguez"
            }
          ]}
          carouselMode="buttons"
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactFaq 
          ctaTitle="Ready to Book Your Stay?"
          ctaDescription="Contact our reservation team to secure your dates and start your Serenity experience."
          ctaButton={{ text: "Contact Reservations", href: "https://example.com/reservations" }}
          ctaIcon={Phone}
          useInvertedBackground="noInvert"
          animationType="slide-up"
          faqs={[
            {
              id: "1",              title: "What is your cancellation policy?",              content: "We offer flexible cancellation policies depending on your booking. Standard bookings can be cancelled up to 7 days before arrival for a full refund. Premium bookings allow cancellation up to 14 days. For complete details, please contact our reservations team."
            },
            {
              id: "2",              title: "Are pets allowed at the hotel?",              content: "Yes, we welcome well-behaved pets! There is a one-time pet fee of $50 per stay. Pets are allowed in designated rooms only. Please notify us during booking if you plan to bring a pet."
            },
            {
              id: "3",              title: "Is there free parking available?",              content: "Complimentary parking is available for all guests. We offer both covered parking and valet services. Valet parking is complimentary for Premium and Luxury suite guests."
            }
          ]}
        />
      </div>

      <FooterBase 
        logoText="Serenity Hotels"
        copyrightText="© 2025 Serenity Hotels Group. All rights reserved."
        columns={[
          {
            title: "Accommodations",            items: [
              { label: "Luxury Suites", href: "/rooms" },
              { label: "Ocean View Rooms", href: "/rooms" },
              { label: "Standard Rooms", href: "/rooms" },
              { label: "Group Bookings", href: "/contact" }
            ]
          },
          {
            title: "Amenities",            items: [
              { label: "Spa & Wellness", href: "/amenities" },
              { label: "Swimming Pool", href: "/amenities" },
              { label: "Fine Dining", href: "/amenities" },
              { label: "Fitness Center", href: "/amenities" }
            ]
          },
          {
            title: "Company",            items: [
              { label: "About Us", href: "/about" },
              { label: "Contact", href: "/contact" },
              { label: "Careers", href: "#" },
              { label: "Blog", href: "#" }
            ]
          }
        ]}
      />
    </ThemeProvider>
  );
}