"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 FeatureCardTen from '@/components/sections/feature/FeatureCardTen';
import FooterBaseReveal from '@/components/sections/footer/FooterBaseReveal';
import HeroBillboardGallery from '@/components/sections/hero/HeroBillboardGallery';
import NavbarLayoutFloatingOverlay from '@/components/navbar/NavbarLayoutFloatingOverlay/NavbarLayoutFloatingOverlay';
import ProductCardOne from '@/components/sections/product/ProductCardOne';
import SocialProofOne from '@/components/sections/socialProof/SocialProofOne';
import SplitAbout from '@/components/sections/about/SplitAbout';
import TestimonialCardSix from '@/components/sections/testimonial/TestimonialCardSix';
import { Cake, Coffee, Fish, LeafyGreen, Sparkles, Sunset, Wheat } from "lucide-react";

export default function LandingPage() {
  return (
    <ThemeProvider
        defaultButtonVariant="text-shift"
        defaultTextAnimation="reveal-blur"
        borderRadius="pill"
        contentWidth="mediumLarge"
        sizing="medium"
        background="circleGradient"
        cardStyle="outline"
        primaryButtonStyle="flat"
        secondaryButtonStyle="radial-glow"
        headingFontWeight="semibold"
    >
      <ReactLenis root>
  <div id="nav" data-section="nav">
      <NavbarLayoutFloatingOverlay
      navItems={[
        {
          name: "Home",
          id: "#hero",
        },
        {
          name: "About",
          id: "#about",
        },
        {
          name: "Menu",
          id: "#menu",
        },
        {
          name: "Specials",
          id: "#features",
        },
        {
          name: "Testimonials",
          id: "#testimonials",
        },
        {
          name: "Contact",
          id: "#contact",
        },
      ]}
      brandName="Portofino"
    />
  </div>

  <div id="hero" data-section="hero">
      <HeroBillboardGallery
      background={{
        variant: "plain",
      }}
      title="Experience Authentic Italian Cuisine at Portofino"
      description="Savor traditional flavors, handcrafted pasta, and exquisite wines in a warm, inviting atmosphere. Join us for an unforgettable dining experience."
      buttons={[
        {
          text: "View Menu",
          href: "#menu",
        },
        {
          text: "Make a Reservation",
          href: "#contact",
        },
      ]}
      mediaItems={[
        {
          imageSrc: "http://img.b2bpic.net/free-photo/delicious-truffle-recipe-with-pasta-top-view_23-2149548045.jpg",
          imageAlt: "Delicious Italian pasta dish",
        },
        {
          imageSrc: "http://img.b2bpic.net/free-photo/young-woman-eating-delicious-tiramisu-cafe_1303-25273.jpg",
          imageAlt: "Cozy interior of an Italian restaurant",
        },
        {
          imageSrc: "http://img.b2bpic.net/free-photo/chef-white-uniform-prepare-pizzaa_1157-27020.jpg",
          imageAlt: "Chef preparing pizza in a wood-fired oven",
        },
        {
          imageSrc: "http://img.b2bpic.net/free-photo/side-view-young-man-holding-red-wine-glass-his-hand_23-2147891242.jpg",
          imageAlt: "Fine Italian wine being poured",
        },
        {
          imageSrc: "http://img.b2bpic.net/free-photo/tasty-egg-with-truffles-pita-high-angle_23-2149548075.jpg",
          imageAlt: "Exquisite tiramisu dessert",
        },
        {
          imageSrc: "http://img.b2bpic.net/free-photo/sliced-cabbage-carrots-plate-tea-towel_114579-86177.jpg",
          imageAlt: "Fresh seafood platter",
        },
      ]}
      mediaAnimation="opacity"
    />
  </div>

  <div id="about" data-section="about">
      <SplitAbout
      textboxLayout="default"
      useInvertedBackground={true}
      imagePosition="right"
      title="Our Story: A Taste of Italy in Every Dish"
      description="Portofino brings the heart and soul of Italy to your table. Founded on generations of family recipes and a passion for fresh, local ingredients, we invite you to discover true Italian hospitality."
      bulletPoints={[
        {
          title: "Authentic Family Recipes",
          description: "Passed down through generations, our dishes carry the true essence of Italian culinary heritage.",
        },
        {
          title: "Fresh Local Ingredients",
          description: "We partner with local farms and suppliers to bring the freshest, seasonal produce to your plate.",
        },
        {
          title: "Warm & Inviting Ambiance",
          description: "Experience Italy's renowned hospitality in our beautifully designed and welcoming dining space.",
        },
      ]}
      imageSrc="http://img.b2bpic.net/free-photo/young-happy-woman-serving-salad-while-setting-dining-table-lunch_637285-5868.jpg"
      imageAlt="Italian family cooking traditional recipes"
      mediaAnimation="opacity"
    />
  </div>

  <div id="features" data-section="features">
      <FeatureCardTen
      animationType="slide-up"
      textboxLayout="default"
      useInvertedBackground={false}
      features={[
        {
          title: "Handcrafted Pasta",
          description: "Experience our freshly made pasta, prepared daily with traditional techniques and the finest durum wheat.",
          media: {
            imageSrc: "http://img.b2bpic.net/free-photo/pasta-nests-garlic-cherry-tomatoes-wooden-board_114579-55683.jpg",
            imageAlt: "Fresh handmade pasta",
          },
          items: [
            {
              icon: Sprout,
              text: "Organic Ingredients",
            },
            {
              icon: Wheat,
              text: "Artisanal Production",
            },
            {
              icon: ChefHat,
              text: "Chef's Specials",
            },
          ],
          reverse: false,
          imageSrc: "http://img.b2bpic.net/free-photo/delicious-truffle-recipe-with-pasta-top-view_23-2149548045.jpg",
          imageAlt: "fresh handmade pasta ingredients italian",
        },
        {
          title: "Exquisite Seafood",
          description: "Indulge in our selection of fresh, sustainably sourced seafood, expertly prepared to highlight its natural flavors.",
          media: {
            imageSrc: "http://img.b2bpic.net/free-photo/plate-with-shellfishes-standing-near-waitress_23-2147830602.jpg",
            imageAlt: "Fresh seafood selection",
          },
          items: [
            {
              icon: Fish,
              text: "Fresh Catch Daily",
            },
            {
              icon: LeafyGreen,
              text: "Sustainable Sourcing",
            },
            {
              icon: Sunset,
              text: "Mediterranean Style",
            },
          ],
          reverse: true,
          imageSrc: "http://img.b2bpic.net/free-photo/young-woman-eating-delicious-tiramisu-cafe_1303-25273.jpg",
          imageAlt: "fresh handmade pasta ingredients italian",
        },
        {
          title: "Decadent Desserts",
          description: "Complete your meal with our authentic Italian desserts, from classic Tiramisu to seasonal fruit tarts.",
          media: {
            imageSrc: "http://img.b2bpic.net/free-photo/top-view-roll-cake-slices-with-different-fruits-inside-white-plate-colored-background-cake-sweet-color_140725-23065.jpg",
            imageAlt: "Assortment of Italian desserts",
          },
          items: [
            {
              icon: Cake,
              text: "Homemade Goodness",
            },
            {
              icon: Sparkles,
              text: "Sweet Indulgence",
            },
            {
              icon: Coffee,
              text: "Perfect Pairing",
            },
          ],
          reverse: false,
          imageSrc: "http://img.b2bpic.net/free-photo/chef-white-uniform-prepare-pizzaa_1157-27020.jpg",
          imageAlt: "fresh handmade pasta ingredients italian",
        },
      ]}
      title="Signature Flavors & Daily Specials"
      description="Explore our handcrafted dishes, from classic pasta to delectable seafood, all prepared with the freshest ingredients and a passion for Italian culinary excellence."
    />
  </div>

  <div id="menu" data-section="menu">
      <ProductCardOne
      animationType="slide-up"
      textboxLayout="default"
      gridVariant="three-columns-all-equal-width"
      useInvertedBackground={true}
      products={[
        {
          id: "p1",
          name: "Pizza Margherita",
          price: "$18",
          imageSrc: "http://img.b2bpic.net/free-photo/homemade-pizza-food-photography-recipe-idea_53876-38.jpg",
          imageAlt: "Classic Pizza Margherita",
        },
        {
          id: "p2",
          name: "Lasagna al Forno",
          price: "$24",
          imageSrc: "http://img.b2bpic.net/free-photo/homemade-lasagna-with-beef-tomato-sauce-generated-by-ai_188544-22172.jpg",
          imageAlt: "Homemade Lasagna",
        },
        {
          id: "p3",
          name: "Spaghetti Carbonara",
          price: "$22",
          imageSrc: "http://img.b2bpic.net/free-photo/delicious-dish-spaghetti-with-meat-basil-leaf-wooden-table_23-2147922263.jpg",
          imageAlt: "Creamy Spaghetti Carbonara",
        },
        {
          id: "p4",
          name: "Risotto ai Funghi",
          price: "$26",
          imageSrc: "http://img.b2bpic.net/free-photo/top-view-beans-food-concept_23-2148648549.jpg",
          imageAlt: "Mushroom Risotto",
        },
        {
          id: "p5",
          name: "Tiramisu Classico",
          price: "$12",
          imageSrc: "http://img.b2bpic.net/free-photo/tiramisu-piece-with-coffee-beans_23-2148531561.jpg",
          imageAlt: "Traditional Tiramisu",
        },
        {
          id: "p6",
          name: "Gelato Artigianale",
          price: "$9",
          imageSrc: "http://img.b2bpic.net/free-photo/collection-bowls-with-bright-dry-colors_23-2148016499.jpg",
          imageAlt: "Artisanal Gelato Selection",
        },
      ]}
      title="Our Exquisite Menu"
      description="A culinary journey through the heart of Italy, featuring timeless classics and innovative creations crafted with passion and tradition."
    />
  </div>

  <div id="testimonials" data-section="testimonials">
      <TestimonialCardSix
      animationType="slide-up"
      textboxLayout="default"
      useInvertedBackground={false}
      testimonials={[
        {
          id: "t1",
          name: "Maria S.",
          handle: "@marias_foodie",
          testimonial: "Portofino is simply the best Italian restaurant in town! The pasta is fresh, the ambiance is perfect, and the service is always impeccable. A true culinary gem!",
          imageSrc: "http://img.b2bpic.net/free-photo/couple-having-date-together-luxurious-restaurant_23-2150517424.jpg",
          imageAlt: "Happy female customer",
        },
        {
          id: "t2",
          name: "David C.",
          handle: "@dave_eats",
          testimonial: "Every dish at Portofino tells a story. The flavors are rich, authentic, and transport you straight to Italy. Highly recommend the Risotto ai Funghi!",
          imageSrc: "http://img.b2bpic.net/free-photo/happy-couple-holding-each-other-s-hand_23-2147891266.jpg",
          imageAlt: "Satisfied male customer",
        },
        {
          id: "t3",
          name: "Sophia L.",
          handle: "@sophia_travels",
          testimonial: "From the moment we walked in, we felt like family. The hospitality is unmatched, and the food, especially the Tiramisu, is heavenly. A must-visit!",
          imageSrc: "http://img.b2bpic.net/free-photo/people-technology-concept-beautiful-couple-having-nice-conversation-sitting-cafe-table-with-laptop-smoothie-summer-holidays_273609-6617.jpg",
          imageAlt: "Smiling female customer",
        },
        {
          id: "t4",
          name: "Mark R.",
          handle: "@mark_reviews",
          testimonial: "Portofino consistently delivers an exceptional dining experience. Their wine list is superb, perfectly complementing every dish. Five stars!",
          imageSrc: "http://img.b2bpic.net/free-photo/young-woman-eating-pasta-cafe_1303-25260.jpg",
          imageAlt: "Male customer with a glass of wine",
        },
        {
          id: "t5",
          name: "Elena B.",
          handle: "@elena_gourmet",
          testimonial: "The Carbonara here is the real deal! Creamy, savory, and cooked to perfection. It's my go-to spot for authentic Italian comfort food.",
          imageSrc: "http://img.b2bpic.net/free-photo/family-gathering-with-gay-partners_23-2151077640.jpg",
          imageAlt: "Female customer enjoying pasta",
        },
      ]}
      title="What Our Guests Say"
      description="Hear from diners who've experienced the magic of Portofino. Their stories speak volumes about our commitment to excellence and authentic Italian dining."
    />
  </div>

  <div id="social-proof" data-section="social-proof">
      <SocialProofOne
      textboxLayout="default"
      useInvertedBackground={true}
      names={[
        "Foodie Magazine",
        "Local Bites",
        "Chef's Choice",
        "Gourmet Guide",
        "Dine Out Weekly",
        "Taste Trails",
        "City Eats",
      ]}
      title="Why Guests Choose Portofino"
      description="Trusted by local food critics and cherished by our regulars, Portofino is a local favorite for authentic Italian dining. Our commitment to quality and service sets us apart."
    />
  </div>

  <div id="faq" data-section="faq">
      <FaqSplitText
      useInvertedBackground={false}
      faqs={[
        {
          id: "faq1",
          title: "Do you accept reservations?",
          content: "Yes, we highly recommend making a reservation, especially for weekend evenings. You can book a table through our website or by calling us directly.",
        },
        {
          id: "faq2",
          title: "What are your opening hours?",
          content: "We are open for lunch from 12:00 PM to 2:30 PM, and for dinner from 5:30 PM to 10:00 PM, Tuesday through Sunday. We are closed on Mondays.",
        },
        {
          id: "faq3",
          title: "Do you have vegetarian or vegan options?",
          content: "Absolutely! Our menu features a variety of delicious vegetarian and vegan dishes. Please inform your server about any dietary restrictions or preferences.",
        },
      ]}
      sideTitle="Frequently Asked Questions"
      sideDescription="Find quick answers to common questions about reservations, dietary options, our dining experience, and more."
      faqsAnimation="slide-up"
      textPosition="left"
    />
  </div>

  <div id="contact" data-section="contact">
      <ContactCTA
      useInvertedBackground={true}
      background={{
        variant: "radial-gradient",
      }}
      tag="Book Your Table"
      title="Make a Reservation"
      description="Reserve your table at Portofino for an unforgettable Italian dining experience. We look forward to welcoming you to our warm and inviting restaurant soon!"
      buttons={[
        {
          text: "Call Us",
          href: "tel:+1234567890",
        },
        {
          text: "Book Online",
          href: "#",
        },
      ]}
    />
  </div>

  <div id="footer" data-section="footer">
      <FooterBaseReveal
      logoText="Portofino"
      columns={[
        {
          title: "Explore",
          items: [
            {
              label: "Home",
              href: "#hero",
            },
            {
              label: "About Us",
              href: "#about",
            },
            {
              label: "Menu",
              href: "#menu",
            },
            {
              label: "Specials",
              href: "#features",
            },
          ],
        },
        {
          title: "Dine With Us",
          items: [
            {
              label: "Reservations",
              href: "#contact",
            },
            {
              label: "Contact",
              href: "#contact",
            },
            {
              label: "Gallery",
              href: "#hero",
            },
          ],
        },
        {
          title: "Legal",
          items: [
            {
              label: "Privacy Policy",
              href: "#",
            },
            {
              label: "Terms of Service",
              href: "#",
            },
          ],
        },
      ]}
      copyrightText="© 2024 Portofino. All rights reserved."
    />
  </div>
      </ReactLenis>
    </ThemeProvider>
  );
}
