"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleCentered from '@/components/navbar/NavbarStyleCentered/NavbarStyleCentered';
import HeroLogoBillboard from '@/components/sections/hero/HeroLogoBillboard';
import TextAbout from '@/components/sections/about/TextAbout';
import FeatureCardTwentySeven from '@/components/sections/feature/FeatureCardTwentySeven';
import MetricCardThree from '@/components/sections/metrics/MetricCardThree';
import SocialProofOne from '@/components/sections/socialProof/SocialProofOne';
import TestimonialCardTen from '@/components/sections/testimonial/TestimonialCardTen';
import FaqDouble from '@/components/sections/faq/FaqDouble';
import ContactSplitForm from '@/components/sections/contact/ContactSplitForm';
import FooterLogoReveal from '@/components/sections/footer/FooterLogoReveal';
import { CheckCircle, TrendingUp, Users, Zap } from 'lucide-react';

export default function LandingPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="text-shift"
      defaultTextAnimation="entrance-slide"
      borderRadius="soft"
      contentWidth="compact"
      sizing="large"
      background="blurBottom"
      cardStyle="outline"
      primaryButtonStyle="primary-glow"
      secondaryButtonStyle="layered"
      headingFontWeight="normal"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleCentered
          navItems={[
            { name: "About", id: "about" },
            { name: "Features", id: "features" },
            { name: "Services", id: "services" },
            { name: "Testimonials", id: "testimonials" },
            { name: "Contact", id: "contact" }
          ]}
          button={{ text: "Get Started", href: "contact" }}
          brandName="Mindex AI"
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroLogoBillboard
          logoText="Mindex AI"
          description="Intelligent marketing automation powered by advanced AI. Generate compelling campaigns, optimize performance, and engage customers with unprecedented precision."
          buttons={[
            { text: "Start Free Trial", href: "contact" },
            { text: "View Demo", href: "features" }
          ]}
          buttonAnimation="slide-up"
          background={{ variant: "radial-gradient" }}
          imageSrc="https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AdWCGTUmxjPQZM4XzNfED6RccT/a-sleek-ai-dashboard-interface-with-clea-1772922867643-9c49e8f2.png"
          imageAlt="Mindex AI marketing dashboard interface"
          mediaAnimation="slide-up"
          frameStyle="card"
          ariaLabel="Mindex AI hero section"
        />
      </div>

      <div id="about" data-section="about">
        <TextAbout
          tag="About Mindex"
          title="Marketing automation designed for modern teams. Powered by AI you can trust."
          buttons={[{ text: "Learn More", href: "features" }]}
          buttonAnimation="slide-up"
          useInvertedBackground={false}
          ariaLabel="About Mindex section"
        />
      </div>

      <div id="features" data-section="features">
        <FeatureCardTwentySeven
          tag="Core Features"
          title="Intelligent marketing at your fingertips"
          description="Mindex combines cutting-edge AI with intuitive design to transform how you create and manage marketing campaigns."
          features={[
            {
              id: "1",              title: "AI Content Generation",              description: "Create high-performing copy, email sequences, and social media content in seconds. Our AI learns your brand voice and optimizes every message for maximum impact.",              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AdWCGTUmxjPQZM4XzNfED6RccT/an-illustration-of-ai-powered-content-wr-1772922867411-058f6b7f.png",              imageAlt: "AI-powered content writing interface"
            },
            {
              id: "2",              title: "Real-Time Analytics",              description: "Track campaign performance with beautiful, actionable dashboards. Get instant insights on engagement, conversions, and ROI to make smarter decisions faster.",              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AdWCGTUmxjPQZM4XzNfED6RccT/clean-analytics-visualization-showing-ma-1772922870473-7fb1d649.png",              imageAlt: "Analytics dashboard with performance metrics"
            },
            {
              id: "3",              title: "Intelligent Personalization",              description: "Deliver the right message to the right person at the right time. Our AI engine personalizes every customer interaction based on behavior and preferences.",              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AdWCGTUmxjPQZM4XzNfED6RccT/visual-representation-of-ai-powered-pers-1772922867144-6bf417b1.png",              imageAlt: "Customer personalization engine visualization"
            }
          ]}
          gridVariant="three-columns-all-equal-width"
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
          buttons={[{ text: "Explore All Features", href: "contact" }]}
          buttonAnimation="slide-up"
          ariaLabel="Features section"
        />
      </div>

      <div id="metrics" data-section="metrics">
        <MetricCardThree
          tag="By The Numbers"
          title="Proven results for forward-thinking teams"
          description="Mindex is trusted by leading companies to deliver measurable marketing impact."
          metrics={[
            { id: "1", icon: Zap, title: "Time Saved", value: "65%" },
            { id: "2", icon: TrendingUp, title: "Conversions", value: "+3.2x" },
            { id: "3", icon: Users, title: "Active Users", value: "10,000+" },
            { id: "4", icon: CheckCircle, title: "Success Rate", value: "98%" }
          ]}
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
          buttons={[{ text: "See Case Studies", href: "contact" }]}
          buttonAnimation="slide-up"
          ariaLabel="Metrics section"
        />
      </div>

      <div id="social-proof" data-section="social-proof">
        <SocialProofOne
          tag="Trusted Partners"
          title="Partnered with industry leaders"
          description="Mindex integrates seamlessly with the tools your team already loves."
          names={["HubSpot", "Salesforce", "Google Analytics", "Microsoft Teams", "Stripe", "Intercom", "Segment"]}
          textboxLayout="default"
          useInvertedBackground={false}
          speed={40}
          showCard={true}
          ariaLabel="Social proof section"
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardTen
          tag="Customer Stories"
          title="Trusted by innovative marketing teams"
          description="See how leading companies are transforming their marketing with Mindex AI."
          testimonials={[
            {
              id: "1",              title: "Time-saving powerhouse for our team",              quote: "Mindex has completely transformed how we approach content creation. What used to take hours now takes minutes, and the quality is consistently excellent. Our team has never been more productive.",              name: "Sarah Mitchell",              role: "VP of Marketing",              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AdWCGTUmxjPQZM4XzNfED6RccT/professional-headshot-portrait-of-a-conf-1772922866372-6a95b974.png",              imageAlt: "Sarah Mitchell"
            },
            {
              id: "2",              title: "Exceptional AI that truly understands marketing",              quote: "The personalization engine is genuinely impressive. We've seen a 3x improvement in conversion rates since implementing Mindex. The AI actually learns from our campaigns and gets smarter over time.",              name: "David Chen",              role: "Chief Marketing Officer",              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AdWCGTUmxjPQZM4XzNfED6RccT/professional-headshot-portrait-of-a-mark-1772922866645-4ed6920a.png",              imageAlt: "David Chen"
            },
            {
              id: "3",              title: "Clean interface, powerful capabilities",              quote: "We were skeptical about AI marketing tools, but Mindex proved us wrong. The interface is intuitive, the support is excellent, and the results speak for themselves. Highly recommended.",              name: "Emma Rodriguez",              role: "Marketing Director",              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AdWCGTUmxjPQZM4XzNfED6RccT/professional-headshot-portrait-of-a-busi-1772922868018-a696136d.png",              imageAlt: "Emma Rodriguez"
            },
            {
              id: "4",              title: "The future of marketing automation",              quote: "Mindex isn't just another marketing tool—it's a game-changer. The AI insights have helped us identify new audience segments and opportunities we never knew existed. ROI has improved dramatically.",              name: "James Wilson",              role: "Growth Lead",              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AdWCGTUmxjPQZM4XzNfED6RccT/professional-headshot-portrait-of-a-grow-1772922866622-b913c51b.png",              imageAlt: "James Wilson"
            }
          ]}
          textboxLayout="default"
          useInvertedBackground={false}
          ariaLabel="Testimonials section"
        />
      </div>

      <div id="faq" data-section="faq">
        <FaqDouble
          tag="FAQ"
          title="Common questions answered"
          description="Everything you need to know about Mindex AI and how it can transform your marketing."
          faqs={[
            {
              id: "1",              title: "How does Mindex AI learn my brand voice?",              content: "Mindex uses advanced machine learning to analyze your existing marketing content, brand guidelines, and customer interactions. Our AI engine develops a nuanced understanding of your unique voice and tone, ensuring all generated content aligns perfectly with your brand identity."
            },
            {
              id: "2",              title: "Is my marketing data secure?",              content: "Security is paramount. All data is encrypted end-to-end and stored on secure, compliant servers. We maintain SOC 2 Type II certification and comply with GDPR, CCPA, and other major data protection regulations."
            },
            {
              id: "3",              title: "Can I integrate Mindex with existing tools?",              content: "Yes! Mindex seamlessly integrates with HubSpot, Salesforce, Google Analytics, Microsoft Teams, Stripe, Intercom, Segment, and more. Our API also allows for custom integrations with any platform."
            },
            {
              id: "4",              title: "What kind of support does Mindex offer?",              content: "We provide 24/7 email support for all plans, plus phone and live chat support for premium customers. Every customer gets access to our comprehensive knowledge base, video tutorials, and monthly webinars."
            },
            {
              id: "5",              title: "How quickly will I see results?",              content: "Most customers see measurable improvements within the first 2 weeks. Early wins typically include faster content creation and better email open rates. Long-term benefits like improved conversions and customer lifetime value typically emerge over 2-3 months."
            },
            {
              id: "6",              title: "Is there a free trial available?",              content: "Absolutely! Start with our free trial and get full access to core features for 14 days. No credit card required. Premium features can be accessed during the trial period at no cost."
            }
          ]}
          animationType="smooth"
          faqsAnimation="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
          ariaLabel="FAQ section"
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactSplitForm
          title="Ready to transform your marketing?"
          description="Join thousands of marketing teams using Mindex AI to create better campaigns, faster. Get started today with a free 14-day trial."
          inputs={[
            { name: "fullName", type: "text", placeholder: "Full Name", required: true },
            { name: "workEmail", type: "email", placeholder: "Work Email", required: true },
            { name: "companyName", type: "text", placeholder: "Company Name", required: true },
            { name: "teamSize", type: "text", placeholder: "Team Size (e.g., 5-10)" }
          ]}
          textarea={{ name: "message", placeholder: "Tell us about your marketing goals and how Mindex can help", rows: 5, required: false }}
          useInvertedBackground={false}
          imageSrc="https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AdWCGTUmxjPQZM4XzNfED6RccT/minimalist-illustration-of-a-person-work-1772922867378-7e63e6ba.png"
          imageAlt="Customer support and collaboration illustration"
          mediaAnimation="slide-up"
          mediaPosition="right"
          buttonText="Start Free Trial"
          ariaLabel="Contact section"
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterLogoReveal
          logoText="Mindex"
          leftLink={{ text: "Privacy Policy", href: "#" }}
          rightLink={{ text: "Terms of Service", href: "#" }}
          ariaLabel="Site footer"
        />
      </div>
    </ThemeProvider>
  );
}
