"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleCentered from '@/components/navbar/NavbarStyleCentered/NavbarStyleCentered';
import HeroSplitKpi from '@/components/sections/hero/HeroSplitKpi';
import InlineImageSplitTextAbout from '@/components/sections/about/InlineImageSplitTextAbout';
import FeatureBorderGlow from '@/components/sections/feature/featureBorderGlow/FeatureBorderGlow';
import TestimonialCardThirteen from '@/components/sections/testimonial/TestimonialCardThirteen';
import ContactCenter from '@/components/sections/contact/ContactCenter';
import FaqBase from '@/components/sections/faq/FaqBase';
import FooterCard from '@/components/sections/footer/FooterCard';
import { Cake, Coffee, ShoppingBag, Phone, MapPin, Mail, Star } from 'lucide-react';

export default function LandingPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="icon-arrow"
      defaultTextAnimation="entrance-slide"
      borderRadius="soft"
      contentWidth="mediumLarge"
      sizing="medium"
      background="noise"
      cardStyle="solid"
      primaryButtonStyle="flat"
      secondaryButtonStyle="layered"
      headingFontWeight="extrabold"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleCentered
          brandName="Roy Sweet"
          navItems={[
            { name: "About", id: "about" },
            { name: "Services", id: "services" },
            { name: "Reviews", id: "reviews" },
            { name: "Location", id: "location" },
            { name: "Contact", id: "contact" }
          ]}
          button={{
            text: "Call Now",            href: "tel:097333-62735"
          }}
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroSplitKpi
          title="Fresh & Authentic Bengali Sweets in Betai"
          description="Serving quality sweets and snacks with traditional Bengali flavor since generations. Your trusted local sweet shop for all occasions."
          tag="⭐ 3.8 Rating (40+ reviews)"
          tagIcon={Star}
          background={{ variant: "plain" }}
          kpis={[
            { value: "3.8★", label: "40+ Happy Customers" },
            { value: "10PM", label: "Open Until Late" },
            { value: "Local", label: "Betai, Nadia" }
          ]}
          enableKpiAnimation={true}
          buttons={[
            { text: "📞 Call Now", href: "tel:097333-62735" },
            { text: "📍 Get Directions", href: "https://maps.google.com/?q=Roy+Sweet+Betai" }
          ]}
          mediaAnimation="slide-up"
          imageSrc="http://img.b2bpic.net/free-photo/high-angle-delicious-indian-dessert-plate_23-2149312393.jpg"
          imageAlt="Fresh Bengali sweets display"
          imagePosition="right"
        />
      </div>

      <div id="about" data-section="about">
        <InlineImageSplitTextAbout
          heading={[
            { type: "text", content: "About" },
            { type: "text", content: "Roy Sweet" }
          ]}
          useInvertedBackground={false}
          buttons={[
            { text: "Know More", href: "#services" }
          ]}
          buttonAnimation="slide-up"
        />
      </div>

      <div id="services" data-section="services">
        <FeatureBorderGlow
          title="What We Offer"
          description="Discover our authentic Bengali sweets, traditional snacks, and quality general store essentials"
          features={[
            {
              icon: Cake,
              title: "Fresh Bengali Sweets",              description: "Authentic rasgulla, sandesh, mishti doi, and more made fresh daily with traditional recipes and premium ingredients"
            },
            {
              icon: Coffee,
              title: "Snacks & Evening Items",              description: "Quality evening snacks including traditional namkeen, samosas, and light refreshments perfect for tea time"
            },
            {
              icon: ShoppingBag,
              title: "General Store Essentials",              description: "Daily household items and groceries conveniently available alongside your favorite sweets and snacks"
            }
          ]}
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
          buttons={[
            { text: "Order Now", href: "tel:097333-62735" }
          ]}
          buttonAnimation="slide-up"
        />
      </div>

      <div id="reviews" data-section="reviews">
        <TestimonialCardThirteen
          testimonials={[
            {
              id: "1",              name: "Priya Dey",              handle: "@priya_dey",              testimonial: "They are very humble and their sweets feel like real Bengali flavour. Best quality in the area!",              rating: 5,
              imageSrc: "http://img.b2bpic.net/free-photo/young-businesswoman-portrait-office_1262-1506.jpg",              imageAlt: "Priya Dey"
            },
            {
              id: "2",              name: "Rajesh Kumar",              handle: "@rajesh_k",              testimonial: "Very good place to take some snacks. Fresh items and friendly service. Highly recommended!",              rating: 5,
              imageSrc: "http://img.b2bpic.net/free-photo/smiling-businessman-standing-airport_107420-85035.jpg",              imageAlt: "Rajesh Kumar"
            },
            {
              id: "3",              name: "Anita Chatterjee",              handle: "@anita_c",              testimonial: "Not very famous but good quality food. The sweets taste authentic and homemade.",              rating: 4,
              imageSrc: "http://img.b2bpic.net/free-photo/positive-confident-businesswoman-wearing-formal-suit-standing-with-arms-folded_74855-10328.jpg",              imageAlt: "Anita Chatterjee"
            },
            {
              id: "4",              name: "Suresh Gupta",              handle: "@suresh_g",              testimonial: "Perfect for family gatherings and events. Quick delivery and excellent service!",              rating: 5,
              imageSrc: "http://img.b2bpic.net/free-photo/portrait-businessman-conference-room-thinking-about-future_482257-25787.jpg",              imageAlt: "Suresh Gupta"
            }
          ]}
          showRating={true}
          title="What Our Customers Say"
          description="Trusted by families in Betai and nearby areas for quality and authentic taste"
          textboxLayout="default"
          useInvertedBackground={false}
          animationType="slide-up"
        />
      </div>

      <div id="location" data-section="location">
        <ContactCenter
          tag="📍 Visit Us"
          title="Find Roy Sweet"
          description="Vill Betai, PO Betai, PS Tehatta, Dis Nadia, West Bengal 741163 | Open until 10 PM daily"
          background={{ variant: "plain" }}
          useInvertedBackground={false}
          inputPlaceholder="Enter your email"
          buttonText="Get Directions"
          termsText="Click to open directions in Google Maps"
        />
      </div>

      <div id="contact" data-section="contact">
        <FaqBase
          title="Frequently Asked Questions"
          description="Quick answers to common questions about Roy Sweet"
          textboxLayout="default"
          useInvertedBackground={false}
          faqsAnimation="slide-up"
          animationType="smooth"
          faqs={[
            {
              id: "1",              title: "What are your delivery options?",              content: "We offer local delivery within Betai and nearby areas. Contact us at 097333-62735 to place an order for delivery."
            },
            {
              id: "2",              title: "Can I order sweets for events?",              content: "Yes! We specialize in bulk orders for weddings, pujas, birthdays, and other celebrations. Call us to discuss your requirements and get a custom quote."
            },
            {
              id: "3",              title: "What are your opening hours?",              content: "We are open daily until 10 PM. We serve fresh sweets and snacks throughout the day. Visit us or call for our exact opening time."
            },
            {
              id: "4",              title: "Do you make sweets fresh every day?",              content: "Absolutely! All our Bengali sweets are made fresh daily using traditional recipes and premium quality ingredients to ensure authentic taste."
            },
            {
              id: "5",              title: "How can I contact you?",              content: "You can reach us at 097333-62735. Our team is ready to help with orders, bulk inquiries, or any questions about our products and services."
            },
            {
              id: "6",              title: "Do you have general store items?",              content: "Yes, we stock daily household essentials and groceries alongside our sweets and snacks for your convenience."
            }
          ]}
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterCard
          logoText="Roy Sweet (রয় সুইট)"
          copyrightText="© 2025 Roy Sweet Betai | Fresh Bengali Sweets & General Store"
          socialLinks={[
            {
              icon: Phone,
              href: "tel:097333-62735",              ariaLabel: "Call us"
            },
            {
              icon: MapPin,
              href: "https://maps.google.com/?q=Roy+Sweet+Betai",              ariaLabel: "Get directions"
            },
            {
              icon: Mail,
              href: "mailto:roysweet@local.com",              ariaLabel: "Email us"
            }
          ]}
        />
      </div>
    </ThemeProvider>
  );
}
