"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleFullscreen from "@/components/navbar/NavbarStyleFullscreen/NavbarStyleFullscreen";
import HeroBillboard from "@/components/sections/hero/HeroBillboard";
import AboutMetric from "@/components/sections/about/AboutMetric";
import MetricCardThree from "@/components/sections/metrics/MetricCardThree";
import ProductCardThree from "@/components/sections/product/ProductCardThree";
import FeatureCardMedia from "@/components/sections/feature/FeatureCardMedia";
import ContactSplit from "@/components/sections/contact/ContactSplit";
import FooterBaseCard from "@/components/sections/footer/FooterBaseCard";
import { Award, Brain, Code, Cpu, Database, FileCode, MessageSquare, Network, Sparkles, Zap } from "lucide-react";

export default function LandingPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="icon-arrow"
      defaultTextAnimation="entrance-slide"
      borderRadius="soft"
      contentWidth="mediumSmall"
      sizing="mediumLargeSizeMediumTitles"
      background="circleGradient"
      cardStyle="glass-depth"
      primaryButtonStyle="double-inset"
      secondaryButtonStyle="glass"
      headingFontWeight="bold"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleFullscreen
          navItems={[
            { name: "Home", id: "hero" },
            { name: "About", id: "about" },
            { name: "Skills", id: "skills" },
            { name: "Projects", id: "projects" },
            { name: "Contact", id: "contact" },
          ]}
          brandName="Alex Chen"
          bottomLeftText="AI & ML Enthusiast"
          bottomRightText="alex@example.com"
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroBillboard
          title="Building Intelligent Systems"
          description="AI & Machine Learning Student | Deep Learning Researcher | Building the future with Neural Networks and Data Science"
          background={{ variant: "sparkles-gradient" }}
          tag="AI & ML Portfolio"
          tagIcon={Sparkles}
          tagAnimation="slide-up"
          buttons={[
            { text: "View Projects", href: "#projects" },
            { text: "Download Resume", href: "#contact" },
          ]}
          buttonAnimation="slide-up"
          imageSrc="https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AW1C6jyTIBbL5JkQIOSP9k3auE/a-stunning-ai-neural-network-visualizati-1772693599687-b2640a62.png"
          imageAlt="AI Neural Network Visualization"
          mediaAnimation="slide-up"
          className="w-full"
          containerClassName="w-full"
          titleClassName="text-4xl md:text-6xl"
          descriptionClassName="text-lg md:text-xl"
        />
      </div>

      <div id="about" data-section="about">
        <AboutMetric
          title="Passionate about AI research, deep learning applications, and building systems that solve real-world problems through intelligent algorithms"
          useInvertedBackground={false}
          metricsAnimation="slide-up"
          metrics={[
            { icon: Brain, label: "ML Projects", value: "15+" },
            { icon: Code, label: "Languages", value: "3" },
            { icon: Zap, label: "Deep Learning Models", value: "8+" },
            { icon: Award, label: "Hackathons", value: "5" },
          ]}
        />
      </div>

      <div id="skills" data-section="skills">
        <MetricCardThree
          title="Technical Skills & Expertise"
          description="Comprehensive toolkit for AI, machine learning, and data science development"
          textboxLayout="default"
          useInvertedBackground={false}
          animationType="slide-up"
          metrics={[
            { id: "1", icon: FileCode, title: "Programming", value: "Python" },
            { id: "2", icon: Network, title: "Deep Learning", value: "TensorFlow" },
            { id: "3", icon: Cpu, title: "ML Libraries", value: "PyTorch" },
            { id: "4", icon: Database, title: "Data Tools", value: "Scikit-learn" },
          ]}
        />
      </div>

      <div id="projects" data-section="projects">
        <ProductCardThree
          title="Featured Projects"
          description="Showcase of AI and Machine Learning projects demonstrating practical applications of neural networks, deep learning, and data science"
          textboxLayout="default"
          useInvertedBackground={false}
          animationType="slide-up"
          gridVariant="uniform-all-items-equal"
          products={[
            {
              id: "1",              name: "CNN on CIFAR-10 Dataset",              price: "View",              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AW1C6jyTIBbL5JkQIOSP9k3auE/a-modern-computer-screen-displaying-cnn--1772693599640-62d049fd.png",              imageAlt: "Convolutional Neural Network for image classification"},
            {
              id: "2",              name: "Transfer Learning: MNIST to SVHN",              price: "View",              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AW1C6jyTIBbL5JkQIOSP9k3auE/transfer-learning-architecture-diagram-s-1772693599611-9d87ce0f.png",              imageAlt: "Transfer learning architecture"},
            {
              id: "3",              name: "Word2Vec CBOW & Skip-Gram Implementation",              price: "View",              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AW1C6jyTIBbL5JkQIOSP9k3auE/natural-language-processing-interface-sh-1772693599659-2cbe1c4a.png",              imageAlt: "Natural language processing and word embeddings"},
          ]}
        />
      </div>

      <div id="achievements" data-section="achievements">
        <FeatureCardMedia
          title="Experience & Achievements"
          description="Recognition and practical experience in AI research, competitions, and professional development"
          textboxLayout="default"
          useInvertedBackground={false}
          animationType="slide-up"
          features={[
            {
              id: "1",              title: "AI/ML Research Work",              description: "Conducted independent research on advanced neural network architectures, optimizing model performance and reducing training time by 40%",              tag: "Research",              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AW1C6jyTIBbL5JkQIOSP9k3auE/ai-hackathon-trophy-and-celebration-scen-1772693596569-62aec70b.png"},
            {
              id: "2",              title: "Hackathon Wins",              description: "Won multiple hackathons with AI-powered solutions including predictive analytics platform and intelligent recommendation system",              tag: "Competitions",              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AW1C6jyTIBbL5JkQIOSP9k3auE/ai-hackathon-trophy-and-celebration-scen-1772693596569-62aec70b.png"},
            {
              id: "3",              title: "Machine Learning Certifications",              description: "Completed advanced courses in Deep Learning, Computer Vision, and NLP from leading institutions with distinction",              tag: "Learning",              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AW1C6jyTIBbL5JkQIOSP9k3auE/ai-hackathon-trophy-and-celebration-scen-1772693596569-62aec70b.png"},
          ]}
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactSplit
          tag="Get In Touch"
          title="Let's Collaborate on AI Projects"
          description="Interested in discussing AI/ML opportunities, internships, or collaborating on research? I'd love to hear from you. Reach out via email or connect on LinkedIn."
          tagIcon={MessageSquare}
          tagAnimation="slide-up"
          background={{ variant: "sparkles-gradient" }}
          useInvertedBackground={false}
          imageSrc="https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AW1C6jyTIBbL5JkQIOSP9k3auE/modern-tech-workspace-with-glowing-monit-1772693600577-7d9bc650.png"
          mediaAnimation="slide-up"
          mediaPosition="right"
          inputPlaceholder="your.email@example.com"
          buttonText="Subscribe to Updates"
          termsText="I respect your privacy. Unsubscribe anytime."
          className="w-full"
          containerClassName="w-full"
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterBaseCard
          logoText="Alex Chen"
          columns={[
            {
              title: "Navigation",              items: [
                { label: "Home", href: "#hero" },
                { label: "About", href: "#about" },
                { label: "Skills", href: "#skills" },
                { label: "Projects", href: "#projects" },
              ],
            },
            {
              title: "Connect",              items: [
                { label: "GitHub", href: "https://github.com" },
                { label: "LinkedIn", href: "https://linkedin.com" },
                { label: "Twitter", href: "https://twitter.com" },
                { label: "Email", href: "mailto:alex@example.com" },
              ],
            },
            {
              title: "Resources",              items: [
                { label: "Blog", href: "#" },
                { label: "Research Papers", href: "#" },
                { label: "Portfolio", href: "#" },
                { label: "Resume", href: "#" },
              ],
            },
          ]}
          copyrightText="© 2025 Alex Chen. AI & ML Student | Building Intelligent Systems"
        />
      </div>
    </ThemeProvider>
  );
}
