"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import Link from "next/link";
import NavbarStyleApple from "@/components/navbar/NavbarStyleApple/NavbarStyleApple";
import BlogCardTwo from "@/components/sections/blog/BlogCardTwo";
import TestimonialCardThirteen from "@/components/sections/testimonial/TestimonialCardThirteen";
import ContactText from "@/components/sections/contact/ContactText";
import FooterSimple from "@/components/sections/footer/FooterSimple";

export default function ProjectsPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="elastic-effect"
      defaultTextAnimation="reveal-blur"
      borderRadius="soft"
      contentWidth="mediumLarge"
      sizing="largeSizeMediumTitles"
      background="floatingGradient"
      cardStyle="glass-elevated"
      primaryButtonStyle="flat"
      secondaryButtonStyle="solid"
      headingFontWeight="medium"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleApple
          brandName="Martinez Roofing"
          navItems={[
            { name: "Metal Roofing", id: "/metal-roofing" },
            { name: "Construction", id: "/construction" },
            { name: "Projects", id: "/projects" },
            { name: "About", id: "/about" },
            { name: "Contact", id: "/contact" }
          ]}
        />
      </div>

      <div id="featured-projects" data-section="featured-projects">
        <BlogCardTwo
          title="Featured Projects & Case Studies"
          description="Explore our portfolio of completed metal roofing installations, repairs, and custom construction projects showcasing our commitment to quality and craftsmanship."
          blogs={[
            {
              id: "1",
              category: ["Standing Seam", "Residential"],
              title: "Modern Home Standing Seam Installation",
              excerpt: "Clean lines and superior durability for a contemporary home renovation featuring premium standing seam metal roofing.",
              imageSrc: "https://img.b2bpic.net/free-photo/modern-house-architecture-navy-roof-wooden-soffit-blue-sky_626616-509.jpg?_wi=2",
              authorName: "Martinez Team",
              authorAvatar: "https://img.b2bpic.net/free-vector/construction_24908-53978.jpg",
              date: "15 Jan 2025"
            },
            {
              id: "2",
              category: ["Repair", "Commercial"],
              title: "Industrial Building Leak Diagnosis & Repair",
              excerpt: "Fast fixes without cutting corners on a critical commercial project with comprehensive leak repair and panel replacement.",
              imageSrc: "https://img.b2bpic.net/free-photo/agricultural-silo_146671-19121.jpg",
              authorName: "Martinez Team",
              authorAvatar: "https://img.b2bpic.net/free-vector/construction_24908-53978.jpg",
              date: "10 Jan 2025"
            },
            {
              id: "3",
              category: ["Construction", "Barn"],
              title: "Custom Barn Exterior & Metal Roofing",
              excerpt: "Complete structural and roofing upgrade with precision execution, combining traditional barn aesthetics with modern durability.",
              imageSrc: "https://img.b2bpic.net/free-photo/beautiful-shot-store-building-from-wood-stones-west-bloomfield-mi_181624-60264.jpg?_wi=3",
              authorName: "Martinez Team",
              authorAvatar: "https://img.b2bpic.net/free-vector/construction_24908-53978.jpg",
              date: "05 Jan 2025"
            },
            {
              id: "4",
              category: ["Standing Seam", "Residential"],
              title: "Lakefront Cottage Metal Roof Upgrade",
              excerpt: "Weather-resistant standing seam installation designed to withstand harsh lake environment conditions.",
              imageSrc: "https://img.b2bpic.net/free-photo/modern-house-architecture-navy-roof-wooden-soffit-blue-sky_626616-509.jpg?_wi=3",
              authorName: "Martinez Team",
              authorAvatar: "https://img.b2bpic.net/free-vector/construction_24908-53978.jpg",
              date: "28 Dec 2024"
            },
            {
              id: "5",
              category: ["Repair", "Maintenance"],
              title: "Emergency Storm Damage Repair",
              excerpt: "Rapid response emergency repair service restoring a damaged metal roof to optimal condition.",
              imageSrc: "https://img.b2bpic.net/free-photo/worker-cuts-steel-profiles-drywall-close-up-selective-focus-preparing-installation-ceiling-profile-system-frame-renovation-repair_166373-1903.jpg?_wi=4",
              authorName: "Martinez Team",
              authorAvatar: "https://img.b2bpic.net/free-vector/construction_24908-53978.jpg",
              date: "20 Dec 2024"
            },
            {
              id: "6",
              category: ["Construction", "Workshop"],
              title: "Custom Workshop & Garage Complex",
              excerpt: "Multi-building construction project featuring coordinated metal roofing and exterior design elements.",
              imageSrc: "https://img.b2bpic.net/free-photo/experts-check-warehouse-inventory_482257-75354.jpg?_wi=3",
              authorName: "Martinez Team",
              authorAvatar: "https://img.b2bpic.net/free-vector/construction_24908-53978.jpg",
              date: "15 Dec 2024"
            }
          ]}
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
          buttons={[
            { text: "Request Project Consultation", href: "/contact" }
          ]}
        />
      </div>

      <div id="project-testimonials" data-section="project-testimonials">
        <TestimonialCardThirteen
          title="Client Success Stories"
          description="Real testimonials from homeowners and business owners who experienced our project management and craftsmanship firsthand."
          testimonials={[
            {
              id: "1",
              name: "Robert Martinez",
              handle: "@project_client_1",
              testimonial: "Best roofing contractor I've worked with. The project was completed ahead of schedule.",
              rating: 5,
              imageSrc: "https://img.b2bpic.net/free-photo/close-up-portrait-young-handsome-successful-man_1163-5475.jpg?_wi=5"
            },
            {
              id: "2",
              name: "Jennifer Davis",
              handle: "@project_client_2",
              testimonial: "Exceeded expectations on every level. Our barn project turned out beautifully.",
              rating: 5,
              imageSrc: "https://img.b2bpic.net/free-photo/positive-confident-businesswoman-wearing-formal-suit-standing-with-arms-folded_74855-10328.jpg?_wi=6"
            },
            {
              id: "3",
              name: "David Kim",
              handle: "@project_client_3",
              testimonial: "No trace left behind—top notch project management from consultation to completion.",
              rating: 5,
              imageSrc: "https://img.b2bpic.net/free-photo/close-up-portrait-young-handsome-successful-man_1163-5475.jpg?_wi=6"
            }
          ]}
          showRating={true}
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
        />
      </div>

      <div id="project-cta" data-section="project-cta">
        <ContactText
          text="Ready to Start Your Next Project? Whether it's a standing seam installation, repair work, or custom construction, we're here to bring your vision to life with professional results."
          animationType="reveal-blur"
          buttons={[
            { text: "Discuss Your Project", href: "/contact" },
            { text: "Call for Consultation", href: "tel:+1-555-0100" }
          ]}
          background={{ variant: "plain" }}
          useInvertedBackground={false}
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterSimple
          columns={[
            {
              title: "Navigate",
              items: [
                { label: "Home", href: "/" },
                { label: "Metal Roofing", href: "/metal-roofing" },
                { label: "Construction", href: "/construction" },
                { label: "Projects", href: "/projects" }
              ]
            },
            {
              title: "Company",
              items: [
                { label: "About Us", href: "/about" },
                { label: "Contact", href: "/contact" }
              ]
            },
            {
              title: "Services",
              items: [
                { label: "Standing Seam Install", href: "/metal-roofing" },
                { label: "Repairs & Replacement", href: "/metal-roofing" },
                { label: "Custom Projects", href: "/construction" }
              ]
            },
            {
              title: "Legal",
              items: [
                { label: "Privacy Policy", href: "#" },
                { label: "Terms of Service", href: "#" }
              ]
            }
          ]}
          bottomLeftText="© 2025 Martinez Metal Roofing & Construction. All rights reserved."
          bottomRightText="Built for quality and precision."
        />
      </div>
    </ThemeProvider>
  );
}