"use client"

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleCentered from '@/components/navbar/NavbarStyleCentered/NavbarStyleCentered';
import HeroBillboard from '@/components/sections/hero/HeroBillboard';
import MetricCardEleven from '@/components/sections/metrics/MetricCardEleven';
import ProductCardFour from '@/components/sections/product/ProductCardFour';
import TextSplitAbout from '@/components/sections/about/TextSplitAbout';
import FeatureCardTwentySix from '@/components/sections/feature/FeatureCardTwentySix';
import TestimonialCardSix from '@/components/sections/testimonial/TestimonialCardSix';
import ContactCTA from '@/components/sections/contact/ContactCTA';
import FooterBase from '@/components/sections/footer/FooterBase';
import { Award, CheckCircle, Handshake, Package, Shield, Sparkles, Zap, Globe, Link as LinkIcon } from 'lucide-react';

export default function LandingPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="hover-magnetic"
      defaultTextAnimation="reveal-blur"
      borderRadius="rounded"
      contentWidth="mediumSmall"
      sizing="mediumSizeLargeTitles"
      background="blurBottom"
      cardStyle="glass-elevated"
      primaryButtonStyle="flat"
      secondaryButtonStyle="solid"
      headingFontWeight="light"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleCentered
          brandName="AgroEx Garlic"
          navItems={[
            { name: "Products", id: "products" },
            { name: "About", id: "about" },
            { name: "Quality", id: "quality" },
            { name: "Contact", id: "contact" }
          ]}
          button={{
            text: "Request Quote",            href: "#cta"
          }}
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroBillboard
          title="AgroEx Garlic: Exporting Uzbekistan's Finest to the World"
          description="Leading wholesale trade from Qumguzar to Europe and Central Asia with over $1.4 Million in annual export volume. Premium quality, certified organic, and global logistics excellence."
          background={{ variant: "sparkles-gradient" }}
          tag="Premium B2B Exporter"
          tagIcon={Sparkles}
          tagAnimation="slide-up"
          buttons={[
            { text: "Request a Wholesale Quote", href: "#cta" },
            { text: "Download Quality Certificates", href: "#quality" }
          ]}
          buttonAnimation="slide-up"
          imageSrc="http://img.b2bpic.net/free-vector/hand-drawn-elements-collection-st-patrick-s-day-celebration_23-2150150621.jpg"
          imageAlt="AgroEx Garlic Mascot - Friendly 3D garlic character wearing traditional Chust do'ppi"
          mediaAnimation="slide-up"
          ariaLabel="AgroEx Garlic Premium Export Landing Hero"
        />
      </div>

      <div id="trust-metrics" data-section="trust-metrics">
        <MetricCardEleven
          title="AgroEx Trust Credentials"
          description="Verified metrics demonstrating our commitment to excellence and global trade standards."
          tag="Active Trading"
          tagIcon={CheckCircle}
          tagAnimation="slide-up"
          metrics={[
            {
              id: "active-status",              value: "Active",              title: "Trading Status",              description: "Fully operational and registered with government authorities"
            },
            {
              id: "inn",              value: "311400556",              title: "INN Registration",              description: "Official Uzbekistan business identification number"
            },
            {
              id: "export-volume",              value: "$1.4M+",              title: "Annual Export Volume",              description: "Premium garlic shipments to international markets"
            },
            {
              id: "logistics",              value: "Global",              title: "Logistics Network",              description: "Reliable delivery to Europe, Central Asia, and beyond"
            }
          ]}
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
        />
      </div>

      <div id="products" data-section="products">
        <ProductCardFour
          title="Premium Garlic Product Line"
          description="Export-grade garlic varieties cultivated in Qumguzar using traditional methods and modern quality standards."
          tag="Organic & Certified"
          tagIcon={Award}
          tagAnimation="slide-up"
          products={[
            {
              id: "white-garlic",              name: "White Garlic Bulbs",              price: "Premium Grade",              variant: "Organic Certified",              imageSrc: "http://img.b2bpic.net/free-photo/new-harvest-big-violet-garlic-braid-wooden-background_23-2147916311.jpg",              imageAlt: "Premium white garlic bulbs organic certified"
            },
            {
              id: "garlic-cloves",              name: "Separated Cloves",              price: "Value Grade",              variant: "Peeled Ready",              imageSrc: "http://img.b2bpic.net/free-photo/flat-lay-garlic-wooden-table_176474-1543.jpg",              imageAlt: "Fresh separated garlic cloves ready for export"
            },
            {
              id: "packaged-garlic",              name: "Wholesale Packages",              price: "Bulk Export",              variant: "Crate Ready",              imageSrc: "http://img.b2bpic.net/free-photo/hands-grating-garlic-with-grater_1398-4453.jpg",              imageAlt: "Garlic wholesale packaging in export crates"
            }
          ]}
          gridVariant="three-columns-all-equal-width"
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground={true}
          buttons={[
            { text: "View Pricing", href: "#pricing" }
          ]}
          buttonAnimation="slide-up"
        />
      </div>

      <div id="about" data-section="about">
        <TextSplitAbout
          title="About AgroEx & Leadership"
          description={[
            "AgroEx Garlic is rooted in the fertile soils of Qumguzar MFY (Mahalle), Uzbekistan's premier garlic cultivation region. Under the visionary leadership of Yusupov Zoxid Akbaraliyevich, we have built a vertically integrated export operation that honors traditional agricultural practices while embracing modern international trade standards.",            "Our commitment extends beyond commerce—we believe in sustainable farming, fair trade practices, and delivering only the finest-grade garlic to our global partners. Every bulb exported carries our reputation for quality and reliability.",            "With INN 311400556 and government verification, AgroEx operates with full transparency and compliance. Our network spans Europe and Central Asia, connecting Uzbek agricultural excellence with discerning international buyers."
          ]}
          showBorder={true}
          useInvertedBackground={false}
          buttons={[
            { text: "Learn More About Qumguzar", href: "#" }
          ]}
          buttonAnimation="slide-up"
        />
      </div>

      <div id="export-capabilities" data-section="export-capabilities">
        <FeatureCardTwentySix
          title="Export Capabilities & Logistics Excellence"
          description="AgroEx manages the complete export value chain—from farm selection through final delivery—ensuring consistent quality and timely shipments worldwide."
          tag="Full Service Export"
          tagIcon={Zap}
          tagAnimation="slide-up"
          features={[
            {
              title: "Quality Selection",              description: "Hand-selected premium garlic bulbs meeting international export standards. Every shipment undergoes rigorous certification.",              imageSrc: "http://img.b2bpic.net/free-photo/new-harvest-big-violet-garlic-braid-wooden-background_23-2147916311.jpg",              imageAlt: "Premium quality garlic selection process",              buttonIcon: CheckCircle,
              buttonHref: "#quality"
            },
            {
              title: "Certified Packaging",              description: "Export-grade crating and packaging using food-safe materials. Compliance with all EU and international phytosanitary regulations.",              imageSrc: "http://img.b2bpic.net/free-photo/hands-grating-garlic-with-grater_1398-4453.jpg",              imageAlt: "Professional export packaging and crates",              buttonIcon: Package,
              buttonHref: "#"
            },
            {
              title: "Global Logistics",              description: "Reliable cold-chain shipping to Europe, Central Asia, and beyond. Real-time tracking and customs management for seamless delivery.",              imageSrc: "http://img.b2bpic.net/free-photo/hand-holding-shiny-planet-earth_1232-163.jpg",              imageAlt: "Global logistics and shipping network",              buttonIcon: Globe,
              buttonHref: "#"
            }
          ]}
          textboxLayout="default"
          useInvertedBackground={true}
          buttons={[
            { text: "Request Logistics Quote", href: "#cta" }
          ]}
          buttonAnimation="slide-up"
        />
      </div>

      <div id="quality" data-section="quality">
        <TestimonialCardSix
          title="Quality Assurance & Certifications"
          description="AgroEx holds full traceability from seed to export. Our certifications demonstrate unwavering commitment to food safety, sustainability, and international compliance."
          tag="Certified Excellence"
          tagIcon={Shield}
          tagAnimation="slide-up"
          testimonials={[
            {
              id: "cert-1",              name: "Organic Certification",              handle: "International Standard",              testimonial: "AgroEx garlic meets organic cultivation standards, free from synthetic pesticides and GMO modifications. Each batch certified by independent auditors.",              imageSrc: "http://img.b2bpic.net/free-photo/woman-holding-plant-tablet_23-2148579952.jpg",              imageAlt: "Organic certification document",              icon: Award
            },
            {
              id: "cert-2",              name: "Export Compliance",              handle: "Government Verified",              testimonial: "Full EU and USDA compliance. Phytosanitary certificates issued for all shipments. Cold-chain integrity maintained from warehouse to recipient.",              imageSrc: "http://img.b2bpic.net/free-photo/woman-holding-plant-tablet_23-2148579952.jpg",              imageAlt: "Export compliance certificate",              icon: CheckCircle
            },
            {
              id: "cert-3",              name: "Food Safety Standards",              handle: "HACCP Certified",              testimonial: "HACCP protocols integrated throughout cultivation, harvest, processing, and packaging. Third-party lab testing confirms microbiological safety standards.",              imageSrc: "http://img.b2bpic.net/free-photo/woman-holding-plant-tablet_23-2148579952.jpg",              imageAlt: "Food safety certification badge",              icon: Shield
            },
            {
              id: "cert-4",              name: "Traceability Guarantee",              handle: "Farm to Table",              testimonial: "Complete supply chain documentation. Every shipment linked to specific harvest dates, field locations, and quality test results for full transparency.",              imageSrc: "http://img.b2bpic.net/free-photo/woman-holding-plant-tablet_23-2148579952.jpg",              imageAlt: "Traceability documentation",              icon: LinkIcon
            }
          ]}
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
          speed={40}
          topMarqueeDirection="left"
        />
      </div>

      <div id="cta" data-section="cta">
        <ContactCTA
          tag="Ready to Partner"
          tagIcon={Handshake}
          tagAnimation="slide-up"
          title="Request Your Wholesale Quote Today"
          description="Connect with our export specialists to discuss bulk orders, pricing, logistics arrangements, and long-term partnership opportunities. AgroEx is committed to becoming your trusted Uzbek garlic supplier."
          buttons={[
            { text: "Request a Quote", href: "mailto:export@agroex-garlic.uz" },
            { text: "Download Price List", href: "#" }
          ]}
          buttonAnimation="slide-up"
          background={{ variant: "radial-gradient" }}
          useInvertedBackground={true}
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterBase
          logoText="AgroEx Garlic"
          copyrightText="© 2025 AgroEx Garlic MCHJ | INN: 311400556 | Qumguzar, Uzbekistan"
          columns={[
            {
              title: "Company",              items: [
                { label: "About Us", href: "#about" },
                { label: "Products", href: "#products" },
                { label: "Quality", href: "#quality" },
                { label: "Export Network", href: "#export-capabilities" }
              ]
            },
            {
              title: "Support",              items: [
                { label: "Request Quote", href: "#cta" },
                { label: "Download Certificates", href: "#" },
                { label: "Logistics Info", href: "#" },
                { label: "Contact Sales", href: "#cta" }
              ]
            },
            {
              title: "Legal",              items: [
                { label: "Terms & Conditions", href: "#" },
                { label: "Privacy Policy", href: "#" },
                { label: "Export Regulations", href: "#" },
                { label: "Certifications", href: "#quality" }
              ]
            },
            {
              title: "Contact",              items: [
                { label: "Email: export@agroex.uz", href: "mailto:export@agroex.uz" },
                { label: "Qumguzar MFY, Uzbekistan", href: "#" },
                { label: "INN: 311400556", href: "#" },
                { label: "Global Trade", href: "#" }
              ]
            }
          ]}
        />
      </div>
    </ThemeProvider>
  );
}
