"use client"

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleApple from '@/components/navbar/NavbarStyleApple/NavbarStyleApple';
import HeroBillboardGallery from '@/components/sections/hero/HeroBillboardGallery';
import MetricCardThree from '@/components/sections/metrics/MetricCardThree';
import FeatureCardNine from '@/components/sections/feature/FeatureCardNine';
import TextAbout from '@/components/sections/about/TextAbout';
import TestimonialCardOne from '@/components/sections/testimonial/TestimonialCardOne';
import BlogCardThree from '@/components/sections/blog/BlogCardThree';
import ContactCenter from '@/components/sections/contact/ContactCenter';
import FooterLogoReveal from '@/components/sections/footer/FooterLogoReveal';
import { Zap, CheckCircle, Shield, Wrench, Users } from "lucide-react";

export default function LandingPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="hover-bubble"
      defaultTextAnimation="background-highlight"
      borderRadius="rounded"
      contentWidth="smallMedium"
      sizing="largeSmallSizeLargeTitles"
      background="noise"
      cardStyle="outline"
      primaryButtonStyle="primary-glow"
      secondaryButtonStyle="glass"
      headingFontWeight="medium"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleApple
          brandName="Welding an Machine"
          navItems={[
            { name: "Services", id: "services" },
            { name: "Why Us", id: "why-us" },
            { name: "Reviews", id: "reviews" },
            { name: "Contact", id: "contact" },
            { name: "Call Now", id: "tel:+1-512-555-0100" }
          ]}
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroBillboardGallery
          title="Welding + Machining That Gets You Back to Work—Fast."
          description="Emergency repairs, custom fabrication, and precision machining for trailers, RVs, equipment, and industrial jobs. Same-day help when possible. Known for fast turnaround, professional work, and problem-solving that saves your job—or your weekend."
          tag="Premium Speed Partner"
          tagIcon={Zap}
          tagAnimation="slide-up"
          background={{ variant: "rotated-rays-static" }}
          mediaItems={[
            {
              imageSrc: "http://img.b2bpic.net/free-photo/white-hot-sparks-white-smoke-grinding-steel-material_1232-4383.jpg",              imageAlt: "Close-up of welding sparks and beads"
            },
            {
              imageSrc: "http://img.b2bpic.net/free-photo/stainless-steel-details-equipments-machinery_114579-2840.jpg",              imageAlt: "Precision machined metal parts and components"
            },
            {
              imageSrc: "http://img.b2bpic.net/free-photo/man-is-working-metal-factory-he-is-welding-piece-rail-using-special-tools_613910-3861.jpg",              imageAlt: "Austin and crew working in the welding shop"
            }
          ]}
          mediaAnimation="slide-up"
          buttons={[
            { text: "Call Now", href: "tel:+1-512-555-0100" },
            { text: "Request a Quote", href: "#contact" }
          ]}
          buttonAnimation="slide-up"
        />
      </div>

      <div id="proof-bar" data-section="proof-bar">
        <MetricCardThree
          title="Why Welding an Machine Wins"
          description="What keeps customers coming back—proven across every project."
          tag="Fast + Reliable"
          tagAnimation="slide-up"
          metrics={[
            {
              id: "1",              icon: Zap,
              title: "Same-Day Service",              value: "When Possible"
            },
            {
              id: "2",              icon: Shield,
              title: "Quality Work",              value: "That Lasts"
            },
            {
              id: "3",              icon: Wrench,
              title: "Custom Solutions",              value: "Every Time"
            },
            {
              id: "4",              icon: Users,
              title: "Helpful Team",              value: "Always"
            }
          ]}
          textboxLayout="default"
          animationType="slide-up"
          useInvertedBackground={false}
        />
      </div>

      <div id="services" data-section="services">
        <FeatureCardNine
          title="What We Fix & Build"
          description="From emergency saves to custom fabrication—we handle the jobs that matter."
          tag="Services"
          tagAnimation="slide-up"
          features={[
            {
              id: 1,
              title: "Emergency Repairs",              description: "When your trip or job is on the line, we'll do everything we can to get you in. Same-day help for broken equipment, failed welds, and critical fixes.",              phoneOne: {
                imageSrc: "http://img.b2bpic.net/free-photo/closeup-shot-man-repairing-car-with-tool_181624-45035.jpg",                imageAlt: "Emergency repair equipment"
              },
              phoneTwo: {
                imageSrc: "http://img.b2bpic.net/free-photo/welding-work-with-metal-construction-busy-metal-factory_613910-17130.jpg",                imageAlt: "Welding fabrication work"
              }
            },
            {
              id: 2,
              title: "Welding & Fabrication",              description: "Custom brackets, reinforcements, frames, and mounts. We build solutions that fit your exact needs and stand up to real-world use.",              phoneOne: {
                imageSrc: "http://img.b2bpic.net/free-photo/close-up-metalworking-machine_176420-4718.jpg",                imageAlt: "CNC machining precision"
              },
              phoneTwo: {
                imageSrc: "http://img.b2bpic.net/free-photo/combine-machine-service-mechanic-repairing-motor-outdoors_146671-19072.jpg",                imageAlt: "Trailer axle repair"
              }
            }
          ]}
          showStepNumbers={false}
          textboxLayout="default"
          animationType="blur-reveal"
          useInvertedBackground={false}
          buttons={[
            { text: "Tell Us What Broke", href: "#contact" }
          ]}
          buttonAnimation="slide-up"
        />
      </div>

      <div id="why-us" data-section="why-us">
        <TextAbout
          tag="Our Promise"
          tagIcon={CheckCircle}
          tagAnimation="slide-up"
          title="Fast turnaround without cutting corners. Quality work, priced honestly. A team that's actually helpful."
          useInvertedBackground={false}
          buttons={[
            { text: "Learn More", href: "#contact" }
          ]}
          buttonAnimation="slide-up"
        />
      </div>

      <div id="reviews" data-section="reviews">
        <TestimonialCardOne
          title="What Our Customers Say"
          description="Real feedback from trailers, RVs, equipment, and industrial clients who trusted us when it mattered."
          tag="Testimonials"
          tagAnimation="slide-up"
          testimonials={[
            {
              id: "1",              name: "Mike Johnson",              role: "Owner",              company: "Johnson Trucking",              rating: 5,
              imageSrc: "http://img.b2bpic.net/free-photo/close-up-portrait-young-handsome-successful-man_1163-5475.jpg?_wi=1",              imageAlt: "Mike Johnson"
            },
            {
              id: "2",              name: "Sarah Chen",              role: "Fleet Manager",              company: "Southwest Transport",              rating: 5,
              imageSrc: "http://img.b2bpic.net/free-photo/positive-confident-businesswoman-wearing-formal-suit-standing-with-arms-folded_74855-10328.jpg?_wi=1",              imageAlt: "Sarah Chen"
            },
            {
              id: "3",              name: "David Rodriguez",              role: "Maintenance Director",              company: "Industrial Solutions Inc",              rating: 5,
              imageSrc: "http://img.b2bpic.net/free-photo/close-up-portrait-young-handsome-successful-man_1163-5475.jpg?_wi=2",              imageAlt: "David Rodriguez"
            },
            {
              id: "4",              name: "Lisa Thompson",              role: "RV Enthusiast",              company: "Vacation Travelers",              rating: 5,
              imageSrc: "http://img.b2bpic.net/free-photo/positive-confident-businesswoman-wearing-formal-suit-standing-with-arms-folded_74855-10328.jpg?_wi=2",              imageAlt: "Lisa Thompson"
            },
            {
              id: "5",              name: "James Patterson",              role: "Shop Owner",              company: "Patterson Equipment",              rating: 5,
              imageSrc: "http://img.b2bpic.net/free-photo/close-up-portrait-young-handsome-successful-man_1163-5475.jpg?_wi=3",              imageAlt: "James Patterson"
            },
            {
              id: "6",              name: "Jennifer Martinez",              role: "Operations Manager",              company: "Austin Services Ltd",              rating: 5,
              imageSrc: "http://img.b2bpic.net/free-photo/positive-confident-businesswoman-wearing-formal-suit-standing-with-arms-folded_74855-10328.jpg?_wi=3",              imageAlt: "Jennifer Martinez"
            }
          ]}
          gridVariant="uniform-all-items-equal"
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
          buttons={[
            { text: "Read More Reviews", href: "#contact" }
          ]}
          buttonAnimation="slide-up"
        />
      </div>

      <div id="process" data-section="process">
        <FeatureCardNine
          title="How It Works"
          description="Simple, transparent process from problem to solution. If it's urgent, tell us—we'll be straight with you about timeline."
          tag="Process"
          tagAnimation="slide-up"
          features={[
            {
              id: 1,
              title: "Send Photos or Call",              description: "Upload 2–5 images and a quick description, or call us directly. The more details, the faster we can assess.",              phoneOne: {
                imageSrc: "http://img.b2bpic.net/free-photo/ferrofluid-magnet-wooden-background_23-2148253585.jpg?_wi=1",                imageAlt: "Quality weld detail"
              },
              phoneTwo: {
                imageSrc: "http://img.b2bpic.net/free-photo/car-being-taking-care-workshop_23-2149580570.jpg?_wi=1",                imageAlt: "Before and after repair"
              }
            },
            {
              id: 2,
              title: "Quick Assessment & Quote",              description: "We'll evaluate the job and give you a realistic quote and timeline. No surprises.",              phoneOne: {
                imageSrc: "http://img.b2bpic.net/free-photo/young-manual-worker-presenting-new-business-strategy-company-managers-his-colleagues-factory_637285-4142.jpg?_wi=1",                imageAlt: "Team working in shop"
              },
              phoneTwo: {
                imageSrc: "http://img.b2bpic.net/free-photo/closeup-shot-metal-padlocks-with-heart-hanging-fence_181624-33750.jpg?_wi=1",                imageAlt: "Custom fabricated bracket"
              }
            }
          ]}
          showStepNumbers={true}
          textboxLayout="default"
          animationType="blur-reveal"
          useInvertedBackground={false}
        />
      </div>

      <div id="gallery" data-section="gallery">
        <BlogCardThree
          title="Gallery"
          description="A look at the quality and precision that defines our work."
          tag="Portfolio"
          tagAnimation="slide-up"
          blogs={[
            {
              id: "1",              category: "Weld Quality",              title: "Close-Up: Perfect Weld Bead",              excerpt: "The craftsmanship that goes into every joint. Consistent heat, steady hand, lasting quality.",              imageSrc: "http://img.b2bpic.net/free-photo/ferrofluid-magnet-wooden-background_23-2148253585.jpg?_wi=2",              imageAlt: "Close-up of a perfect weld bead",              authorName: "Austin",              authorAvatar: "http://img.b2bpic.net/free-photo/close-up-portrait-young-handsome-successful-man_1163-5475.jpg",              date: "Precision Work"
            },
            {
              id: "2",              category: "Trailer Repair",              title: "Before & After: Cracked Subframe",              excerpt: "Major structural damage repaired to like-new condition. This trailer came in broken—it left ready for 10,000 more miles.",              imageSrc: "http://img.b2bpic.net/free-photo/car-being-taking-care-workshop_23-2149580570.jpg?_wi=2",              imageAlt: "Before and after trailer subframe repair",              authorName: "Austin",              authorAvatar: "http://img.b2bpic.net/free-photo/close-up-portrait-young-handsome-successful-man_1163-5475.jpg",              date: "Structural Repair"
            },
            {
              id: "3",              category: "Team",              title: "The Crew: Where Quality Happens",              excerpt: "Austin and the team bring decades of combined experience to every job. Real skill, real commitment.",              imageSrc: "http://img.b2bpic.net/free-photo/young-manual-worker-presenting-new-business-strategy-company-managers-his-colleagues-factory_637285-4142.jpg?_wi=2",              imageAlt: "Team working in the welding shop",              authorName: "Austin",              authorAvatar: "http://img.b2bpic.net/free-photo/close-up-portrait-young-handsome-successful-man_1163-5475.jpg",              date: "Our Team"
            },
            {
              id: "4",              category: "Custom Fabrication",              title: "Custom Bracket: Engineered to Fit",              excerpt: "When a standard bracket won't work, we design and build exactly what you need.",              imageSrc: "http://img.b2bpic.net/free-photo/closeup-shot-metal-padlocks-with-heart-hanging-fence_181624-33750.jpg?_wi=2",              imageAlt: "Custom fabricated metal bracket",              authorName: "Austin",              authorAvatar: "http://img.b2bpic.net/free-photo/close-up-portrait-young-handsome-successful-man_1163-5475.jpg",              date: "Custom Build"
            }
          ]}
          uniformGridCustomHeightClasses="min-h-80 2xl:min-h-96"
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
          buttons={[
            { text: "Bring Us Your Problem", href: "#contact" }
          ]}
          buttonAnimation="slide-up"
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactCenter
          tag="Get Started"
          tagIcon={Zap}
          tagAnimation="slide-up"
          title="Need It Fixed Fast?"
          description="Call now or upload photos for a quote. If it's urgent, we'll prioritize it. Let's get you rolling again."
          background={{ variant: "rotated-rays-static" }}
          useInvertedBackground={false}
          inputPlaceholder="your@email.com"
          buttonText="Get Quote"
          termsText="We respect your inbox. Unsubscribe anytime. Or just call—we answer our phone."
        />
      </div>

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