"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarLayoutFloatingOverlay from "@/components/navbar/NavbarLayoutFloatingOverlay/NavbarLayoutFloatingOverlay";
import HeroCentered from "@/components/sections/hero/HeroCentered";
import SplitAbout from "@/components/sections/about/SplitAbout";
import FeatureCardSeven from "@/components/sections/feature/FeatureCardSeven";
import MetricCardTwo from "@/components/sections/metrics/MetricCardTwo";
import SocialProofOne from "@/components/sections/socialProof/SocialProofOne";
import FaqSplitText from "@/components/sections/faq/FaqSplitText";
import ContactSplit from "@/components/sections/contact/ContactSplit";
import FooterBaseCard from "@/components/sections/footer/FooterBaseCard";
import { CheckCircle, Leaf, Zap } from "lucide-react";

export default function LandingPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="hover-magnetic"
      defaultTextAnimation="background-highlight"
      borderRadius="rounded"
      contentWidth="mediumLarge"
      sizing="medium"
      background="fluid"
      cardStyle="solid"
      primaryButtonStyle="gradient"
      secondaryButtonStyle="layered"
      headingFontWeight="bold"
    >
      <div id="nav" data-section="nav">
        <NavbarLayoutFloatingOverlay
          brandName="Polycor"
          navItems={[
            { name: "About", id: "about" },
            { name: "Products", id: "features" },
            { name: "Why Us", id: "metrics" },
            { name: "Partners", id: "social-proof" },
            { name: "FAQ", id: "faq" }
          ]}
          button={{ text: "Get Quote", href: "#contact" }}
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroCentered
          title="Premium Polycor Plastics for Industrial Excellence"
          description="Engineered precision, built for durability. Our advanced plastic solutions power industries worldwide with unmatched quality, innovation, and reliability."
          background={{ variant: "downward-rays-static-grid" }}
          avatars={[{ src: "http://img.b2bpic.net/free-photo/steel-chrome-machines-with-shafts_645730-270.jpg", alt: "Polycor manufacturing facility" }]}
          avatarText="Trusted by 500+ Global Partners"
          buttons={[
            { text: "Explore Products", href: "#features" },
            { text: "Request Sample", href: "#contact" }
          ]}
          buttonAnimation="slide-up"
          ariaLabel="Hero section"
        />
      </div>

      <div id="about" data-section="about">
        <SplitAbout
          tag="Our Legacy"
          title="Decades of Plastic Innovation"
          description="Polycor has been a leader in high-performance plastic materials since 1995. We combine traditional craftsmanship with cutting-edge technology to deliver products that exceed expectations across automotive, construction, electronics, and consumer goods sectors."
          textboxLayout="default"
          useInvertedBackground={false}
          bulletPoints={[
            {
              title: "ISO Certified Quality",              description: "Every product meets rigorous international standards for safety, durability, and environmental responsibility.",              icon: CheckCircle
            },
            {
              title: "Custom Formulations",              description: "Tailored material compositions designed to meet your specific performance and application requirements.",              icon: Zap
            },
            {
              title: "Sustainable Manufacturing",              description: "Committed to reducing our carbon footprint with eco-friendly processes and recyclable material options.",              icon: Leaf
            }
          ]}
          imageSrc="http://img.b2bpic.net/free-photo/close-up-perforated-fabric_23-2149894439.jpg"
          imageAlt="Polycor plastic materials and products"
          mediaAnimation="slide-up"
          imagePosition="right"
        />
      </div>

      <div id="features" data-section="features">
        <FeatureCardSeven
          title="Why Choose Polycor Plastics"
          description="Our comprehensive range of plastic solutions delivers uncompromising quality, innovation, and performance."
          tag="Core Strengths"
          textboxLayout="default"
          useInvertedBackground={true}
          animationType="blur-reveal"
          features={[
            {
              id: 1,
              title: "Superior Durability",              description: "Engineered for longevity with exceptional tensile strength, impact resistance, and temperature stability across demanding industrial applications.",              imageSrc: "http://img.b2bpic.net/free-photo/close-up-perforated-fabric_23-2149894571.jpg?_wi=1",              imageAlt: "Durable plastic materials"
            },
            {
              id: 2,
              title: "Versatile Applications",              description: "From automotive components to medical devices, our materials adapt to diverse industries with consistent performance and reliability.",              imageSrc: "http://img.b2bpic.net/free-photo/close-up-perforated-fabric_23-2149894571.jpg?_wi=2",              imageAlt: "Versatile plastic applications"
            },
            {
              id: 3,
              title: "Sustainable Solutions",              description: "Eco-conscious manufacturing with recyclable options and reduced environmental impact, supporting your sustainability goals.",              imageSrc: "http://img.b2bpic.net/free-photo/flat-lay-cotton-bag-bottles-arrangement_23-2148261101.jpg",              imageAlt: "Sustainable plastic manufacturing"
            },
            {
              id: 4,
              title: "Cutting-Edge Innovation",              description: "Continuous R&D investment ensures our products remain at the forefront of material science and industrial performance.",              imageSrc: "http://img.b2bpic.net/free-photo/woman-assistant-shows-exclusive-gold-necklace-luxury-jewelry-store_613910-20412.jpg",              imageAlt: "Advanced plastic technology"
            }
          ]}
        />
      </div>

      <div id="metrics" data-section="metrics">
        <MetricCardTwo
          title="By The Numbers"
          description="Polycor's proven track record of excellence and industry leadership"
          tag="Our Impact"
          textboxLayout="default"
          useInvertedBackground={false}
          animationType="scale-rotate"
          gridVariant="uniform-all-items-equal"
          metrics={[
            { id: "1", value: "500+", description: "Global Clients & Partners" },
            { id: "2", value: "28 Years", description: "Industry Leadership" },
            { id: "3", value: "99.2%", description: "Quality Consistency Rate" },
            { id: "4", value: "60+", description: "Product Formulations" }
          ]}
        />
      </div>

      <div id="social-proof" data-section="social-proof">
        <SocialProofOne
          title="Trusted by Industry Leaders"
          description="Polycor partners with the world's most demanding companies across multiple sectors"
          tag="Our Partners"
          textboxLayout="default"
          useInvertedBackground={true}
          animationType="slide-up"
          names={["Automotive Dynamics", "BuildTech Construction", "ElectroCore Industries", "PackagePro Solutions", "ConsumerTech Global", "MedicalFirst Labs", "LogisticFlow Systems"]}
          logos={[
            "http://img.b2bpic.net/free-vector/engine-logos-pack_23-2147564454.jpg",            "http://img.b2bpic.net/free-vector/flat-construction-labels-collection_23-2149571564.jpg",            "http://img.b2bpic.net/free-vector/tech-repair-labels-template_23-2151057022.jpg",            "http://img.b2bpic.net/free-vector/retro-badges-collection_1234-52.jpg",            "http://img.b2bpic.net/free-vector/gradient-fair-trade-label-collection_23-2149492193.jpg",            "http://img.b2bpic.net/free-vector/detailed-gradient-holistic-logo_23-2148850278.jpg",            "http://img.b2bpic.net/free-vector/hexagonal-company-logo_1222-55.jpg"
          ]}
          speed={35}
          showCard={true}
        />
      </div>

      <div id="faq" data-section="faq">
        <FaqSplitText
          sideTitle="Common Questions About Polycor"
          sideDescription="Everything you need to know about our plastic materials and services"
          textPosition="left"
          useInvertedBackground={false}
          animationType="smooth"
          faqsAnimation="slide-up"
          faqs={[
            {
              id: "1",              title: "What makes Polycor plastics different?",              content: "Our materials combine superior durability, precision engineering, and sustainable manufacturing. We offer custom formulations tailored to your specific requirements, backed by 28 years of industry expertise and ISO certifications."
            },
            {
              id: "2",              title: "Do you offer custom material solutions?",              content: "Yes, absolutely. We specialize in developing custom plastic formulations to meet exact performance specifications, environmental requirements, and application needs. Our technical team works closely with partners to optimize results."
            },
            {
              id: "3",              title: "What industries do you serve?",              content: "We serve automotive, construction, electronics, packaging, consumer goods, medical, logistics, and many other sectors. Our versatile material portfolio adapts to virtually any industrial application."
            },
            {
              id: "4",              title: "Are your plastics environmentally friendly?",              content: "We offer multiple sustainable options including recyclable formulations and eco-friendly manufacturing processes. Our commitment to sustainability helps you meet environmental compliance while maintaining performance standards."
            },
            {
              id: "5",              title: "How do I request samples or quotes?",              content: "Contact our sales team through the inquiry form on this site. We typically respond within 24 hours with product recommendations, samples, and custom quotes based on your specifications."
            },
            {
              id: "6",              title: "What certifications do you hold?",              content: "Polycor holds ISO 9001:2015, ISO 14001:2015, and other industry-specific certifications. All products meet international safety and quality standards for your industry."
            }
          ]}
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactSplit
          tag="Get In Touch"
          title="Ready to Elevate Your Materials?"
          description="Connect with our expert team to explore custom solutions, request samples, or discuss your specific project requirements."
          background={{ variant: "sparkles-gradient" }}
          useInvertedBackground={false}
          imageSrc="http://img.b2bpic.net/free-photo/one-working-day-modern-automatic-bus-trolleybus-car-production-with-unfinished-cars-workers-protective-uniform-factory-background-automobile-assembly-line-welding-arm_645730-363.jpg"
          imageAlt="Polycor industrial facility"
          mediaAnimation="slide-up"
          mediaPosition="right"
          inputPlaceholder="your@company.com"
          buttonText="Get Quote"
          termsText="We respect your privacy. We'll only use your email to send you relevant product information and follow-ups."
          tagAnimation="blur-reveal"
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterBaseCard
          logoText="Polycor"
          columns={[
            {
              title: "Products",              items: [
                { label: "Material Range", href: "#features" },
                { label: "Custom Solutions", href: "#" },
                { label: "Technical Specs", href: "#" },
                { label: "Case Studies", href: "#" }
              ]
            },
            {
              title: "Company",              items: [
                { label: "About Us", href: "#about" },
                { label: "Our Team", href: "#" },
                { label: "Sustainability", href: "#" },
                { label: "News", href: "#" }
              ]
            },
            {
              title: "Support",              items: [
                { label: "Contact Us", href: "#contact" },
                { label: "FAQ", href: "#faq" },
                { label: "Documentation", href: "#" },
                { label: "Technical Support", href: "#" }
              ]
            },
            {
              title: "Legal",              items: [
                { label: "Privacy Policy", href: "#" },
                { label: "Terms of Service", href: "#" },
                { label: "Compliance", href: "#" },
                { label: "Certifications", href: "#" }
              ]
            }
          ]}
          copyrightText="© 2025 Polycor Plastics. All rights reserved. Engineered for excellence."
        />
      </div>
    </ThemeProvider>
  );
}
