"use client";

import Link from "next/link";
import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import HeroOverlay from "@/components/sections/hero/HeroOverlay";
import MetricCardThree from "@/components/sections/metrics/MetricCardThree";
import FeatureCardThree from "@/components/sections/feature/featureCardThree/FeatureCardThree";
import SplitAbout from "@/components/sections/about/SplitAbout";
import ContactCenter from "@/components/sections/contact/ContactCenter";
import FooterMedia from "@/components/sections/footer/FooterMedia";
import NavbarLayoutFloatingOverlay from "@/components/navbar/NavbarLayoutFloatingOverlay/NavbarLayoutFloatingOverlay";
import { Award, CheckCircle, Clock, Zap, Heart, Hammer, Shield, TrendingUp, Phone } from "lucide-react";

export default function HomePage() {
  const navItems = [
    { name: "Home", id: "/" },
    { name: "Services", id: "/services" },
    { name: "About", id: "/about" },
    { name: "Why Us", id: "why-us" },
    { name: "Contact", id: "/contact" },
  ];

  const footerColumns = [
    {
      title: "Services",
      items: [
        { label: "Interior Renovations", href: "/services" },
        { label: "Exterior Construction", href: "/services" },
        { label: "Repairs & Maintenance", href: "/services" },
      ],
    },
    {
      title: "Company",
      items: [
        { label: "About Us", href: "/about" },
        { label: "Our Process", href: "/about" },
        { label: "Contact", href: "/contact" },
      ],
    },
    {
      title: "Get Help",
      items: [
        { label: "Call (917) 498-2545", href: "tel:(917) 498-2545" },
        { label: "Email Inquiry", href: "mailto:info@skyhighcontracting.com" },
        { label: "Free Estimate", href: "/contact" },
      ],
    },
  ];

  return (
    <ThemeProvider
      defaultButtonVariant="text-shift"
      defaultTextAnimation="entrance-slide"
      borderRadius="soft"
      contentWidth="medium"
      sizing="mediumLargeSizeMediumTitles"
      background="aurora"
      cardStyle="glass-depth"
      primaryButtonStyle="diagonal-gradient"
      secondaryButtonStyle="glass"
      headingFontWeight="extrabold"
    >
      <div id="nav" data-section="nav">
        <NavbarLayoutFloatingOverlay
          brandName="Sky High Contracting"
          navItems={navItems}
          button={{ text: "Call Now", href: "tel:(917) 498-2545" }}
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroOverlay
          title="Trusted Construction & Renovation Experts in New York"
          description="Licensed & Insured | 24/7 Availability | Quality Craftsmanship | 20+ Years of Excellence"
          tag="Professional Contracting"
          tagIcon={Shield}
          tagAnimation="slide-up"
          imageSrc="http://img.b2bpic.net/free-photo/low-angle-happy-old-man-showing-approval_23-2148269354.jpg"
          imageAlt="Professional construction site in New York"
          textPosition="bottom-left"
          showBlur={true}
          showDimOverlay={true}
          buttons={[
            { text: "Call Now (917) 498-2545", href: "tel:(917) 498-2545" },
            { text: "Get Free Estimate", href: "/contact" },
          ]}
          buttonAnimation="slide-up"
          ariaLabel="Hero section - Construction services"
          containerClassName="min-h-screen"
        />
      </div>

      <div id="trust-indicators" data-section="trust-indicators">
        <MetricCardThree
          title="Why Homeowners Trust Us"
          description="Proven expertise and commitment to excellence in every project"
          textboxLayout="default"
          useInvertedBackground={false}
          animationType="slide-up"
          metrics={[
            { id: "1", icon: Award, title: "20+ Years", value: "Experience" },
            { id: "2", icon: CheckCircle, title: "Licensed", value: "& Insured" },
            { id: "3", icon: Clock, title: "24/7", value: "Available" },
            { id: "4", icon: Zap, title: "Quality", value: "First" },
          ]}
        />
      </div>

      <div id="services" data-section="services">
        <FeatureCardThree
          title="Our Services"
          description="Comprehensive construction and renovation solutions for residential and commercial properties"
          tag="Complete Solutions"
          tagIcon={Hammer}
          textboxLayout="default"
          useInvertedBackground={true}
          animationType="slide-up"
          gridVariant="three-columns-all-equal-width"
          features={[
            {
              id: "01",
              title: "Interior Renovations",
              description: "Kitchen, bathroom, and living space transformations with attention to detail",
              imageSrc: "http://img.b2bpic.net/free-photo/workers-talking-phone-doing-paperwork_23-2147668775.jpg?_wi=1",
              imageAlt: "Modern interior renovation",
            },
            {
              id: "02",
              title: "Exterior Construction",
              description: "Roofing, siding, and structural work built to last",
              imageSrc: "http://img.b2bpic.net/free-photo/workers-talking-phone-doing-paperwork_23-2147668775.jpg?_wi=2",
              imageAlt: "Exterior construction work",
            },
            {
              id: "03",
              title: "Repairs & Maintenance",
              description: "Quick response emergency repairs and preventative maintenance services",
              imageSrc: "http://img.b2bpic.net/free-photo/workers-talking-phone-doing-paperwork_23-2147668775.jpg?_wi=3",
              imageAlt: "Professional repair services",
            },
          ]}
        />
      </div>

      <div id="about" data-section="about">
        <SplitAbout
          title="About Sky High Contracting"
          description="With over 20 years of experience, Sky High Contracting is committed to delivering dependable service and professional results. We handle everything from small repairs to full-scale renovations with precision, care, and unwavering commitment to customer satisfaction."
          tag="Our Story"
          tagAnimation="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
          mediaAnimation="slide-up"
          imageSrc="http://img.b2bpic.net/free-photo/medium-shot-people-working-construction_23-2150772878.jpg?_wi=1"
          imageAlt="Professional construction team"
          imagePosition="right"
          buttons={[{ text: "Learn Our Process", href: "/about" }]}
          bulletPoints={[
            {
              title: "20+ Years Experience",
              description: "Proven track record serving New York's residential and commercial properties",
              icon: Award,
            },
            {
              title: "Licensed & Insured",
              description: "Full credentials and protection for every project",
              icon: CheckCircle,
            },
            {
              title: "On-Time & On-Budget",
              description: "Transparent pricing with no hidden costs or surprises",
              icon: TrendingUp,
            },
          ]}
        />
      </div>

      <div id="why-us" data-section="why-us">
        <FeatureCardThree
          title="Why Choose Sky High Contracting"
          description="We're not just a contractor—we're your partner in building excellence"
          tag="Our Promise"
          tagIcon={Heart}
          textboxLayout="default"
          useInvertedBackground={false}
          animationType="slide-up"
          gridVariant="two-columns-alternating-heights"
          features={[
            {
              id: "01",
              title: "Clear Communication",
              description: "Regular updates and responsive communication throughout your project",
              imageSrc: "http://img.b2bpic.net/free-photo/building-construction-workers-site_23-2149124306.jpg?_wi=1",
              imageAlt: "Communication and transparency",
            },
            {
              id: "02",
              title: "Skilled Team",
              description: "Experienced professionals trained in the latest techniques and best practices",
              imageSrc: "http://img.b2bpic.net/free-photo/building-construction-workers-site_23-2149124306.jpg?_wi=2",
              imageAlt: "Skilled construction team",
            },
            {
              id: "03",
              title: "Attention to Detail",
              description: "Meticulous craftsmanship on every aspect of your project",
              imageSrc: "http://img.b2bpic.net/free-photo/building-construction-workers-site_23-2149124306.jpg?_wi=3",
              imageAlt: "Quality workmanship",
            },
            {
              id: "04",
              title: "Customer Satisfaction",
              description: "Your satisfaction is our ultimate measure of success",
              imageSrc: "http://img.b2bpic.net/free-photo/building-construction-workers-site_23-2149124306.jpg?_wi=4",
              imageAlt: "Happy customers",
            },
          ]}
        />
      </div>

      <div id="cta" data-section="cta">
        <ContactCenter
          tag="Get Started Today"
          title="Ready for Your Next Project?"
          description="Contact Sky High Contracting for a free estimate. Available 24/7 to serve your construction and renovation needs."
          tagIcon={Zap}
          tagAnimation="slide-up"
          background={{ variant: "radial-gradient" }}
          useInvertedBackground={true}
          inputPlaceholder="Enter your email address"
          buttonText="Get Free Estimate"
          termsText="We respect your privacy. We'll only contact you about your project estimate."
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterMedia
          imageSrc="http://img.b2bpic.net/free-photo/full-shot-people-working-out-together_23-2150405456.jpg?_wi=1"
          imageAlt="Construction team at work"
          logoText="Sky High Contracting"
          copyrightText="© 2025 Sky High Contracting. All rights reserved. Licensed & Insured."
          columns={footerColumns}
        />
      </div>
    </ThemeProvider>
  );
}