"use client";

import Link from "next/link";
import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleCentered from "@/components/navbar/NavbarStyleCentered/NavbarStyleCentered";
import HeroCentered from "@/components/sections/hero/HeroCentered";
import FeatureBorderGlow from "@/components/sections/feature/featureBorderGlow/FeatureBorderGlow";
import MetricCardEleven from "@/components/sections/metrics/MetricCardEleven";
import TestimonialCardTen from "@/components/sections/testimonial/TestimonialCardTen";
import PricingCardTwo from "@/components/sections/pricing/PricingCardTwo";
import FaqSplitMedia from "@/components/sections/faq/FaqSplitMedia";
import FooterLogoEmphasis from "@/components/sections/footer/FooterLogoEmphasis";
import { Sprout, Scissors, Droplets, Leaf, Hammer, Truck, Phone, Sparkles, Zap, ChevronRight } from "lucide-react";

export default function HomePage() {
  const navItems = [
    { name: "Home", id: "home" },
    { name: "Services", id: "services" },
    { name: "Portfolio", id: "portfolio" },
    { name: "Pricing", id: "pricing" },
    { name: "Contact", id: "contact" },
  ];

  const navButton = { text: "Call Now", href: "/contact" };

  const footerColumns = [
    {
      items: [
        { label: "Home", href: "/" },
        { label: "Services", href: "/services" },
        { label: "Portfolio", href: "/portfolio" },
        { label: "Pricing", href: "/pricing" },
      ],
    },
    {
      items: [
        { label: "Contact Us", href: "/contact" },
        { label: "Free Quote", href: "/contact" },
        { label: "FAQ", href: "/" },
        { label: "Blog", href: "/" },
      ],
    },
    {
      items: [
        { label: "Privacy Policy", href: "/" },
        { label: "Terms of Service", href: "/" },
        { label: "Service Agreement", href: "/" },
        { label: "Warranty Info", href: "/" },
      ],
    },
    {
      items: [
        { label: "Phone: (555) 123-4567", href: "tel:+15551234567" },
        { label: "Email: info@greenscape.com", href: "mailto:info@greenscape.com" },
        { label: "Address: 123 Lawn St, City, State 12345", href: "/" },
        { label: "Hours: Mon-Sat 8am-6pm", href: "/" },
      ],
    },
  ];

  return (
    <ThemeProvider
      defaultButtonVariant="expand-hover"
      defaultTextAnimation="reveal-blur"
      borderRadius="rounded"
      contentWidth="mediumLarge"
      sizing="largeSmallSizeMediumTitles"
      background="fluid"
      cardStyle="glass-depth"
      primaryButtonStyle="primary-glow"
      secondaryButtonStyle="radial-glow"
      headingFontWeight="extrabold"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleCentered
          navItems={navItems}
          button={navButton}
          brandName="GreenScape Turf"
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroCentered
          background={{ variant: "downward-rays-static" }}
          avatars={[
            {
              src: "http://img.b2bpic.net/free-photo/smiling-man-sitting-cafe-table-gesturing_1262-1141.jpg",
              alt: "happy customer satisfied user portrait professional",
            },
            {
              src: "http://img.b2bpic.net/free-photo/young-businesswoman-portrait-office_1262-1506.jpg",
              alt: "customer testimonial smiling person profile picture headshot",
            },
            {
              src: "http://img.b2bpic.net/free-photo/young-businesswoman-portrait-office_1262-1506.jpg",
              alt: "person portrait friendly face professional avatar user image",
            },
          ]}
          avatarText="Trusted by 500+ homeowners and businesses"
          title="Premium Turfing & Lawn Services for Your Dream Outdoor Space"
          description="Transform your landscape with expert turfing, installation, and maintenance services. Over 15 years of proven results for residential and commercial properties."
          buttons={[
            { text: "Call for Free Quote", href: "/contact" },
            { text: "View Our Work", href: "/portfolio" },
          ]}
          buttonAnimation="slide-up"
        />
      </div>

      <div id="services" data-section="services">
        <FeatureBorderGlow
          features={[
            {
              icon: Sprout,
              title: "Turf Installation",
              description:
                "Premium quality turf sourced from trusted suppliers, expertly laid for immediate impact and fast establishment.",
            },
            {
              icon: Scissors,
              title: "Lawn Maintenance",
              description:
                "Regular mowing, edging, and care packages to keep your lawn looking pristine year-round.",
            },
            {
              icon: Droplets,
              title: "Irrigation Systems",
              description:
                "Smart watering solutions designed to maximize lawn health while minimizing water waste.",
            },
            {
              icon: Leaf,
              title: "Weed & Pest Control",
              description:
                "Environmentally-friendly treatments to protect your lawn from weeds, insects, and disease.",
            },
            {
              icon: Hammer,
              title: "Landscape Design",
              description:
                "Creative design services to reimagine your outdoor space with functionality and beauty.",
            },
            {
              icon: Truck,
              title: "Emergency Services",
              description:
                "Rapid response for storm damage, emergency repairs, and urgent lawn restoration needs.",
            },
          ]}
          animationType="slide-up"
          title="Professional Turfing Services"
          description="Comprehensive lawn and landscape solutions tailored to your needs, delivered with precision and expertise."
          tag="Our Services"
          textboxLayout="default"
          useInvertedBackground={false}
          buttons={[{ text: "Request Consultation", href: "/contact" }]}
        />
      </div>

      <div id="metrics" data-section="metrics">
        <MetricCardEleven
          metrics={[
            {
              id: "1",
              value: "15+",
              title: "Years of Experience",
              description: "Industry expertise and proven methodology",
              imageSrc:
                "http://img.b2bpic.net/free-photo/concentrated-gardeners-arranging-coniferous-plants-garden-man-woman-wearing-aprons-growing-small-thuja-greenhouse-selective-focus-commercial-gardening-activity-summer-concept_74855-12739.jpg?_wi=1",
              imageAlt: "experienced workers professional team lawn care team gardening experts",
            },
            {
              id: "2",
              value: "500+",
              title: "Completed Projects",
              description:
                "Satisfied customers across residential and commercial sectors",
              imageSrc:
                "http://img.b2bpic.net/free-photo/man-working-eco-friendly-wind-power-project-with-layout_23-2148847779.jpg?_wi=1",
              imageAlt: "completed projects before after lawn transformation results portfolio showcase",
            },
            {
              id: "3",
              value: "98%",
              title: "Customer Satisfaction",
              description: "Consistently exceeding expectations and delivering quality",
              imageSrc:
                "http://img.b2bpic.net/free-photo/happy-couple-celebrating-giving-highfive-each-other-while-being-meeting-with-real-estate-agent_637285-6877.jpg?_wi=1",
              imageAlt: "satisfied customer happy homeowner successful project customer satisfaction",
            },
          ]}
          animationType="slide-up"
          title="Why Choose Our Turfing Services"
          description="Proven track record of delivering exceptional results and customer satisfaction across the region."
          textboxLayout="default"
          useInvertedBackground={false}
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardTen
          testimonials={[
            {
              id: "1",
              title: "Exceeded All Expectations",
              quote:
                "The team at GreenScape completely transformed our backyard. The turf installation was flawless, and their attention to detail was exceptional. Highly recommend!",
              name: "Sarah Mitchell",
              role: "Homeowner",
              imageSrc:
                "http://img.b2bpic.net/free-photo/positive-confident-businesswoman-wearing-formal-suit-standing-with-arms-folded_74855-10328.jpg?_wi=1",
              imageAlt: "customer profile woman headshot professional portrait user avatar",
            },
            {
              id: "2",
              title: "Professional and Reliable",
              quote:
                "We've used their services for our corporate campus for 3 years. Consistent quality, responsive communication, and they always show up on time. Outstanding service.",
              name: "James Chen",
              role: "Facilities Manager, Tech Corp",
              imageSrc:
                "http://img.b2bpic.net/free-photo/close-up-portrait-young-handsome-successful-man_1163-5475.jpg?_wi=1",
              imageAlt: "man portrait business professional manager photo user headshot",
            },
            {
              id: "3",
              title: "Best Investment for Our Lawn",
              quote:
                "The free consultation was incredibly helpful. They understood exactly what we wanted and delivered it perfectly. Worth every penny and more.",
              name: "Maria Rodriguez",
              role: "Homeowner",
              imageSrc:
                "http://img.b2bpic.net/free-photo/portrait-smiley-business-woman_23-2148603029.jpg?_wi=1",
              imageAlt: "woman profile customer photo user portrait professional headshot",
            },
            {
              id: "4",
              title: "True Professionals",
              quote:
                "From initial quote to final completion, the experience was seamless. Their expertise in irrigation systems saved us money on our water bill immediately.",
              name: "David Thompson",
              role: "Property Developer",
              imageSrc:
                "http://img.b2bpic.net/free-photo/close-up-portrait-young-handsome-successful-man_1163-5475.jpg?_wi=2",
              imageAlt: "man headshot professional portrait user photo customer image",
            },
            {
              id: "5",
              title: "Transformed Our Space",
              quote:
                "We had given up on our lawn. Their team showed us it wasn't too late. Now our backyard is the envy of the neighborhood!",
              name: "Emma Watson",
              role: "Homeowner",
              imageSrc:
                "http://img.b2bpic.net/free-photo/portrait-smiley-business-woman_23-2148603029.jpg?_wi=2",
              imageAlt: "woman avatar customer portrait professional photo user image",
            },
            {
              id: "6",
              title: "Exceptional Follow-up Care",
              quote:
                "The maintenance package they recommended has kept our lawn looking pristine. Their proactive approach to lawn health is remarkable.",
              name: "Robert Kim",
              role: "Golf Club Manager",
              imageSrc:
                "http://img.b2bpic.net/free-photo/portrait-businessman-conference-room-thinking-about-future_482257-25787.jpg",
              imageAlt: "man photo professional headshot user portrait customer avatar",
            },
          ]}
          title="Customer Testimonials"
          description="Real feedback from satisfied homeowners and business owners who've transformed their outdoor spaces."
          textboxLayout="default"
          useInvertedBackground={true}
        />
      </div>

      <div id="pricing" data-section="pricing">
        <PricingCardTwo
          plans={[
            {
              id: "starter",
              badge: "Best for New Projects",
              badgeIcon: Leaf,
              price: "Call for Quote",
              subtitle: "Perfect for turf installation and initial setup",
              buttons: [
                { text: "Call Now: (555) 123-4567", href: "/contact" },
                { text: "Get Free Estimate", href: "/contact" },
              ],
              features: [
                "Turf site preparation",
                "Premium turf supply",
                "Expert installation",
                "First 30 days care included",
                "1-year establishment guarantee",
              ],
            },
            {
              id: "professional",
              badge: "Most Popular",
              badgeIcon: Sparkles,
              price: "Custom",
              subtitle: "Comprehensive maintenance and care program",
              buttons: [
                { text: "Call Now: (555) 123-4567", href: "/contact" },
                { text: "Schedule Consultation", href: "/contact" },
              ],
              features: [
                "Weekly lawn maintenance",
                "Weed control program",
                "Aeration & seeding",
                "Irrigation optimization",
                "24/7 emergency support",
                "Seasonal treatments",
              ],
            },
            {
              id: "enterprise",
              badge: "For Businesses",
              badgeIcon: Zap,
              price: "Custom",
              subtitle: "Full-service landscape management for commercial properties",
              buttons: [
                { text: "Call Now: (555) 123-4567", href: "/contact" },
                { text: "Corporate Inquiry", href: "/contact" },
              ],
              features: [
                "Dedicated account manager",
                "Customized maintenance schedule",
                "Design & renovation services",
                "Complete grounds management",
                "Quarterly performance reports",
                "Unlimited emergency response",
              ],
            },
          ]}
          animationType="slide-up"
          title="Service Packages & Pricing"
          description="Flexible, transparent pricing designed to fit any budget. All packages include consultation and competitive quotes."
          tag="Affordable Solutions"
          textboxLayout="default"
          useInvertedBackground={false}
        />
      </div>

      <div id="faq" data-section="faq">
        <FaqSplitMedia
          faqs={[
            {
              id: "1",
              title: "What type of turf do you use?",
              content:
                "We source premium, disease-resistant turf varieties specifically selected for your climate and soil conditions. Our suppliers are certified and we guarantee the quality of every installation. We can discuss options during your free consultation to find the best fit for your property.",
            },
            {
              id: "2",
              title: "How long does turf installation take?",
              content:
                "Most residential turf installations are completed in 1-3 days depending on property size. We handle all site preparation, leveling, and installation. Your new lawn will be ready for light use within 2 weeks and fully established within 4-6 weeks with proper care.",
            },
            {
              id: "3",
              title: "Do you offer maintenance packages?",
              content:
                "Yes! We offer flexible weekly, bi-weekly, and monthly maintenance packages tailored to your needs. Our packages include mowing, edging, weed control, fertilization, and seasonal treatments. We also provide emergency services for storm damage and urgent repairs.",
            },
            {
              id: "4",
              title: "Are your products environmentally friendly?",
              content:
                "We prioritize eco-friendly solutions whenever possible. Our weed and pest control treatments are designed to be safe for families and pets. We also specialize in water-efficient irrigation systems to reduce your environmental footprint and lower water bills.",
            },
            {
              id: "5",
              title: "What areas do you service?",
              content:
                "We service a 30-mile radius from the city center, covering residential and commercial properties throughout the region. We're expanding service areas regularly. Contact us to confirm we service your location.",
            },
            {
              id: "6",
              title: "Do you offer a guarantee?",
              content:
                "Absolutely! All our installations come with a 1-year establishment guarantee. If your turf doesn't establish properly under normal conditions, we'll replace it at no cost. We also stand behind our workmanship with a satisfaction guarantee.",
            },
          ]}
          imageSrc="http://img.b2bpic.net/free-photo/gardener-with-weedwacker-cutting-grass-garden_329181-20539.jpg?_wi=1"
          imageAlt="lawn care team gardening professionals outdoor work landscape maintenance"
          mediaPosition="right"
          title="Frequently Asked Questions"
          description="Find answers to common questions about our services, pricing, and lawn care processes."
          tag="Support"
          textboxLayout="default"
          useInvertedBackground={false}
          faqsAnimation="slide-up"
          mediaAnimation="slide-up"
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterLogoEmphasis columns={footerColumns} logoText="GreenScape Turf" />
      </div>
    </ThemeProvider>
  );
}