"use client"

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarLayoutFloatingInline from '@/components/navbar/NavbarLayoutFloatingInline';
import HeroCentered from '@/components/sections/hero/HeroCentered';
import FeatureBento from '@/components/sections/feature/FeatureBento';
import FeatureBorderGlow from '@/components/sections/feature/featureBorderGlow/FeatureBorderGlow';
import TestimonialCardFifteen from '@/components/sections/testimonial/TestimonialCardFifteen';
import PricingCardEight from '@/components/sections/pricing/PricingCardEight';
import ContactCenter from '@/components/sections/contact/ContactCenter';
import FooterBaseReveal from '@/components/sections/footer/FooterBaseReveal';
import { Sparkles, Zap, Palette, Code, TrendingUp, Shield, Smartphone, Star, Rocket, Crown, DollarSign, Mail } from 'lucide-react';
import SplitAbout from '@/components/sections/about/SplitAbout';

export default function LandingPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="hover-bubble"
      defaultTextAnimation="entrance-slide"
      borderRadius="pill"
      contentWidth="medium"
      sizing="medium"
      background="none"
      cardStyle="gradient-bordered"
      primaryButtonStyle="primary-glow"
      secondaryButtonStyle="layered"
      headingFontWeight="medium"
    >
      <div id="nav" data-section="nav">
        <NavbarLayoutFloatingInline
          brandName="Webild"
          navItems={[
            { name: "Work", id: "features" },
            { name: "Services", id: "services" },
            { name: "Pricing", id: "pricing" },
            { name: "About", id: "testimonials" }
          ]}
          button={{
            text: "Get Started",            href: "contact"
          }}
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroCentered
          title="Build Interactive Web Experiences"
          description="Transform your vision into stunning, high-performance websites with cutting-edge design, seamless interactivity, and strategic marketing that drives real results."
          background={{ variant: "sparkles-gradient" }}
          avatars={[
            { src: "https://img.b2bpic.net/free-photo/happy-man-with-eyeglasses-smiling-office_329181-14553.jpg", alt: "Design Team Member" },
            { src: "https://img.b2bpic.net/free-photo/portrait-young-pretty-woman-sitting-table-trench-coat-working-laptop-co-working-office-wearing-glasses-smiling-happy-positive-workplace_285396-65.jpg", alt: "Development Team Member" },
            { src: "https://img.b2bpic.net/free-photo/portrait-young-beautiful-brunette-girl-black-hat-smiling_176420-8505.jpg", alt: "Marketing Team Member" }
          ]}
          avatarText="Trusted by 500+ brands worldwide"
          buttons={[
            { text: "View Our Work", href: "features" },
            { text: "Schedule Consultation", href: "contact" }
          ]}
        />
      </div>

      <div id="features" data-section="features">
        <FeatureBento
          title="Our Creative Expertise"
          description="Comprehensive solutions covering interactive design, responsive development, strategic marketing, and software innovation."
          tag="What We Offer"
          tagIcon={Sparkles}
          features={[
            {
              title: "Interactive Web Design",              description: "Stunning, responsive websites with smooth animations and engaging user experiences that captivate your audience.",              bentoComponent: "globe"
            },
            {
              title: "Custom Development",              description: "Scalable, high-performance applications built with modern frameworks and best practices in software engineering.",              bentoComponent: "animated-bar-chart"
            },
            {
              title: "Strategic Marketing",              description: "Data-driven campaigns that amplify your brand, increase conversions, and drive measurable business growth.",              bentoComponent: "line-chart"
            },
            {
              title: "Digital Strategy",              description: "End-to-end planning and execution of digital initiatives that align with your business goals.",              bentoComponent: "map"
            }
          ]}
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground="invertDefault"
        />
      </div>

      <div id="services" data-section="services">
        <FeatureBorderGlow
          title="Premium Services"
          description="Hover to explore our comprehensive service offerings designed for modern brands."
          tag="Core Services"
          tagIcon={Zap}
          features={[
            {
              icon: Palette,
              title: "UI/UX Design",              description: "Beautiful, intuitive interfaces that users love. We craft every pixel with purpose and precision."
            },
            {
              icon: Code,
              title: "Web Development",              description: "Robust, scalable web applications using React, Next.js, and modern tech stacks."
            },
            {
              icon: TrendingUp,
              title: "Digital Marketing",              description: "SEO, content strategy, and paid campaigns that drive qualified traffic and conversions."
            },
            {
              icon: Zap,
              title: "Performance Optimization",              description: "Lightning-fast load times and smooth animations that keep users engaged and satisfied."
            },
            {
              icon: Shield,
              title: "Security & Compliance",              description: "Enterprise-grade security protocols and full compliance with industry standards and regulations."
            },
            {
              icon: Smartphone,
              title: "Mobile Solutions",              description: "Native and cross-platform mobile apps that extend your reach across all devices."
            }
          ]}
          animationType="blur-reveal"
          textboxLayout="split"
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardFifteen
          testimonial="Webild transformed our entire digital presence. Their team's expertise in interactive design and development was instrumental in launching our platform. We've seen a 300% increase in user engagement since launch."
          rating={5}
          author="Sarah Mitchell, CEO at TechVenture"
          avatars={[
            { src: "https://img.b2bpic.net/free-photo/asian-architect-woman_53876-31462.jpg", alt: "Sarah Mitchell" },
            { src: "https://img.b2bpic.net/free-photo/front-view-man-developing-photos_23-2149893918.jpg", alt: "Client" },
            { src: "https://img.b2bpic.net/free-photo/front-view-smiley-man-darkroom_23-2149893830.jpg", alt: "Client" },
            { src: "https://img.b2bpic.net/free-photo/modern-office-confident-woman-works-creatively-professionally-exuding-innovation_1258-296528.jpg", alt: "Client" },
            { src: "https://img.b2bpic.net/free-photo/overtime-work_1098-13378.jpg", alt: "Client" },
            { src: "https://img.b2bpic.net/free-photo/male-painter-studio-using-watercolor-his-art_23-2150213616.jpg", alt: "Client" }
          ]}
          useInvertedBackground="invertDefault"
        />
      </div>

      <div id="pricing" data-section="pricing">
        <PricingCardEight
          title="Simple, Transparent Pricing"
          description="Choose the perfect package for your project. All plans include ongoing support and optimization."
          tag="Investment"
          tagIcon={DollarSign}
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground="noInvert"
          plans={[
            {
              id: "starter",              badge: "Perfect for Startups",              badgeIcon: Rocket,
              price: "$5,000",              subtitle: "Ideal for web presence and initial growth",              buttons: [
                { text: "Get Started", href: "contact" }
              ],
              features: [
                "Custom website design",                "Mobile responsive",                "Basic SEO optimization",                "3 months support",                "Analytics setup"
              ]
            },
            {
              id: "growth",              badge: "Most Popular",              badgeIcon: Star,
              price: "$12,000",              subtitle: "For growing businesses and e-commerce",              buttons: [
                { text: "Get Started", href: "contact" }
              ],
              features: [
                "Interactive web application",                "Advanced animations",                "Comprehensive SEO strategy",                "Content marketing included",                "6 months support",                "Performance monitoring"
              ]
            },
            {
              id: "enterprise",              badge: "Enterprise Solutions",              badgeIcon: Crown,
              price: "Custom",              subtitle: "Full-scale digital transformation",              buttons: [
                { text: "Schedule Consultation", href: "contact" }
              ],
              features: [
                "Custom software development",                "Mobile & web applications",                "Full digital strategy",                "Dedicated account manager",                "12+ months support",                "Ongoing optimization",                "Advanced integrations"
              ]
            }
          ]}
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactCenter
          tag="Get In Touch"
          tagIcon={Mail}
          title="Ready to Build Something Amazing?"
          description="Let's collaborate on your next project. Our team is excited to discuss your vision and create an exceptional digital experience."
          background={{ variant: "downward-rays-animated" }}
          useInvertedBackground="invertDefault"
          inputPlaceholder="your@email.com"
          buttonText="Schedule Call"
          termsText="We'll contact you within 24 hours to discuss your project needs."
        />
      </div>

      <div id="about" data-section="about">
        <SplitAbout
          title="Companies I've Worked With"
          description="At Webild, we collaborate with a diverse range of companies to bring innovative solutions to life. Here are some of the organizations I've had the pleasure to work with."
          bulletPoints={[
            { title: "Tech Innovators Inc.", description: "Leading edge technology solutions for the future." },
            { title: "Global Solutions Co.", description: "Global reach with local expertise in technology solutions." },
            { title: "Innovatech LLC", description: "Specializing in cutting-edge software and hardware solutions." },
            { title: "FutureTech Corp.", description: "Pioneering technology solutions for a better tomorrow." }
          ]}
          imageSrc="https://images.unsplash.com/photo-1519681393784-d120267933ba?w=800&q=80"
          imageAlt="Collaboration between tech companies"
          imagePosition="left"
          textboxLayout="stacked"
          useInvertedBackground="never"
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterBaseReveal
          columns={[
            {
              title: "Product",              items: [
                { label: "Services", href: "services" },
                { label: "Pricing", href: "pricing" },
                { label: "Portfolio", href: "features" }
              ]
            },
            {
              title: "Company",              items: [
                { label: "About Us", href: "testimonials" },
                { label: "Contact", href: "contact" },
                { label: "Blog", href: "https://blog.example.com" }
              ]
            },
            {
              title: "Legal",              items: [
                { label: "Privacy Policy", href: "#" },
                { label: "Terms of Service", href: "#" },
                { label: "Cookie Policy", href: "#" }
              ]
            }
          ]}
          copyrightText="© 2025 Webild. All rights reserved."
        />
      </div>
    </ThemeProvider>
  );
}