"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import ReactLenis from "lenis/react";
import ContactCenter from '@/components/sections/contact/ContactCenter';
import FaqSplitText from '@/components/sections/faq/FaqSplitText';
import FooterBase from '@/components/sections/footer/FooterBase';
import HeroCarouselLogo from '@/components/sections/hero/heroCarouselLogo/HeroCarouselLogo';
import MetricCardThree from '@/components/sections/metrics/MetricCardThree';
import NavbarLayoutFloatingInline from '@/components/navbar/NavbarLayoutFloatingInline';
import ProductCardOne from '@/components/sections/product/ProductCardOne';
import SocialProofOne from '@/components/sections/socialProof/SocialProofOne';
import SplitAbout from '@/components/sections/about/SplitAbout';
import TestimonialCardTwelve from '@/components/sections/testimonial/TestimonialCardTwelve';
import { Building2, Coffee, Users } from "lucide-react";

export default function LandingPage() {
  return (
    <ThemeProvider
        defaultButtonVariant="text-shift"
        defaultTextAnimation="background-highlight"
        borderRadius="rounded"
        contentWidth="mediumLarge"
        sizing="mediumSizeLargeTitles"
        background="grid"
        cardStyle="glass-elevated"
        primaryButtonStyle="flat"
        secondaryButtonStyle="solid"
        headingFontWeight="light"
    >
      <ReactLenis root>
  <div id="nav" data-section="nav">
      <NavbarLayoutFloatingInline
      navItems={[
        {
          name: "Home",          id: "hero"},
        {
          name: "About",          id: "about"},
        {
          name: "Menu",          id: "products"},
        {
          name: "Contact",          id: "contact"},
      ]}
      brandName="STAR ROCK"
      button={{ text: "Book Now", href: "#contact" }}
    />
  </div>

  <div id="hero" data-section="hero">
      <HeroCarouselLogo
      logoText="STAR ROCK"
      description="Where tradition meets refined flavor. Experience culinary excellence in every bite at the heart of the city."
      buttons={[
        {
          text: "Reserve Table",          href: "#contact"},
      ]}
      slides={[
        { imageSrc: "http://img.b2bpic.net/free-photo/still-life-hot-water-arrangement_23-2149055814.jpg", imageAlt: "Luxurious cafe interior" },
        { imageSrc: "http://img.b2bpic.net/free-photo/food-celebrating-world-tapas-day_23-2149361452.jpg", imageAlt: "Gourmet meal plating" },
        { imageSrc: "http://img.b2bpic.net/free-photo/person-pouring-sugar-into-his-coffee-cup_1203-2164.jpg", imageAlt: "Barista latte art" },
        { imageSrc: "http://img.b2bpic.net/free-photo/unfocused-background-with-wooden-furniture_1203-1690.jpg", imageAlt: "Cozy restaurant ambiance" },
        { imageSrc: "http://img.b2bpic.net/free-photo/carrot-cake-with-someone-cup-tea_140725-4505.jpg", imageAlt: "Artisan dessert" },
        { imageSrc: "http://img.b2bpic.net/free-photo/medium-shot-girl-holding-welcome-sign_23-2148639792.jpg", imageAlt: "Restaurant exterior" }
      ]}
    />
  </div>

  <div id="about" data-section="about">
      <SplitAbout
      textboxLayout="split"
      useInvertedBackground={false}
      title="Our Passion for Culinary Art"
      description="Star Rock isn't just a place to eat; it's a sanctuary for food lovers who appreciate the harmony of fresh ingredients, expert technique, and warm hospitality."
      bulletPoints={[
        {
          title: "Fresh Ingredients",          description: "We source daily from local farms to ensure peak quality."},
        {
          title: "Master Chefs",          description: "Internationally trained culinary artists crafting unique dishes."},
        {
          title: "Artisan Coffee",          description: "Hand-roasted beans for the perfect morning brew."},
      ]}
      imageSrc="http://img.b2bpic.net/free-photo/woman-working-as-cook-testing-bad-soup-gourmet-dish-making-mistake-preparing-culinary-recipe-authentic-chef-doing-taste-test-with-sauce-cooking-professional-gastronomy-kitchen_482257-45654.jpg"
      imageAlt="Chef in professional kitchen"
      mediaAnimation="slide-up"
    />
  </div>

  <div id="products" data-section="products">
      <ProductCardOne
      animationType="slide-up"
      textboxLayout="split-description"
      gridVariant="asymmetric-60-wide-40-narrow"
      useInvertedBackground={false}
      products={[
        { id: "p1", name: "Morning Harvest Bowl", price: "$18", imageSrc: "http://img.b2bpic.net/free-photo/bowl-with-tasty-nutritious-food-delicious-homemade-lunch_185193-109960.jpg" },
        { id: "p2", name: "Artisan Roast Latte", price: "$6", imageSrc: "http://img.b2bpic.net/free-photo/breakfast-food-table-festive-brunch-set-meal-variety-with-spinach-waffles-salmon-cheese-olives-chicken-rolls-cheesecake-top-view-flat-lay_2829-17203.jpg" },
        { id: "p3", name: "Prime Rib Fillet", price: "$42", imageSrc: "http://img.b2bpic.net/free-photo/calamari-with-mango-sauce-with-nice-decoration-white-plate_1258-84821.jpg" },
        { id: "p4", name: "Tropical Zest Cooler", price: "$9", imageSrc: "http://img.b2bpic.net/free-photo/cozy-winter-coffee-with-whipped-cream_23-2152024218.jpg" },
        { id: "p5", name: "Classic Butter Croissant", price: "$5", imageSrc: "http://img.b2bpic.net/free-photo/croissant-glass-plate-high-angle-view-wooden-table_176474-8132.jpg" },
        { id: "p6", name: "Signature Wagyu Burger", price: "$28", imageSrc: "http://img.b2bpic.net/free-photo/halal-food-serve-table_53876-71224.jpg" }
      ]}
      title="Signature Menu"
      description="Explore our chef-curated selection of premium breakfast, lunch, and dinner dishes."
    />
  </div>

  <div id="testimonials" data-section="testimonials">
      <TestimonialCardTwelve
      useInvertedBackground={false}
      testimonials={[
        { id: "t1", name: "Sarah Miller", imageSrc: "http://img.b2bpic.net/free-photo/group-young-people-having-lunch-talking-each-other-pub-focus-is-happy-woman_637285-4087.jpg" },
        { id: "t2", name: "John Davis", imageSrc: "http://img.b2bpic.net/free-photo/medium-shot-couple-having-lunch-luxury-restaurant_23-2150598413.jpg" },
        { id: "t3", name: "Emily Chen", imageSrc: "http://img.b2bpic.net/free-photo/playful-girl-enjoying-tasty-breakfast-holidays-stylish-modern-cafe_273443-1845.jpg" },
        { id: "t4", name: "Michael Ross", imageSrc: "http://img.b2bpic.net/free-photo/portrait-beautiful-asian-woman-with-smartphone-relaxing-cafe-sitting-enjoying-coffee-while-using-mobile-phone_1258-122952.jpg" },
        { id: "t5", name: "Elena Varga", imageSrc: "http://img.b2bpic.net/free-photo/beautiful-african-american-woman-cafe_273609-5047.jpg" },
        { id: "t6", name: "David Kim", imageSrc: "http://img.b2bpic.net/free-photo/cute-pinup-girl-kitchen_23-2148867261.jpg" }
      ]}
      cardTitle="What Our Guests Say"
      cardTag="Reviews"
      cardAnimation="slide-up"
    />
  </div>

  <div id="faq" data-section="faq">
      <FaqSplitText
      useInvertedBackground={false}
      faqs={[
        { id: "f1", title: "Do you accept reservations?", content: "Yes, we encourage bookings via phone or our website." },
        { id: "f2", title: "Are vegan options available?", content: "We offer a wide range of plant-based dishes." },
        { id: "f3", title: "Is parking available?", content: "Complimentary valet service is provided for our guests." }
      ]}
      sideTitle="Frequently Asked Questions"
      faqsAnimation="blur-reveal"
    />
  </div>

  <div id="socialProof" data-section="socialProof">
      <SocialProofOne
      textboxLayout="default"
      useInvertedBackground={false}
      names={[
        "The Daily Dish", "Cafe Insider", "Gourmet Monthly", "City Food Guide", "Taste of the City", "Urban Flavor", "Fine Dining Mag"
      ]}
      title="Recognized by Industry Leaders"
      description="Star Rock is proud to be featured in major culinary publications."
    />
  </div>

  <div id="metrics" data-section="metrics">
      <MetricCardThree
      animationType="slide-up"
      textboxLayout="default"
      useInvertedBackground={false}
      metrics={[
        { id: "m1", title: "Cups Served", value: "150K+", icon: Coffee },
        { id: "m2", title: "Happy Guests", value: "85K+", icon: Users },
        { id: "m3", title: "Local Suppliers", value: "40+", icon: Building2 }
      ]}
      title="Our Impact in Numbers"
      description="We celebrate every cup, guest, and local partnership."
    />
  </div>

  <div id="contact" data-section="contact">
      <ContactCenter
      useInvertedBackground={false}
      background={{
        variant: "gradient-bars"}}
      tag="Visit Us"
      title="Reserve Your Table"
      description="Secure your spot at Star Rock for an unforgettable culinary experience."
    />
  </div>

  <div id="footer" data-section="footer">
      <FooterBase
      columns={[
        {
          title: "Info",          items: [
            { label: "About", href: "#about" },
            { label: "Menu", href: "#products" }
          ]
        },
        {
          title: "Contact",          items: [
            { label: "Book", href: "#contact" },
            { label: "Careers", href: "#" }
          ]
        },
        {
          title: "Legal",          items: [
            { label: "Privacy", href: "#" },
            { label: "Terms", href: "#" }
          ]
        }
      ]}
      logoText="STAR ROCK"
    />
  </div>
      </ReactLenis>
    </ThemeProvider>
  );
}
