"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import ReactLenis from "lenis/react";
import ContactCTA from '@/components/sections/contact/ContactCTA';
import FaqSplitText from '@/components/sections/faq/FaqSplitText';
import FeatureCardSixteen from '@/components/sections/feature/FeatureCardSixteen';
import FooterBaseReveal from '@/components/sections/footer/FooterBaseReveal';
import HeroSplit from '@/components/sections/hero/HeroSplit';
import NavbarLayoutFloatingInline from '@/components/navbar/NavbarLayoutFloatingInline';
import PricingCardEight from '@/components/sections/pricing/PricingCardEight';
import TeamCardTwo from '@/components/sections/team/TeamCardTwo';
import TestimonialCardSix from '@/components/sections/testimonial/TestimonialCardSix';
import { Star } from 'lucide-react';

export default function LandingPage() {
  return (
    <ThemeProvider
        defaultButtonVariant="expand-hover"
        defaultTextAnimation="background-highlight"
        borderRadius="soft"
        contentWidth="medium"
        sizing="mediumLarge"
        background="none"
        cardStyle="layered-gradient"
        primaryButtonStyle="gradient"
        secondaryButtonStyle="solid"
        headingFontWeight="semibold"
    >
      <ReactLenis root>
  <div id="nav" data-section="nav">
      <NavbarLayoutFloatingInline
      navItems={[
        { name: "Home", id: "#hero" },
        { name: "Services", id: "#services" },
        { name: "Pricing", id: "#pricing" },
        { name: "Team", id: "#team" },
        { name: "Contact", id: "#contact" },
      ]}
      brandName="Ammar's Barbershop"
      button={{ text: "Book Now", href: "#contact" }}
    />
  </div>

  <div id="hero" data-section="hero">
      <HeroSplit
      background={{ variant: "gradient-bars" }}
      title="Precision Cuts. Classic Style."
      description="Experience superior grooming at Ammar's Barbershop. From modern fades to classic hot towel shaves, we redefine excellence."
      buttons={[{ text: "Book Appointment", href: "#contact" }]}
      imageSrc="http://img.b2bpic.net/free-photo/barber-shop-interior_1163-2009.jpg?_wi=1"
      imageAlt="Ammar's Barbershop Interior"
      mediaAnimation="slide-up"
      avatars={[
        { src: "http://img.b2bpic.net/free-photo/full-shot-barber-hair-salon_23-2148242782.jpg", alt: "Full shot of barber at hair salon" },
        { src: "http://img.b2bpic.net/free-photo/male-barber-giving-his-client-nice-haircut_23-2149186489.jpg", alt: "Male barber giving his client a nice haircut" },
        { src: "http://img.b2bpic.net/free-photo/customer-standing-front-mirror-barbershop_23-2148181953.jpg", alt: "Customer standing in front of mirror at barbershop" },
        { src: "http://img.b2bpic.net/free-photo/young-man-barber-s-shop-getting-his-beard-trimmed_23-2149186494.jpg", alt: "Young man at the barber's shop getting his beard trimmed" },
        { src: "http://img.b2bpic.net/free-photo/young-surprised-blonde-male-barber-uniform-holds-hair-clipper-raises-fist-up-isolated-olive-green-space-with-copy-space_141793-60279.jpg", alt: "Young surprised blonde male barber" }
      ]}
      avatarText="Trusted by 500+ happy clients"
      marqueeItems={[
        { type: "text", text: "Expert Grooming" },
        { type: "text", text: "Modern Fades" },
        { type: "text", text: "Classic Shaves" },
        { type: "text", text: "Premium Products" },
        { type: "text", text: "Tailored Styling" }
      ]}
    />
  </div>

  <div id="services" data-section="services">
      <FeatureCardSixteen
      animationType="slide-up"
      textboxLayout="default"
      useInvertedBackground={false}
      negativeCard={{ items: ["No Rushed Service", "No Generic Styles", "No Compromise on Hygiene"] }}
      positiveCard={{ items: ["Modern Fades", "Classic Scissor Cuts", "Hot Towel Shave"] }}
      title="Our Expert Services"
      description="We specialize in tailored grooming that brings out the best in every client."
    />
  </div>

  <div id="pricing" data-section="pricing">
      <PricingCardEight
      animationType="slide-up"
      textboxLayout="split"
      useInvertedBackground={true}
      plans={[
        { id: "basic", badge: "Popular", price: "$30", subtitle: "Classic Haircut", buttons: [{ text: "Book Now", href: "#contact" }], features: ["Consultation", "Precision Cut", "Style Finish"] },
        { id: "pro", badge: "Recommended", price: "$45", subtitle: "The Full Experience", buttons: [{ text: "Book Now", href: "#contact" }], features: ["Classic Haircut", "Hot Towel Shave", "Beard Sculpt"] }
      ]}
      title="Transparent Pricing"
      description="Premium services at honest rates."
    />
  </div>

  <div id="team" data-section="team">
      <TeamCardTwo
      animationType="slide-up"
      textboxLayout="default"
      useInvertedBackground={false}
      gridVariant="three-columns-all-equal-width"
      title="Meet Your Barbers"
      description="The masters of the craft dedicated to your style."
      members={[
        { id: "1", name: "Ammar", role: "Master Barber", description: "With over 15 years of experience, Ammar brings a unique vision to every cut.", imageSrc: "http://img.b2bpic.net/free-photo/latino-hair-salon-owner-preparing-clients_23-2150286080.jpg?_wi=1" },
        { id: "2", name: "John", role: "Senior Barber", description: "John specializes in modern grooming techniques and precision fade work.", imageSrc: "http://img.b2bpic.net/free-photo/barber-man-apron-with-shaving-foam-his-face-shaving-himself-using-razor-standing-purple-wall_141793-50724.jpg" },
        { id: "3", name: "David", role: "Barber Stylist", description: "David focuses on bringing current fashion trends into every barbershop experience.", imageSrc: "http://img.b2bpic.net/free-photo/portrait-bearded-male-with-tattooed-crossed-arms-grey-background_613910-1610.jpg" }
      ]}
    />
  </div>

  <div id="testimonials" data-section="testimonials">
      <TestimonialCardSix
      animationType="slide-up"
      textboxLayout="default"
      useInvertedBackground={true}
      title="Client Stories"
      description="See why our clients choose us for their regular grooming needs."
      testimonials={[
        { id: "1", name: "Alex R.", handle: "@alexr", testimonial: "The best haircut in town, bar none. Always professional and precise.", icon: Star },
        { id: "2", name: "Ben S.", handle: "@bens", testimonial: "Clean, professional, and excellent quality. Highly recommend.", icon: Star },
        { id: "3", name: "Chris M.", handle: "@chrism", testimonial: "Ammar truly knows what works for my hair type. Amazing results.", icon: Star },
        { id: "4", name: "Dan K.", handle: "@dank", testimonial: "Always leave looking sharp. The attention to detail is unmatched.", icon: Star }
      ]}
    />
  </div>

  <div id="faq" data-section="faq">
      <FaqSplitText
      useInvertedBackground={false}
      faqs={[
        { id: "f1", title: "Do I need an appointment?", content: "Yes, we recommend booking online to guarantee your preferred time." },
        { id: "f2", title: "Do you accept walk-ins?", content: "We try to accommodate walk-ins, but scheduling is preferred." },
        { id: "f3", title: "Where are you located?", content: "We are conveniently located in the downtown district." }
      ]}
      sideTitle="Frequently Asked"
      sideDescription="Everything you need to know about our services."
      faqsAnimation="slide-up"
    />
  </div>

  <div id="contact" data-section="contact">
      <ContactCTA
      useInvertedBackground={true}
      background={{ variant: "plain" }}
      tag="Get in touch"
      title="Ready to Look Your Best?"
      description="Secure your spot at Ammar's Barbershop today."
      buttons={[{ text: "Book Appointment", href: "#" }]}
    />
  </div>

  <div id="footer" data-section="footer">
      <FooterBaseReveal
      logoText="Ammar's Barbershop"
      columns={[
        { title: "Menu", items: [{ label: "Home", href: "#hero" }, { label: "Services", href: "#services" }, { label: "Pricing", href: "#pricing" }] },
        { title: "Contact", items: [{ label: "Book Now", href: "#contact" }, { label: "FAQs", href: "#faq" }] }
      ]}
      copyrightText="© 2024 Ammar's Barbershop."
    />
  </div>
      </ReactLenis>
    </ThemeProvider>
  );
}
