"use client"

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleApple from '@/components/navbar/NavbarStyleApple/NavbarStyleApple';
import HeroOverlay from '@/components/sections/hero/HeroOverlay';
import InlineImageSplitTextAbout from '@/components/sections/about/InlineImageSplitTextAbout';
import FeatureBento from '@/components/sections/feature/FeatureBento';
import MetricCardSeven from '@/components/sections/metrics/MetricCardSeven';
import TestimonialCardSixteen from '@/components/sections/testimonial/TestimonialCardSixteen';
import ContactSplitForm from '@/components/sections/contact/ContactSplitForm';
import FooterBaseCard from '@/components/sections/footer/FooterBaseCard';
import { Sparkles, TrendingUp } from "lucide-react";

export default function LandingPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="hover-bubble"
      defaultTextAnimation="entrance-slide"
      borderRadius="rounded"
      contentWidth="medium"
      sizing="mediumLarge"
      background="aurora"
      cardStyle="soft-shadow"
      primaryButtonStyle="gradient"
      secondaryButtonStyle="radial-glow"
      headingFontWeight="medium"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleApple 
          brandName="Webild"
          navItems={[
            { name: "Hero", id: "hero-section" },
            { name: "About", id: "about-section" },
            { name: "Feature", id: "features-section" },
            { name: "Metric", id: "metrics-section" },
            { name: "Testimonial", id: "testimonials-section" },
            { name: "Contact", id: "contact-section" },
            { name: "Footer", id: "footer-section" }
          ]}
        />
      </div>

      <div id="hero-section" data-section="hero-section">
        <HeroOverlay 
          title="Maximize Your Ad Spend with Data-Driven Media Buying"
          description="As a seasoned media buying expert, I help brands achieve exceptional ROI by leveraging advanced analytics, strategic planning, and industry insights to optimize every dollar spent on advertising."
          tag="Trusted by Industry Leaders"
          tagIcon={Sparkles}
          tagAnimation="slide-up"
          buttons={[
            { text: "View Case Studies", href: "#testimonials-section" },
            { text: "Schedule Consultation", href: "#contact-section" }
          ]}
          buttonAnimation="opacity"
          imageSrc="https://img.b2bpic.net/free-photo/modern-workspace-with-analytical-data-dashboards-displayed-devices_482257-126633.jpg"
          imageAlt="Professional media buying expert presenting data insights"
          textPosition="bottom-left"
          showDimOverlay={false}
          showBlur={true}
        />
      </div>

      <div id="about-section" data-section="about-section">
        <InlineImageSplitTextAbout 
          heading={[
            { type: "text", content: "Transforming Media Buying with Data-Driven Strategies" },
            { type: "image", src: "https://img.b2bpic.net/free-photo/chart-analysis_1098-15090.jpg", alt: "Media Buying Expertise" },
            { type: "text", content: "Maximizing ROI Through Precision Targeting" }
          ]}
          buttons={[
            { text: "View Our Approach", href: "#features-section" },
            { text: "See Results", href: "#metrics-section" }
          ]}
          buttonAnimation="slide-up"
          useInvertedBackground={false}
        />
      </div>

      <div id="features-section" data-section="features-section">
        <FeatureBento 
          features={[
            {
              title: "Data-Driven Media Buying",              description: "Leverage advanced analytics and real-time insights to optimize ad spend and maximize ROI across all digital channels.",              bentoComponent: "globe"
            },
            {
              title: "Performance Tracking",              description: "Monitor campaign performance with detailed dashboards and automated reporting to ensure transparency and accountability.",              bentoComponent: "animated-bar-chart"
            },
            {
              title: "Global Reach",              description: "Access premium inventory across international markets and platforms to expand your brand's global presence effectively.",              bentoComponent: "map"
            },
            {
              title: "Real-Time Optimization",              description: "Adjust campaigns instantly based on performance data to maintain peak efficiency and achieve better results.",              bentoComponent: "line-chart"
            }
          ]}
          animationType="slide-up"
          title="Core Expertise"
          description="Specialized services tailored to elevate your advertising strategy and deliver measurable growth."
          tag="Expert Solutions"
          tagIcon={TrendingUp}
          tagAnimation="blur-reveal"
          buttons={[
            { text: "View Case Studies", href: "#testimonials-section" }
          ]}
          buttonAnimation="opacity"
          textboxLayout="inline-image"
          useInvertedBackground={false}
        />
      </div>

      <div id="metrics-section" data-section="metrics-section">
        <MetricCardSeven 
          title="Proven Impact Metrics"
          description="Results-driven media buying strategies that deliver measurable ROI for brands across industries."
          metrics={[
            {
              id: "metric-1",              value: "42%",              title: "Average CPM Reduction",              items: [
                "Optimized campaign placement",                "Strategic inventory selection",                "Real-time performance tracking"
              ]
            },
            {
              id: "metric-2",              value: "$2.3M",              title: "Annual Media Savings",              items: [
                "Negotiated premium rates",                "Bulk purchasing power",                "Efficient channel allocation"
              ]
            },
            {
              id: "metric-3",              value: "18%",              title: "Click-Through Rate Increase",              items: [
                "Targeted audience segmentation",                "Creative optimization",                "Performance-based bidding"
              ]
            },
            {
              id: "metric-4",              value: "94%",              title: "Client Retention Rate",              items: [
                "Transparent reporting",                "Proactive strategy adjustments",                "Long-term partnership focus"
              ]
            }
          ]}
          carouselMode="buttons"
          animationType="slide-up"
          textboxLayout="inline-image"
          useInvertedBackground={false}
          tag="Performance Driven"
          tagIcon={TrendingUp}
          tagAnimation="blur-reveal"
          buttons={[
            { text: "View Case Studies", href: "#testimonials-section" }
          ]}
          buttonAnimation="opacity"
        />
      </div>

      <div id="testimonials-section" data-section="testimonials-section">
        <TestimonialCardSixteen 
          testimonials={[
            {
              id: "testimonial-1",              name: "Sarah Johnson",              role: "Marketing Director",              company: "TechGrowth Inc.",              rating: 5,
              imageSrc: "https://img.b2bpic.net/free-photo/happy-successful-businessman-posing-outside_74855-2003.jpg",              imageAlt: "Sarah Johnson, Marketing Director at TechGrowth Inc."
            },
            {
              id: "testimonial-2",              name: "Michael Chen",              role: "CEO",              company: "InnovateLab",              rating: 5,
              imageSrc: "https://img.b2bpic.net/free-photo/people-meeting-seminar-office-concept_53876-94.jpg",              imageAlt: "Michael Chen, CEO of InnovateLab"
            },
            {
              id: "testimonial-3",              name: "Elena Rodriguez",              role: "Brand Manager",              company: "GlobalReach Media",              rating: 5,
              imageSrc: "https://img.b2bpic.net/free-photo/documents-paperwork-business-strategy-concept_53876-133728.jpg",              imageAlt: "Elena Rodriguez, Brand Manager at GlobalReach Media"
            }
          ]}
          kpiItems={[
            { value: "250%", label: "Average ROI Increase" },
            { value: "18M", label: "Monthly Ad Spend Managed" },
            { value: "98%", label: "Client Retention Rate" }
          ]}
          animationType="slide-up"
          title="Trusted by Industry Leaders"
          description="Discover how our strategic media buying expertise has transformed advertising outcomes for top-tier brands across diverse sectors."
          tag="Client Success Stories"
          tagIcon={Sparkles}
          tagAnimation="blur-reveal"
          buttons={[
            { text: "View Case Studies", href: "#features-section" }
          ]}
          buttonAnimation="opacity"
          textboxLayout="default"
          useInvertedBackground={false}
        />
      </div>

      <div id="contact-section" data-section="contact-section">
        <ContactSplitForm 
          title="Let's Discuss Your Media Buying Strategy"
          description="Ready to optimize your advertising spend? Reach out to schedule a consultation and discover how we can elevate your campaign performance."
          inputs={[
            { name: "name", type: "text", placeholder: "Your Full Name", required: true },
            { name: "email", type: "email", placeholder: "Business Email Address", required: true },
            { name: "company", type: "text", placeholder: "Company Name" }
          ]}
          textarea={{
            name: "message",            placeholder: "Tell us about your advertising goals...",            rows: 4,
            required: true
          }}
          useInvertedBackground={false}
          imageSrc="https://img.b2bpic.net/free-photo/business-leader-trader-searching-new-investment-solution_482257-116895.jpg"
          imageAlt="Professional media buying expert discussing strategies with a client"
          mediaAnimation="slide-up"
          mediaPosition="right"
          buttonText="Start Conversation"
        />
      </div>

      <div id="footer-section" data-section="footer-section">
        <FooterBaseCard 
          logoText="MediaMend"
          columns={[
            {
              title: "Services",              items: [
                { label: "Media Buying", href: "#hero-section" },
                { label: "Campaign Strategy", href: "#features-section" },
                { label: "Performance Analytics", href: "#metrics-section" }
              ]
            },
            {
              title: "Company",              items: [
                { label: "About Us", href: "#about-section" },
                { label: "Testimonials", href: "#testimonials-section" },
                { label: "Contact", href: "#contact-section" }
              ]
            },
            {
              title: "Resources",              items: [
                { label: "Blog", href: "#" },
                { label: "Case Studies", href: "#" },
                { label: "Whitepapers", href: "#" }
              ]
            }
          ]}
          copyrightText="© 2025 | MediaMend. All rights reserved."
        />
      </div>
    </ThemeProvider>
  );
}