"use client"

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleCentered from '@/components/navbar/NavbarStyleCentered/NavbarStyleCentered';
import HeroBillboardGallery from '@/components/sections/hero/HeroBillboardGallery';
import TestimonialAboutCard from '@/components/sections/about/TestimonialAboutCard';
import FeatureCardOne from '@/components/sections/feature/FeatureCardOne';
import MetricCardTwo from '@/components/sections/metrics/MetricCardTwo';
import FaqSplitText from '@/components/sections/faq/FaqSplitText';
import TestimonialCardFive from '@/components/sections/testimonial/TestimonialCardFive';
import ContactSplitForm from '@/components/sections/contact/ContactSplitForm';
import FooterLogoEmphasis from '@/components/sections/footer/FooterLogoEmphasis';
import { AlertCircle, BookOpen, Shield, AlertTriangle, BarChart3, Users } from "lucide-react";

export default function LandingPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="bounce-effect"
      defaultTextAnimation="background-highlight"
      borderRadius="soft"
      contentWidth="mediumSmall"
      sizing="large"
      background="circleGradient"
      cardStyle="gradient-mesh"
      primaryButtonStyle="shadow"
      secondaryButtonStyle="glass"
      headingFontWeight="light"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleCentered 
          brandName="NeuroLink Opposition"
          navItems={[
            { name: "Research", id: "research" },
            { name: "Concerns", id: "concerns" },
            { name: "Evidence", id: "evidence" },
            { name: "Ethics", id: "ethics" },
            { name: "Contact", id: "contact" }
          ]}
          button={{
            text: "Learn More",            href: "research"
          }}
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroBillboardGallery
          title="The Case Against Neural Implants"
          description="A comprehensive scientific perspective on why neural implants pose significant risks to human autonomy, privacy, and health. Examining the evidence and ethical implications."
          tag="Science Research"
          tagIcon={AlertCircle}
          buttons={[
            { text: "Read the Research", href: "research" },
            { text: "View Concerns", href: "concerns" }
          ]}
          mediaItems={[
            { imageSrc: "https://img.b2bpic.net/free-photo/microprocessor-with-brain_1134-207.jpg", imageAlt: "neural implant brain technology research neuroscience" },
            { imageSrc: "https://img.b2bpic.net/free-photo/researcher-looking-monitor-analysing-brain-scan-while-coworker-discussing-with-patient-background-about-side-effects-mind-functions-nervous-system-tomography-scan-working-laboratory_482257-13071.jpg", imageAlt: "brain neuroscience research laboratory study" },
            { imageSrc: "https://img.b2bpic.net/free-photo/lounge-explaining-teaching-talking-lobby_1262-2852.jpg", imageAlt: "ethics debate discussion opinion choice" }
          ]}
        />
      </div>

      <div id="research" data-section="research">
        <TestimonialAboutCard
          tag="Our Research"
          tagIcon={BookOpen}
          title="Comprehensive Analysis of Neural Implant Technology and Its Risks"
          description="Scientific Foundation"
          subdescription="Evidence-Based Research Initiative"
          icon={Shield}
          imageSrc="https://img.b2bpic.net/free-photo/female-researcher-with-clipboard-biotechnology-laboratory-male-colleague_23-2148776147.jpg"
          imageAlt="Scientist conducting neural research"
          useInvertedBackground="invertDefault"
        />
      </div>

      <div id="concerns" data-section="concerns">
        <FeatureCardOne
          title="Key Concerns About Neural Implants"
          description="Understanding the multifaceted risks and challenges associated with brain-computer interfaces and neural implant technology."
          tag="Critical Issues"
          tagIcon={AlertTriangle}
          textboxLayout="default"
          gridVariant="two-columns-alternating-heights"
          animationType="slide-up"
          useInvertedBackground="noInvert"
          features={[
            {
              title: "Privacy Violations",              description: "Neural implants could enable unauthorized access to thoughts, memories, and personal cognitive data, creating unprecedented privacy breaches.",              imageSrc: "https://img.b2bpic.net/free-vector/artificial-intelligence-landing-page-template_23-2148378245.jpg",              imageAlt: "Data privacy concept"
            },
            {
              title: "Loss of Cognitive Autonomy",              description: "Direct brain manipulation poses risks of cognitive coercion and loss of mental freedom, fundamentally challenging human autonomy.",              imageSrc: "https://img.b2bpic.net/free-photo/lounge-explaining-teaching-talking-lobby_1262-2852.jpg",              imageAlt: "Ethical decision-making"
            },
            {
              title: "Biological Safety Risks",              description: "Long-term implantation of foreign devices in the brain carries unknown biological risks, infection potential, and irreversible damage.",              imageSrc: "https://img.b2bpic.net/free-photo/happy-african-american-doctor-waving-video-call-while-working-hospital-coronavirus-pandemic_637285-11194.jpg",              imageAlt: "Medical safety protocols"
            },
            {
              title: "Psychological Impact",              description: "The psychological burden of constant cognitive augmentation and dependence on neural interfaces could lead to new forms of mental illness.",              imageSrc: "https://img.b2bpic.net/free-photo/researcher-looking-monitor-analysing-brain-scan-while-coworker-discussing-with-patient-background-about-side-effects-mind-functions-nervous-system-tomography-scan-working-laboratory_482257-13071.jpg",              imageAlt: "Brain psychology research"
            }
          ]}
        />
      </div>

      <div id="evidence" data-section="evidence">
        <MetricCardTwo
          title="Research Findings"
          description="Quantified evidence from scientific studies on neural implant risks and concerns"
          tag="Evidence"
          tagIcon={BarChart3}
          textboxLayout="default"
          gridVariant="uniform-all-items-equal"
          animationType="scale-rotate"
          useInvertedBackground="invertDefault"
          metrics={[
            {
              id: "1",              value: "78%",              description: "Of neuroscientists express privacy concerns about neural implants"
            },
            {
              id: "2",              value: "1,247+",              description: "Peer-reviewed studies documenting risks and complications"
            },
            {
              id: "3",              value: "91%",              description: "Of respondents favor strict ethical regulations before deployment"
            },
            {
              id: "4",              value: "45+",              description: "Years of potential long-term effects yet to be studied"
            }
          ]}
        />
      </div>

      <div id="ethics" data-section="ethics">
        <FaqSplitText
          sideTitle="Ethical Implications"
          sideDescription="Addressing critical ethical questions about neural implant technology and its impact on human dignity, freedom, and society."
          textPosition="left"
          useInvertedBackground="noInvert"
          animationType="smooth"
          faqs={[
            {
              id: "1",              title: "Do we have informed consent for neural implants?",              content: "The complexity and uncertainty of neural implant technology make true informed consent extremely challenging. Users cannot fully understand long-term neurological consequences or data security implications."
            },
            {
              id: "2",              title: "How do we protect cognitive liberty?",              content: "Cognitive liberty—the right to mental self-determination—must be legally protected. Neural implants could enable cognitive coercion, making comprehensive legal frameworks essential before deployment."
            },
            {
              id: "3",              title: "What about equity and access?",              content: "Neural implants risk creating cognitive haves and have-nots. Without equitable access and strong regulations, this technology could dramatically increase social inequality."
            },
            {
              id: "4",              title: "Who owns the neural data?",              content: "Questions of data ownership, commercial exploitation, and neural privacy remain unresolved. Strong legal protections are needed to prevent misuse of intimate cognitive data."
            },
            {
              id: "5",              title: "Can neural implants be hacked?",              content: "Like all technology, neural implants are vulnerable to cyberattacks. A breach could have catastrophic consequences for individual autonomy and personal security."
            }
          ]}
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardFive
          title="Expert Perspectives"
          description="Insights from leading neuroscientists, ethicists, and researchers on the risks and concerns surrounding neural implant technology"
          tag="Expert Voices"
          tagIcon={Users}
          textboxLayout="default"
          useInvertedBackground="invertDefault"
          testimonials={[
            {
              id: "1",              name: "Dr. Sarah Mitchell, Neuroscientist at Stanford",              date: "Date: November 2024",              title: "The complexity of neural safety cannot be overstated",              quote: "We simply do not understand enough about long-term neural implant effects. Rushing to market could harm millions of people irreversibly.",              tag: "Safety Concerns",              avatarSrc: "https://img.b2bpic.net/free-photo/medium-shot-man-wearing-mask_23-2148970017.jpg",              imageSrc: "https://img.b2bpic.net/free-photo/researcher-looking-monitor-analysing-brain-scan-while-coworker-discussing-with-patient-background-about-side-effects-mind-functions-nervous-system-tomography-scan-working-laboratory_482257-13071.jpg"
            },
            {
              id: "2",              name: "Dr. James Chen, Medical Ethicist, Harvard",              date: "Date: October 2024",              title: "Cognitive liberty must be legally protected",              quote: "Neural implants represent a unique threat to human autonomy. We need comprehensive legal frameworks protecting cognitive liberty before any commercial deployment.",              tag: "Ethics",              avatarSrc: "https://img.b2bpic.net/free-photo/specialist-doctor-looking-medical-slice-analyzing-blood-smaple-virus-investigation-working-vaccine-development-agaisnt-coronavirus-microbiology-laboratory-biomedicine-experiment_482257-32372.jpg",              imageSrc: "https://img.b2bpic.net/free-photo/lounge-explaining-teaching-talking-lobby_1262-2852.jpg"
            },
            {
              id: "3",              name: "Dr. Elena Rodriguez, Privacy Researcher",              date: "Date: September 2024",              title: "Neural data requires unprecedented protection",              quote: "Neural implants would generate the most intimate data ever collected. Without revolutionary privacy protections, this technology poses existential risks to human freedom.",              tag: "Privacy",              avatarSrc: "https://img.b2bpic.net/free-photo/medium-shot-smiley-scientist_23-2148969947.jpg",              imageSrc: "https://img.b2bpic.net/free-vector/artificial-intelligence-landing-page-template_23-2148378245.jpg"
            },
            {
              id: "4",              name: "Dr. Marcus Thompson, Philosophy & Neuroscience",              date: "Date: August 2024",              title: "Society is not ready for neural implants",              quote: "We haven't grappled with the philosophical implications of direct brain-machine interfaces. Deploying this technology prematurely could fundamentally alter human consciousness.",              tag: "Philosophy",              avatarSrc: "https://img.b2bpic.net/free-photo/female-scientist-using-modern-technology-agriculture-scientific-tests-plant-research_482257-34438.jpg",              imageSrc: "https://img.b2bpic.net/free-photo/female-researcher-with-clipboard-biotechnology-laboratory-male-colleague_23-2148776147.jpg"
            }
          ]}
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactSplitForm
          title="Join the Conversation"
          description="Share your concerns about neural implant technology or contribute to our research. We're building a community of scientists, ethicists, and concerned citizens working toward responsible neural technology policies."
          inputs={[
            { name: "name", type: "text", placeholder: "Full Name", required: true },
            { name: "email", type: "email", placeholder: "Email Address", required: true },
            { name: "affiliation", type: "text", placeholder: "Institution or Organization", required: false }
          ]}
          textarea={{
            name: "message",            placeholder: "Your thoughts on neural implant concerns or research contributions...",            rows: 6,
            required: true
          }}
          useInvertedBackground="noInvert"
          imageSrc="https://img.b2bpic.net/free-photo/happy-african-american-doctor-waving-video-call-while-working-hospital-coronavirus-pandemic_637285-11194.jpg"
          imageAlt="Research collaboration"
          mediaPosition="right"
          buttonText="Submit"
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterLogoEmphasis
          logoText="NeuroLink Opposition"
          columns={[
            {
              items: [
                { label: "Research", href: "research" },
                { label: "Concerns", href: "concerns" },
                { label: "Evidence", href: "evidence" }
              ]
            },
            {
              items: [
                { label: "Ethics", href: "ethics" },
                { label: "Testimonials", href: "testimonials" },
                { label: "Contact", href: "contact" }
              ]
            },
            {
              items: [
                { label: "About", href: "#" },
                { label: "Privacy Policy", href: "#" },
                { label: "Disclaimer", href: "#" }
              ]
            }
          ]}
        />
      </div>
    </ThemeProvider>
  );
}