"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import ReactLenis from "lenis/react";
import AboutMetric from '@/components/sections/about/AboutMetric';
import ContactCTA from '@/components/sections/contact/ContactCTA';
import FaqDouble from '@/components/sections/faq/FaqDouble';
import FeatureCardTwentySeven from '@/components/sections/feature/FeatureCardTwentySeven';
import FooterBaseReveal from '@/components/sections/footer/FooterBaseReveal';
import HeroCarouselLogo from '@/components/sections/hero/heroCarouselLogo/HeroCarouselLogo';
import MetricCardEleven from '@/components/sections/metrics/MetricCardEleven';
import NavbarLayoutFloatingOverlay from '@/components/navbar/NavbarLayoutFloatingOverlay/NavbarLayoutFloatingOverlay';
import ProductCardTwo from '@/components/sections/product/ProductCardTwo';
import SocialProofOne from '@/components/sections/socialProof/SocialProofOne';
import TestimonialCardSixteen from '@/components/sections/testimonial/TestimonialCardSixteen';
import { Home, ShieldCheck, Sparkles } from "lucide-react";

export default function LandingPage() {
  return (
    <ThemeProvider
        defaultButtonVariant="elastic-effect"
        defaultTextAnimation="reveal-blur"
        borderRadius="rounded"
        contentWidth="compact"
        sizing="largeSmallSizeMediumTitles"
        background="none"
        cardStyle="gradient-mesh"
        primaryButtonStyle="primary-glow"
        secondaryButtonStyle="solid"
        headingFontWeight="light"
    >
      <ReactLenis root>
  <div id="nav" data-section="nav">
      <NavbarLayoutFloatingOverlay
      navItems={[
        {
          name: "Home",          id: "#home"},
        {
          name: "Features",          id: "#features"},
        {
          name: "Products",          id: "#products"},
        {
          name: "Quality",          id: "#metrics"},
        {
          name: "Testimonials",          id: "#testimonials"},
        {
          name: "Contact",          id: "#contact"},
      ]}
      brandName="PureDrop Dairy"
      button={{
        text: "Order Now",        href: "#products"}}
    />
  </div>

  <div id="home" data-section="home">
      <HeroCarouselLogo
      logoText="PureDrop"
      description="Delivering Farm-Fresh Purity, Daily. Experience the Future of Dairy with Unmatched Hygiene and Convenience."
      buttons={[
        {
          text: "Order Now",          href: "#products"},
        {
          text: "Learn More",          href: "#features"},
      ]}
      slides={[
        {
          imageSrc: "http://img.b2bpic.net/free-photo/plant-picture-clean-room-equipment-stainless-steel-machines_645730-425.jpg",          imageAlt: "Automated milking robots in a pristine dairy farm"},
        {
          imageSrc: "http://img.b2bpic.net/free-photo/close-up-man-with-bottle-goats-milk_23-2148673055.jpg?_wi=1",          imageAlt: "Fresh milk bottles on a clean countertop"},
        {
          imageSrc: "http://img.b2bpic.net/free-photo/front-view-male-courier-blue-uniform-taking-selfie-with-coffee-cups-pink-wall-worker-uniform-service-delivery_140725-32960.jpg?_wi=1",          imageAlt: "Person receiving milk delivery at doorstep"},
        {
          imageSrc: "http://img.b2bpic.net/free-photo/glass-milk-natural-background_93675-128773.jpg",          imageAlt: "Healthy cows grazing in a vibrant green meadow"},
        {
          imageSrc: "http://img.b2bpic.net/free-photo/pouring-milk-insida-glass_23-2148211430.jpg?_wi=1",          imageAlt: "Milk quality testing in a modern sterile laboratory"},
        {
          imageSrc: "http://img.b2bpic.net/free-photo/mother-son_23-2148079558.jpg",          imageAlt: "Family enjoying breakfast with fresh milk"},
      ]}
      autoplayDelay={4000}
      showDimOverlay={true}
    />
  </div>

  <div id="about" data-section="about">
      <AboutMetric
      useInvertedBackground={true}
      title="Our Story: From Lush Farms to Your Table with Unmatched Hygiene"
      metrics={[
        {
          icon: ShieldCheck,
          label: "Advanced Farm Hygiene",          value: "Zero-Touch"},
        {
          icon: Sparkles,
          label: "Pristine Dairy Process",          value: "Lab Tested"},
        {
          icon: Home,
          label: "Ethical Farming Practices",          value: "Sustainable"},
      ]}
      metricsAnimation="slide-up"
    />
  </div>

  <div id="features" data-section="features">
      <FeatureCardTwentySeven
      animationType="slide-up"
      textboxLayout="split"
      useInvertedBackground={false}
      features={[
        {
          id: "automated-milking",          title: "Automated Milking Technology",          descriptions: [
            "Hygienic, touch-free milking ensures milk is never exposed to human hands.",            "Advanced sensors monitor cow health and milk quality in real-time."],
          imageSrc: "http://img.b2bpic.net/free-photo/domestic-animals-eating-hay-cattle-farm_342744-888.jpg",          imageAlt: "Automated milking robots milking cows"},
        {
          id: "cold-chain-logistics",          title: "Seamless Cold Chain Logistics",          descriptions: [
            "Milk is chilled immediately after milking and maintained at optimal temperatures.",            "Specialized refrigerated vehicles ensure freshness during transit to your home."],
          imageSrc: "http://img.b2bpic.net/free-photo/cheerful-asian-female-holding-bottle-milk-supermarket_23-2148216110.jpg",          imageAlt: "Refrigerated truck for milk delivery"},
        {
          id: "sustainable-farming",          title: "Sustainable & Ethical Farming",          descriptions: [
            "Our farms adhere to sustainable practices, caring for the environment and animals.",            "Happy, healthy cows mean higher quality, purer milk for your family."],
          imageSrc: "http://img.b2bpic.net/free-photo/side-view-senior-drinking-goat-milk_23-2148673014.jpg",          imageAlt: "Cows grazing in a green, sustainable farm"},
      ]}
      title="Advanced Dairy Process: Purity from Farm to Table"
      description="Our commitment extends beyond just milk; it’s about a complete experience built on technology, sustainability, and uncompromising standards, ensuring every drop is perfect."
    />
  </div>

  <div id="products" data-section="products">
      <ProductCardTwo
      animationType="slide-up"
      textboxLayout="default"
      gridVariant="three-columns-all-equal-width"
      useInvertedBackground={true}
      carouselMode="buttons"
      products={[
        {
          id: "product-1",          brand: "PureDrop",          name: "Pure Cow Milk",          price: "PKR 150/L",          rating: 5,
          reviewCount: "245 Reviews",          imageSrc: "http://img.b2bpic.net/free-photo/small-bottle-yummy-dairy_23-2147895692.jpg",          imageAlt: "Glass bottle of Pure Cow Milk"},
        {
          id: "product-2",          brand: "PureDrop",          name: "Creamy Buffalo Milk",          price: "PKR 180/L",          rating: 5,
          reviewCount: "180 Reviews",          imageSrc: "http://img.b2bpic.net/free-photo/cow-head-ai-generated_268835-18708.jpg",          imageAlt: "Glass bottle of Creamy Buffalo Milk"},
        {
          id: "product-3",          brand: "PureDrop",          name: "Artisanal Yogurt",          price: "PKR 250/500g",          rating: 4,
          reviewCount: "120 Reviews",          imageSrc: "http://img.b2bpic.net/free-photo/composition-delicious-breakfast-meal-with-yogurt_23-2148894747.jpg",          imageAlt: "Elegant container of Artisanal Yogurt"},
        {
          id: "product-4",          brand: "PureDrop",          name: "Fresh Paneer",          price: "PKR 400/250g",          rating: 5,
          reviewCount: "95 Reviews",          imageSrc: "http://img.b2bpic.net/free-photo/high-angle-view-tomatoes-cutting-board-with-knife-green-pepper-lemon-cucumber-cheese-greens-gray-surface_176474-6447.jpg",          imageAlt: "Blocks of Fresh Paneer on a wooden board"},
        {
          id: "product-5",          brand: "PureDrop",          name: "Traditional Ghee",          price: "PKR 1200/500g",          rating: 5,
          reviewCount: "70 Reviews",          imageSrc: "http://img.b2bpic.net/free-photo/close-up-hand-mixing-jar-filled-with-homemade-lemonade_23-2148431461.jpg",          imageAlt: "Golden jar of Traditional Ghee"},
        {
          id: "product-6",          brand: "PureDrop",          name: "Healthy Skim Milk",          price: "PKR 130/L",          rating: 4,
          reviewCount: "50 Reviews",          imageSrc: "http://img.b2bpic.net/free-photo/delicious-yogurt-concept-plate_23-2148775709.jpg",          imageAlt: "Modern carton of Healthy Skim Milk"},
      ]}
      title="Discover Our Range of Premium Dairy Products"
      description="From wholesome cow milk to rich buffalo milk and specialized dairy items, PureDrop ensures freshness and quality in every drop for your daily needs."
    />
  </div>

  <div id="metrics" data-section="metrics">
      <MetricCardEleven
      animationType="slide-up"
      textboxLayout="default"
      useInvertedBackground={false}
      metrics={[
        {
          id: "m1",          value: "99.99%",          title: "Purity Score",          description: "Each batch lab-tested for unparalleled cleanliness and freedom from contaminants.",          imageSrc: "http://img.b2bpic.net/free-photo/pouring-milk-insida-glass_23-2148211430.jpg?_wi=2",          imageAlt: "Milk quality testing in a modern sterile laboratory"},
        {
          id: "m2",          value: "100%",          title: "Quality Adherence",          description: "Strictly compliant with international food safety and dairy production standards.",          imageSrc: "http://img.b2bpic.net/free-photo/close-up-man-with-bottle-goats-milk_23-2148673055.jpg?_wi=2",          imageAlt: "Daily fresh milk deliveries graphic"},
        {
          id: "m3",          value: "Daily",          title: "Freshness Assurance",          description: "Milk from farm to your doorstep within hours, guaranteeing maximum freshness.",          imageSrc: "http://img.b2bpic.net/free-photo/front-view-male-courier-blue-uniform-taking-selfie-with-coffee-cups-pink-wall-worker-uniform-service-delivery_140725-32960.jpg?_wi=2",          imageAlt: "Quality certification badge"},
      ]}
      title="Our Commitment to Purity & Quality"
      description="Dedicated to delivering the safest and freshest dairy, backed by rigorous standards and continuous innovation."
    />
  </div>

  <div id="social-proof" data-section="social-proof">
      <SocialProofOne
      textboxLayout="default"
      useInvertedBackground={true}
      names={[
        "ISO Certified",        "Organic Farm Alliance",        "Food Safety Regulators",        "Dairy Tech Innovations",        "Sustainability Council",        "Quality Assurance Body",        "Nutrition Standards",        "Healthy Livestock Program"
      ]}
      title="Certifications & Trusted Partnerships"
      description="Our dedication to quality is affirmed by leading industry certifications and collaborations with esteemed agricultural and food safety organizations."
      speed={60}
      showCard={false}
    />
  </div>

  <div id="testimonials" data-section="testimonials">
      <TestimonialCardSixteen
      animationType="depth-3d"
      textboxLayout="default"
      useInvertedBackground={false}
      carouselMode="auto"
      testimonials={[
        {
          id: "1",          name: "Dr. Anya Sharma",          role: "Nutritionist & Health Advocate",          company: "Wellness Institute",          rating: 5,
          imageSrc: "http://img.b2bpic.net/free-photo/beautiful-business-woman-office-by-window_1303-21129.jpg",          imageAlt: "Dr. Anya Sharma"},
        {
          id: "2",          name: "Mr. Omar Hassan",          role: "Restaurant Owner",          company: "The Gourmet Kitchen",          rating: 5,
          imageSrc: "http://img.b2bpic.net/free-photo/solar-panels-industry-technician-high-tech-factory-inspection-quality-control-production_482257-132256.jpg",          imageAlt: "Mr. Omar Hassan"},
        {
          id: "3",          name: "Mrs. Zoya Ali",          role: "Culinary Blogger",          company: "Flavorful Life Blog",          rating: 5,
          imageSrc: "http://img.b2bpic.net/free-photo/portrait-waitress-standing-with-disposable-coffee-cup_107420-12313.jpg",          imageAlt: "Mrs. Zoya Ali"},
        {
          id: "4",          name: "Mr. Bilal Khan",          role: "Dairy Industry Veteran",          company: "Apex Dairy Solutions",          rating: 5,
          imageSrc: "http://img.b2bpic.net/free-photo/close-up-portrait-young-handsome-successful-man_1163-5475.jpg",          imageAlt: "Mr. Bilal Khan"},
        {
          id: "5",          name: "Ms. Zara Noor",          role: "Parent & Educator",          company: "Happy Homes Community",          rating: 5,
          imageSrc: "http://img.b2bpic.net/free-photo/expressive-young-girl-posing-studio_176474-69623.jpg",          imageAlt: "Ms. Zara Noor"},
      ]}
      kpiItems={[
        {
          value: "99%",          label: "Delivery Score"},
        {
          value: "5-Star",          label: "Avg Rating"},
        {
          value: "0%",          label: "Adulteration"},
      ]}
      title="Hear From Our Premium Dairy Connoisseurs"
      description="Discerning customers share their experiences with PureDrop Dairy, highlighting our commitment to excellence, purity, and exceptional service."
    />
  </div>

  <div id="faq" data-section="faq">
      <FaqDouble
      textboxLayout="default"
      useInvertedBackground={true}
      faqs={[
        {
          id: "faq1",          title: "What makes PureDrop milk exceptionally hygienic?",          content: "Our state-of-the-art automated milking systems ensure zero human contact from the cow to the bottle, minimizing contamination risks. All equipment is thoroughly sterilized daily."},
        {
          id: "faq2",          title: "How is milk quality ensured from farm to delivery?",          content: "We implement a strict cold chain protocol, immediately chilling milk to optimal temperatures after milking and transporting it in specialized refrigerated vehicles to maintain its pristine quality."},
        {
          id: "faq3",          title: "Do you offer organic or specialty dairy products?",          content: "Yes, we have a selection of certified organic milk and other specialty dairy products like artisanal yogurt and premium ghee, all adhering to the highest standards."},
        {
          id: "faq4",          title: "What are your delivery options and scheduling?",          content: "We offer flexible daily delivery schedules across our service areas. You can easily manage your preferred delivery times and frequency through your online PureDrop account."},
        {
          id: "faq5",          title: "How does PureDrop support sustainable farming?",          content: "Our partner farms prioritize animal welfare, sustainable land management, and responsible resource use, ensuring both environmental health and the well-being of our dairy cows."},
        {
          id: "faq6",          title: "Can I track my order or manage my subscription?",          content: "Yes, our user-friendly platform allows you to track your delivery in real-time, modify future orders, pause subscriptions, or update your preferences with ease."},
      ]}
      title="Your Dairy Questions, Answered with Clarity"
      description="Explore comprehensive answers to frequently asked questions about PureDrop Dairy's processes, products, and services."
      faqsAnimation="slide-up"
    />
  </div>

  <div id="contact" data-section="contact">
      <ContactCTA
      useInvertedBackground={false}
      background={{
        variant: "radial-gradient"}}
      tag="Seamless Ordering & Dedicated Support"
      title="Experience the Freshness: Order Your PureDrop Dairy Today!"
      description="Ready for daily doses of purity and taste? Place your order now for convenient home delivery or reach out to our team for any assistance regarding products or services."
      buttons={[
        {
          text: "Start Your Order",          href: "#products"},
        {
          text: "Check Delivery Area",          href: "#faq"},
      ]}
    />
  </div>

  <div id="footer" data-section="footer">
      <FooterBaseReveal
      logoText="PureDrop Dairy Hub"
      columns={[
        {
          title: "Quick Links",          items: [
            {
              label: "Home",              href: "#home"},
            {
              label: "Products",              href: "#products"},
            {
              label: "Order Now",              href: "#products"},
          ],
        },
        {
          title: "Company",          items: [
            {
              label: "Our Story",              href: "#about"},
            {
              label: "Quality Standards",              href: "#metrics"},
            {
              label: "Customer Reviews",              href: "#testimonials"},
          ],
        },
        {
          title: "Support",          items: [
            {
              label: "FAQs",              href: "#faq"},
            {
              label: "Delivery & Contact",              href: "#contact"},
            {
              label: "Privacy Policy",              href: "#"},
          ],
        },
      ]}
      copyrightText="© 2024 PureDrop Dairy Hub. All rights reserved."
    />
  </div>
      </ReactLenis>
    </ThemeProvider>
  );
}
