"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="projects" data-section="projects">
        <BlogCardTwo
          title="Recent Projects"
          description="Standing seam installs, repairs, cottages, camps, barns, and garages—done with a clean, premium finish."
          blogs={[
            {
              id: "1",
              category: ["Standing Seam", "Residential"],
              title: "Modern Home Standing Seam Installation",
              excerpt: "Clean lines and superior durability for a contemporary home renovation.",
              imageSrc: "https://img.b2bpic.net/free-photo/modern-house-architecture-navy-roof-wooden-soffit-blue-sky_626616-509.jpg?_wi=1",
              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.",
              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.",
              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: ["Residential", "Garage"],
              title: "Premium Garage Construction",
              excerpt: "Custom garage build with matching metal roofing and superior craftsmanship.",
              imageSrc: "https://img.b2bpic.net/free-photo/experts-check-warehouse-inventory_482257-75354.jpg?_wi=4",
              authorName: "Martinez Team",
              authorAvatar: "https://img.b2bpic.net/free-vector/construction_24908-53978.jpg",
              date: "28 Dec 2024"
            },
            {
              id: "5",
              category: ["Standing Seam", "Cottage"],
              title: "Lake Cottage Metal Roof Upgrade",
              excerpt: "Weather-resistant standing seam installation for a seasonal cottage.",
              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: "20 Dec 2024"
            }
          ]}
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
        />
      </div>

      <div id="project-testimonials" data-section="project-testimonials">
        <TestimonialCardThirteen
          title="What Our Project Clients Say"
          description="Real feedback from homeowners and businesses we've served."
          testimonials={[
            {
              id: "1",
              name: "David Kim",
              handle: "@homeowner_4",
              testimonial: "No trace left behind—top notch work.",
              rating: 5,
              imageSrc: "https://img.b2bpic.net/free-photo/close-up-portrait-young-handsome-successful-man_1163-5475.jpg?_wi=3"
            },
            {
              id: "2",
              name: "Jennifer Davis",
              handle: "@homeowner_5",
              testimonial: "Exceeded expectations on every level.",
              rating: 5,
              imageSrc: "https://img.b2bpic.net/free-photo/positive-confident-businesswoman-wearing-formal-suit-standing-with-arms-folded_74855-10328.jpg?_wi=2"
            },
            {
              id: "3",
              name: "Robert Martinez",
              handle: "@homeowner_6",
              testimonial: "Best roofing contractor I've worked with.",
              rating: 5,
              imageSrc: "https://img.b2bpic.net/free-photo/close-up-portrait-young-handsome-successful-man_1163-5475.jpg?_wi=4"
            }
          ]}
          showRating={true}
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
        />
      </div>

      <div id="projects-cta" data-section="projects-cta">
        <ContactText
          text="Inspired by what you see? Let's discuss your project and create something exceptional together."
          animationType="reveal-blur"
          buttons={[
            { text: "Start Your Project", href: "/contact" },
            { text: "Get an Estimate", href: "/contact" }
          ]}
          background={{ variant: "plain" }}
          useInvertedBackground={false}
        />
      </div>

      <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."
      />
    </ThemeProvider>
  );
}