"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarLayoutFloatingOverlay from "@/components/navbar/NavbarLayoutFloatingOverlay/NavbarLayoutFloatingOverlay";
import HeroSplit from "@/components/sections/hero/HeroSplit";
import AboutMetric from "@/components/sections/about/AboutMetric";
import FeatureCardNineteen from "@/components/sections/feature/FeatureCardNineteen";
import ProductCardOne from "@/components/sections/product/ProductCardOne";
import MetricCardTwo from "@/components/sections/metrics/MetricCardTwo";
import TeamCardFive from "@/components/sections/team/TeamCardFive";
import TestimonialCardFive from "@/components/sections/testimonial/TestimonialCardFive";
import FaqSplitText from "@/components/sections/faq/FaqSplitText";
import ContactFaq from "@/components/sections/contact/ContactFaq";
import FooterLogoEmphasis from "@/components/sections/footer/FooterLogoEmphasis";
import { Sparkles, Palette, Image, BarChart3, Users, Star, ArrowRight, TrendingUp, Award, Zap } from "lucide-react";

export default function LandingPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="shift-hover"
      defaultTextAnimation="entrance-slide"
      borderRadius="rounded"
      contentWidth="small"
      sizing="largeSmall"
      background="noise"
      cardStyle="inset"
      primaryButtonStyle="primary-glow"
      secondaryButtonStyle="radial-glow"
      headingFontWeight="extrabold"
    >
      <div id="nav" data-section="nav">
        <NavbarLayoutFloatingOverlay
          brandName="GrowthBase"
          navItems={[
            { name: "Home", id: "hero" },
            { name: "About", id: "about" },
            { name: "Services", id: "features" },
            { name: "Portfolio", id: "portfolio" },
            { name: "Team", id: "team" },
            { name: "Contact", id: "contact" }
          ]}
          button={{ text: "Get Started", href: "#contact" }}
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroSplit
          title="Elevate Your Digital Presence"
          description="We craft beautiful, strategic web experiences that drive growth. Our award-winning team combines cutting-edge design with proven conversion strategies to transform your vision into reality."
          background={{ variant: "noise" }}
          tag="Web Design Agency"
          tagIcon={Sparkles}
          tagAnimation="slide-up"
          buttons={[
            { text: "Start Your Project", href: "#contact" },
            { text: "View Our Work", href: "#portfolio" }
          ]}
          buttonAnimation="slide-up"
          imageSrc="http://img.b2bpic.net/free-photo/medium-shot-colleagues-talking_23-2149006917.jpg"
          imageAlt="GrowthBase web design agency team"
          mediaAnimation="blur-reveal"
          imagePosition="right"
        />
      </div>

      <div id="about" data-section="about">
        <AboutMetric
          title="Why Partner With GrowthBase"
          metrics={[
            { icon: TrendingUp, label: "Average ROI Increase", value: "340%" },
            { icon: Users, label: "Happy Clients", value: "150+" },
            { icon: Award, label: "Design Awards", value: "28" },
            { icon: Zap, label: "Projects Delivered", value: "500+" }
          ]}
          metricsAnimation="slide-up"
          useInvertedBackground={false}
        />
      </div>

      <div id="features" data-section="features">
        <FeatureCardNineteen
          title="Our Design Services"
          description="We deliver comprehensive web design solutions tailored to your business goals."
          tag="Services"
          tagIcon={Palette}
          tagAnimation="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
          features={[
            {
              id: 1,
              tag: "Strategy",              title: "Web Design & Development",              subtitle: "Custom digital experiences",              description: "From concept to launch, we design and develop websites that capture your brand essence and convert visitors into customers.",              imageSrc: "http://img.b2bpic.net/free-photo/teamwork-cooperation-concept_273609-6355.jpg",              imageAlt: "Web design development process"
            },
            {
              id: 2,
              tag: "Optimization",              title: "UX/UI Design",              subtitle: "User-centric interfaces",              description: "We create intuitive, beautiful interfaces that users love. Every pixel is carefully crafted for optimal user experience and engagement.",              imageSrc: "http://img.b2bpic.net/free-vector/flat-travel-exploration-landing-page-template_23-2150035160.jpg",              imageAlt: "UX UI design interface"
            },
            {
              id: 3,
              tag: "Branding",              title: "Brand Identity",              subtitle: "Complete brand systems",              description: "Build a cohesive brand presence with our comprehensive identity design services, from logo to full brand guidelines.",              imageSrc: "http://img.b2bpic.net/free-photo/laptop-gadget-device-notebook-blank-space-concept_53876-30357.jpg",              imageAlt: "Brand identity design system"
            },
            {
              id: 4,
              tag: "Performance",              title: "Performance Optimization",              subtitle: "Speed & SEO focused",              description: "Lightning-fast websites optimized for search engines and built to convert. We prioritize performance at every level.",              imageSrc: "http://img.b2bpic.net/free-vector/flat-abstract-geometric-real-estate-landing-page_23-2149067328.jpg",              imageAlt: "Performance optimization metrics"
            }
          ]}
        />
      </div>

      <div id="portfolio" data-section="portfolio">
        <ProductCardOne
          title="Recent Projects"
          description="Explore our latest work and see how we've helped brands achieve their digital goals."
          tag="Portfolio"
          tagIcon={Image}
          tagAnimation="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
          gridVariant="three-columns-all-equal-width"
          animationType="slide-up"
          products={[
            {
              id: "project-1",              name: "TechFlow Platform",              price: "Enterprise SaaS",              imageSrc: "http://img.b2bpic.net/free-vector/flat-travel-exploration-landing-page-template_23-2150035160.jpg",              imageAlt: "TechFlow SaaS platform design"
            },
            {
              id: "project-2",              name: "LuxeStore Redesign",              price: "E-commerce",              imageSrc: "http://img.b2bpic.net/free-photo/laptop-gadget-device-notebook-blank-space-concept_53876-30357.jpg",              imageAlt: "LuxeStore e-commerce website"
            },
            {
              id: "project-3",              name: "FinanceHub App",              price: "Mobile App",              imageSrc: "http://img.b2bpic.net/free-vector/flat-abstract-geometric-real-estate-landing-page_23-2149067328.jpg",              imageAlt: "FinanceHub mobile application"
            }
          ]}
        />
      </div>

      <div id="metrics" data-section="metrics">
        <MetricCardTwo
          title="By The Numbers"
          description="Our track record speaks for itself. We deliver results that matter."
          tag="Impact"
          tagIcon={BarChart3}
          tagAnimation="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
          gridVariant="uniform-all-items-equal"
          animationType="scale-rotate"
          metrics={[
            { id: "1", value: "340%", description: "Average ROI Increase" },
            { id: "2", value: "2.5M+", description: "Total Users Served" },
            { id: "3", value: "98%", description: "Client Satisfaction" },
            { id: "4", value: "12", description: "Years of Excellence" }
          ]}
        />
      </div>

      <div id="team" data-section="team">
        <TeamCardFive
          title="Meet Our Team"
          description="A diverse group of talented designers, developers, and strategists passionate about creating exceptional digital experiences."
          tag="Team"
          tagIcon={Users}
          tagAnimation="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
          animationType="scale-rotate"
          team={[
            {
              id: "1",              name: "Sarah Chen",              role: "Creative Director",              imageSrc: "http://img.b2bpic.net/free-photo/pretty-attractive-young-mixed-race-model-with-large-afro-wearing-navy-jacket-her-naked-body-shorts_633478-1216.jpg",              imageAlt: "Sarah Chen Creative Director"
            },
            {
              id: "2",              name: "Marcus Rodriguez",              role: "Lead Designer",              imageSrc: "http://img.b2bpic.net/free-photo/confused-young-caucasian-girl-with-pixie-haircut-wearing-glasses-looking-side-isolated-purple-background-with-copy-space_141793-88467.jpg",              imageAlt: "Marcus Rodriguez Lead Designer"
            },
            {
              id: "3",              name: "Elena Volkov",              role: "Frontend Lead",              imageSrc: "http://img.b2bpic.net/free-photo/portrait-businessman-office-3_1262-1489.jpg",              imageAlt: "Elena Volkov Frontend Lead"
            },
            {
              id: "4",              name: "James Mitchell",              role: "Strategy Director",              imageSrc: "http://img.b2bpic.net/free-photo/world-photography-day-celebrated-by-middle-aged-man-taking-photos-with-camera-device_23-2151672469.jpg",              imageAlt: "James Mitchell Strategy Director"
            }
          ]}
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardFive
          title="Client Success Stories"
          description="Don't just take our word for it. Here's what our clients have to say."
          tag="Testimonials"
          tagIcon={Star}
          tagAnimation="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
          testimonials={[
            {
              id: "1",              name: "Amanda Foster",              date: "3 months ago",              title: "CEO, TechFlow",              quote: "GrowthBase transformed our digital presence. Their strategic approach and creative excellence resulted in a 400% increase in conversions within the first quarter.",              tag: "Recommended",              avatarSrc: "http://img.b2bpic.net/free-photo/confident-businessman-smiling_107420-84734.jpg",              avatarAlt: "Amanda Foster"
            },
            {
              id: "2",              name: "David Kim",              date: "2 months ago",              title: "Founder, LuxeStore",              quote: "Working with GrowthBase was a game-changer. They understood our brand vision perfectly and delivered a stunning e-commerce platform that exceeded our expectations.",              tag: "Recommended",              avatarSrc: "http://img.b2bpic.net/free-photo/cheerful-handsome-businessman_1262-21003.jpg",              avatarAlt: "David Kim"
            },
            {
              id: "3",              name: "Jessica Martinez",              date: "1 month ago",              title: "COO, FinanceHub",              quote: "The team's attention to detail and commitment to excellence is unparalleled. Our app received 5-star reviews within weeks of launch. Truly outstanding work.",              tag: "Recommended",              avatarSrc: "http://img.b2bpic.net/free-photo/closeup-happy-senior-businessman-with-flipchart_1262-1744.jpg",              avatarAlt: "Jessica Martinez"
            },
            {
              id: "4",              name: "Robert Thompson",              date: "3 weeks ago",              title: "Director, Innovation Labs",              quote: "GrowthBase doesn't just build websites—they craft digital experiences. The performance optimization work alone saved us thousands in infrastructure costs.",              tag: "Recommended",              avatarSrc: "http://img.b2bpic.net/free-photo/medium-shot-man-wearing-suit_23-2149396254.jpg",              avatarAlt: "Robert Thompson"
            }
          ]}
        />
      </div>

      <div id="faq" data-section="faq">
        <FaqSplitText
          sideTitle="Have Questions?"
          sideDescription="We're here to help. Find answers to common questions about our services and process."
          textPosition="left"
          useInvertedBackground={false}
          faqsAnimation="slide-up"
          faqs={[
            {
              id: "1",              title: "What is your typical project timeline?",              content: "Project timelines vary based on complexity and scope. Most projects take 8-16 weeks from discovery to launch. We'll provide a detailed timeline during our initial consultation."
            },
            {
              id: "2",              title: "Do you offer ongoing support and maintenance?",              content: "Yes! We offer comprehensive support packages including hosting, updates, security monitoring, and performance optimization to keep your site running smoothly."
            },
            {
              id: "3",              title: "What's your design and development process?",              content: "We follow a proven 5-phase process: Discovery, Strategy, Design, Development, and Launch. We maintain regular communication and include client feedback at every stage."
            },
            {
              id: "4",              title: "Can you help with SEO and digital marketing?",              content: "Absolutely. We build SEO best practices into every website we create, and we offer digital marketing services including content strategy, PPC, and social media management."
            },
            {
              id: "5",              title: "What industries do you specialize in?",              content: "We work across diverse industries including tech, e-commerce, healthcare, finance, and B2B services. Our strategic approach adapts to any industry's unique needs."
            },
            {
              id: "6",              title: "How do you handle project communication?",              content: "We believe in transparency and collaboration. You'll have a dedicated project manager, and we use regular meetings, shared dashboards, and detailed documentation to keep everyone aligned."
            }
          ]}
          buttons={[
            { text: "Schedule Consultation", href: "#contact" }
          ]}
          buttonAnimation="slide-up"
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactFaq
          ctaTitle="Ready to Grow?"
          ctaDescription="Let's discuss how we can elevate your digital presence and drive meaningful results for your business."
          ctaButton={{ text: "Start Your Project", href: "mailto:hello@growthbase.com" }}
          ctaIcon={ArrowRight}
          useInvertedBackground={false}
          animationType="slide-up"
          faqs={[
            {
              id: "1",              title: "Email Us",              content: "hello@growthbase.com - We typically respond within 24 hours with answers to your questions."
            },
            {
              id: "2",              title: "Call Us",              content: "+1 (555) 123-4567 - Speak directly with our team during business hours."
            },
            {
              id: "3",              title: "Schedule a Meeting",              content: "Book a free 30-minute consultation to discuss your project goals and how we can help."
            },
            {
              id: "4",              title: "Visit Our Office",              content: "123 Design Street, San Francisco, CA 94105 - Schedule a time to visit our studio."
            }
          ]}
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterLogoEmphasis
          logoText="GrowthBase"
          columns={[
            {
              items: [
                { label: "Home", href: "#hero" },
                { label: "About", href: "#about" },
                { label: "Services", href: "#features" },
                { label: "Portfolio", href: "#portfolio" }
              ]
            },
            {
              items: [
                { label: "Team", href: "#team" },
                { label: "Testimonials", href: "#testimonials" },
                { label: "FAQ", href: "#faq" },
                { label: "Contact", href: "#contact" }
              ]
            },
            {
              items: [
                { label: "Privacy Policy", href: "#" },
                { label: "Terms of Service", href: "#" },
                { label: "Cookie Policy", href: "#" },
                { label: "Sitemap", href: "#" }
              ]
            },
            {
              items: [
                { label: "Twitter", href: "https://twitter.com" },
                { label: "LinkedIn", href: "https://linkedin.com" },
                { label: "Instagram", href: "https://instagram.com" },
                { label: "Dribbble", href: "https://dribbble.com" }
              ]
            }
          ]}
        />
      </div>
    </ThemeProvider>
  );
}