"use client"

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleApple from '@/components/navbar/NavbarStyleApple/NavbarStyleApple';
import HeroSplit from '@/components/sections/hero/HeroSplit';
import BlogCardOne from '@/components/sections/blog/BlogCardOne';
import FeatureCardNine from '@/components/sections/feature/FeatureCardNine';
import ContactSplit from '@/components/sections/contact/ContactSplit';
import FooterBase from '@/components/sections/footer/FooterBase';
import { BookOpen, Filter, Mail, Sparkles } from "lucide-react";

export default function LandingPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="hover-magnetic"
      defaultTextAnimation="background-highlight"
      borderRadius="pill"
      contentWidth="smallMedium"
      sizing="largeSmallSizeLargeTitles"
      background="aurora"
      cardStyle="solid"
      primaryButtonStyle="shadow"
      secondaryButtonStyle="glass"
      headingFontWeight="bold"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleApple
          navItems={[
            { name: "Home", id: "hero" },
            { name: "Articles", id: "blog" },
            { name: "Categories", id: "features" },
            { name: "Subscribe", id: "contact" },
            { name: "About", id: "about" }
          ]}
          brandName="TechBlog"
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroSplit
          title="Discover Insights & Stories"
          description="Explore in-depth articles on technology, design, development, and digital innovation. Stay updated with the latest trends and expert perspectives."
          background={{ variant: "sparkles-gradient" }}
          tag="Welcome to TechBlog"
          tagIcon={Sparkles}
          buttons={[
            { text: "Browse Articles", href: "blog" },
            { text: "Subscribe Now", href: "contact" }
          ]}
          imageSrc="https://img.b2bpic.net/free-photo/working-office_1150-120.jpg"
          imageAlt="blog writing content creative workspace"
          imagePosition="right"
        />
      </div>

      <div id="blog" data-section="blog">
        <BlogCardOne
          title="Latest Articles"
          description="Stay informed with our curated collection of tech articles, industry insights, and expert perspectives"
          tag="Blog"
          tagIcon={BookOpen}
          textboxLayout="default"
          useInvertedBackground="noInvert"
          animationType="slide-up"
          carouselMode="buttons"
          blogs={[
            {
              id: "1",              category: "Web Design",              title: "The Future of Web Design in 2025",              excerpt: "Explore emerging trends in web design, from AI-powered interfaces to immersive experiences that shape the digital landscape.",              imageSrc: "https://img.b2bpic.net/free-photo/it-specialist-workstation-programming-monitor-writing-lines-code_482257-118997.jpg",              imageAlt: "web design development coding programmer technology",              authorName: "Sarah Johnson",              authorAvatar: "/placeholders/placeholder1.webp",              date: "15 Jan 2025"
            },
            {
              id: "2",              category: "AI & ML",              title: "Artificial Intelligence Revolutionizing Software Development",              excerpt: "Discover how AI and machine learning are transforming the way we build, test, and deploy software applications.",              imageSrc: "https://img.b2bpic.net/free-photo/male-programmer-coding-laptop_482257-87912.jpg",              imageAlt: "artificial intelligence AI machine learning tech innovation",              authorName: "Michael Chen",              authorAvatar: "/placeholders/placeholder1.webp",              date: "12 Jan 2025"
            },
            {
              id: "3",              category: "Security",              title: "Essential Cybersecurity Practices for Modern Teams",              excerpt: "Learn the critical security measures every development team should implement to protect their applications and user data.",              imageSrc: "https://img.b2bpic.net/free-photo/office-worker-looking-camera_329181-13525.jpg",              imageAlt: "cybersecurity security protection digital data",              authorName: "Emily Rodriguez",              authorAvatar: "/placeholders/placeholder1.webp",              date: "10 Jan 2025"
            },
            {
              id: "4",              category: "UX Design",              title: "Creating Intuitive User Experiences: A Practical Guide",              excerpt: "Master the principles of UX design and learn techniques to create interfaces that users love to interact with.",              imageSrc: "https://img.b2bpic.net/free-photo/african-american-engineer-programming-app-code-developing-online-software-with-cloud-server-firewall-security-coding-new-user-interface-with-binary-code-html-program-web-development_482257-49867.jpg",              imageAlt: "ux design user experience design interface wireframe",              authorName: "David Kim",              authorAvatar: "/placeholders/placeholder1.webp",              date: "08 Jan 2025"
            },
            {
              id: "5",              category: "Cloud",              title: "Cloud Architecture Patterns for Scalable Applications",              excerpt: "Understand modern cloud architecture approaches and best practices for building scalable, resilient systems.",              imageSrc: "https://img.b2bpic.net/free-photo/side-view-attractive-hispanic-developer-programming-software-using-computer-while-working-from-home_662251-988.jpg",              imageAlt: "cloud computing cloud server infrastructure network",              authorName: "Lisa Anderson",              authorAvatar: "/placeholders/placeholder1.webp",              date: "05 Jan 2025"
            },
            {
              id: "6",              category: "Mobile Dev",              title: "Building Cross-Platform Mobile Apps: React Native vs Flutter",              excerpt: "Compare popular frameworks for mobile development and learn which approach best fits your project needs.",              imageSrc: "https://img.b2bpic.net/free-photo/african-american-software-engineer-works-laptop-typing-code-project_482257-112596.jpg",              imageAlt: "mobile app smartphone application development tech",              authorName: "James Wilson",              authorAvatar: "/placeholders/placeholder1.webp",              date: "02 Jan 2025"
            }
          ]}
        />
      </div>

      <div id="features" data-section="features">
        <FeatureCardNine
          title="Explore By Category"
          description="Filter articles by topic to find content that interests you most"
          tag="Categories"
          tagIcon={Filter}
          textboxLayout="default"
          useInvertedBackground="invertDefault"
          showStepNumbers={false}
          features={[
            {
              id: 1,
              title: "Web Development",              description: "Latest insights on modern web technologies, frameworks, and best practices for building responsive and performant applications.",              phoneOne: {
                imageSrc: "https://img.b2bpic.net/free-photo/it-specialist-workstation-programming-monitor-writing-lines-code_482257-118997.jpg"
              },
              phoneTwo: {
                imageSrc: "https://img.b2bpic.net/free-photo/male-programmer-coding-laptop_482257-87912.jpg"
              }
            },
            {
              id: 2,
              title: "Design & UX",              description: "Explore user experience design principles, interface patterns, and creative approaches to building beautiful digital products.",              phoneOne: {
                imageSrc: "https://img.b2bpic.net/free-photo/african-american-engineer-programming-app-code-developing-online-software-with-cloud-server-firewall-security-coding-new-user-interface-with-binary-code-html-program-web-development_482257-49867.jpg"
              },
              phoneTwo: {
                imageSrc: "https://img.b2bpic.net/free-photo/it-specialist-workstation-programming-monitor-writing-lines-code_482257-118997.jpg"
              }
            }
          ]}
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactSplit
          tag="Newsletter"
          tagIcon={Mail}
          title="Stay Updated With Our Latest Articles"
          description="Subscribe to our newsletter and get weekly updates featuring the best tech articles, industry insights, and expert perspectives delivered to your inbox."
          background={{ variant: "gradient-bars" }}
          useInvertedBackground="noInvert"
          imageSrc="https://img.b2bpic.net/free-photo/e-mail-global-communications-connection-social-networking-concept_53876-134026.jpg"
          imageAlt="email newsletter subscription inbox communication"
          mediaPosition="right"
          inputPlaceholder="Enter your email address"
          buttonText="Subscribe"
          termsText="We respect your privacy. Unsubscribe at any time. By subscribing, you agree to receive our newsletter."
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterBase
          logoText="TechBlog"
          copyrightText="© 2025 TechBlog. All rights reserved."
          columns={[
            {
              title: "Content",              items: [
                { label: "Articles", href: "blog" },
                { label: "Categories", href: "features" },
                { label: "Archive", href: "blog" }
              ]
            },
            {
              title: "Company",              items: [
                { label: "About Us", href: "about" },
                { label: "Contact", href: "contact" },
                { label: "Subscribe", href: "contact" }
              ]
            },
            {
              title: "Resources",              items: [
                { label: "Style Guide", href: "https://example.com" },
                { label: "Documentation", href: "https://example.com" },
                { label: "Community", href: "https://example.com" }
              ]
            }
          ]}
        />
      </div>
    </ThemeProvider>
  );
}