"use client";
import Link from "next/link";
import { Trophy } from "lucide-react";
import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleFullscreen from '@/components/navbar/NavbarStyleFullscreen/NavbarStyleFullscreen';
import ProductCardFour from '@/components/sections/product/ProductCardFour';
import TestimonialCardFifteen from '@/components/sections/testimonial/TestimonialCardFifteen';
import SocialProofOne from '@/components/sections/socialProof/SocialProofOne';
import FooterLogoEmphasis from '@/components/sections/footer/FooterLogoEmphasis';

export default function ProjectsPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="shift-hover"
      defaultTextAnimation="entrance-slide"
      borderRadius="pill"
      contentWidth="smallMedium"
      sizing="largeSmall"
      background="noiseDiagonalGradient"
      cardStyle="inset"
      primaryButtonStyle="inset-glow"
      secondaryButtonStyle="glass"
      headingFontWeight="semibold"
    >
      {/* Navbar */}
      <div id="nav" data-section="nav">
        <NavbarStyleFullscreen
          navItems={[
            { name: "Home", id: "/" },
            { name: "Services", id: "/services" },
            { name: "Storm Damage", id: "/storm-damage" },
            { name: "Projects", id: "/projects" },
            { name: "Contact", id: "/contact" }
          ]}
          brandName="Viking Construction"
          bottomLeftText="Licensed & Insured"
          bottomRightText="Fast Response • Insurance Support"
        />
      </div>

      {/* Featured Projects */}
      <div id="projects-gallery" data-section="projects-gallery">
        <ProductCardFour
          products={[
            {
              id: "residential-repair",
              name: "Emergency Leak Repair",
              price: "Completed",
              variant: "Same-Day Response • Insurance Covered",
              imageSrc: "http://img.b2bpic.net/free-photo/auto-mechanic-inflating-tire-with-air-compressor-street_651396-3561.jpg?_wi=4",
              imageAlt: "Emergency roof leak repair project"
            },
            {
              id: "full-replacement",
              name: "Complete Roof Replacement",
              price: "3 Days",
              variant: "Storm Damage • Full Insurance Claim",
              imageSrc: "http://img.b2bpic.net/free-photo/man-walking-roof_1321-1041.jpg?_wi=4",
              imageAlt: "Complete roof replacement project"
            },
            {
              id: "hail-damage",
              name: "Hail Damage Restoration",
              price: "2 Days",
              variant: "Insurance Approved • Quality Materials",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=iakob3&_wi=4",
              imageAlt: "Hail damage restoration project"
            },
            {
              id: "commercial-inspection",
              name: "Multi-Property Inspection",
              price: "1 Week",
              variant: "Property Management • Detailed Reports",
              imageSrc: "http://img.b2bpic.net/free-photo/close-up-engineer-architect-looking-clipboard_23-2148233774.jpg?_wi=4",
              imageAlt: "Commercial property inspection project"
            }
          ]}
          title="Recent Projects & Portfolio"
          description="Real examples of our craftsmanship, responsiveness, and attention to detail across residential and commercial roofing."
          gridVariant="uniform-all-items-equal"
          textboxLayout="default"
          animationType="slide-up"
          useInvertedBackground={false}
          ariaLabel="Portfolio of completed roofing projects"
        />
      </div>

      {/* Client Testimonial */}
      <div id="testimonials" data-section="testimonials">
        <TestimonialCardFifteen
          testimonial="Viking Construction handled our storm damage claim flawlessly. They documented everything professionally, worked with our insurance, and completed the repair faster than we expected."
          rating={5}
          author="Mike Thompson, Property Manager"
          avatars={[
            {
              src: "http://img.b2bpic.net/free-photo/close-up-portrait-young-handsome-successful-man_1163-5475.jpg",
              alt: "Client testimonial avatar 1"
            },
            {
              src: "http://img.b2bpic.net/free-photo/close-up-portrait-young-handsome-successful-man_1163-5475.jpg",
              alt: "Client testimonial avatar 2"
            },
            {
              src: "http://img.b2bpic.net/free-photo/close-up-portrait-young-handsome-successful-man_1163-5475.jpg",
              alt: "Client testimonial avatar 3"
            },
            {
              src: "http://img.b2bpic.net/free-photo/close-up-portrait-young-handsome-successful-man_1163-5475.jpg",
              alt: "Client testimonial avatar 4"
            }
          ]}
          ratingAnimation="slide-up"
          avatarsAnimation="slide-up"
          useInvertedBackground={false}
          ariaLabel="Client testimonial for project quality"
        />
      </div>

      {/* Trust Indicators */}
      <div id="social-proof" data-section="social-proof">
        <SocialProofOne
          title="Trusted by Homeowners & Property Managers"
          description="From single-family homes to multi-property portfolios, we're known for responsiveness, quality, and fair pricing."
          tag="Partners & Clients"
          tagIcon={Trophy}
          textboxLayout="default"
          useInvertedBackground={false}
          names={[
            "Licensed & Insured",
            "Fast Response Guarantee", 
            "Insurance Coordination",
            "Workmanship Warranty",
            "Photo Documentation",
            "Free Estimates",
            "Same-Day Service Available"
          ]}
          speed={40}
          showCard={true}
          ariaLabel="Trust and social proof indicators"
        />
      </div>

      {/* Footer */}
      <div id="footer" data-section="footer">
        <FooterLogoEmphasis
          columns={[
            {
              items: [
                { label: "Home", href: "/" },
                { label: "Services", href: "/services" },
                { label: "Storm Damage", href: "/storm-damage" },
                { label: "Projects", href: "/projects" }
              ]
            },
            {
              items: [
                { label: "About Us", href: "/about" },
                { label: "Inspections", href: "/services" },
                { label: "Starlink Mounting", href: "/services" },
                { label: "Contact", href: "/contact" }
              ]
            },
            {
              items: [
                { label: "Privacy Policy", href: "/privacy" },
                { label: "Terms of Service", href: "/terms" },
                { label: "Warranty Info", href: "/warranty" },
                { label: "Insurance FAQ", href: "/faq" }
              ]
            },
            {
              items: [
                { label: "Call Us", href: "tel:1-800-ROOFING" },
                { label: "Text Us", href: "sms:1-800-ROOFING" },
                { label: "Email Support", href: "mailto:support@vikingconstruction.com" },
                { label: "24/7 Emergency", href: "tel:1-800-ROOFING" }
              ]
            }
          ]}
          logoText="Viking Construction"
          ariaLabel="Site footer with navigation and contact links"
        />
      </div>
    </ThemeProvider>
  );
}