"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import Link from "next/link";
import NavbarLayoutFloatingInline from "@/components/navbar/NavbarLayoutFloatingInline";
import HeroCarouselLogo from "@/components/sections/hero/heroCarouselLogo/HeroCarouselLogo";
import AboutMetric from "@/components/sections/about/AboutMetric";
import FeatureBento from "@/components/sections/feature/FeatureBento";
import PricingCardTwo from "@/components/sections/pricing/PricingCardTwo";
import SocialProofOne from "@/components/sections/socialProof/SocialProofOne";
import TestimonialCardTwelve from "@/components/sections/testimonial/TestimonialCardTwelve";
import FooterBaseReveal from "@/components/sections/footer/FooterBaseReveal";
import {
  Shield,
  Target,
  Users,
  Globe,
  Zap,
  DollarSign,
  Search,
  Crown,
  BookOpen,
  HelpCircle,
  BookMarked,
} from "lucide-react";

export default function HomePage() {
  return (
    <ThemeProvider
      defaultButtonVariant="shift-hover"
      defaultTextAnimation="background-highlight"
      borderRadius="pill"
      contentWidth="mediumSmall"
      sizing="mediumSizeLargeTitles"
      background="grid"
      cardStyle="outline"
      primaryButtonStyle="primary-glow"
      secondaryButtonStyle="solid"
      headingFontWeight="extrabold"
    >
      <div id="nav" data-section="nav">
        <NavbarLayoutFloatingInline
          brandName="BHEH"
          navItems={[
            { name: "Solutions", id: "pricing" },
            { name: "Training", id: "training" },
            { name: "Community", id: "community" },
            { name: "Resources", id: "resources" },
          ]}
          button={{
            text: "Explore Solutions",            href: "/services"}}
          animateOnLoad={true}
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroCarouselLogo
          logoText="BHEH"
          description="Learn your vulnerabilities before attackers do. BHEH combines expert penetration testing, advanced security courses, and elite community access to help organizations and professionals stay ahead of modern threats."
          buttons={[
            { text: "Explore Solutions", href: "/services" },
            { text: "Learn More", href: "/services" },
          ]}
          slides={[
            {
              imageSrc:
                "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AV5zieBE9moM5TuLbdqDKSJv8O/a-sleek-offensive-security-control-cente-1772665231308-cf2685f1.png",              imageAlt:
                "Security operations center with offensive security controls"},
            {
              imageSrc:
                "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AV5zieBE9moM5TuLbdqDKSJv8O/abstract-digital-network-attack-visualiz-1772665231232-0dbf7641.png",              imageAlt: "Network attack visualization and threat pathways"},
            {
              imageSrc:
                "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AV5zieBE9moM5TuLbdqDKSJv8O/professional-red-team-operatives-in-a-mo-1772665230961-f5b84058.png",              imageAlt:
                "Red team operations and security assessments"},
          ]}
          autoplayDelay={4000}
          showDimOverlay={true}
        />
      </div>

      <div id="metrics" data-section="metrics">
        <AboutMetric
          title="Why Organizations Choose BHEH for Offensive Security"
          metrics={[
            { icon: Shield, label: "Vulnerability Coverage", value: "10,000+" },
            { icon: Target, label: "Critical Tests Delivered", value: "500+" },
            {
              icon: Users,
              label: "Security Professionals",              value: "2,500+"},
            {
              icon: Globe,
              label: "Enterprise Clients Secured",              value: "200+"},
          ]}
          metricsAnimation="slide-up"
          useInvertedBackground={false}
        />
      </div>

      <div id="features" data-section="features">
        <FeatureBento
          title="Comprehensive Offensive Security Platform"
          description="From vulnerability discovery to advanced exploitation techniques, BHEH provides the tools, knowledge, and community needed for professional-grade offensive security operations."
          tag="Core Capabilities"
          tagIcon={Zap}
          features={[
            {
              title: "Penetration Testing Services",              description:
                "Expert manual security assessments targeting real-world attack vectors and business-critical systems.",              bentoComponent: "globe"},
            {
              title: "Vulnerability Management",              description:
                "Comprehensive vulnerability discovery and prioritization with actionable remediation guidance.",              bentoComponent: "animated-bar-chart"},
            {
              title: "Red Team Operations",              description:
                "Advanced adversary simulations and multi-phase engagement scenarios.",              bentoComponent: "map"},
            {
              title: "Exploit Development",              description:
                "Zero-day research and advanced exploitation technique training.",              bentoComponent: "line-chart"},
          ]}
          textboxLayout="default"
          animationType="slide-up"
          useInvertedBackground={false}
        />
      </div>

      <div id="pricing" data-section="pricing">
        <PricingCardTwo
          title="Flexible Solutions for Every Security Need"
          description="Choose the right level of offensive security expertise and training for your organization or career growth."
          tag="Pricing"
          tagIcon={DollarSign}
          plans={[
            {
              id: "assessment",              badge: "Vulnerability Assessment",              badgeIcon: Search,
              price: "Custom Pricing",              subtitle:
                "Ideal for SMBs seeking foundational security insights",              buttons: [
                { text: "Request Quote", href: "/contact" },
                { text: "Learn More", href: "#" },
              ],
              features: [
                "Scope Definition & Reconnaissance",                "Active Vulnerability Scanning",                "Manual Testing of High-Risk Areas",                "Detailed Assessment Report",                "Remediation Roadmap"],
            },
            {
              id: "pentest",              badge: "Full Penetration Test",              badgeIcon: Target,
              price: "Custom Pricing",              subtitle:
                "Enterprise-grade comprehensive testing with detailed exploitation analysis",              buttons: [
                { text: "Request Quote", href: "/contact" },
                { text: "Learn More", href: "#" },
              ],
              features: [
                "Multi-Phase Attack Simulation",                "Network & Application Testing",                "Credential Compromise Scenarios",                "Post-Exploitation Analysis",                "Executive Summary + Technical Report",                "Remediation Consultation"],
            },
            {
              id: "elite",              badge: "Elite Membership",              badgeIcon: Crown,
              price: "$299/mo",              subtitle:
                "Exclusive access to advanced training, community, and weekly intelligence briefings",              buttons: [
                { text: "Join Elite", href: "#" },
                { text: "30-Day Free Trial", href: "#" },
              ],
              features: [
                "Trusted by 500+ Security Professionals",                "Advanced Security Courses",                "Private Exploit Intelligence",                "Weekly Deep-Dive Briefings",                "Exclusive Community Access",                "1-on-1 Expert Consultation",                "CVE Research & Analysis Library"],
            },
            {
              id: "course",              badge: "Professional Courses",              badgeIcon: BookOpen,
              price: "$99-$499",              subtitle:
                "Self-paced advanced security education with hands-on labs and certifications",              buttons: [
                { text: "Browse Courses", href: "#" },
                { text: "View Schedule", href: "#" },
              ],
              features: [
                "Real-World CVE Studies",                "Hands-On Lab Environments",                "Advanced TTP Techniques",                "Community Support",                "Certificate of Completion",                "Lifetime Access to Course Materials"],
            },
          ]}
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
        />
      </div>

      <div id="social-proof" data-section="social-proof">
        <SocialProofOne
          title="Trusted by Enterprise Security Leaders"
          description="Organizations worldwide rely on BHEH for expert penetration testing, vulnerability assessments, and security training."
          tag="Industry Leaders"
          textboxLayout="default"
          useInvertedBackground={false}
          names={[
            "Fortune 500 Enterprises",            "Government Agencies",            "Financial Institutions",            "Healthcare Organizations",            "Technology Companies",            "Defense Contractors"]}
          logos={[
            "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AV5zieBE9moM5TuLbdqDKSJv8O/microsoft-corporate-logo-in-professional-1772665230899-72ad699d.png",            "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AV5zieBE9moM5TuLbdqDKSJv8O/google-corporate-logo-in-professional-st-1772665229491-3cdaa423.png",            "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AV5zieBE9moM5TuLbdqDKSJv8O/amazon-corporate-logo-in-professional-st-1772665231165-9d534d99.png",            "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AV5zieBE9moM5TuLbdqDKSJv8O/cisco-corporate-logo-in-professional-sty-1772665230232-607a1c38.png",            "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AV5zieBE9moM5TuLbdqDKSJv8O/ibm-corporate-logo-in-professional-style-1772665229572-4fde208b.png",            "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AV5zieBE9moM5TuLbdqDKSJv8O/oracle-corporate-logo-in-professional-st-1772665230272-2e3bf981.png",            "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AV5zieBE9moM5TuLbdqDKSJv8O/vmware-corporate-logo-in-professional-st-1772665230936-471a9b59.png",            "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AV5zieBE9moM5TuLbdqDKSJv8O/crowdstrike-corporate-logo-in-profession-1772665230593-feebe9c2.png"]}
          speed={40}
          showCard={true}
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardTwelve
          testimonials={[
            {
              id: "1",              name: "Michael Rodriguez",              imageSrc:
                "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AV5zieBE9moM5TuLbdqDKSJv8O/professional-headshot-of-a-ciso-or-secur-1772665230699-34f24f43.png",              imageAlt: "Michael Rodriguez, CISO"},
            {
              id: "2",              name: "Jennifer Lee",              imageSrc:
                "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AV5zieBE9moM5TuLbdqDKSJv8O/professional-headshot-of-a-female-securi-1772665230258-822d603e.png",              imageAlt: "Jennifer Lee, Security Director"},
            {
              id: "3",              name: "David Kim",              imageSrc:
                "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AV5zieBE9moM5TuLbdqDKSJv8O/professional-headshot-of-a-male-security-1772665230880-391c8105.png",              imageAlt: "David Kim, Security Consultant"},
            {
              id: "4",              name: "Rebecca Patel",              imageSrc:
                "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AV5zieBE9moM5TuLbdqDKSJv8O/professional-headshot-of-a-female-penetr-1772665230579-27fed186.png",              imageAlt: "Rebecca Patel, Red Team Lead"},
            {
              id: "5",              name: "Thomas Anderson",              imageSrc:
                "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AV5zieBE9moM5TuLbdqDKSJv8O/professional-headshot-of-a-security-oper-1772665230399-cd58b901.png",              imageAlt: "Thomas Anderson, Security Manager"},
            {
              id: "6",              name: "Victoria Chen",              imageSrc:
                "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AV5zieBE9moM5TuLbdqDKSJv8O/professional-headshot-of-a-female-securi-1772665230542-1aed583e.png",              imageAlt: "Victoria Chen, CISO"},
          ]}
          cardTitle="Trusted by 2,500+ Security Professionals and 200+ Enterprise Organizations Worldwide"
          cardTag="Industry Leaders in Offensive Security"
          cardAnimation="slide-up"
          useInvertedBackground={false}
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterBaseReveal
          columns={[
            {
              title: "Solutions",              items: [
                { label: "Penetration Testing", href: "/services" },
                { label: "Vulnerability Assessment", href: "/services" },
                { label: "Red Team Services", href: "/services" },
                { label: "Security Consulting", href: "/services" },
              ],
            },
            {
              title: "Training & Community",              items: [
                { label: "Security Courses", href: "/training" },
                { label: "Elite Membership", href: "#pricing" },
                { label: "Community Forum", href: "#" },
                { label: "Intelligence Briefings", href: "#" },
              ],
            },
            {
              title: "Company",              items: [
                { label: "About BHEH", href: "#" },
                { label: "Blog & Research", href: "#" },
                { label: "Contact", href: "/contact" },
                { label: "Privacy Policy", href: "#" },
              ],
            },
          ]}
          copyrightText="© 2025 Black Hat Ethical Hacking. All rights reserved."
        />
      </div>
    </ThemeProvider>
  );
}
