"use client"; import Headline from "@/components/ui/headline"; import Image from "next/image"; import { useEffect, useRef } from "react"; import ScrollTrigger from "gsap/ScrollTrigger"; import gsap from "gsap"; import { useSplitHeading } from "@/lib/useTextRevealHeading"; const Benefit = () => { const headingRef = useRef(null); const paraRef = useRef(null); const containerRef = useRef(null); useSplitHeading(headingRef, paraRef); const benefits = [ { icon: "/images/svg/mdi_water-check-outline (1).svg", title: "Save Water & Costs", description: "Optimize irrigation with real-time data and reduce unnecessary water usage.", }, { icon: "/images/svg/entypo_tree.svg", title: "Healthier Trees", description: "Detect stress early and ensure optimal growth and longevity.", }, { icon: "/images/svg/iconoir_reports.svg", title: "Transparent Reports", description: "Provide actionable insights for councils, cities, and citizens alike.", }, { icon: "/images/svg/lucide_monitor-cog.svg", title: "Fast Setup", description: "Deploy smart monitoring from pilot to full project within weeks.", }, ]; useEffect(() => { const cards = gsap.utils.toArray(".animation .card-inner"); cards.forEach((card) => { gsap.from(card, { x: -130, opacity: 0, duration: 1, ease: "expo.out", scrollTrigger: { trigger: ".wrapper", start: "top 80%", }, }); }); return () => { ScrollTrigger.getAll().forEach((st) => st.kill()); }; }, []); return (

Smarter Trees. Greener{" "} Cities. Sustainable{" "} Future.{" "}

Experience real-time insights, efficient water use, and healthier urban forests — start your pilot or schedule a demo today.

{benefits.map((benefit, index) => (
{benefit.title}

{benefit.title}

{benefit.description}

))}
); }; export default Benefit;