"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleApple from "@/components/navbar/NavbarStyleApple/NavbarStyleApple";
import HeroBillboard from "@/components/sections/hero/HeroBillboard";
import FeatureBento from "@/components/sections/feature/FeatureBento";
import MetricCardTen from "@/components/sections/metrics/MetricCardTen";
import TestimonialCardThirteen from "@/components/sections/testimonial/TestimonialCardThirteen";
import PricingCardFive from "@/components/sections/pricing/PricingCardFive";
import FaqBase from "@/components/sections/faq/FaqBase";
import FooterBaseCard from "@/components/sections/footer/FooterBaseCard";
import {
  Sparkles,
  CheckCircle,
  BookOpen,
  Calculator,
  Target,
  Beaker,
  BookMarked,
  Brain,
  Lock,
  MessageCircle,
  Calendar,
  TrendingUp,
  MessageSquare,
  Library,
  BarChart3,
  Settings,
  HelpCircle,
  Compass,
  FileText,
  Users,
  Award,
  Lightbulb,
  Zap,
  Quote,
  DollarSign,
  Star
} from "lucide-react";

export default function LandingPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="directional-hover"
      defaultTextAnimation="background-highlight"
      borderRadius="soft"
      contentWidth="smallMedium"
      sizing="largeSmallSizeMediumTitles"
      background="floatingGradient"
      cardStyle="inset"
      primaryButtonStyle="primary-glow"
      secondaryButtonStyle="solid"
      headingFontWeight="light"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleApple
          brandName="Kweller Prep"
          navItems={[
            { name: "Services", id: "services" },
            { name: "Success Stories", id: "testimonials" },
            { name: "Pricing", id: "pricing" },
            { name: "FAQ", id: "faq" },
            { name: "Start Free Assessment", id: "contact" }
          ]}
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroBillboard
          title="Score Higher. Get Into Your Dream School."
          description="Expert test prep tutoring designed for real results. Personalized strategies, proven track record, flexible scheduling to fit your life."
          background={{ variant: "sparkles-gradient" }}
          tag="Expert Tutoring"
          tagIcon={Sparkles}
          tagAnimation="slide-up"
          buttons={[
            { text: "Start Your Free Assessment", href: "contact" },
            { text: "View Our Programs", href: "services" }
          ]}
          buttonAnimation="blur-reveal"
          imageSrc="http://img.b2bpic.net/free-photo/classroom-class-study-academic-schedule_53876-133781.jpg"
          imageAlt="Kweller Prep Test Prep Dashboard"
          mediaAnimation="slide-up"
          avatarText="Join 5,000+ students who improved their scores"
          marqueeItems={[
            { type: "text", text: "SAT Prep" },
            { type: "text", text: "ACT Prep" },
            { type: "text", text: "AP Exams" },
            { type: "text", text: "College Counseling" },
            { type: "text", text: "Custom Tutoring" }
          ]}
          marqueeSpeed={30}
          showMarqueeCard={true}
          ariaLabel="Hero section showcasing Kweller Prep test preparation services"
        />
      </div>

      <div id="services" data-section="services">
        <FeatureBento
          title="Our Multi-Stop Test Prep Services"
          description="From SAT mastery to college counseling, we provide comprehensive test preparation solutions tailored to each student's unique learning style and goals."
          tag="Complete Test Prep"
          tagIcon={CheckCircle}
          tagAnimation="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
          animationType="slide-up"
          features={[
            {
              title: "SAT Preparation",              description: "Comprehensive SAT coaching with targeted strategies for Reading, Writing, and Math sections. Average student score improvement: 280 points.",              bentoComponent: "icon-info-cards",              items: [
                { icon: BookOpen, label: "Reading & Writing", value: "Expert instruction" },
                { icon: Calculator, label: "Math Focus", value: "Targeted drills" },
                { icon: Target, label: "Test Strategy", value: "Time management" }
              ]
            },
            {
              title: "ACT Mastery",              description: "Specialized ACT prep covering all four sections with emphasis on pacing and question types. Students see average 4-point composite improvement.",              bentoComponent: "animated-bar-chart"
            },
            {
              title: "AP Exam Excellence",              description: "Subject-specific AP prep for Biology, Chemistry, US History, and more. Our students achieve 85% 4+ score rate across all AP subjects.",              bentoComponent: "3d-stack-cards",              items: [
                { icon: Beaker, title: "Science APs", subtitle: "Biology, Chemistry, Physics", detail: "Lab-based and conceptual mastery" },
                { icon: BookMarked, title: "History & English", subtitle: "APUSH, AP Lit, AP Lang", detail: "Essay writing and analysis skills" },
                { icon: Brain, title: "Math & Comp Sci", subtitle: "Calculus, Computer Science", detail: "Problem-solving strategies" }
              ]
            },
            {
              title: "One-on-One Tutoring",              description: "Personalized private sessions addressing individual learning gaps and maximizing strengths. Customized lesson plans for ultimate flexibility.",              bentoComponent: "phone",              statusIcon: Lock,
              alertIcon: MessageCircle,
              alertTitle: "Your Tutor",              alertMessage: "Ready for your session",              apps: [
                { name: "Calendar", icon: Calendar },
                { name: "Notes", icon: BookMarked },
                { name: "Progress", icon: TrendingUp },
                { name: "Chat", icon: MessageSquare },
                { name: "Resources", icon: Library },
                { name: "Tests", icon: BarChart3 },
                { name: "Settings", icon: Settings },
                { name: "Support", icon: HelpCircle }
              ]
            },
            {
              title: "College Consulting",              description: "Guidance through the entire college application process. Essay review, school selection, timeline management, and interview prep.",              bentoComponent: "orbiting-icons",              centerIcon: Compass,
              items: [
                { icon: FileText, ring: 1 },
                { icon: CheckCircle, ring: 1 },
                { icon: Users, ring: 2 },
                { icon: Award, ring: 2 },
                { icon: Lightbulb, ring: 3 },
                { icon: Zap, ring: 3 }
              ]
            },
            {
              title: "Group Workshops",              description: "Interactive group sessions covering test strategies, time management, and subject deep-dives. Perfect for peer learning and motivation.",              bentoComponent: "marquee",              centerIcon: Users,
              variant: "text",              texts: ["Strategy Sessions", "Mock Tests", "Q&A Forums", "Study Halls", "Review Classes"]
            }
          ]}
        />
      </div>

      <div id="metrics" data-section="metrics">
        <MetricCardTen
          title="Proven Results That Speak for Themselves"
          description="Our students consistently achieve exceptional score improvements and gain admission to their target schools."
          textboxLayout="default"
          useInvertedBackground={false}
          animationType="slide-up"
          metrics={[
            { id: "1", title: "Average SAT Score Improvement", subtitle: "Across all tutoring programs", category: "SAT Results", value: "+280 points" },
            { id: "2", title: "ACT Composite Improvement", subtitle: "Students complete entire program", category: "ACT Results", value: "+4.2 points" },
            { id: "3", title: "Students Score 700+ (Reading/Writing)", subtitle: "Combined SAT sections", category: "Achievement Rate", value: "87%" },
            { id: "4", title: "College Admission Success Rate", subtitle: "First choice or top alternative", category: "Admissions", value: "94%" },
            { id: "5", title: "AP Exam 4+ Achievement Rate", subtitle: "Students in AP prep programs", category: "AP Success", value: "85%" },
            { id: "6", title: "Student Satisfaction Rating", subtitle: "Based on end-of-program surveys", category: "Student Feedback", value: "4.9/5.0" }
          ]}
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardThirteen
          title="Student Success Stories"
          description="Hear directly from students and parents about their transformation with Kweller Prep."
          tag="Testimonials"
          tagIcon={Quote}
          tagAnimation="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
          animationType="slide-up"
          showRating={true}
          testimonials={[
            {
              id: "1",              name: "Jessica Chen",              handle: "@jchen_stanford",              testimonial: "Kweller Prep took me from a 1450 to 1540 in just 8 weeks. The personalized tutoring and test strategies made all the difference. I'm now studying at Stanford!",              rating: 5,
              imageSrc: "http://img.b2bpic.net/free-photo/happy-teenager-posing-with-school-materials_23-2147655908.jpg",              imageAlt: "Jessica Chen"
            },
            {
              id: "2",              name: "Marcus Thompson",              handle: "@marcus_ivy",              testimonial: "The ACT group sessions were incredible. My score jumped from 31 to 35, and I felt so much more confident. The tutors really understand how students learn.",              rating: 5,
              imageSrc: "http://img.b2bpic.net/free-photo/young-student-wearing-graduation-cape-looking-her-notebook_114579-92485.jpg?_wi=1",              imageAlt: "Marcus Thompson"
            },
            {
              id: "3",              name: "Sarah Rodriguez",              handle: "@sarah_mit",              testimonial: "From struggling with math to getting a 780 on the SAT Math section - I couldn't have done it without Kweller's structured approach and encouragement.",              rating: 5,
              imageSrc: "http://img.b2bpic.net/free-photo/irritated-young-student-girl-wearing-bandana-backpack-putting-glasses-her-blouse-keeping-fists-air-holding-open-note-pad-her-head-with-closed-eyes-isolated-blue-background_141793-139803.jpg",              imageAlt: "Sarah Rodriguez"
            },
            {
              id: "4",              name: "David Park",              handle: "@david_yale",              testimonial: "The college consulting services were game-changing. Help with essays, school selection, and interview prep guided me through the entire process smoothly.",              rating: 5,
              imageSrc: "http://img.b2bpic.net/free-photo/celebration-education-graduation-student-success-learning-concept_53876-147438.jpg",              imageAlt: "David Park"
            },
            {
              id: "5",              name: "Emma Wilson",              handle: "@emma_upenn",              testimonial: "My AP Biology score went from uncertain to a 5. Kweller's AP-specific prep sessions and practice tests made complicated concepts crystal clear.",              rating: 5,
              imageSrc: "http://img.b2bpic.net/free-photo/young-student-wearing-graduation-cape-looking-her-notebook_114579-92485.jpg?_wi=2",              imageAlt: "Emma Wilson"
            },
            {
              id: "6",              name: "Parents' Perspective - The Johnson Family",              handle: "@johnsonsfam",              testimonial: "We were amazed by the progress our son made. The tutors communicated progress regularly, and his confidence grew as much as his scores did. Highly recommend!",              rating: 5,
              imageSrc: "http://img.b2bpic.net/free-photo/medium-shot-people-library_23-2149204735.jpg",              imageAlt: "Johnson Family"
            }
          ]}
        />
      </div>

      <div id="pricing" data-section="pricing">
        <PricingCardFive
          title="Transparent, Flexible Pricing Plans"
          description="Choose the program that fits your timeline and budget. All plans include personalized assessment and progress tracking."
          tag="Pricing"
          tagIcon={DollarSign}
          tagAnimation="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
          animationType="slide-up"
          plans={[
            {
              id: "starter",              tag: "Starter Package",              tagIcon: Zap,
              price: "$1,200",              period: "/month",              description: "Perfect for students just starting their test prep journey with flexible scheduling.",              button: { text: "Get Started", href: "contact" },
              featuresTitle: "What's Included:",              features: [
                "4 one-on-one tutoring sessions per month",                "Unlimited email support",                "Practice test materials",                "Access to group study sessions",                "Monthly progress report"
              ]
            },
            {
              id: "professional",              tag: "Professional Program",              tagIcon: Star,
              price: "$2,500",              period: "/month",              description: "Our most popular option - comprehensive prep with intensive support for maximum score improvement.",              button: { text: "Select This Plan", href: "contact" },
              featuresTitle: "What's Included:",              features: [
                "12 one-on-one tutoring sessions per month",                "2 group strategy workshops monthly",                "Full-length practice tests & scoring",                "Priority email & phone support",                "Weekly progress tracking calls",                "Essay review (if applicable)",                "College list consultation"
              ]
            },
            {
              id: "elite",              tag: "Elite Comprehensive",              tagIcon: Award,
              price: "$4,200",              period: "/month",              description: "Ultimate test prep and college counseling - dedicated support for exceptional results.",              button: { text: "Start Elite Program", href: "contact" },
              featuresTitle: "What's Included:",              features: [
                "Unlimited one-on-one tutoring sessions",                "Dedicated assigned tutor & counselor",                "Weekly group sessions & workshops",                "Bi-weekly comprehensive progress calls",                "Full college application support",                "Essay writing & editing (unlimited)",                "Interview preparation & coaching",                "School selection & strategy",                "24-hour turnaround on questions"
              ]
            },
            {
              id: "specialized",              tag: "Specialized Focus",              tagIcon: Target,
              price: "$1,800",              period: "/month",              description: "Targeted prep for specific exams (AP, Subject Tests) or skills with expert instruction.",              button: { text: "Choose Focus Area", href: "contact" },
              featuresTitle: "What's Included:",              features: [
                "8 subject-specific tutoring sessions/month",                "Targeted practice problem sets",                "Subject expert instructors",                "Progress tracking & adjustments",                "Access to online resource library",                "Mock exam administration",                "Flexible scheduling"
              ]
            }
          ]}
        />
      </div>

      <div id="faq" data-section="faq">
        <FaqBase
          title="Frequently Asked Questions"
          description="Everything you need to know about Kweller Prep test preparation programs and services."
          tag="FAQ"
          tagIcon={HelpCircle}
          tagAnimation="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
          faqsAnimation="slide-up"
          animationType="smooth"
          showCard={true}
          faqs={[
            {
              id: "1",              title: "When should I start test prep?",              content: "We recommend starting SAT prep 3-4 months before your test date and ACT prep 2-3 months before. However, every student is different. A free assessment with one of our tutors can help determine the right timeline for you based on your current level and target score."
            },
            {
              id: "2",              title: "How much can I improve my score?",              content: "Score improvement varies by starting level and effort invested. Our students typically improve 200-400 points on the SAT and 3-5 points on the ACT composite. Students who start with lower baseline scores often see larger percentage improvements. We'll discuss realistic goals during your free assessment."
            },
            {
              id: "3",              title: "Can I do tutoring sessions online or in-person?",              content: "We offer both! Online sessions provide flexibility and access to tutors across the country. In-person sessions in select locations offer that personal touch some students prefer. You can mix and match based on your schedule and learning preference."
            },
            {
              id: "4",              title: "What's your cancellation or rescheduling policy?",              content: "We understand life happens. Sessions can be rescheduled up to 24 hours in advance without penalty. Cancellations with less notice may result in session forfeiture. Contact your tutor or our support team for any concerns - we work to find solutions."
            },
            {
              id: "5",              title: "Do you offer group classes or only one-on-one tutoring?",              content: "We offer both! Group workshops are included in most plans and focus on strategy, test-taking skills, and subject reviews. One-on-one tutoring addresses your specific weaknesses and learning style. Many students benefit from a combination of both."
            },
            {
              id: "6",              title: "How do I know if a tutor is right for me?",              content: "After your free assessment, we match you with an experienced tutor based on your goals, learning style, and personality fit. If you feel the match isn't working after your first session, we'll find someone new at no extra cost. Your comfort and progress are our priorities."
            },
            {
              id: "7",              title: "Do you offer any money-back guarantees?",              content: "We guarantee your satisfaction. If you don't see meaningful progress within your first month, we'll adjust your program or offer a full refund. Most students see noticeable improvement within 2-3 weeks of consistent tutoring."
            },
            {
              id: "8",              title: "How is my progress tracked?",              content: "We track progress through practice test scores, weekly performance metrics, tutoring notes, and regular progress calls (depending on your plan). You'll receive monthly reports showing your growth and areas of focus for continued improvement."
            }
          ]}
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterBaseCard
          logoText="Kweller Prep"
          columns={[
            {
              title: "Services",              items: [
                { label: "SAT Preparation", href: "#services" },
                { label: "ACT Prep", href: "#services" },
                { label: "AP Exams", href: "#services" },
                { label: "College Consulting", href: "#services" },
                { label: "Tutoring", href: "#services" }
              ]
            },
            {
              title: "Company",              items: [
                { label: "About Us", href: "/about" },
                { label: "Our Team", href: "/team" },
                { label: "Careers", href: "/careers" },
                { label: "Blog", href: "/blog" },
                { label: "Contact", href: "#contact" }
              ]
            },
            {
              title: "Resources",              items: [
                { label: "Free SAT Guide", href: "/resources/sat-guide" },
                { label: "ACT Strategy", href: "/resources/act-strategy" },
                { label: "College Search", href: "/resources/college-search" },
                { label: "Test Prep Tips", href: "/blog" },
                { label: "Success Stories", href: "#testimonials" }
              ]
            },
            {
              title: "Connect",              items: [
                { label: "Instagram", href: "https://instagram.com" },
                { label: "Facebook", href: "https://facebook.com" },
                { label: "LinkedIn", href: "https://linkedin.com" },
                { label: "Twitter", href: "https://twitter.com" },
                { label: "Newsletter", href: "/newsletter" }
              ]
            }
          ]}
          copyrightText="© 2025 Kweller Prep. All rights reserved. Helping students achieve academic excellence."
          ariaLabel="Site footer with navigation and company information"
        />
      </div>
    </ThemeProvider>
  );
}
