"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: "#quality",
        },
        {
          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",
          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",
          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",
          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 Commitment to Dairy Excellence"
      metrics={[
        {
          icon: Sparkles,
          label: "Uncompromised Purity",
          value: "100%",
        },
        {
          icon: ShieldCheck,
          label: "Advanced Hygiene",
          value: "Automated",
        },
        {
          icon: Home,
          label: "Effortless Convenience",
          value: "Delivered",
        },
      ]}
      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.9%",
          title: "On-Time Deliveries",
          description: "Consistently delivering fresh milk to your doorstep, exactly when you expect it.",
          imageSrc: "http://img.b2bpic.net/free-photo/front-view-surprised-man-holding-up-mark-dark-isolated-wall_140725-95686.jpg",
          imageAlt: "Satisfied customer with on-time delivery metric",
        },
        {
          id: "m2",
          value: "10,000+",
          title: "Happy Customers",
          description: "Thousands of families trust PureDrop for their daily source of pure and healthy dairy.",
          imageSrc: "http://img.b2bpic.net/free-photo/man-inspecting-bottle-milk-grocery-store_23-2148216106.jpg",
          imageAlt: "Daily fresh milk deliveries graphic",
        },
        {
          id: "m3",
          value: "ISO Certified",
          title: "Unmatched Quality",
          description: "Adhering to the highest international standards for purity and food safety.",
          imageSrc: "http://img.b2bpic.net/free-photo/still-life-classic-bottles-milk_52683-129408.jpg",
          imageAlt: "Quality certification badge",
        },
      ]}
      title="Trusted by Families, Driven by Innovation"
      description="See how PureDrop Dairy is setting new benchmarks in quality, service, and customer satisfaction, delivering excellence every single day."
    />
  </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",
      ]}
      title="Partnerships that Elevate Quality"
      description="We collaborate with industry leaders and certified bodies to ensure every drop meets global standards, guaranteeing excellence and trust in our products."
      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: "Sarah Johnson",
          role: "CEO",
          company: "TechCorp",
          rating: 5,
          imageSrc: "http://img.b2bpic.net/free-photo/beautiful-business-woman-office-by-window_1303-21129.jpg",
          imageAlt: "Sarah Johnson",
        },
        {
          id: "2",
          name: "Michael Chen",
          role: "CTO",
          company: "InnovateLab",
          rating: 5,
          imageSrc: "http://img.b2bpic.net/free-photo/solar-panels-industry-technician-high-tech-factory-inspection-quality-control-production_482257-132256.jpg",
          imageAlt: "Michael Chen",
        },
        {
          id: "3",
          name: "Emily Rodriguez",
          role: "Marketing Director",
          company: "GrowthCo",
          rating: 5,
          imageSrc: "http://img.b2bpic.net/free-photo/portrait-waitress-standing-with-disposable-coffee-cup_107420-12313.jpg",
          imageAlt: "Emily Rodriguez",
        },
        {
          id: "4",
          name: "David Kim",
          role: "Product Manager",
          company: "StartupXYZ",
          rating: 5,
          imageSrc: "http://img.b2bpic.net/free-photo/close-up-portrait-young-handsome-successful-man_1163-5475.jpg",
          imageAlt: "David Kim",
        },
        {
          id: "5",
          name: "Aisha Khan",
          role: "Homemaker",
          company: "Lahore Families",
          rating: 5,
          imageSrc: "http://img.b2bpic.net/free-photo/expressive-young-girl-posing-studio_176474-69623.jpg",
          imageAlt: "Aisha Khan",
        },
      ]}
      kpiItems={[
        {
          value: "99%",
          label: "Delivery Score",
        },
        {
          value: "5-Star",
          label: "Avg Rating",
        },
        {
          value: "0%",
          label: "Adulteration",
        },
      ]}
      title="What Our Customers Say About PureDrop Dairy"
      description="Real stories from families who trust us for their daily dose of purity and freshness, experiencing the true difference in every delivery."
    />
  </div>

  <div id="faq" data-section="faq">
      <FaqDouble
      textboxLayout="default"
      useInvertedBackground={true}
      faqs={[
        {
          id: "faq1",
          title: "How is PureDrop milk different from others?",
          content: "PureDrop uses automated milking and a strict cold chain to ensure unmatched purity, hygiene, and freshness without any human contact from farm to bottle.",
        },
        {
          id: "faq2",
          title: "What are your delivery areas and times?",
          content: "We deliver to major cities. You can check your specific area and available delivery slots by entering your address on our website during the order process.",
        },
        {
          id: "faq3",
          title: "Are your cows grass-fed and hormone-free?",
          content: "Yes, our cows are raised in ethical, sustainable environments, enjoy lush pastures, and are never given artificial hormones or unnecessary antibiotics.",
        },
        {
          id: "faq4",
          title: "Can I modify or cancel my subscription?",
          content: "Absolutely. You can easily manage your subscriptions, modify orders, or cancel anytime through your personalized account dashboard on our website.",
        },
        {
          id: "faq5",
          title: "What measures do you take for hygiene?",
          content: "Our automated milking process eliminates human contact, and all equipment is sterilized daily. Milk is untouched and sealed until it reaches your home.",
        },
        {
          id: "faq6",
          title: "Do you offer organic certified products?",
          content: "Yes, a selection of our products are sourced from certified organic farms, meeting stringent standards for organic dairy production. Look for the organic badge.",
        },
      ]}
      title="Your Questions, Our Transparent Answers"
      description="Find quick solutions to common queries about our dairy products, delivery, and services, ensuring complete peace of mind."
      faqsAnimation="slide-up"
    />
  </div>

  <div id="contact" data-section="contact">
      <ContactCTA
      useInvertedBackground={false}
      background={{
        variant: "radial-gradient",
      }}
      tag="Daily Freshness Awaits"
      title="Ready to Experience PureDrop Dairy?"
      description="Join the PureDrop family today and enjoy the taste of uncompromised purity and convenience delivered right to your doorstep. Start your journey to healthier living."
      buttons={[
        {
          text: "Get Started Now",
          href: "#products",
        },
        {
          text: "Contact Support",
          href: "mailto:support@puredrop.com",
        },
      ]}
    />
  </div>

  <div id="footer" data-section="footer">
      <FooterBaseReveal
      logoText="PureDrop"
      columns={[
        {
          title: "Quick Links",
          items: [
            {
              label: "Home",
              href: "#home",
            },
            {
              label: "Features",
              href: "#features",
            },
            {
              label: "Products",
              href: "#products",
            },
          ],
        },
        {
          title: "Company",
          items: [
            {
              label: "About Us",
              href: "#about",
            },
            {
              label: "Our Quality",
              href: "#quality",
            },
            {
              label: "Testimonials",
              href: "#testimonials",
            },
          ],
        },
        {
          title: "Support",
          items: [
            {
              label: "FAQs",
              href: "#faq",
            },
            {
              label: "Contact Us",
              href: "#contact",
            },
            {
              label: "Privacy Policy",
              href: "#",
            },
          ],
        },
      ]}
      copyrightText="© 2024 PureDrop Dairy. All rights reserved."
    />
  </div>
      </ReactLenis>
    </ThemeProvider>
  );
}
