"use client";

import Link from "next/link";
import { Code2, TrendingUp, Users, Zap, Layout, Smartphone, Cloud, Settings, Shield, Cog } from "lucide-react";
import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleFullscreen from '@/components/navbar/NavbarStyleFullscreen/NavbarStyleFullscreen';
import HeroLogoBillboardSplit from '@/components/sections/hero/HeroLogoBillboardSplit';
import SplitAbout from '@/components/sections/about/SplitAbout';
import FeatureHoverPattern from '@/components/sections/feature/featureHoverPattern/FeatureHoverPattern';
import TestimonialCardFifteen from '@/components/sections/testimonial/TestimonialCardFifteen';
import FooterMedia from '@/components/sections/footer/FooterMedia';

export default function HomePage() {
  return (
    <ThemeProvider
      defaultButtonVariant="shift-hover"
      defaultTextAnimation="entrance-slide"
      borderRadius="soft"
      contentWidth="compact"
      sizing="mediumLarge"
      background="none"
      cardStyle="layered-gradient"
      primaryButtonStyle="gradient"
      secondaryButtonStyle="glass"
      headingFontWeight="normal"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleFullscreen
          navItems={[
            { name: "Home", id: "/" },
            { name: "Services", id: "/services" },
            { name: "Team", id: "/team" },
            { name: "Contact", id: "/contact" },
          
            { name: "Blog", id: "/blog" },
]}
          brandName="TechVision"
          bottomLeftText="Innovation Driven"
          bottomRightText="hello@techvision.io"
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroLogoBillboardSplit
          logoText="TechVision"
          description="Transforming businesses through innovative software solutions and cutting-edge technology consulting. We build the future, one line of code at a time."
          background={{ variant: "radial-gradient" }}
          buttons={[
            { text: "Get Started", href: "/contact" },
            { text: "Learn More", href: "/services" }
          ]}
          layoutOrder="default"
          imageSrc="https://img.b2bpic.net/free-photo/businessman-checking-report-tablet_482257-120320.jpg"
          imageAlt="Tech startup team collaboration"
          frameStyle="browser"
        />
      </div>

      <div id="about" data-section="about">
        <SplitAbout
          title="About TechVision"
          description="Founded in 2020, TechVision has become a trusted partner for businesses seeking digital transformation. We combine deep technical expertise with strategic thinking to deliver solutions that drive growth and innovation."
          tag="Our Story"
          textboxLayout="default"
          useInvertedBackground="invertDefault"
          bulletPoints={[
            {
              title: "Expert Team",
              description: "50+ seasoned software engineers and consultants with proven track records",
              icon: Code2
            },
            {
              title: "Proven Results", 
              description: "Delivered 150+ successful projects across diverse industries and sectors",
              icon: TrendingUp
            },
            {
              title: "Client-Focused",
              description: "Dedicated to understanding and exceeding client expectations at every step",
              icon: Users
            },
            {
              title: "Cutting-Edge Tech",
              description: "Always staying ahead with the latest frameworks, tools, and best practices",
              icon: Zap
            }
          ]}
          imageSrc="https://img.b2bpic.net/free-photo/programmer-colleague-office-training-machine-learning-algorithms_482257-116901.jpg"
          imageAlt="Professional development team"
          imagePosition="right"
          buttons={[
            { text: "Explore Our Work", href: "/team" }
          ]}
        />
      </div>

      <div id="services" data-section="services">
        <FeatureHoverPattern
          title="Our Services"
          description="Comprehensive technology solutions tailored to your business needs and growth aspirations"
          tag="Services"
          textboxLayout="default"
          useInvertedBackground="noInvert"
          animationType="slide-up"
          features={[
            {
              icon: Layout,
              title: "Web Development",
              description: "Custom web applications built with modern frameworks and best practices for scalability"
            },
            {
              icon: Smartphone,
              title: "Mobile Solutions",
              description: "Native and cross-platform mobile apps that engage users and drive business growth"
            },
            {
              icon: Cloud,
              title: "Cloud Infrastructure",
              description: "Secure, scalable cloud solutions with AWS, Azure, and GCP expertise"
            },
            {
              icon: Settings,
              title: "AI & Machine Learning",
              description: "Intelligent solutions leveraging ML to automate and enhance business processes"
            },
            {
              icon: Shield,
              title: "Cybersecurity",
              description: "Comprehensive security audits and implementation of enterprise-grade protection"
            },
            {
              icon: Cog,
              title: "DevOps Consulting",
              description: "Streamlined deployment pipelines and infrastructure automation for rapid delivery"
            }
          ]}
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardFifteen
          testimonial="TechVision transformed our legacy system into a modern, scalable platform. Their team's expertise and dedication were instrumental in our digital transformation journey. We couldn't have done it without them."
          rating={5}
          author="James Patterson, CEO TechCorp Solutions"
          avatars={[
            {
              src: "https://img.b2bpic.net/free-photo/content-indian-ceo-standing-smiling-portrait-successful-pensive-bearded-businessman-glasses-posing-office-room-business-expression-management-concept_74855-11642.jpg",
              alt: "James Patterson"
            },
            {
              src: "https://img.b2bpic.net/free-photo/senior-businessman-with-arms-crossed-outside-modern-office-building_1139-1074.jpg",
              alt: "Rebecca Davis"
            },
            {
              src: "https://img.b2bpic.net/free-photo/portrait-happy-successful-businessman-standing-restaurant-with-crossed-arm_23-2147955259.jpg",
              alt: "Michael Zhang"
            },
            {
              src: "https://img.b2bpic.net/free-photo/medium-shot-smiley-man-posing-cv_23-2149927606.jpg",
              alt: "Lisa Anderson"
            }
          ]}
          useInvertedBackground="invertDefault"
        />
      </div>

      <FooterMedia
        imageSrc="https://img.b2bpic.net/free-photo/person-working-html-computer_23-2150038840.jpg"
        imageAlt="Digital technology network background"
        logoText="TechVision"
        copyrightText="© 2025 TechVision. All rights reserved."
        columns={[
          {
            title: "Services",
            items: [
              { label: "Web Development", href: "/services" },
              { label: "Mobile Apps", href: "/services" },
              { label: "Cloud Solutions", href: "/services" },
              { label: "AI & ML", href: "/services" }
            ]
          },
          {
            title: "Company",
            items: [
              { label: "About Us", href: "/team" },
              { label: "Team", href: "/team" },
              { label: "Careers", href: "https://careers.techvision.io" }
            ]
          },
          {
            title: "Connect",
            items: [
              { label: "Contact Us", href: "/contact" },
              { label: "Email", href: "mailto:hello@techvision.io" },
              { label: "LinkedIn", href: "https://linkedin.com/company/techvision" },
              { label: "GitHub", href: "https://github.com/techvision" }
            ]
          }
        ]}
      />
    </ThemeProvider>
  );
}