"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleFullscreen from '@/components/navbar/NavbarStyleFullscreen/NavbarStyleFullscreen';
import HeroBillboardCarousel from '@/components/sections/hero/HeroBillboardCarousel';
import ProductCardTwo from '@/components/sections/product/ProductCardTwo';
import MediaAbout from '@/components/sections/about/MediaAbout';
import FeatureCardTwenty from '@/components/sections/feature/FeatureCardTwenty';
import MetricCardTwo from '@/components/sections/metrics/MetricCardTwo';
import TestimonialCardEleven from '@/components/sections/testimonial/TestimonialCardEleven';
import FaqDouble from '@/components/sections/faq/FaqDouble';
import ContactSplitForm from '@/components/sections/contact/ContactSplitForm';
import FooterBase from '@/components/sections/footer/FooterBase';
import { AlertCircle, Sparkles, Shield, Zap, Star, Heart, HelpCircle } from "lucide-react";

export default function LandingPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="icon-arrow"
      defaultTextAnimation="entrance-slide"
      borderRadius="sharp"
      contentWidth="mediumSmall"
      sizing="mediumSizeLargeTitles"
      background="noiseDiagonalGradient"
      cardStyle="gradient-subtle"
      primaryButtonStyle="gradient"
      secondaryButtonStyle="minimal"
      headingFontWeight="extrabold"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleFullscreen
          navItems={[
            { name: "Shop", id: "products" },
            { name: "About", id: "about" },
            { name: "Why BULLS", id: "features" },
            { name: "Contact", id: "contact" },
            { name: "Cart", id: "https://example.com/cart" }
          ]}
          brandName="BULLS"
          bottomLeftText="Premium German Engineering"
          bottomRightText="sales@bullsbikes.com"
        />
      </div>
      
      <div id="hero" data-section="hero">
        <HeroBillboardCarousel
          title="Engineered for Speed. Built for Control."
          description="Precision-engineered BULLS bikes designed for riders who demand performance on every terrain. German quality meets cutting-edge innovation."
          tag="LIMITED STOCK AVAILABLE"
          tagIcon={AlertCircle}
          buttons={[
            { text: "Choose Your Bike", href: "products" },
            { text: "Explore Models", href: "features" }
          ]}
          mediaItems={[
            { imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1767548952140-52rh47rw.jpg", imageAlt: "Professional mountain biker on technical trail" },
            { imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1767548953265-ufktcp9s.jpg", imageAlt: "Gravel bike adventure in rugged terrain" },
            { imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1767548953685-sgxte331.jpg", imageAlt: "Road cyclist at high speed on open road" },
            { imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1767548953993-s8siw7gl.jpg", imageAlt: "Electric BULLS e-bike with technology showcase" },
            { imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1767548954446-461t5x3n.jpg", imageAlt: "Full suspension mountain bike on enduro course" }
          ]}
          ariaLabel="BULLS premium bicycle hero section with carousel"
        />
      </div>
      
      <div id="bike-selection" data-section="bike-selection">
        <ProductCardTwo
          title="Select Your Perfect BULLS Bike"
          description="Choose from 5 expertly engineered categories. Each model delivers precision, durability, and race-tested performance."
          tag="Best Sellers"
          tagIcon={Sparkles}
          buttons={[{ text: "Shop All Models", href: "products" }]}
          textboxLayout="default"
          useInvertedBackground="noInvert"
          animationType="slide-up"
          gridVariant="three-columns-all-equal-width"
          products={[
            {
              id: "1",
              brand: "BULLS",
              name: "Hardtail MTB 29\"",
              price: "€1,299",
              rating: 5,
              reviewCount: "847",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1767548955148-m2lbdq4x.jpg",
              imageAlt: "BULLS Hardtail Mountain Bike"
            },
            {
              id: "2",
              brand: "BULLS",
              name: "Full-Suspension Elite",
              price: "€2,499",
              rating: 5,
              reviewCount: "1.2k",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1767548955592-ywecwkbg.jpg",
              imageAlt: "BULLS Full Suspension Mountain Bike"
            },
            {
              id: "3",
              brand: "BULLS",
              name: "Gravel Adventure Pro",
              price: "€1,649",
              rating: 5,
              reviewCount: "623",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1767548955998-jc66agsb.jpg",
              imageAlt: "BULLS Gravel Bike"
            },
            {
              id: "4",
              brand: "BULLS",
              name: "Road Race Carbon",
              price: "€1,899",
              rating: 5,
              reviewCount: "945",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1767548956551-7xsjlz7l.jpg",
              imageAlt: "BULLS Road Bike"
            },
            {
              id: "5",
              brand: "BULLS",
              name: "e-MTB Performance",
              price: "€3,799",
              rating: 5,
              reviewCount: "556",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1767548953993-s8siw7gl.jpg",
              imageAlt: "BULLS Electric Mountain Bike"
            }
          ]}
        />
      </div>
      
      <div id="about" data-section="about">
        <MediaAbout
          title="Why Riders Choose BULLS"
          description="Over 50 years of German engineering excellence. Every BULLS bike is built with race-tested technology, premium components, and an obsession for performance. Trusted by professionals worldwide."
          tag="German Precision"
          tagIcon={Shield}
          imageSrc="https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1767548959338-wjj9w3qy.jpg"
          imageAlt="BULLS premium aluminum frame engineering detail"
          buttons={[{ text: "Learn Our Story", href: "contact" }]}
          useInvertedBackground="noInvert"
        />
      </div>
      
      <div id="features" data-section="features">
        <FeatureCardTwenty
          title="Engineering Excellence in Every Detail"
          description="BULLS bikes combine cutting-edge suspension technology, lightweight frame geometry, and race-proven components to deliver superior control, speed, and durability on any terrain."
          tag="Performance Features"
          tagIcon={Zap}
          textboxLayout="default"
          useInvertedBackground="noInvert"
          images={[
            { id: 1, imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1767548959338-wjj9w3qy.jpg", imageAlt: "Aluminum frame construction detail" },
            { id: 2, imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1767548959631-qzoz4z67.jpg", imageAlt: "Advanced suspension technology" }
          ]}
        />
      </div>
      
      <div id="metrics" data-section="metrics">
        <MetricCardTwo
          title="Trusted by Thousands of Riders"
          description="Real performance metrics from real BULLS owners worldwide"
          tag="Social Proof"
          tagIcon={Star}
          textboxLayout="default"
          useInvertedBackground="noInvert"
          animationType="slide-up"
          gridVariant="four-items-2x2-equal-grid"
          metrics={[
            { id: "1", value: "5,000+", description: "Verified 5-Star Riders" },
            { id: "2", value: "98%", description: "Customer Satisfaction Rate" },
            { id: "3", value: "50+", description: "Years of Engineering Heritage" },
            { id: "4", value: "85", description: "Countries Worldwide" }
          ]}
        />
      </div>
      
      <div id="testimonials" data-section="testimonials">
        <TestimonialCardEleven
          title="Heard From BULLS Riders"
          description="Real stories from professional racers, weekend warriors, and adventure seekers"
          tag="Reviews"
          tagIcon={Heart}
          textboxLayout="default"
          useInvertedBackground="noInvert"
          testimonials={[
            {
              id: "1",
              nameTitle: "Marcus Weber, Professional MTB Racer",
              quote: "The precision engineering and suspension geometry give me complete control on technical terrain. Every BULLS bike delivers the performance my race schedule demands.",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1767548943588-3acl25me.jpg",
              imageAlt: "Marcus Weber, professional mountain biker"
            },
            {
              id: "2",
              nameTitle: "Sarah Chen, Gravel Adventure Enthusiast",
              quote: "I've ridden across three continents on my BULLS Gravel. Build quality is exceptional, and the ride comfort on long days is unmatched.",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1767548944085-ceri47nf.jpg",
              imageAlt: "Sarah Chen, gravel adventurer"
            },
            {
              id: "3",
              nameTitle: "Klaus Dietrich, Road Cycling Coach",
              quote: "I recommend BULLS to all my coached athletes. The carbon frame is responsive, the components are premium, and the value at this price point is outstanding.",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1767548957298-0hld77hl.jpg",
              imageAlt: "Klaus Dietrich, cycling coach"
            },
            {
              id: "4",
              nameTitle: "Lisa Petrov, Weekend Mountain Biker",
              quote: "My first serious mountain bike was a BULLS. Three years later, it still feels like the day I bought it. The durability and performance justify every euro.",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1767548957671-1m5fbe4j.jpg",
              imageAlt: "Lisa Petrov, weekend cyclist"
            },
            {
              id: "5",
              nameTitle: "Tom Richter, Enduro Competitor",
              quote: "Racing against the clock requires trust in your equipment. My BULLS has never let me down—it's race-ready every single time.",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1767548958056-jnpp6s89.jpg",
              imageAlt: "Tom Richter, enduro racer"
            },
            {
              id: "6",
              nameTitle: "Emma Hoffmann, Gravel Expedition Lead",
              quote: "For multi-week expeditions, reliability is non-negotiable. BULLS bikes are engineered for it. Exceptional quality and customer support.",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1767548958545-qa4mtcm2.jpg",
              imageAlt: "Emma Hoffmann, gravel expedition leader"
            }
          ]}
        />
      </div>
      
      <div id="faq" data-section="faq">
        <FaqDouble
          title="Frequently Asked Questions"
          description="Everything you need to know about BULLS bikes, sizing, shipping, and our guarantee"
          tag="Help & Support"
          tagIcon={HelpCircle}
          textboxLayout="default"
          useInvertedBackground="noInvert"
          animationType="smooth"
          faqs={[
            {
              id: "1",
              title: "How do I choose the right size?",
              content: "BULLS frames are sized by height and inseam. Use our <strong>height-based sizing chart</strong> on the product page. Sizes range from XS (under 5'2\") to XL (over 6'2\"). When in doubt, go down one size for a sportier fit. Contact us for personalized guidance."
            },
            {
              id: "2",
              title: "What's included with my bike?",
              content: "Every BULLS bike ships fully assembled with: mounted pedals, quick-release seatpost, preliminary tune-up, and our free first professional service (€75 value) at any authorized BULLS dealer worldwide."
            },
            {
              id: "3",
              title: "How fast is shipping?",
              content: "Standard orders ship within 3–5 business days via DHL. Most European countries receive bikes within 5–10 days. Free shipping on all orders. Expedited shipping available for €49."
            },
            {
              id: "4",
              title: "Can I finance my purchase?",
              content: "Yes! We partner with <strong>Klarna</strong> for flexible payment plans. Split your purchase into 3, 6, or 12 months with zero-interest options available. No hidden fees."
            },
            {
              id: "5",
              title: "What's your return policy?",
              content: "30-day money-back guarantee. If your BULLS doesn't meet expectations, return it in original condition for a full refund. Includes free return shipping."
            },
            {
              id: "6",
              title: "What warranty comes with my bike?",
              content: "All frames carry a 10-year manufacturing warranty. Components have 2-year coverage. Warranty covers defects in materials and workmanship, not wear and tear or misuse."
            },
            {
              id: "7",
              title: "Do you offer trade-in credit?",
              content: "Yes. Trade in your old bike toward a new BULLS purchase. Submit photos and condition details for an instant quote. Average credit: €200–€600 depending on condition and model."
            },
            {
              id: "8",
              title: "Are upgrades available after purchase?",
              content: "Absolutely. Popular upgrades: premium wheelsets (€299–€699), drivetrain components, suspension tuning, and custom color options. Discuss upgrades at checkout or contact our team."
            }
          ]}
        />
      </div>
      
      <div id="contact" data-section="contact">
        <ContactSplitForm
          title="Get Your Perfect Bike. We're Here to Help."
          description="Have questions about sizing, models, or shipping? Our BULLS experts respond within 24 hours. Or sign up for exclusive offers and new model launches."
          useInvertedBackground="noInvert"
          imageSrc="https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1767548960323-vxtlofha.jpg"
          imageAlt="BULLS team preparing premium bikes"
          mediaPosition="right"
          buttonText="Send Message"
          inputs={[
            { name: "name", type: "text", placeholder: "Your Name", required: true },
            { name: "email", type: "email", placeholder: "Email Address", required: true }
          ]}
          textarea={{ name: "message", placeholder: "Your question or message (sizing help, model advice, financing questions)", rows: 5, required: true }}
        />
      </div>
      
      <div id="footer" data-section="footer">
        <FooterBase
          columns={[
            {
              title: "Shop",
              items: [
                { label: "All Models", href: "products" },
                { label: "Mountain Bikes", href: "products" },
                { label: "Road Bikes", href: "products" },
                { label: "e-Bikes", href: "products" }
              ]
            },
            {
              title: "Support",
              items: [
                { label: "Sizing Guide", href: "faq" },
                { label: "Warranty", href: "faq" },
                { label: "Returns", href: "faq" },
                { label: "Contact Us", href: "contact" }
              ]
            },
            {
              title: "Company",
              items: [
                { label: "About BULLS", href: "about" },
                { label: "Careers", href: "https://example.com/careers" },
                { label: "Blog", href: "https://example.com/blog" },
                { label: "Newsletter", href: "contact" }
              ]
            }
          ]}
          logoText="BULLS"
          copyrightText="© 2025 BULLS Bikes. Engineered in Germany."
        />
      </div>
    </ThemeProvider>
  );
}