"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleApple from "@/components/navbar/NavbarStyleApple/NavbarStyleApple";
import HeroLogoBillboard from "@/components/sections/hero/HeroLogoBillboard";
import MetricCardOne from "@/components/sections/metrics/MetricCardOne";
import FeatureCardMedia from "@/components/sections/feature/FeatureCardMedia";
import ProductCardOne from "@/components/sections/product/ProductCardOne";
import TestimonialCardOne from "@/components/sections/testimonial/TestimonialCardOne";
import ContactSplit from "@/components/sections/contact/ContactSplit";
import FooterCard from "@/components/sections/footer/FooterCard";
import { Star, MapPin, Clock, Phone, Mail } from "lucide-react";

export default function LandingPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="icon-arrow"
      defaultTextAnimation="reveal-blur"
      borderRadius="soft"
      contentWidth="mediumLarge"
      sizing="largeSmall"
      background="noise"
      cardStyle="inset"
      primaryButtonStyle="radial-glow"
      secondaryButtonStyle="radial-glow"
      headingFontWeight="normal"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleApple
          brandName="Candy Restaurant"
          navItems={[
            { name: "Home", id: "home" },
            { name: "Menu", id: "menu-highlights" },
            { name: "About", id: "about" },
            { name: "Contact", id: "contact" },
            { name: "Order Now", id: "tel:01797-149178" },
          ]}
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroLogoBillboard
          logoText="Candy Restaurant & Biryani House"
          description="Fresh • Authentic • Affordable. Best Biryani in Nandalalpur Since 2015. Serving delicious traditional biryani and restaurant favorites with quality ingredients and authentic recipes."
          buttons={[
            { text: "📞 Call Now", href: "tel:01797-149178" },
            { text: "🛵 Order Online", href: "#contact" },
          ]}
          background={{ variant: "sparkles-gradient" }}
          imageSrc="http://img.b2bpic.net/free-psd/authentic-chicken-biryani-served-traditional-earthenware-bowl_84443-64517.jpg"
          imageAlt="Delicious biryani from Candy Restaurant"
          frameStyle="card"
          buttonAnimation="slide-up"
          mediaAnimation="slide-up"
          className="w-full"
          containerClassName="space-y-8"
        />
      </div>

      <div id="info-bar" data-section="info-bar">
        <MetricCardOne
          title="Quick Info"
          description="Trust signals that matter to our customers"
          metrics={[
            {
              id: "rating",              value: "4.4",              title: "Stars",              description: "Google Rating (16 Reviews)",              icon: Star,
            },
            {
              id: "location",              value: "1",              title: "Location",              description: "Nandalalpur 3640, Bangladesh",              icon: MapPin,
            },
            {
              id: "hours",              value: "11",              title: "PM",              description: "Open Daily - Closes at 11 PM",              icon: Clock,
            },
          ]}
          gridVariant="uniform-all-items-equal"
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
          buttonAnimation="none"
        />
      </div>

      <div id="services" data-section="services">
        <FeatureCardMedia
          title="How You Can Enjoy Our Food"
          description="Multiple convenient ways to get authentic Candy Restaurant biryani and dishes"
          features={[
            {
              id: "dine-in",              title: "Dine-in",              description: "Enjoy our warm, family-friendly atmosphere with authentic traditional cuisine served fresh to your table",              tag: "Restaurant",              imageSrc: "http://img.b2bpic.net/free-photo/high-angle-pakistan-meal-composition_23-2148821517.jpg",              imageAlt: "Chicken Biryani",              buttons: [{ text: "Reserve Table", href: "tel:01797-149178" }],
            },
            {
              id: "drive-through",              title: "Drive-Through",              description: "Quick and convenient pickup service. Call ahead and pick up your order without leaving your vehicle",              tag: "Convenience",              imageSrc: "http://img.b2bpic.net/free-psd/flavorful-meat-biryani-white-bowl-overhead-view_84443-65122.jpg",              imageAlt: "Beef Biryani",              buttons: [{ text: "Order Now", href: "tel:01797-149178" }],
            },
            {
              id: "delivery",              title: "No-Contact Delivery",              description: "Safe and reliable delivery service directly to your home with fast turnaround times",              tag: "Delivery",              imageSrc: "http://img.b2bpic.net/free-photo/vertical-view-fresh-delicious-vegan-salad-various-organic-vegetables-with-knife-fork-various-spices_140725-136785.jpg",              imageAlt: "Vegetable Biryani",              buttons: [{ text: "Place Order", href: "tel:01797-149178" }],
            },
          ]}
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
          buttonAnimation="slide-up"
          tagAnimation="slide-up"
        />
      </div>

      <div id="menu-highlights" data-section="menu-highlights">
        <ProductCardOne
          title="Featured Menu Items"
          description="Signature dishes loved by our customers. Order your favorite today!"
          products={[
            {
              id: "1",              name: "Chicken Biryani",              price: "250 BDT",              imageSrc: "http://img.b2bpic.net/free-photo/high-angle-pakistan-meal-composition_23-2148821517.jpg",              imageAlt: "Delicious Chicken Biryani"},
            {
              id: "2",              name: "Beef Biryani",              price: "320 BDT",              imageSrc: "http://img.b2bpic.net/free-psd/flavorful-meat-biryani-white-bowl-overhead-view_84443-65122.jpg",              imageAlt: "Premium Beef Biryani"},
            {
              id: "3",              name: "Vegetable Biryani",              price: "180 BDT",              imageSrc: "http://img.b2bpic.net/free-photo/vertical-view-fresh-delicious-vegan-salad-various-organic-vegetables-with-knife-fork-various-spices_140725-136785.jpg",              imageAlt: "Fresh Vegetable Biryani"},
            {
              id: "4",              name: "Special Snacks Combo",              price: "150 BDT",              imageSrc: "http://img.b2bpic.net/free-photo/delicious-pakistani-food-with-sauce-flat-lay_23-2148825161.jpg",              imageAlt: "Crispy Snacks Combo"},
          ]}
          gridVariant="four-items-2x2-equal-grid"
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
          buttons={[{ text: "View Full Menu", href: "tel:01797-149178" }]}
          buttonAnimation="slide-up"
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardOne
          title="What Our Customers Say"
          description="Real feedback from people who love our authentic biryani and service"
          testimonials={[
            {
              id: "1",              name: "Fatima Ahmed",              role: "Student",              company: "Local Community",              rating: 5,
              imageSrc: "http://img.b2bpic.net/free-photo/smiling-man-sitting-cafe-table-gesturing_1262-1141.jpg",              imageAlt: "Fatima Ahmed - Happy Customer"},
            {
              id: "2",              name: "Karim Hassan",              role: "Office Worker",              company: "Business Professional",              rating: 5,
              imageSrc: "http://img.b2bpic.net/free-photo/smiling-beautiful-middle-aged-business-woman_1262-3085.jpg",              imageAlt: "Karim Hassan - Satisfied Customer"},
            {
              id: "3",              name: "Noor Fattah",              role: "Family Parent",              company: "Local Resident",              rating: 5,
              imageSrc: "http://img.b2bpic.net/free-photo/smiling-man-sitting-cafe-table-gesturing_1262-1141.jpg",              imageAlt: "Noor Fattah - Family Customer"},
            {
              id: "4",              name: "Salma Khan",              role: "Regular Customer",              company: "Nandalalpur",              rating: 5,
              imageSrc: "http://img.b2bpic.net/free-photo/smiling-woman-sitting-cafe-with-closed-laptop_1262-1151.jpg",              imageAlt: "Salma Khan - Loyal Customer"},
            {
              id: "5",              name: "Rashid Ali",              role: "Delivery Customer",              company: "Online Orders",              rating: 5,
              imageSrc: "http://img.b2bpic.net/free-photo/smiling-man-sitting-cafe-table-gesturing_1262-1141.jpg",              imageAlt: "Rashid Ali - Online Customer"},
            {
              id: "6",              name: "Aisha Rahman",              role: "Event Organizer",              company: "Catering Client",              rating: 5,
              imageSrc: "http://img.b2bpic.net/free-photo/smiling-woman-sitting-cafe-with-closed-laptop_1262-1151.jpg",              imageAlt: "Aisha Rahman - Catering Customer"},
          ]}
          gridVariant="uniform-all-items-equal"
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactSplit
          tag="Get In Touch"
          title="Ready to Order or Have Questions?"
          description="Contact us directly for orders, catering inquiries, or any questions. We're here to serve you!"
          tagAnimation="slide-up"
          background={{ variant: "radial-gradient" }}
          useInvertedBackground={false}
          inputPlaceholder="Enter your email"
          buttonText="Subscribe"
          termsText="By subscribing, you agree to receive order updates and special offers from Candy Restaurant."
          mediaAnimation="slide-up"
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterCard
          logoText="Candy Restaurant"
          copyrightText="© 2025 Candy Restaurant & Biryani House | Nandalalpur 3640 | Phone: 01797-149178"
          socialLinks={[
            {
              icon: Phone,
              href: "tel:01797-149178",              ariaLabel: "Call us"},
            {
              icon: MapPin,
              href: "#",              ariaLabel: "Visit us"},
            {
              icon: Mail,
              href: "mailto:info@candyrestaurant.bd",              ariaLabel: "Email us"},
          ]}
        />
      </div>
    </ThemeProvider>
  );
}
