"use client"

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarLayoutFloatingInline from '@/components/navbar/NavbarLayoutFloatingInline';
import HeroLogoBillboardSplit from '@/components/sections/hero/HeroLogoBillboardSplit';
import MediaSplitTabsAbout from '@/components/sections/about/MediaSplitTabsAbout';
import FeatureCardTen from '@/components/sections/feature/FeatureCardTen';
import ProductCardFour from '@/components/sections/product/ProductCardFour';
import TestimonialCardFifteen from '@/components/sections/testimonial/TestimonialCardFifteen';
import MetricCardTen from '@/components/sections/metrics/MetricCardTen';
import ContactCTA from '@/components/sections/contact/ContactCTA';
import FooterSimple from '@/components/sections/footer/FooterSimple';
import { BarChart3, Briefcase, Cpu, Lock, RefreshCw, Rocket, Shield, ShoppingCart, Smartphone, Users, Zap } from "lucide-react";

export default function LandingPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="shift-hover"
      defaultTextAnimation="reveal-blur"
      borderRadius="pill"
      contentWidth="compact"
      sizing="largeSmallSizeLargeTitles"
      background="floatingGradient"
      cardStyle="gradient-mesh"
      primaryButtonStyle="double-inset"
      secondaryButtonStyle="glass"
      headingFontWeight="bold"
    >
      <div id="nav" data-section="nav">
        <NavbarLayoutFloatingInline
          brandName="Jake Young"
          navItems={[
            { name: "About", id: "about" },
            { name: "Services", id: "services" },
            { name: "Portfolio", id: "portfolio" },
            { name: "Testimonials", id: "testimonials" }
          ]}
          button={{
            text: "Get Started",            href: "#contact"
          }}
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroLogoBillboardSplit
          logoText="JAKE YOUNG"
          description="Expert website builder specializing in high-performance, conversion-driven sites for ambitious entrepreneurs and political voices. Transform your online presence with cutting-edge design and proven results."
          background={{ variant: "radial-gradient" }}
          buttons={[
            { text: "View My Work", href: "#portfolio" },
            { text: "Let's Build", href: "#contact" }
          ]}
          layoutOrder="default"
          imageSrc="https://img.b2bpic.net/free-photo/portrait-confident-businessman_1098-21013.jpg"
          imageAlt="Jake Young - Professional Website Builder"
          frameStyle="browser"
        />
      </div>

      <div id="about" data-section="about">
        <MediaSplitTabsAbout
          title="About Jake Young"
          description="I'm a passionate web developer with a mission to build powerful digital platforms for entrepreneurs and conservative leaders who are changing America."
          tabs={[
            {
              id: "expertise",              label: "Web Expertise",              description: "With 8+ years of experience, I've mastered modern web technologies including React, Next.js, and Tailwind CSS. I build fast, scalable, and stunning websites that convert visitors into customers. My approach combines technical excellence with strategic design thinking."
            },
            {
              id: "values",              label: "My Values",              description: "I believe in American exceptionalism, hard work, and building businesses that create real value. I'm committed to helping entrepreneurs succeed through technology and digital innovation. I support conservative principles and work with clients who share a vision for a stronger America."
            },
            {
              id: "results",              label: "Proven Results",              description: "My clients see average 45% increase in conversion rates, 60% faster load times, and significantly improved search rankings. I deliver projects on time and on budget, with exceptional attention to detail and customer service that exceeds expectations."
            }
          ]}
          imageSrc="https://img.b2bpic.net/free-photo/portrait-confident-businessman_1098-21013.jpg"
          imageAlt="Jake Young working on web development"
          imagePosition="right"
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="services" data-section="services">
        <FeatureCardTen
          title="Web Design Services"
          description="Comprehensive web solutions tailored to your business goals. From stunning landing pages to complex web applications, I deliver results that matter."
          tag="Services"
          features={[
            {
              id: "1",              title: "Custom Website Design",              description: "Bespoke websites built from the ground up to reflect your brand identity and achieve your business objectives. I combine aesthetic excellence with conversion optimization.",              media: {
                imageSrc: "https://img.b2bpic.net/free-photo/homepage-seen-computer-screen_23-2149416723.jpg"
              },
              items: [
                { icon: Zap, text: "Lightning-fast performance" },
                { icon: Shield, text: "Secure and compliant" },
                { icon: Smartphone, text: "Mobile-first responsive design" }
              ],
              reverse: false
            },
            {
              id: "2",              title: "E-Commerce Solutions",              description: "Full-featured online stores with integrated payment processing, inventory management, and customer analytics. Built to maximize sales and customer satisfaction.",              media: {
                imageSrc: "https://img.b2bpic.net/free-vector/realistic-laptop-with-smartphone_78370-564.jpg"
              },
              items: [
                { icon: ShoppingCart, text: "Seamless checkout experience" },
                { icon: BarChart3, text: "Advanced analytics dashboard" },
                { icon: Lock, text: "Enterprise-grade security" }
              ],
              reverse: true
            },
            {
              id: "3",              title: "Web Applications",              description: "Powerful, scalable web apps designed for productivity and user engagement. Perfect for SaaS platforms, management tools, and digital products.",              media: {
                imageSrc: "https://img.b2bpic.net/free-photo/homepage-seen-computer-screen_23-2149416724.jpg"
              },
              items: [
                { icon: Cpu, text: "Modern tech stack" },
                { icon: Users, text: "Multi-user architecture" },
                { icon: RefreshCw, text: "Real-time data synchronization" }
              ],
              reverse: false
            }
          ]}
          textboxLayout="default"
          animationType="slide-up"
          useInvertedBackground="invertDefault"
        />
      </div>

      <div id="portfolio" data-section="portfolio">
        <ProductCardFour
          title="Recent Projects"
          description="A selection of recent websites and applications I've built for satisfied clients across various industries."
          tag="Portfolio"
          tagIcon={Briefcase}
          products={[
            {
              id: "1",              name: "Conservative Leadership Platform",              price: "Featured",              variant: "Web Application",              imageSrc: "https://img.b2bpic.net/free-photo/homepage-seen-computer-screen_23-2149416723.jpg",              imageAlt: "Leadership platform interface"
            },
            {
              id: "2",              name: "E-Commerce Store Redesign",              price: "Featured",              variant: "E-Commerce Site",              imageSrc: "https://img.b2bpic.net/free-vector/realistic-laptop-with-smartphone_78370-564.jpg",              imageAlt: "E-commerce store"
            },
            {
              id: "3",              name: "Corporate Business Website",              price: "Featured",              variant: "Business Website",              imageSrc: "https://img.b2bpic.net/free-vector/flat-design-responsive-website-design_23-2149477719.jpg",              imageAlt: "Corporate website"
            },
            {
              id: "4",              name: "SaaS Dashboard Application",              price: "Featured",              variant: "Web Application",              imageSrc: "https://img.b2bpic.net/free-photo/homepage-seen-computer-screen_23-2149416724.jpg",              imageAlt: "SaaS dashboard"
            }
          ]}
          gridVariant="uniform-all-items-equal"
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardFifteen
          testimonial="Jake transformed our online presence completely. His website not only looks incredible but converts like a machine. The attention to detail and professionalism are unmatched. He's a true partner in our success."
          rating={5}
          author="Sarah Mitchell, Business Owner"
          avatars={[
            { src: "https://img.b2bpic.net/free-photo/close-up-portrait-young-handsome-successful-man_1163-5475.jpg", alt: "Sarah Mitchell" },
            { src: "https://img.b2bpic.net/free-photo/portrait-smiley-business-man_23-2148514859.jpg", alt: "Client testimonial" },
            { src: "https://img.b2bpic.net/free-photo/happy-businessman-smiling-camera_1163-4660.jpg", alt: "Client testimonial" },
            { src: "https://img.b2bpic.net/free-photo/young-businesswoman-portrait-office_1262-1506.jpg", alt: "Client testimonial" },
            { src: "https://img.b2bpic.net/free-photo/pensive-person-alone-corridor-serious_1262-1042.jpg", alt: "Client testimonial" },
            { src: "https://img.b2bpic.net/free-photo/portrait-businessman-office-2_1262-1488.jpg", alt: "Client testimonial" }
          ]}
          useInvertedBackground="invertDefault"
        />
      </div>

      <div id="why-choose" data-section="why-choose">
        <MetricCardTen
          title="Why Choose Jake Young"
          description="Industry-leading results and uncompromising commitment to excellence, patriotism, and client success."
          textboxLayout="default"
          useInvertedBackground="noInvert"
          metrics={[
            {
              id: "1",              title: "45% Average Increase",              subtitle: "Conversion rate improvement for clients",              category: "Results",              value: "Proven"
            },
            {
              id: "2",              title: "60% Faster Performance",              subtitle: "Website load times optimized",              category: "Speed",              value: "Certified"
            },
            {
              id: "3",              title: "8+ Years Experience",              subtitle: "Building high-performing websites",              category: "Expertise",              value: "Established"
            },
            {
              id: "4",              title: "98% Client Satisfaction",              subtitle: "Repeat and referral business rate",              category: "Quality",              value: "Exceptional"
            },
            {
              id: "5",              title: "24/7 Support Available",              subtitle: "Dedicated customer service team",              category: "Service",              value: "Always"
            },
            {
              id: "6",              title: "100% On-Time Delivery",              subtitle: "Projects completed on schedule",              category: "Reliability",              value: "Guaranteed"
            }
          ]}
          animationType="slide-up"
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactCTA
          tag="Get Started Today"
          tagIcon={Rocket}
          title="Ready to Build Your Dream Website?"
          description="Let's work together to create a stunning, high-converting website that represents your vision and drives real results. Contact me today for a free consultation."
          buttons={[
            { text: "Schedule Consultation", href: "mailto:jake@example.com" },
            { text: "View Pricing", href: "#pricing" }
          ]}
          background={{ variant: "plain" }}
          useInvertedBackground="invertDefault"
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterSimple
          columns={[
            {
              title: "Navigate",              items: [
                { label: "Home", href: "#" },
                { label: "About", href: "#about" },
                { label: "Services", href: "#services" },
                { label: "Portfolio", href: "#portfolio" }
              ]
            },
            {
              title: "Services",              items: [
                { label: "Web Design", href: "#services" },
                { label: "E-Commerce", href: "#services" },
                { label: "Web Apps", href: "#services" },
                { label: "Consulting", href: "#contact" }
              ]
            },
            {
              title: "Connect",              items: [
                { label: "Email", href: "mailto:jake@example.com" },
                { label: "LinkedIn", href: "https://linkedin.com" },
                { label: "Twitter", href: "https://twitter.com" },
                { label: "Contact", href: "#contact" }
              ]
            }
          ]}
          bottomLeftText="© 2025 Jake Young. All rights reserved."
          bottomRightText="Built with excellence and American pride"
        />
      </div>
    </ThemeProvider>
  );
}