"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleMinimal from '@/components/navbar/NavbarStyleMinimal';
import HeroBillboard from '@/components/sections/hero/HeroBillboard';
import TestimonialAboutCard from '@/components/sections/about/TestimonialAboutCard';
import FeatureCardTwentyOne from '@/components/sections/feature/FeatureCardTwentyOne';
import MetricCardOne from '@/components/sections/metrics/MetricCardOne';
import TestimonialCardSix from '@/components/sections/testimonial/TestimonialCardSix';
import FaqSplitText from '@/components/sections/faq/FaqSplitText';
import ContactSplitForm from '@/components/sections/contact/ContactSplitForm';
import FooterLogoReveal from '@/components/sections/footer/FooterLogoReveal';
import { AlertCircle, Brain, Lock, Microscope, BarChart3, TrendingUp, AlertTriangle, Clock, Zap, Users, Quote } from "lucide-react";

export default function LandingPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="hover-bubble"
      defaultTextAnimation="reveal-blur"
      borderRadius="sharp"
      contentWidth="compact"
      sizing="largeSmallSizeMediumTitles"
      background="none"
      cardStyle="glass-depth"
      primaryButtonStyle="gradient"
      secondaryButtonStyle="layered"
      headingFontWeight="light"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleMinimal
          brandName="Neurolink Reality"
          button={{
            text: "Learn More",            href: "#about"
          }}
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroBillboard
          title="The Neurolink Question"
          description="A critical examination of neural technology, its promises, and the profound ethical implications we must consider before integration into human biology."
          tag="Science & Ethics"
          tagIcon={AlertCircle}
          imageSrc="https://img.b2bpic.net/free-vector/technology-background_23-2148116476.jpg"
          imageAlt="Neural technology concept"
          buttons={[
            {
              text: "Explore the Research",              href: "#features"
            },
            {
              text: "Read Our Analysis",              href: "#faq"
            }
          ]}
        />
      </div>

      <div id="about" data-section="about">
        <TestimonialAboutCard
          tag="Understanding the Stakes"
          tagIcon={Brain}
          title="Why Neurolink Demands Careful Scrutiny"
          description="The science is compelling. The risks are real."
          subdescription="A comprehensive analysis of neural implant technology"
          icon={Lock}
          imageSrc="https://img.b2bpic.net/free-photo/technology-security_53876-89045.jpg"
          imageAlt="Ethics and technology intersection"
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="features" data-section="features">
        <FeatureCardTwentyOne
          title="Critical Concerns"
          description="Understanding the key issues surrounding neural implant technology and its potential impacts on privacy, autonomy, and human agency."
          tag="Research Findings"
          tagIcon={Microscope}
          accordionItems={[
            {
              id: "1",              title: "Privacy & Data Security",              content: "Neural implants would directly access brain data. Who controls this information? What prevents unauthorized access to our thoughts, memories, and intentions? Current cybersecurity standards are insufficient for such sensitive biological interfaces."
            },
            {
              id: "2",              title: "Autonomy & Consent",              content: "Can true informed consent be obtained for a permanent neural device? Future software updates, corporate policies, or government mandates could fundamentally alter the device's function without explicit re-consent."
            },
            {
              id: "3",              title: "Inequality & Access",              content: "Neural enhancement would likely be available only to the wealthy, creating a biological underclass. Those who cannot afford the technology could face discrimination or pressure to adopt it to remain competitive."
            },
            {
              id: "4",              title: "Neurological Risks",              content: "Long-term effects of brain implants remain unknown. Inflammation, tissue damage, signal degradation, and unforeseen neurological consequences could emerge years after implantation."
            },
            {
              id: "5",              title: "Corporate Control",              content: "Neural technology will likely be proprietary. Companies would control essential aspects of cognition, including software, updates, and feature access. This represents unprecedented corporate influence over human thought."
            }
          ]}
          imageSrc="https://img.b2bpic.net/free-photo/statistical-documents-with-test-tubes_1098-1587.jpg"
          imageAlt="Research and data analysis"
          useInvertedBackground="noInvert"
          mediaPosition="right"
        />
      </div>

      <div id="metrics" data-section="metrics">
        <MetricCardOne
          title="The Evidence"
          description="Key statistics demonstrating public concern and scientific uncertainty about neural implant technology"
          tag="Data & Research"
          tagIcon={BarChart3}
          metrics={[
            {
              id: "1",              value: "72",              title: "%",              description: "of neuroscientists express concerns about premature human trials",              icon: TrendingUp
            },
            {
              id: "2",              value: "0",              title: "laws",              description: "specifically regulating direct brain-computer interfaces globally",              icon: AlertTriangle
            },
            {
              id: "3",              value: "10+",              title: "years",              description: "minimum needed for comprehensive long-term safety studies",              icon: Clock
            },
            {
              id: "4",              value: "∞",              title: "risk",              description: "of cognitive liberty once neural control is surrendered",              icon: Zap
            }
          ]}
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground="noInvert"
          gridVariant="four-items-2x2-equal-grid"
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardSix
          title="Expert Perspectives"
          description="Voices from the neuroscience and bioethics communities raising important questions about neural implant technology"
          tag="Expert Voices"
          tagIcon={Users}
          testimonials={[
            {
              id: "1",              name: "Dr. Sarah Chen",              handle: "Neuroscientist & Bioethicist",              testimonial: "We must establish robust ethical frameworks before neural technology advances further. The brain is not just another interface—it's the seat of human identity.",              imageSrc: "https://img.b2bpic.net/free-photo/front-view-doctor-wearing-lab-coat_23-2149551157.jpg",              imageAlt: "Dr. Sarah Chen"
            },
            {
              id: "2",              name: "Prof. James Mitchell",              handle: "Privacy & Security Expert",              testimonial: "Neural data represents the most intimate information humans could generate. Our current privacy protections are wholly inadequate for this level of neurological access.",              imageSrc: "https://img.b2bpic.net/free-photo/medium-shot-smiley-scientist_23-2148969947.jpg",              imageAlt: "Prof. James Mitchell"
            },
            {
              id: "3",              name: "Dr. Amelia Okonkwo",              handle: "Cognitive Neuroscientist",              testimonial: "The long-term neurological consequences of permanent brain implants are simply unknown. We should be cautious about permanent solutions to temporary problems.",              imageSrc: "https://img.b2bpic.net/free-photo/medium-shot-doctor-wearing-lab-coat_23-2149551158.jpg",              imageAlt: "Dr. Amelia Okonkwo"
            },
            {
              id: "4",              name: "Prof. David Rothstein",              handle: "Medical Ethics & Philosophy",              testimonial: "Neural enhancement would fundamentally alter what it means to be human. We need deeper societal dialogue about whether this is a path we should take.",              imageSrc: "https://img.b2bpic.net/free-photo/medium-shot-doctor-wearing-goggles_23-2148816203.jpg",              imageAlt: "Prof. David Rothstein"
            },
            {
              id: "5",              name: "Dr. Lisa Patel",              handle: "Neurotechnology Researcher",              testimonial: "The technology is advancing faster than our ability to understand its implications. Caution and rigorous testing must precede human application.",              icon: Quote
            },
            {
              id: "6",              name: "Prof. Marcus Johnson",              handle: "Disability Rights Advocate",              testimonial: "We must ensure that neural technology serves genuine medical needs, not the enhancement fantasies of tech companies. Human dignity must remain paramount.",              icon: Quote
            }
          ]}
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground="noInvert"
          speed={35}
        />
      </div>

      <div id="faq" data-section="faq">
        <FaqSplitText
          sideTitle="Common Questions"
          sideDescription="Understanding the key concerns and scientific realities about neurolink technology"
          faqs={[
            {
              id: "1",              title: "Isn't neural technology the future of human enhancement?",              content: "Enhancement is a perspective. From another angle, we're discussing the permanent alteration of human neurology for corporate profit. The question isn't whether it's possible, but whether we should do it—and at what cost to autonomy, privacy, and human agency."
            },
            {
              id: "2",              title: "Won't safeguards prevent misuse?",              content: "Safeguards are only as strong as their enforcement. History shows that technologies designed for good intentions are routinely repurposed for surveillance and control. Neural implants offer unprecedented power over human cognition—unprecedented responsibility requires unprecedented oversight we don't currently have."
            },
            {
              id: "3",              title: "What about medical applications?",              content: "Therapeutic neural interfaces for treating paralysis or neurological disease are different from cognitive enhancement implants. Medical applications should follow rigorous clinical trials. However, the line between therapy and enhancement will blur once the technology exists."
            },
            {
              id: "4",              title: "If others get enhanced, won't we have to?",              content: "This is the coercion problem. Even if enhancement is voluntary, social and economic pressure could make it effectively mandatory. We risk creating a world where not implanting a neural device makes you professionally obsolete or socially disadvantaged."
            },
            {
              id: "5",              title: "Who funds this research?",              content: "Primarily private companies with financial incentives to minimize risks and accelerate development. Independent, fully-funded safety research is critically underfunded. This creates a dangerous imbalance where commercial interests outpace ethical scrutiny."
            },
            {
              id: "6",              title: "What should we do instead?",              content: "Establish international moratoriums on human neural implants until comprehensive safety standards exist. Fund independent research into neurological risks. Create binding legal frameworks protecting cognitive liberty. Have honest societal conversations about what we're willing to sacrifice for technological power."
            }
          ]}
          textPosition="left"
          useInvertedBackground="noInvert"
          animationType="smooth"
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactSplitForm
          title="Join the Conversation"
          description="Share your perspective on neural technology ethics, contribute research, or help spread awareness about these critical issues."
          inputs={[
            {
              name: "name",              type: "text",              placeholder: "Your name",              required: true
            },
            {
              name: "email",              type: "email",              placeholder: "Your email",              required: true
            }
          ]}
          textarea={{
            name: "message",            placeholder: "Your thoughts on neural technology ethics...",            rows: 5,
            required: true
          }}
          useInvertedBackground="noInvert"
          mediaPosition="right"
          buttonText="Share Your Perspective"
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterLogoReveal
          logoText="Neurolink Reality"
        />
      </div>
    </ThemeProvider>
  );
}