"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import Link from "next/link";
import NavbarLayoutFloatingInline from "@/components/navbar/NavbarLayoutFloatingInline";
import PricingCardTwo from "@/components/sections/pricing/PricingCardTwo";
import FaqDouble from "@/components/sections/faq/FaqDouble";
import FooterBaseReveal from "@/components/sections/footer/FooterBaseReveal";
import { DollarSign, BookOpen, HelpCircle } from "lucide-react";

export default function TrainingPage() {
  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="training-courses" data-section="training-courses">
        <PricingCardTwo
          title="Advanced Security Training Programs"
          description="Develop elite-level offensive security skills through hands-on labs, real-world CVE studies, and expert-led instruction. Courses designed for professionals seeking advanced penetration testing and exploitation expertise."
          tag="Training"
          tagIcon={BookOpen}
          plans={[
            {
              id: "foundations",
              badge: "Offensive Security Foundations",
              badgeIcon: BookOpen,
              price: "$199",
              subtitle:
                "Essential penetration testing concepts for beginners and intermediate professionals",
              buttons: [
                { text: "Enroll Now", href: "#" },
                { text: "View Syllabus", href: "#" },
              ],
              features: [
                "Reconnaissance & Scanning",
                "Enumeration & Vulnerability Analysis",
                "Active Exploitation Techniques",
                "Post-Exploitation & Persistence",
                "Hands-On Lab Environments",
                "Certificate of Completion",
              ],
            },
            {
              id: "advanced",
              badge: "Advanced Exploitation Techniques",
              badgeIcon: BookOpen,
              price: "$399",
              subtitle:
                "Deep dive into advanced exploitation, custom tools, and sophisticated attack scenarios",
              buttons: [
                { text: "Enroll Now", href: "#" },
                { text: "View Syllabus", href: "#" },
              ],
              features: [
                "Zero-Day Analysis & Development",
                "Custom Exploit Creation",
                "Advanced TTPs & Evasion",
                "Command & Control Techniques",
                "Multi-Stage Attack Development",
                "Career Advancement Support",
              ],
            },
            {
              id: "redteam",
              badge: "Red Team Operations Master Class",
              badgeIcon: BookOpen,
              price: "$499",
              subtitle:
                "Comprehensive red team engagement planning, execution, and leadership",
              buttons: [
                { text: "Enroll Now", href: "#" },
                { text: "View Syllabus", href: "#" },
              ],
              features: [
                "Multi-Phase Engagement Planning",
                "Team Leadership & Coordination",
                "Advanced Reconnaissance",
                "Operational Security (OPSEC)",
                "Reporting & Communication",
                "1-Month Cohort Group Access",
              ],
            },
            {
              id: "elite-training",
              badge: "Elite Community Membership",
              badgeIcon: BookOpen,
              price: "$299/mo",
              subtitle:
                "Unlimited access to all courses, community, and exclusive advanced training",
              buttons: [
                { text: "Join Elite", href: "#" },
                { text: "Free Trial", href: "#" },
              ],
              features: [
                "All Course Access & Updates",
                "Weekly Expert Briefings",
                "Private Exploit Intelligence",
                "Exclusive Community Forum",
                "1-on-1 Mentoring Sessions",
                "Job Board & Networking",
              ],
            },
          ]}
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
        />
      </div>

      <div id="training-faq" data-section="training-faq">
        <FaqDouble
          title="Training Program FAQ"
          description="Common questions about our security courses, learning paths, and community membership"
          tag="Help"
          tagIcon={HelpCircle}
          textboxLayout="default"
          useInvertedBackground={false}
          faqs={[
            {
              id: "1",
              title: "What prerequisites do I need for each course?",
              content:
                "Foundations requires basic networking knowledge. Advanced Exploitation assumes completion of Foundations or equivalent experience. Red Team Master Class requires both foundational knowledge and real penetration testing experience. Elite membership includes courses appropriate for all levels with personalized learning paths.",
            },
            {
              id: "2",
              title: "Are courses completely self-paced?",
              content:
                "Yes, all courses offer self-paced learning with lifetime access to materials. Elite members also get optional cohort-based live sessions and weekly expert briefings. You can complete coursework on your schedule.",
            },
            {
              id: "3",
              title: "What lab environments are included?",
              content:
                "Each course includes access to isolated lab networks with vulnerable systems designed for hands-on practice. Labs are pre-configured and ready to use. You'll practice against realistic enterprise environments simulating actual penetration testing scenarios.",
            },
            {
              id: "4",
              title: "Can I share my Elite membership?",
              content:
                "Elite memberships are personal and non-transferable. Each member needs their own subscription. We offer team plans with group discounts for organizations wanting to train multiple security professionals.",
            },
            {
              id: "5",
              title: "How does the certification work?",
              content:
                "Upon course completion, you receive a digital certificate of completion. While not an official industry certification like CEH or OSCP, our certificates demonstrate advanced security knowledge and are widely respected in the industry. Some employers recognize BHEH certification as equivalent to advanced training.",
            },
            {
              id: "6",
              title: "What if I have questions during my training?",
              content:
                "Standard course students have access to community forums and Q&A sections. Elite members get priority support with faster response times and options for 1-on-1 consultation sessions with instructors. Community engagement is highly encouraged across all programs.",
            },
          ]}
          faqsAnimation="slide-up"
          animationType="smooth"
        />
      </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: "/" },
                { 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>
  );
}