"use client"

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarLayoutFloatingInline from '@/components/navbar/NavbarLayoutFloatingInline';
import HeroSplitKpi from '@/components/sections/hero/HeroSplitKpi';
import TextAbout from '@/components/sections/about/TextAbout';
import FeatureCardNineteen from '@/components/sections/feature/FeatureCardNineteen';
import MetricCardOne from '@/components/sections/metrics/MetricCardOne';
import TestimonialCardFive from '@/components/sections/testimonial/TestimonialCardFive';
import FeatureCardTen from '@/components/sections/feature/FeatureCardTen';
import ContactText from '@/components/sections/contact/ContactText';
import FooterCard from '@/components/sections/footer/FooterCard';
import SocialProofOne from '@/components/sections/socialProof/SocialProofOne';
import { Zap, BookOpen, Lightbulb, TrendingUp, Star, CheckCircle, BookMarked, Infinity, FileText, Database, Link, Target, Clock, Gauge, BarChart3, Lock, Award, PieChart, Eye, Linkedin, Twitter, Github, Check } from "lucide-react";

export default function LandingPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="icon-arrow"
      defaultTextAnimation="entrance-slide"
      borderRadius="pill"
      contentWidth="medium"
      sizing="medium"
      background="aurora"
      cardStyle="layered-gradient"
      primaryButtonStyle="gradient"
      secondaryButtonStyle="glass"
      headingFontWeight="medium"
    >
      <div id="nav" data-section="nav">
        <NavbarLayoutFloatingInline
          brandName="Textbooked"
          navItems={[
            { name: "Features", id: "features" },
            { name: "How It Works", id: "process" },
            { name: "Impact", id: "metrics" },
            { name: "Testimonials", id: "testimonials" }
          ]}
          button={{
            text: "Start Learning",            href: "#contact"
          }}
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroSplitKpi
          title="Turn Knowledge Into Action"
          description="Textbooked transforms textbooks, research papers, and curated materials into personalized study plans with clear structure, actionable learning units, and built-in assessments. Master complex topics like distributed systems and databases with an executable roadmap designed for serious learners."
          background={{ variant: "plain" }}
          kpis={[
            { value: "8-10", label: "Weeks Typical Duration" },
            { value: "100%", label: "Mastery-Gated" },
            { value: "∞", label: "Knowledge Sources" }
          ]}
          enableKpiAnimation={true}
          tag="Personal Study Execution System"
          tagIcon={Zap}
          imageSrc="https://img.b2bpic.net/free-photo/education-application-knowledge-development-concept_53876-105721.jpg"
          imageAlt="Textbooked learning dashboard interface"
          imagePosition="right"
          mediaAnimation="blur-reveal"
          marqueeItems={[
            { type: "text", text: "Stanford University" },
            { type: "text", text: "MIT" },
            { type: "text", text: "Berkeley" },
            { type: "text", text: "Carnegie Mellon" },
            { type: "text", text: "Oxford" },
            { type: "text", text: "Cambridge" },
            { type: "text", text: "Harvard" },
            { type: "text", text: "CMU" }
          ]}
          marqueeSpeed={30}
          showMarqueeCard={true}
          buttons={[
            { text: "Begin Your First Plan", href: "#contact" },
            { text: "Explore Features", href: "#features" }
          ]}
          buttonAnimation="slide-up"
        />
      </div>

      <div id="about" data-section="about">
        <TextAbout
          tag="What Textbooked Is"
          tagIcon={BookOpen}
          title="Not a note-taking app. Not a course marketplace. A personal study execution system for people who want to actually finish what they start."
          useInvertedBackground={false}
          buttons={[
            { text: "Learn How It Works", href: "#process" }
          ]}
          buttonAnimation="opacity"
        />
      </div>

      <div id="features" data-section="features">
        <FeatureCardNineteen
          title="How Textbooked Works"
          description="Your knowledge journey transformed into a structured, actionable plan with clear milestones and measurable progress."
          tag="The Learning Framework"
          tagIcon={Lightbulb}
          textboxLayout="default"
          useInvertedBackground={true}
          features={[
            {
              id: 1,
              tag: "Input",              title: "Upload Your Materials",              subtitle: "Start with any resource",              description: "Submit textbooks, research papers, lecture notes, or curated materials. Textbooked integrates high-quality academic sources from Google Scholar, arXiv, and domain-specific databases.",              imageSrc: "https://img.b2bpic.net/free-photo/classroom-class-study-academic-schedule_53876-133781.jpg",              imageAlt: "Upload academic materials",              buttons: []
            },
            {
              id: 2,
              tag: "Structure",              title: "Generate Smart Plan",              subtitle: "Effort-weighted learning",              description: "Textbooked assigns effort weights to each learning unit and builds a customized study plan around your chosen intensity. No vague 'three sessions per week'—just clear, executable weekly sections.",              imageSrc: "https://img.b2bpic.net/free-vector/education-process-concept_98292-5453.jpg",              imageAlt: "Study plan generation",              buttons: []
            },
            {
              id: 3,
              tag: "Progress",              title: "Master With Assessments",              subtitle: "Gated progression enforced",              description: "Every study plan includes structured reading units, quizzes, tests, and practical tasks. Gated progression ensures mastery before moving forward. Assessments are graded deterministically with clear passing requirements.",              imageSrc: "https://img.b2bpic.net/free-photo/empty-modern-office-business-entrepreneur-with-laptop_482257-91248.jpg",              imageAlt: "Quiz and assessment interface",              buttons: []
            }
          ]}
        />
      </div>

      <div id="metrics" data-section="metrics">
        <MetricCardOne
          title="Built for Serious Learners"
          description="Textbooked's impact measured in completed plans, mastered concepts, and transformed learning outcomes."
          tag="Learning Outcomes"
          tagIcon={TrendingUp}
          gridVariant="uniform-all-items-equal"
          textboxLayout="default"
          animationType="slide-up"
          useInvertedBackground={false}
          metrics={[
            {
              id: "1",              value: "3x",              title: "Faster Completion",              description: "Structured plans complete 3x faster than unguided study",              icon: Zap
            },
            {
              id: "2",              value: "98%",              title: "Mastery Rate",              description: "Gated progression ensures comprehensive understanding",              icon: CheckCircle
            },
            {
              id: "3",              value: "10x",              title: "Source Integration",              description: "Combine textbooks, research, and cutting-edge materials in one plan",              icon: BookMarked
            },
            {
              id: "4",              value: "∞",              title: "Scalable Topics",              description: "From distributed systems to advanced databases and beyond",              icon: Infinity
            }
          ]}
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardFive
          title="What Serious Learners Say"
          description="Hear from engineers, researchers, and students who transformed their learning with Textbooked."
          tag="Real Success Stories"
          tagIcon={Star}
          textboxLayout="default"
          useInvertedBackground={true}
          testimonials={[
            {
              id: "1",              name: "Alex Chen, Software Engineer at TechCorp",              date: "Date: 15 November 2024",              title: "Finally Mastered Distributed Systems",              quote: "I spent 6 months jumping between tutorials and papers, never feeling confident. Textbooked structured everything—reading units, quizzes that actually tested comprehension, and a clear path forward. I completed the distributed systems plan in 8 weeks and landed a senior role.",              tag: "Engineering",              avatarSrc: "https://img.b2bpic.net/free-photo/close-up-smiley-woman-library_23-2149204737.jpg",              avatarAlt: "Alex Chen",              imageSrc: "https://img.b2bpic.net/free-photo/close-up-still-life-hard-exams_23-2149314051.jpg",              imageAlt: "Distributed systems learning"
            },
            {
              id: "2",              name: "Dr. Sarah Martinez, Research Fellow",              date: "Date: 10 November 2024",              title: "Integrated Research Into My Study Plan",              quote: "As a researcher, I needed to combine foundational textbook knowledge with the latest papers from arXiv. Textbooked's integration of Google Scholar and arXiv made it seamless. I built a custom plan that kept me current without sacrificing fundamentals.",              tag: "Research",              avatarSrc: "https://img.b2bpic.net/free-photo/young-students-classroom_329181-13009.jpg",              avatarAlt: "Dr. Sarah Martinez",              imageSrc: "https://img.b2bpic.net/free-vector/education-process-concept_98292-5453.jpg",              imageAlt: "Research learning plan"
            },
            {
              id: "3",              name: "James Liu, Database Administrator",              date: "Date: 5 November 2024",              title: "Gated Assessments Forced Real Understanding",              quote: "I thought I knew databases. The gated assessments revealed gaps I didn't know I had. Each quiz required actual mastery before moving to the next unit. Six months later, I'm architecting production systems with confidence.",              tag: "Databases",              avatarSrc: "https://img.b2bpic.net/free-photo/smart-looking-teacher_53876-23045.jpg",              avatarAlt: "James Liu",              imageSrc: "https://img.b2bpic.net/free-photo/classroom-class-study-academic-schedule_53876-133781.jpg",              imageAlt: "Database architecture learning"
            },
            {
              id: "4",              name: "Maya Patel, Computer Science Student",              date: "Date: 28 October 2024",              title: "Turned Chaos Into Clarity",              quote: "My textbooks sat untouched because I didn't know how to approach them. Textbooked gave me a weekly roadmap with effort weights that matched my intensity. Now I actually finish what I start.",              tag: "Academic",              avatarSrc: "https://img.b2bpic.net/free-photo/young-woman-shirt-jacket-looking-camera-looking-confident-front-view_176474-85282.jpg",              avatarAlt: "Maya Patel",              imageSrc: "https://img.b2bpic.net/free-photo/empty-startup-office-displays-statistics_482257-119484.jpg",              imageAlt: "Learning progress tracking"
            }
          ]}
        />
      </div>

      <div id="capabilities" data-section="capabilities">
        <FeatureCardTen
          title="Textbooked Capabilities"
          description="Everything you need to build mastery in technical and academic domains through structured, executable learning."
          tag="Core Features"
          tagIcon={Zap}
          textboxLayout="default"
          animationType="slide-up"
          useInvertedBackground={false}
          features={[
            {
              id: "1",              title: "Source Integration Engine",              description: "Seamlessly combine textbooks, research papers, lecture notes, and curated materials into a single coherent study plan. Import from Google Scholar, arXiv, and domain-specific repositories.",              reverse: false,
              media: {
                imageSrc: "https://img.b2bpic.net/free-photo/classroom-class-study-academic-schedule_53876-133781.jpg",                imageAlt: "Multiple learning sources integrated"
              },
              items: [
                { icon: BookOpen, text: "Textbook integration" },
                { icon: FileText, text: "Research paper parsing" },
                { icon: Database, text: "Curated content libraries" },
                { icon: Link, text: "Cross-source connections" }
              ]
            },
            {
              id: "2",              title: "Effort-Weighted Learning Plans",              description: "No vague pacing guidelines. Textbooked assigns specific effort weights to each learning unit based on complexity and your chosen intensity level, creating truly personalized weekly roadmaps.",              reverse: true,
              media: {
                imageSrc: "https://img.b2bpic.net/free-vector/education-process-concept_98292-5453.jpg",                imageAlt: "Personalized study plan creation"
              },
              items: [
                { icon: Zap, text: "Intensity-based customization" },
                { icon: Target, text: "Effort weighting system" },
                { icon: Clock, text: "Weekly milestone structure" },
                { icon: Gauge, text: "Real-time pace adjustment" }
              ]
            },
            {
              id: "3",              title: "Deterministic Assessment Engine",              description: "Graded quizzes, tests, and practical tasks with transparent passing thresholds. Per-question criteria ensure you understand each concept before progression.",              reverse: false,
              media: {
                imageSrc: "https://img.b2bpic.net/free-photo/empty-modern-office-business-entrepreneur-with-laptop_482257-91248.jpg",                imageAlt: "Assessment and evaluation system"
              },
              items: [
                { icon: CheckCircle, text: "Per-question mastery checks" },
                { icon: BarChart3, text: "Transparent scoring criteria" },
                { icon: Lock, text: "Gated progression gates" },
                { icon: Award, text: "Certification tracking" }
              ]
            },
            {
              id: "4",              title: "Progress Tracking & Analytics",              description: "Visualize your learning journey with detailed progress charts, retention metrics, and mastery indicators across all topics and learning units.",              reverse: true,
              media: {
                imageSrc: "https://img.b2bpic.net/free-photo/empty-startup-office-displays-statistics_482257-119484.jpg",                imageAlt: "Learning analytics dashboard"
              },
              items: [
                { icon: TrendingUp, text: "Performance analytics" },
                { icon: PieChart, text: "Mastery visualization" },
                { icon: Eye, text: "Retention tracking" },
                { icon: Zap, text: "Achievement milestones" }
              ]
            }
          ]}
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactText
          text="Ready to stop wandering and start mastering? Create your first structured study plan today."
          animationType="entrance-slide"
          background={{ variant: "sparkles-gradient" }}
          useInvertedBackground={false}
          buttons={[
            { text: "Start Your First Plan", href: "#" },
            { text: "Schedule a Demo", href: "#" }
          ]}
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterCard
          logoText="Textbooked"
          copyrightText="© 2025 Textbooked. Built for serious learners."
          socialLinks={[
            { icon: Linkedin, href: "https://linkedin.com", ariaLabel: "LinkedIn" },
            { icon: Twitter, href: "https://twitter.com", ariaLabel: "Twitter" },
            { icon: Github, href: "https://github.com", ariaLabel: "GitHub" }
          ]}
        />
      </div>
    </ThemeProvider>
  );
}