"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import ReactLenis from "lenis/react";
import ContactCTA from '@/components/sections/contact/ContactCTA';
import FaqSplitText from '@/components/sections/faq/FaqSplitText';
import FeatureCardTwentySix from '@/components/sections/feature/FeatureCardTwentySix';
import FooterBase from '@/components/sections/footer/FooterBase';
import HeroSplitDualMedia from '@/components/sections/hero/HeroSplitDualMedia';
import MetricCardEleven from '@/components/sections/metrics/MetricCardEleven';
import NavbarStyleFullscreen from '@/components/navbar/NavbarStyleFullscreen/NavbarStyleFullscreen';
import ProductCardOne from '@/components/sections/product/ProductCardOne';
import SocialProofOne from '@/components/sections/socialProof/SocialProofOne';
import SplitAbout from '@/components/sections/about/SplitAbout';
import TestimonialCardSixteen from '@/components/sections/testimonial/TestimonialCardSixteen';

export default function LandingPage() {
  return (
    <ThemeProvider
        defaultButtonVariant="shift-hover"
        defaultTextAnimation="entrance-slide"
        borderRadius="pill"
        contentWidth="smallMedium"
        sizing="large"
        background="blurBottom"
        cardStyle="inset"
        primaryButtonStyle="flat"
        secondaryButtonStyle="layered"
        headingFontWeight="light"
    >
      <ReactLenis root>
  <div id="nav" data-section="nav">
      <NavbarStyleFullscreen
      navItems={[
        {
          name: "Home",
          id: "#hero",
        },
        {
          name: "Services",
          id: "#features",
        },
        {
          name: "Solutions",
          id: "#products",
        },
        {
          name: "Results",
          id: "#metrics",
        },
        {
          name: "Testimonials",
          id: "#testimonials",
        },
        {
          name: "About",
          id: "#about",
        },
        {
          name: "FAQ",
          id: "#faq",
        },
        {
          name: "Contact",
          id: "#contact",
        },
      ]}
      logoSrc="https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=29iem8"
      logoAlt="Morendi Logo"
      brandName="Morendi"
      bottomLeftText="Automotive Performance Leader"
      bottomRightText="info@morendi.com"
    />
  </div>

  <div id="hero" data-section="hero">
      <HeroSplitDualMedia
      background={{
        variant: "sparkles-gradient",
      }}
      title="Unlock Your Engine's True Potential"
      description="World-class vehicle tuning and custom software solutions that transform performance. From precision engine calibration to gearbox optimization, Morendi delivers measurable power, efficiency, and reliability."
      tag="Performance Redefined"
      buttons={[
        {
          text: "Explore Our Services",
          href: "#features",
        },
      ]}
      mediaItems={[
        {
          imageSrc: "http://img.b2bpic.net/free-photo/white-sport-car-with-black-autotuning-driving-with-high-speed-road_114579-4072.jpg",
          imageAlt: "High-performance luxury sports car on a test track",
          videoSrc: "",
        },
        {
          imageSrc: "http://img.b2bpic.net/free-photo/close-up-car-engine_1232-1707.jpg",
          imageAlt: "Detailed close-up of a high-performance engine bay",
          videoSrc: "",
        },
        {
          imageSrc: "http://img.b2bpic.net/free-photo/superhero-car-vintage-style_23-2151636142.jpg",
          imageAlt: "Superhero car in vintage style",
          videoSrc: "",
        },
        {
          imageSrc: "http://img.b2bpic.net/free-photo/blurred-night-lights_23-2148139225.jpg",
          imageAlt: "Blurred night lights",
          videoSrc: "",
        },
        {
          imageSrc: "http://img.b2bpic.net/free-photo/vehicles-bridge-with-motion-blur-night_23-2148287837.jpg",
          imageAlt: "Vehicles on bridge with motion blur at night",
          videoSrc: "",
        },
      ]}
      mediaAnimation="blur-reveal"
      rating={5}
      ratingText="Trusted by 5,000+ Enthusiasts"
    />
  </div>

  <div id="about" data-section="about">
      <SplitAbout
      textboxLayout="default"
      useInvertedBackground={false}
      title="Beyond Standard Tuning"
      description="At Morendi, we redefine automotive performance through unparalleled expertise and cutting-edge software development. Our passion for precision engineering drives us to deliver world-class tuning solutions for both discerning enthusiasts and commercial partners. Experience a new standard of power, efficiency, and reliability tailored to your vehicle's unique needs."
      bulletPoints={[
        {
          title: "Precision Engine Calibration",
          description: "Optimize fuel mapping, ignition timing, and boost pressure for maximum power and efficiency.",
        },
        {
          title: "Gearbox Software Development",
          description: "Enhance shift speeds, torque limits, and overall transmission responsiveness.",
        },
        {
          title: "Custom ECU Solutions",
          description: "Tailored Engine Control Unit programming for unique vehicle requirements and projects.",
        },
      ]}
      imageSrc="http://img.b2bpic.net/free-photo/auto-mechanic-repairing-car-tire-while-working-workshop_637285-7616.jpg"
      imageAlt="Automotive engineer working on an engine with diagnostic equipment"
      mediaAnimation="blur-reveal"
    />
  </div>

  <div id="features" data-section="features">
      <FeatureCardTwentySix
      textboxLayout="default"
      useInvertedBackground={true}
      features={[
        {
          title: "ECU Tuning & Remapping",
          description: "Advanced calibration of your Engine Control Unit to optimize power delivery, torque, and fuel economy.",
          imageSrc: "http://img.b2bpic.net/free-photo/control-table-spacecraft-from-inside_23-2151828175.jpg",
          imageAlt: "ECU being optimized with tuning software",
          buttonIcon: "Zap",
        },
        {
          title: "Dynamometer Testing",
          description: "Precise measurement of horsepower, torque, and other key performance metrics to validate tuning results.",
          imageSrc: "http://img.b2bpic.net/free-photo/fellow-benchman-adding-oil-engine-car_114579-2798.jpg",
          imageAlt: "Car undergoing a dyno test",
          buttonIcon: "Gauge",
        },
        {
          title: "Gearbox Optimization",
          description: "Customized transmission control unit (TCU) software to improve shift speed, smoothness, and durability.",
          imageSrc: "http://img.b2bpic.net/free-photo/3d-rendering-black-white-background_23-2150498625.jpg",
          imageAlt: "Detailed view of a high-performance gearbox assembly",
          buttonIcon: "Settings",
        },
        {
          title: "Bespoke Software Development",
          description: "Tailored software solutions for unique automotive projects, including DPF/EGR deletes and custom coding.",
          imageSrc: "http://img.b2bpic.net/free-photo/close-up-fuel-level-gauge-vehicle_23-2150163692.jpg",
          imageAlt: "Digital graph showing performance curve comparison",
          buttonIcon: "Code",
        },
      ]}
      title="Our Precision Performance Services"
      description="Leveraging cutting-edge technology and unparalleled expertise, Morendi offers a comprehensive suite of services designed to unlock your vehicle's true potential. From individual tuning stages to bespoke software solutions, we guarantee measurable improvements and a superior driving experience."
    />
  </div>

  <div id="products" data-section="products">
      <ProductCardOne
      animationType="scale-rotate"
      textboxLayout="default"
      gridVariant="uniform-all-items-equal"
      useInvertedBackground={false}
      products={[
        {
          id: "p1",
          name: "Stage 1 ECU Tune",
          price: "$799",
          imageSrc: "http://img.b2bpic.net/free-photo/settings-icon-front-side-with-white-background_187299-39966.jpg",
          imageAlt: "Stage 1 ECU Tune icon",
        },
        {
          id: "p2",
          name: "Stage 2 ECU Tune",
          price: "$1299",
          imageSrc: "http://img.b2bpic.net/free-photo/gear-icon-set-isolated-background_53876-71277.jpg",
          imageAlt: "Stage 2 ECU Tune icon",
        },
        {
          id: "p3",
          name: "Gearbox Optimization",
          price: "$599",
          imageSrc: "http://img.b2bpic.net/free-photo/flat-lay-hard-disk-components_23-2149413367.jpg",
          imageAlt: "Gearbox Optimization icon",
        },
        {
          id: "p4",
          name: "Fleet Efficiency Pro",
          price: "Custom Quote",
          imageSrc: "http://img.b2bpic.net/free-photo/industrial-designer-working-3d-model_23-2149370094.jpg",
          imageAlt: "Fleet Efficiency Pro icon",
        },
        {
          id: "p5",
          name: "Custom ECU Development",
          price: "Starting at $1500",
          imageSrc: "http://img.b2bpic.net/free-photo/pc-desk-empty-photovoltaics-factory-monitoring-system-performance-closeup_482257-118100.jpg",
          imageAlt: "Custom ECU Development icon",
        },
        {
          id: "p6",
          name: "DPF/EGR Delete Solutions",
          price: "$899",
          imageSrc: "http://img.b2bpic.net/free-vector/multimedia-25-line-filled-icon-pack-including-remove-minus-degrees-delete-multimedia_1142-25085.jpg",
          imageAlt: "DPF/EGR Delete Solutions icon",
        },
      ]}
      title="Performance Software Solutions"
      description="Discover our range of expertly developed engine and gearbox software, designed to enhance every aspect of your vehicle's performance. Each solution is meticulously crafted for optimal results and lasting reliability."
    />
  </div>

  <div id="metrics" data-section="metrics">
      <MetricCardEleven
      textboxLayout="default"
      useInvertedBackground={true}
      metrics={[
        {
          id: "m1",
          value: "+25%",
          title: "Horsepower Gain",
          description: "Average increase in peak horsepower across our tuned vehicles.",
          imageSrc: "http://img.b2bpic.net/free-photo/business-work-concept_1388-72.jpg",
          imageAlt: "Horsepower graph with gains",
        },
        {
          id: "m2",
          value: "+30%",
          title: "Torque Improvement",
          description: "Enhanced low-end and mid-range torque for superior acceleration.",
          imageSrc: "http://img.b2bpic.net/free-photo/executive-assistant-looking-wristwatch-office-checking-time-working-after-hours-business-development-young-adult-analyzing-financial-statistics-computer-startup-growth_482257-63092.jpg",
          imageAlt: "Torque graph with gains",
        },
        {
          id: "m3",
          value: "Up to 15%",
          title: "Fuel Efficiency",
          description: "Significant improvements in fuel economy for daily driving and long trips.",
          imageSrc: "http://img.b2bpic.net/free-photo/cartoon-car-notebook-grass_23-2148576668.jpg",
          imageAlt: "Fuel efficiency icon",
        },
        {
          id: "m4",
          value: "0-100 kph in <3s",
          title: "Acceleration Boost",
          description: "Record-breaking acceleration times for top-tier performance models.",
          imageSrc: "http://img.b2bpic.net/free-photo/closeup-shot-odometer-motorcycle_181624-8299.jpg",
          imageAlt: "Digital speedometer showing high speed",
        },
      ]}
      title="Measurable Gains, Proven Results"
      description="Our commitment to performance is backed by data and client satisfaction. See the tangible improvements Morendi delivers across key performance indicators."
    />
  </div>

  <div id="testimonials" data-section="testimonials">
      <TestimonialCardSixteen
      animationType="depth-3d"
      textboxLayout="default"
      useInvertedBackground={false}
      testimonials={[
        {
          id: "t1",
          name: "Marcus R.",
          role: "Luxury Car Owner",
          company: "Private Client",
          rating: 5,
          imageSrc: "http://img.b2bpic.net/free-photo/portrait-smiling-mature-businessman-with-crossed-arms_23-2147956339.jpg",
          imageAlt: "Portrait of Marcus R.",
        },
        {
          id: "t2",
          name: "Sophie K.",
          role: "Automotive Shop Owner",
          company: "Performance Garage",
          rating: 5,
          imageSrc: "http://img.b2bpic.net/free-photo/satisfied-customer-shaking-hands-with-mechanic_1170-1275.jpg",
          imageAlt: "Portrait of Sophie K.",
        },
        {
          id: "t3",
          name: "David L.",
          role: "Performance Enthusiast",
          company: "Track Day Regular",
          rating: 5,
          imageSrc: "http://img.b2bpic.net/free-photo/saleswoman-car-dealership-signing-contract-with-man_482257-113093.jpg",
          imageAlt: "Portrait of David L.",
        },
        {
          id: "t4",
          name: "Elena P.",
          role: "Fleet Manager",
          company: "Global Logistics Co.",
          rating: 5,
          imageSrc: "http://img.b2bpic.net/free-photo/businesswoman-explaining-infographic-elements-sheet-her-male-partner_23-2147899656.jpg",
          imageAlt: "Portrait of Elena P.",
        },
        {
          id: "t5",
          name: "Chris B.",
          role: "Car Enthusiast",
          company: "Custom Builds",
          rating: 5,
          imageSrc: "http://img.b2bpic.net/free-photo/excited-woman-travelling-close-up_23-2148320209.jpg",
          imageAlt: "Portrait of Chris B.",
        },
      ]}
      kpiItems={[
        {
          value: "99%",
          label: "Client Satisfaction",
        },
        {
          value: "100+",
          label: "Engine Models Supported",
        },
        {
          value: "10K+",
          label: "Successful Tunes",
        },
      ]}
      title="What Our Clients Say"
      description="Hear directly from enthusiasts and professionals who trust Morendi for peak performance and unparalleled service. Their experiences speak volumes about our commitment to excellence."
    />
  </div>

  <div id="social-proof" data-section="social-proof">
      <SocialProofOne
      textboxLayout="default"
      useInvertedBackground={true}
      names={[
        "AutoCorp",
        "PowerDrive",
        "GearWorks",
        "EngineX",
        "VelocityTech",
        "DynoPro",
        "Apex Motors",
        "Torque Innovations",
        "Precision Tuning Group",
      ]}
      title="Trusted by Industry Leaders"
      description="Our partnerships reflect our commitment to excellence and innovation, collaborating with top brands and organizations in the automotive world."
    />
  </div>

  <div id="faq" data-section="faq">
      <FaqSplitText
      useInvertedBackground={false}
      faqs={[
        {
          id: "q1",
          title: "What is ECU remapping?",
          content: "ECU remapping, or tuning, involves optimizing the software on your vehicle's engine control unit. This process recalibrates parameters like fuel injection, ignition timing, and boost pressure to unlock more power, torque, and improve fuel efficiency.",
        },
        {
          id: "q2",
          title: "Is tuning safe for my engine?",
          content: "When done professionally by experts like Morendi, tuning is entirely safe for your engine. We operate within safe limits set by the manufacturer, ensuring optimal performance without compromising reliability or engine longevity.",
        },
        {
          id: "q3",
          title: "How long does a tuning process take?",
          content: "The duration of a tuning process can vary depending on the vehicle and the desired stage of tune. Typically, a standard ECU remapping can be completed within a few hours, including diagnostic checks and dyno testing.",
        },
        {
          id: "q4",
          title: "Do you offer solutions for commercial fleets?",
          content: "Yes, Morendi provides specialized software solutions for commercial fleets aimed at increasing fuel efficiency, optimizing torque for heavy loads, and reducing maintenance costs. Contact us for a custom fleet optimization plan.",
        },
      ]}
      sideTitle="Common Questions"
      sideDescription="Find answers to frequently asked questions about Morendi's automotive tuning and software development services."
      faqsAnimation="slide-up"
    />
  </div>

  <div id="contact" data-section="contact">
      <ContactCTA
      useInvertedBackground={true}
      background={{
        variant: "radial-gradient",
      }}
      tag="Get in Touch"
      title="Ready to Optimize Your Ride?"
      description="Contact Morendi today to discuss your vehicle's performance goals and explore our custom solutions. Our team of experts is ready to help you unlock the true potential of your engine."
      buttons={[
        {
          text: "Schedule a Consultation",
          href: "#",
        },
        {
          text: "Email Us",
          href: "mailto:info@morendi.com",
        },
      ]}
    />
  </div>

  <div id="footer" data-section="footer">
      <FooterBase
      columns={[
        {
          title: "Services",
          items: [
            {
              label: "ECU Tuning",
              href: "#features",
            },
            {
              label: "Gearbox Optimization",
              href: "#features",
            },
            {
              label: "Custom Software",
              href: "#products",
            },
            {
              label: "Dyno Testing",
              href: "#features",
            },
          ],
        },
        {
          title: "Company",
          items: [
            {
              label: "About Us",
              href: "#about",
            },
            {
              label: "Our Process",
              href: "#features",
            },
            {
              label: "Client Success",
              href: "#testimonials",
            },
            {
              label: "Contact",
              href: "#contact",
            },
          ],
        },
        {
          title: "Resources",
          items: [
            {
              label: "FAQ",
              href: "#faq",
            },
            {
              label: "Blog",
              href: "#",
            },
            {
              label: "Support",
              href: "#contact",
            },
          ],
        },
      ]}
      logoSrc="https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=29iem8"
      logoAlt="Morendi Logo"
      logoText="Morendi"
      copyrightText="© 2024 Morendi. All rights reserved."
    />
  </div>
      </ReactLenis>
    </ThemeProvider>
  );
}
