"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleCentered from '@/components/navbar/NavbarStyleCentered/NavbarStyleCentered';
import HeroSplit from '@/components/sections/hero/HeroSplit';
import FeatureCardTwentyOne from '@/components/sections/feature/FeatureCardTwentyOne';
import ProductCardOne from '@/components/sections/product/ProductCardOne';
import TestimonialCardThirteen from '@/components/sections/testimonial/TestimonialCardThirteen';
import FaqSplitText from '@/components/sections/faq/FaqSplitText';
import ContactCenter from '@/components/sections/contact/ContactCenter';
import FooterMedia from '@/components/sections/footer/FooterMedia';
import { Sparkles, Zap, BookOpen, Heart } from 'lucide-react';

export default function LandingPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="text-shift"
      defaultTextAnimation="reveal-blur"
      borderRadius="soft"
      contentWidth="medium"
      sizing="largeSizeMediumTitles"
      background="noise"
      cardStyle="glass-depth"
      primaryButtonStyle="gradient"
      secondaryButtonStyle="solid"
      headingFontWeight="light"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleCentered
          navItems={[
            { name: "Learn", id: "features" },
            { name: "Courses", id: "learning" },
            { name: "Community", id: "testimonials" },
            { name: "FAQ", id: "faq" },
            { name: "Login", id: "/login" },
          ]}
          button={{
            text: "Start Learning",            href: "contact"
          }}
          brandName="FinHub"
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroSplit
          title="Master Finance Through Playful Learning"
          description="Learn stocks, crypto, budgeting, and investment strategies through interactive lessons and gamified challenges. Start your financial journey today with FinHub."
          tag="Financial Education"
          tagIcon={Sparkles}
          tagAnimation="slide-up"
          background={{ variant: "sparkles-gradient" }}
          buttons={[
            { text: "Start Free Lesson", href: "/signup" },
            { text: "View Courses", href: "learning" },
          ]}
          buttonAnimation="slide-up"
          imageSrc="https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3APDZNAPblxpNYRuXTIE4hmL6HY/a-vibrant-playful-illustration-of-a-pers-1772485585732-ed859da8.png"
          imageAlt="Person learning finance through interactive mobile app"
          imagePosition="right"
          mediaAnimation="blur-reveal"
        />
      </div>

      <div id="features" data-section="features">
        <FeatureCardTwentyOne
          title="Learn Financial Concepts the Fun Way"
          description="Interactive lessons designed for everyone. From complete beginners to advanced investors, we make finance engaging and easy to understand."
          tag="Interactive Learning"
          tagIcon={Zap}
          tagAnimation="slide-up"
          accordionItems={[
            {
              id: "1",              title: "Stock Market Mastery",              content: "Understand how stocks work, learn technical analysis, and discover investment strategies through gamified scenarios and real-time market simulations."
            },
            {
              id: "2",              title: "Crypto & Blockchain",              content: "Demystify cryptocurrency, explore blockchain technology, and learn how to evaluate digital assets with our interactive crypto challenges."
            },
            {
              id: "3",              title: "Personal Budgeting",              content: "Master budgeting techniques, track spending habits, and build healthy financial routines with our intuitive budget planning tools."
            },
            {
              id: "4",              title: "Investment Strategies",              content: "Learn diversification, portfolio management, and risk assessment through case studies and virtual investment competitions."
            }
          ]}
          imageSrc="https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3APDZNAPblxpNYRuXTIE4hmL6HY/colorful-illustration-of-stock-market-ch-1772485586013-5ec22a53.png?_wi=1"
          imageAlt="Stock market learning illustration"
          mediaAnimation="slide-up"
          useInvertedBackground={false}
          mediaPosition="right"
          buttons={[
            { text: "Try Interactive Lessons", href: "#" },
          ]}
          buttonAnimation="slide-up"
        />
      </div>

      <div id="learning" data-section="learning">
        <ProductCardOne
          title="Choose Your Learning Path"
          description="Structured courses designed to build your financial knowledge progressively"
          tag="Courses"
          tagIcon={BookOpen}
          tagAnimation="slide-up"
          products={[
            {
              id: "1",              name: "Beginner's Guide to Stocks",              price: "Free",              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3APDZNAPblxpNYRuXTIE4hmL6HY/colorful-illustration-of-stock-market-ch-1772485586013-5ec22a53.png?_wi=2",              imageAlt: "Beginner stock market course"
            },
            {
              id: "2",              name: "Crypto 101 Course",              price: "Free",              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3APDZNAPblxpNYRuXTIE4hmL6HY/modern-illustration-of-cryptocurrency-an-1772485586614-526c5195.png",              imageAlt: "Cryptocurrency fundamentals"
            },
            {
              id: "3",              name: "Advanced Portfolio Management",              price: "Free",              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3APDZNAPblxpNYRuXTIE4hmL6HY/friendly-illustration-showing-budgeting--1772485586201-261e93c5.png",              imageAlt: "Portfolio management strategies"
            },
            {
              id: "4",              name: "Financial Independence Path",              price: "Free",              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3APDZNAPblxpNYRuXTIE4hmL6HY/colorful-illustration-of-stock-market-ch-1772485586013-5ec22a53.png?_wi=3",              imageAlt: "Path to financial independence"
            }
          ]}
          textboxLayout="default"
          gridVariant="four-items-2x2-equal-grid"
          animationType="slide-up"
          useInvertedBackground={true}
          buttons={[
            { text: "Browse All Courses", href: "#" },
          ]}
          buttonAnimation="slide-up"
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardThirteen
          title="Loved by Learners Worldwide"
          description="Join thousands of people who've transformed their financial literacy with FinHub"
          testimonials={[
            {
              id: "1",              name: "Alex Johnson",              handle: "@alexjohn",              testimonial: "FinHub made learning about stocks so fun! The gamified lessons kept me engaged, and I actually understand the stock market now.",              rating: 5,
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3APDZNAPblxpNYRuXTIE4hmL6HY/portrait-photo-of-a-happy-young-adult-pr-1772485585642-16f79072.png?_wi=1",              imageAlt: "Alex Johnson"
            },
            {
              id: "2",              name: "Sarah Chen",              handle: "@sarahfinance",              testimonial: "The interactive crypto course broke down complex blockchain concepts into easy-to-understand lessons. Highly recommend!",              rating: 5,
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3APDZNAPblxpNYRuXTIE4hmL6HY/portrait-photo-of-a-confident-woman-smil-1772485585769-a7ac5a64.png?_wi=1",              imageAlt: "Sarah Chen"
            },
            {
              id: "3",              name: "Marcus Williams",              handle: "@marcusw",              testimonial: "I went from complete beginner to confidently managing my portfolio thanks to FinHub's structured learning paths.",              rating: 5,
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3APDZNAPblxpNYRuXTIE4hmL6HY/portrait-photo-of-a-friendly-man-with-a--1772485585558-9539445f.png",              imageAlt: "Marcus Williams"
            },
            {
              id: "4",              name: "Emma Rodriguez",              handle: "@emmafintech",              testimonial: "Finally, a platform that makes financial education fun and accessible! The community aspect is incredible.",              rating: 5,
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3APDZNAPblxpNYRuXTIE4hmL6HY/portrait-photo-of-a-young-professional-w-1772485585796-0cb638e6.png",              imageAlt: "Emma Rodriguez"
            },
            {
              id: "5",              name: "James Park",              handle: "@jamespark",              testimonial: "The budgeting tools combined with lessons helped me save 30% more each month. Game changer!",              rating: 5,
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3APDZNAPblxpNYRuXTIE4hmL6HY/portrait-photo-of-a-happy-young-adult-pr-1772485585642-16f79072.png?_wi=2",              imageAlt: "James Park"
            },
            {
              id: "6",              name: "Lisa Thompson",              handle: "@lisafinance",              testimonial: "Best fintech learning platform I've found. The lessons are bite-sized and perfect for busy professionals.",              rating: 5,
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3APDZNAPblxpNYRuXTIE4hmL6HY/portrait-photo-of-a-confident-woman-smil-1772485585769-a7ac5a64.png?_wi=2",              imageAlt: "Lisa Thompson"
            }
          ]}
          showRating={true}
          textboxLayout="default"
          animationType="slide-up"
          useInvertedBackground={false}
        />
      </div>

      <div id="faq" data-section="faq">
        <FaqSplitText
          sideTitle="Common Questions About FinHub"
          sideDescription="Everything you need to know to get started with your financial learning journey"
          faqs={[
            {
              id: "1",              title: "Is FinHub really free?",              content: "Yes! All core courses and lessons are completely free. We believe financial education should be accessible to everyone."
            },
            {
              id: "2",              title: "What topics does FinHub cover?",              content: "We cover stocks, cryptocurrencies, personal budgeting, investment strategies, financial planning, and more. New topics are added regularly."
            },
            {
              id: "3",              title: "Can I learn at my own pace?",              content: "Absolutely! All lessons are self-paced. You can take weeks or months to complete a course, and your progress is saved automatically."
            },
            {
              id: "4",              title: "Do I need prior financial knowledge?",              content: "No! Our courses are designed for complete beginners. We start with fundamentals and progressively build more complex concepts."
            },
            {
              id: "5",              title: "How is the content gamified?",              content: "Earn points and badges as you complete lessons, compete on leaderboards with friends, and unlock special achievements to stay motivated."
            },
            {
              id: "6",              title: "Can I track my learning progress?",              content: "Yes! Your dashboard shows detailed progress metrics, learning streaks, badges earned, and personalized recommendations for your next lessons."
            }
          ]}
          textPosition="left"
          useInvertedBackground={true}
          faqsAnimation="slide-up"
          animationType="smooth"
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactCenter
          tag="Get Started"
          title="Ready to Master Finance?"
          description="Join thousands of learners who've already started their financial education journey. Sign up today and get instant access to our beginner-friendly courses."
          tagIcon={Heart}
          tagAnimation="slide-up"
          background={{ variant: "rotated-rays-animated" }}
          useInvertedBackground={false}
          inputPlaceholder="Enter your email address"
          buttonText="Start Learning Free"
          termsText="We respect your privacy. Unsubscribe at any time. By signing up, you agree to our Terms and Privacy Policy."
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterMedia
          imageSrc="https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3APDZNAPblxpNYRuXTIE4hmL6HY/abstract-gradient-background-with-soft-f-1772485585424-a9e26a7b.png"
          imageAlt="FinHub gradient background"
          logoText="FinHub"
          copyrightText="© 2025 FinHub | Making Finance Fun for Everyone"
          columns={[
            {
              title: "Learning",              items: [
                { label: "Courses", href: "learning" },
                { label: "Lessons", href: "features" },
                { label: "Challenges", href: "#" },
                { label: "Resources", href: "#" },
              ],
            },
            {
              title: "Community",              items: [
                { label: "Forum", href: "#" },
                { label: "Discord", href: "#" },
                { label: "Leaderboard", href: "#" },
                { label: "Events", href: "#" },
              ],
            },
            {
              title: "Company",              items: [
                { label: "About Us", href: "#" },
                { label: "Blog", href: "#" },
                { label: "Contact", href: "contact" },
                { label: "Privacy Policy", href: "#" },
              ],
            },
          ]}
        />
      </div>
    </ThemeProvider>
  );
}
