"use client"

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleMinimal from '@/components/navbar/NavbarStyleMinimal';
import HeroSplitAvatars from '@/components/sections/hero/HeroSplitAvatars';
import TagMediaSplitAbout from '@/components/sections/about/TagMediaSplitAbout';
import FeatureCardSeven from '@/components/sections/feature/FeatureCardSeven';
import ProductCardTwo from '@/components/sections/product/ProductCardTwo';
import PricingCardTwo from '@/components/sections/pricing/PricingCardTwo';
import TestimonialCardOne from '@/components/sections/testimonial/TestimonialCardOne';
import FaqSplitMedia from '@/components/sections/faq/FaqSplitMedia';
import ContactSplit from '@/components/sections/contact/ContactSplit';
import FooterCard from '@/components/sections/footer/FooterCard';
import { Sparkles, Zap, Award, Twitter, Linkedin, Github } from "lucide-react";

export default function LandingPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="hover-bubble"
      defaultTextAnimation="entrance-slide"
      borderRadius="pill"
      contentWidth="smallMedium"
      sizing="largeSmallSizeMediumTitles"
      background="plain"
      cardStyle="glass-depth"
      primaryButtonStyle="gradient"
      secondaryButtonStyle="radial-glow"
      headingFontWeight="extrabold"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleMinimal
          brandName="Code with me"
          button={{
            text: "Explore Courses",
            href: "pricing"
          }}
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroSplitAvatars
          title="Learn Coding from Industry Experts"
          description="Join thousands of students transforming their careers with our comprehensive coding programs. From beginner to advanced, we guide you every step of the way."
          tag="Start Learning Today"
          tagIcon={Sparkles}
          avatars={[
            { src: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766484694244-h6z6ypcz.jpg", alt: "Student 1" },
            { src: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766484694244-h6z6ypcz.jpg", alt: "Student 2" },
            { src: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766484694244-h6z6ypcz.jpg", alt: "Student 3" },
            { src: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766484694244-h6z6ypcz.jpg", alt: "Student 4" },
            { src: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766484694244-h6z6ypcz.jpg", alt: "Student 5" }
          ]}
          avatarText="Join 2,500+ successful graduates"
          buttons={[
            { text: "Browse Courses", href: "pricing" },
            { text: "Schedule Demo", href: "contact" }
          ]}
          imageSrc="https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766484694244-h6z6ypcz.jpg"
          imageAlt="Students learning together"
          imagePosition="right"
        />
      </div>

      <div id="about" data-section="about">
        <TagMediaSplitAbout
          title="Empowering the Next Generation of Developers"
          description="Code with me is dedicated to making quality coding education accessible to everyone. Our expert instructors bring real-world experience to every lesson."
          textboxLayout="default"
          contentTag="OUR APPROACH"
          contentTagIcon={Zap}
          contentTitle="Practical Learning for Real Careers"
          contentDescription="We believe in learning by doing. Every course combines theoretical knowledge with hands-on projects that build your portfolio. Our curriculum is updated regularly to match industry demands and emerging technologies."
          contentButtons={[
            { text: "Learn More", href: "#" }
          ]}
          imageSrc="https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766484695254-p59fsyqd.jpg"
          imageAlt="Our teaching team"
          imagePosition="right"
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="features" data-section="features">
        <FeatureCardSeven
          title="Our Learning Paths"
          description="Master coding with our structured, progressive learning tracks designed for every skill level."
          textboxLayout="default"
          animationType="slide-up"
          useInvertedBackground="noInvert"
          features={[
            {
              id: 1,
              title: "Web Development Fundamentals",
              description: "Start with HTML, CSS, and JavaScript. Build responsive websites and understand the fundamentals of modern web development.",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766484693438-07rkdlqa.jpg"
            },
            {
              id: 2,
              title: "Advanced Web Technologies",
              description: "Master React, Node.js, and databases. Build full-stack applications ready for production environments.",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766494973168-mwn1lqco.jpg"
            },
            {
              id: 3,
              title: "Backend & Database Design",
              description: "Learn server-side programming, API development, and database architecture for scalable applications.",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766494974186-q9l6jbqi.jpg"
            }
          ]}
        />
      </div>

      <div id="courses" data-section="courses">
        <ProductCardTwo
          title="Our Popular Courses"
          description="Discover our most sought-after coding courses designed to accelerate your career."
          textboxLayout="default"
          animationType="blur-reveal"
          useInvertedBackground="noInvert"
          gridVariant="three-columns-all-equal-width"
          products={[
            {
              id: "1",
              brand: "Code with me",
              name: "Web Development Bootcamp",
              price: "$299",
              rating: 5,
              reviewCount: "1.2k",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766494975050-7ahm4emg.jpg",
              imageAlt: "Web Development Bootcamp"
            },
            {
              id: "2",
              brand: "Code with me",
              name: "React Mastery Course",
              price: "$249",
              rating: 5,
              reviewCount: "950",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766494976181-onrupp9y.jpg",
              imageAlt: "React Mastery Course"
            },
            {
              id: "3",
              brand: "Code with me",
              name: "Full Stack Development",
              price: "$399",
              rating: 5,
              reviewCount: "1.8k",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766765157105-rpvnj8as.jpg",
              imageAlt: "Full Stack Development"
            }
          ]}
        />
      </div>

      <div id="pricing" data-section="pricing">
        <PricingCardTwo
          title="Simple, Transparent Pricing"
          description="Choose the perfect plan for your learning journey. No hidden fees, cancel anytime."
          textboxLayout="default"
          animationType="opacity"
          useInvertedBackground="noInvert"
          plans={[
            {
              id: "starter",
              badge: "Starter",
              badgeIcon: Zap,
              price: "$49/month",
              subtitle: "Perfect for beginners",
              buttons: [
                { text: "Get Started", href: "#" },
                { text: "Learn More", href: "#" }
              ],
              features: [
                "Access to 3 core courses",
                "Community forum access",
                "Email support",
                "Certificate of completion"
              ]
            },
            {
              id: "professional",
              badge: "Professional",
              badgeIcon: Sparkles,
              price: "$99/month",
              subtitle: "Best for serious learners",
              buttons: [
                { text: "Get Started", href: "#" },
                { text: "Chat to Sales", href: "#" }
              ],
              features: [
                "Access to 15+ advanced courses",
                "1-on-1 mentorship sessions",
                "Priority support",
                "Exclusive job board",
                "Portfolio review sessions"
              ]
            },
            {
              id: "enterprise",
              badge: "Enterprise",
              badgeIcon: Award,
              price: "Custom",
              subtitle: "For teams and organizations",
              buttons: [
                { text: "Contact Sales", href: "#" },
                { text: "Schedule Call", href: "#" }
              ],
              features: [
                "All Professional features",
                "Custom curriculum design",
                "Team management tools",
                "Dedicated account manager",
                "Advanced analytics and reporting"
              ]
            }
          ]}
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardOne
          title="Success Stories from Our Students"
          description="Hear from developers who transformed their careers with Code with me."
          textboxLayout="default"
          animationType="scale-rotate"
          useInvertedBackground="noInvert"
          gridVariant="uniform-all-items-equal"
          testimonials={[
            {
              id: "1",
              name: "Sarah Chen",
              role: "Junior Developer",
              company: "TechStartup Co",
              rating: 5,
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766484718833-8686x51w.jpg",
              linkedinUrl: "https://linkedin.com/in/sarahchen"
            },
            {
              id: "2",
              name: "Marcus Williams",
              role: "Full Stack Engineer",
              company: "Digital Solutions",
              rating: 5,
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766484712325-ocj12p51.jpg",
              linkedinUrl: "https://linkedin.com/in/marcuswilliams"
            },
            {
              id: "3",
              name: "Emma Rodriguez",
              role: "Frontend Developer",
              company: "Creative Agency",
              rating: 5,
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766484716089-kpbfo3ho.jpg",
              linkedinUrl: "https://linkedin.com/in/emmarodriguez"
            },
            {
              id: "4",
              name: "James Park",
              role: "Software Engineer",
              company: "Tech Giants Inc",
              rating: 5,
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766508651819-t3cnqjfz.jpg",
              linkedinUrl: "https://linkedin.com/in/jamespark"
            },
            {
              id: "5",
              name: "Lisa Anderson",
              role: "React Developer",
              company: "WebPro Services",
              rating: 5,
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766508653705-qp2xy5s6.jpg",
              linkedinUrl: "https://linkedin.com/in/lisaanderson"
            },
            {
              id: "6",
              name: "David Kumar",
              role: "Backend Developer",
              company: "CloudTech Systems",
              rating: 5,
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766765158294-cmlo8smz.jpg",
              linkedinUrl: "https://linkedin.com/in/davidkumar"
            }
          ]}
        />
      </div>

      <div id="faq" data-section="faq">
        <FaqSplitMedia
          title="Frequently Asked Questions"
          description="Find answers to common questions about our courses and enrollment process."
          textboxLayout="default"
          useInvertedBackground="noInvert"
          mediaPosition="left"
          imageSrc="https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766494977068-7yfz149c.jpg"
          imageAlt="FAQ illustration"
          animationType="smooth"
          faqs={[
            {
              id: "1",
              title: "Do I need prior coding experience?",
              content: "No! Our Beginner courses start from scratch. We welcome complete beginners and teach all fundamentals step by step. If you have experience, you can start with Intermediate or Advanced courses."
            },
            {
              id: "2",
              title: "What is the time commitment for each course?",
              content: "Most courses require 5-10 hours per week. You can learn at your own pace and access materials anytime. Full-time bootcamps are also available for intensive learning."
            },
            {
              id: "3",
              title: "Do I get a certificate after completion?",
              content: "Yes! All courses include a certificate of completion that you can add to your resume and LinkedIn profile. Our certificates are recognized by industry partners."
            },
            {
              id: "4",
              title: "Can I get help if I get stuck?",
              content: "Absolutely! Professional plan members get 1-on-1 mentorship. All students have access to our community forum where instructors and peers help answer questions."
            },
            {
              id: "5",
              title: "Is there a money-back guarantee?",
              content: "We offer a 14-day money-back guarantee if you're not satisfied with the course. No questions asked. We're confident you'll love learning with us."
            },
            {
              id: "6",
              title: "How do I access course materials?",
              content: "All materials are available through our online learning platform 24/7. You can access videos, assignments, and resources on any device."
            }
          ]}
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactSplit
          tag="Newsletter"
          title="Stay Updated on New Courses"
          description="Subscribe to get updates on new courses, exclusive tips, and special offers delivered to your inbox."
          useInvertedBackground="noInvert"
          imageSrc="https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766494977068-7yfz149c.jpg"
          imageAlt="Subscribe illustration"
          mediaPosition="right"
          inputPlaceholder="your@email.com"
          buttonText="Subscribe"
          termsText="We respect your privacy. Unsubscribe anytime."
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterCard
          logoText="Code with me"
          copyrightText="© 2025 Code with me. All rights reserved."
          socialLinks={[
            { icon: Twitter, href: "https://twitter.com", ariaLabel: "Twitter" },
            { icon: Linkedin, href: "https://linkedin.com", ariaLabel: "LinkedIn" },
            { icon: Github, href: "https://github.com", ariaLabel: "GitHub" }
          ]}
        />
      </div>
    </ThemeProvider>
  );
}
