"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarLayoutFloatingOverlay from '@/components/navbar/NavbarLayoutFloatingOverlay/NavbarLayoutFloatingOverlay';
import HeroSplitDualMedia from '@/components/sections/hero/HeroSplitDualMedia';
import AboutMetric from '@/components/sections/about/AboutMetric';
import FeatureCardSix from '@/components/sections/feature/FeatureCardSix';
import ContactText from '@/components/sections/contact/ContactText';
import TestimonialCardSixteen from '@/components/sections/testimonial/TestimonialCardSixteen';
import FooterBaseReveal from '@/components/sections/footer/FooterBaseReveal';
import { Leaf, Star, Clock, DollarSign, Shield, Zap, Users, CheckCircle } from 'lucide-react';
import Link from 'next/link';

export default function HomePage() {
  return (
    <ThemeProvider
      defaultButtonVariant="hover-magnetic"
      defaultTextAnimation="background-highlight"
      borderRadius="pill"
      contentWidth="mediumSmall"
      sizing="mediumSizeLargeTitles"
      background="fluid"
      cardStyle="solid"
      primaryButtonStyle="diagonal-gradient"
      secondaryButtonStyle="solid"
      headingFontWeight="semibold"
    >
      <div id="nav" data-section="nav">
        <NavbarLayoutFloatingOverlay
          brandName="Sky Tree Services"
          navItems={[
            { name: "Home", id: "/" },
            { name: "Services", id: "/services" },
            { name: "Why Us", id: "/about" },
            { name: "Reviews", id: "/reviews" },
            { name: "Contact", id: "/contact" }
          ]}
          button={{
            text: "📞 Call Now",
            href: "tel:+16155689651"
          }}
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroSplitDualMedia
          title="24/7 Tree Removal & Emergency Services in Nashville"
          description="Fast, Safe, Professional Tree Service — Fair Pricing & 4.9-Star Rated. Your trusted local tree experts for storm damage, tree removal, trimming, and hazardous tree removal."
          tag="Professional Tree Service"
          tagIcon={Leaf}
          background={{ variant: "plain" }}
          buttons={[
            { text: "📞 Call Now: (615) 568-9651", href: "tel:+16155689651" },
            { text: "Get a Free Estimate", href: "/contact" }
          ]}
          mediaItems={[
            {
              imageSrc: "http://img.b2bpic.net/free-photo/outdoor-shot-logger-having-rest-open-air-after-cutting-trees_176532-14596.jpg",
              imageAlt: "Professional tree service crew at work"
            },
            {
              imageSrc: "http://img.b2bpic.net/free-photo/climber-looking-his-carabiners_23-2147665142.jpg",
              imageAlt: "Safe tree removal process"
            }
          ]}
          rating={5}
          ratingText="Rated 4.9 Stars by 70 Nashville Customers"
        />
      </div>

      <div id="trust-indicators" data-section="trust-indicators">
        <AboutMetric
          title="Why Nashville Trusts Sky Tree Services"
          metrics={[
            { icon: Star, label: "4.9 Star Rating", value: "70 Reviews" },
            { icon: Clock, label: "Open 24 Hours", value: "365 Days/Year" },
            { icon: DollarSign, label: "Free Estimates", value: "Fair Pricing" },
            { icon: Shield, label: "Licensed & Insured", value: "Professional Crew" }
          ]}
          useInvertedBackground={false}
        />
      </div>

      <div id="services" data-section="services">
        <FeatureCardSix
          title="Our Tree Services"
          description="Professional solutions for all your tree care needs in Nashville. From emergency removal to preventive maintenance, we handle it all with expertise and care."
          tag="Services"
          textboxLayout="default"
          useInvertedBackground={false}
          features={[
            {
              id: 1,
              title: "Tree Removal",
              description: "Safe, efficient removal of hazardous or unwanted trees. We handle trees of all sizes with precision and care.",
              imageSrc: "http://img.b2bpic.net/free-photo/carpenter-working-sawmill-wood-manufacture_1303-22887.jpg",
              imageAlt: "tree removal large tree equipment professional"
            },
            {
              id: 2,
              title: "Emergency Tree Services",
              description: "24/7 response to storm damage and fallen trees. Rapid assessment and immediate action to secure your property.",
              imageSrc: "http://img.b2bpic.net/free-photo/two-women-walking-forest-forest-nature-outdoor-recreation_169016-68233.jpg",
              imageAlt: "emergency tree storm damage fallen tree rapid response"
            },
            {
              id: 3,
              title: "Tree Trimming & Pruning",
              description: "Professional trimming to improve tree health and appearance. We preserve healthy trees whenever possible.",
              imageSrc: "http://img.b2bpic.net/free-photo/senior-man-working-field_329181-12481.jpg",
              imageAlt: "tree trimming pruning maintenance healthy tree"
            },
            {
              id: 4,
              title: "Storm Cleanup",
              description: "Comprehensive cleanup after severe weather. We clear debris and restore your property safely.",
              imageSrc: "http://img.b2bpic.net/free-photo/two-women-walking-forest-forest-nature-outdoor-recreation_169016-68233.jpg",
              imageAlt: "storm damage cleanup debris removal tree cleanup recovery"
            },
            {
              id: 5,
              title: "Hazardous Tree Removal",
              description: "Expert removal of dead, diseased, or dangerous trees that pose risks to your home.",
              imageSrc: "http://img.b2bpic.net/free-photo/camper-life-concept-with-branches-shelter_23-2148456392.jpg",
              imageAlt: "hazardous tree dead tree dangerous removal"
            },
            {
              id: 6,
              title: "Lot Clearing",
              description: "Complete land clearing services for development, renovation, or property maintenance projects.",
              imageSrc: "http://img.b2bpic.net/free-photo/landscape-roots-dry-creek_181624-37021.jpg",
              imageAlt: "lot clearing land clearing property clearing development"
            }
          ]}
        />
      </div>

      <div id="why-us" data-section="why-us">
        <AboutMetric
          title="Why Choose Sky Tree Services"
          metrics={[
            { icon: Zap, label: "Rapid Response", value: "Quick Arrival" },
            { icon: DollarSign, label: "Fair Pricing", value: "Transparent Quotes" },
            { icon: Users, label: "Professional Crew", value: "Skilled & Trained" },
            { icon: CheckCircle, label: "Safety First", value: "Fully Equipped" }
          ]}
          useInvertedBackground={false}
        />
      </div>

      <div id="emergency-banner" data-section="emergency-banner">
        <ContactText
          text="Storm Damage? Fallen Tree? We're Available 24/7 for Emergency Tree Services in Nashville"
          animationType="entrance-slide"
          buttons={[
            { text: "Call Now: (615) 568-9651", href: "tel:+16155689651" }
          ]}
          background={{ variant: "plain" }}
          useInvertedBackground={false}
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterBaseReveal
          columns={[
            {
              title: "Services",
              items: [
                { label: "Tree Removal", href: "/services" },
                { label: "Emergency Services", href: "/services" },
                { label: "Tree Trimming", href: "/services" },
                { label: "Storm Cleanup", href: "/services" }
              ]
            },
            {
              title: "Company",
              items: [
                { label: "About Us", href: "/about" },
                { label: "Reviews", href: "/reviews" },
                { label: "Contact", href: "/contact" },
                { label: "Service Areas", href: "/about" }
              ]
            },
            {
              title: "Contact",
              items: [
                { label: "📞 (615) 568-9651", href: "tel:+16155689651" },
                { label: "Open 24 Hours", href: "/about" },
                { label: "3037 Runabout Dr, Nashville, TN 37217", href: "/contact" },
                { label: "Emergency Service Available", href: "/about" }
              ]
            }
          ]}
          copyrightText="© 2025 Sky Tree Services LLC. All rights reserved. Licensed & Insured."
        />
      </div>
    </ThemeProvider>
  );
}