"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import ReactLenis from "lenis/react";
import ContactText from '@/components/sections/contact/ContactText';
import FaqSplitText from '@/components/sections/faq/FaqSplitText';
import FeatureBento from '@/components/sections/feature/FeatureBento';
import FooterCard from '@/components/sections/footer/FooterCard';
import HeroSplitDualMedia from '@/components/sections/hero/HeroSplitDualMedia';
import MetricCardThree from '@/components/sections/metrics/MetricCardThree';
import NavbarStyleApple from '@/components/navbar/NavbarStyleApple/NavbarStyleApple';
import ProductCardOne from '@/components/sections/product/ProductCardOne';
import TestimonialCardSix from '@/components/sections/testimonial/TestimonialCardSix';
import { Award, Box, Github, LineChart, TrendingUp, Twitter, Users, Zap } from "lucide-react";

export default function LandingPage() {
  return (
    <ThemeProvider
        defaultButtonVariant="hover-magnetic"
        defaultTextAnimation="reveal-blur"
        borderRadius="rounded"
        contentWidth="medium"
        sizing="medium"
        background="none"
        cardStyle="subtle-shadow"
        primaryButtonStyle="flat"
        secondaryButtonStyle="solid"
        headingFontWeight="semibold"
    >
      <ReactLenis root>
  <div id="nav" data-section="nav">
      <NavbarStyleApple
      navItems={[
        { name: "Bidder", id: "features" },
        { name: "Analytics", id: "metrics" },
        { name: "Pricing", id: "products" },
        { name: "Blog", id: "blog" },
      ]}
      brandName="MarketGuru"
    />
  </div>

  <div id="hero" data-section="hero">
      <HeroSplitDualMedia
      background={{ variant: "plain" }}
      title="Wildberries ads that sell themselves"
      description="MarketGuru automates your ad optimization. Get 40% more conversions with zero manual tweaking."
      tag="Advanced Analytics for WB"
      buttons={[{ text: "Start Free Trial", href: "#products" }]}
      mediaItems={[
        {
          imageSrc: "http://img.b2bpic.net/free-photo/laptop-screen-room-with-red-light_250224-287.jpg",          imageAlt: "modern saas dashboard digital interface"},
        {
          imageSrc: "http://img.b2bpic.net/free-photo/businessman-working-futuristic-office_23-2151003753.jpg",          imageAlt: "abstract data visualization network lines"}
      ]}
      mediaAnimation="blur-reveal"
      rating={5}
      ratingText="Trusted by 800,000+ sellers"
    />
  </div>

  <div id="features" data-section="features">
      <FeatureBento
      animationType="slide-up"
      textboxLayout="split"
      useInvertedBackground={false}
      features={[
        {
          title: "Automated Bidder",          description: "Stop manual adjustments. Our AI monitors and tweaks your bids in real-time.",          bentoComponent: "reveal-icon",          icon: Zap,
        },
        {
          title: "Smart Repricer",          description: "Always stay competitive while maximizing your profit margins.",          bentoComponent: "reveal-icon",          icon: TrendingUp,
        },
        {
          title: "AI Analytics",          description: "Get deep market insights into your sales performance and trends.",          bentoComponent: "reveal-icon",          icon: LineChart,
        },
      ]}
      title="Powerful tools for automated sales"
      description="Streamline your Wildberries business with our suite of intelligent automation features."
    />
  </div>

  <div id="metrics" data-section="metrics">
      <MetricCardThree
      animationType="blur-reveal"
      textboxLayout="default"
      useInvertedBackground={false}
      metrics={[
        { id: "m1", icon: Users, title: "Sellers", value: "800k+" },
        { id: "m2", icon: Box, title: "Items Analyzed", value: "227M+" },
        { id: "m3", icon: Award, title: "Experience", value: "70k+" },
      ]}
      title="Proven results"
      description="MarketGuru scales business operations effectively."
    />
  </div>

  <div id="products" data-section="products">
      <ProductCardOne
      textboxLayout="default"
      gridVariant="three-columns-all-equal-width"
      animationType="slide-up"
      useInvertedBackground={false}
      products={[
        { id: "p1", name: "Basic Ad Control", price: "$99", imageSrc: "http://img.b2bpic.net/free-photo/man-trading-browsing-online-stock-investments-night_169016-57448.jpg" },
        { id: "p2", name: "Pro Automation", price: "$299", imageSrc: "http://img.b2bpic.net/free-photo/optical-fiber-background_23-2149301607.jpg" },
        { id: "p3", name: "Agency Suite", price: "$899", imageSrc: "http://img.b2bpic.net/free-photo/desktop-pc-wooden-desk-showcases-infographics-client-reach-data_482257-126876.jpg" },
      ]}
      title="Service Packages"
      description="Choose the best plan to optimize your Wildberries performance."
    />
  </div>

  <div id="testimonials" data-section="testimonials">
      <TestimonialCardSix
      animationType="blur-reveal"
      textboxLayout="default"
      useInvertedBackground={false}
      testimonials={[
        { id: "t1", name: "Ivan S.", handle: "@ivan_wb", testimonial: "Increased my conversions by 40% in one month.", imageSrc: "http://img.b2bpic.net/free-photo/close-up-entrepreneur-with-corporate-job-looking-camera-business-office-portrait-young-man-preparing-work-planning-development-industry-with-technology-computer_482257-29387.jpg" },
        { id: "t2", name: "Olga M.", handle: "@olga_sales", testimonial: "Best automated tool for Wildberries ads.", imageSrc: "http://img.b2bpic.net/free-photo/serious-beautiful-businesswoman-standing-window_1262-1913.jpg" },
        { id: "t3", name: "Dmitry P.", handle: "@dmitry_ecom", testimonial: "Great insights and reporting tools.", imageSrc: "http://img.b2bpic.net/free-photo/smiling-young-man-standing-holding-tablet-computer_1262-18710.jpg" },
        { id: "t4", name: "Elena K.", handle: "@elena_biz", testimonial: "Excellent expert support and SEO service.", imageSrc: "http://img.b2bpic.net/free-photo/smiling-entrepreneur-posing-camera_1262-3636.jpg" },
        { id: "t5", name: "Alex R.", handle: "@alex_market", testimonial: "My ROI doubled thanks to the automated bidder.", imageSrc: "http://img.b2bpic.net/free-photo/successful-businessman-imagines-great-career_1163-5478.jpg" },
      ]}
      title="Loved by Wildberries sellers"
      description="Join thousands of successful sellers who trust our platform."
    />
  </div>

  <div id="faq" data-section="faq">
      <FaqSplitText
      useInvertedBackground={false}
      faqs={[
        { id: "q1", title: "How does AI automation work?", content: "Our AI analyzes real-time market data to optimize your bids and prices automatically." },
        { id: "q2", title: "Can I integrate with my agency account?", content: "Yes, our agency suite is designed specifically for scaling multiple seller accounts." },
        { id: "q3", title: "Is it easy to use?", content: "Absolutely. You can get started with zero manual tweaking." },
      ]}
      sideTitle="Questions? We've got answers."
      faqsAnimation="blur-reveal"
    />
  </div>

  <div id="contact" data-section="contact">
      <ContactText
      useInvertedBackground={false}
      background={{ variant: "plain" }}
      text="Ready to scale your business on Wildberries?"
      buttons={[{ text: "Contact Support", href: "#" }]}
    />
  </div>

  <div id="footer" data-section="footer">
      <FooterCard
      logoText="MarketGuru.io"
      copyrightText="© 2025 MarketGuru. All rights reserved."
      socialLinks={[
        { icon: Twitter, href: "#", ariaLabel: "Twitter" },
        { icon: Github, href: "#", ariaLabel: "Github" },
      ]}
    />
  </div>
      </ReactLenis>
    </ThemeProvider>
  );
}
