"use client"; import { useEffect, useState, useRef } from "react"; export default function CTASection() { const [mounted, setMounted] = useState(false); const ctaRef = useRef(null); useEffect(() => { setMounted(true); // Initialize Jarallax manually after mount const initJarallax = () => { if (ctaRef.current && typeof window !== 'undefined' && (window as any).jarallax) { (window as any).jarallax(ctaRef.current, { speed: 0.6 }); } }; // Delay to ensure jarallax library is loaded setTimeout(initJarallax, 200); return () => { // Cleanup jarallax on unmount if (ctaRef.current && typeof window !== 'undefined' && (window as any).jarallax) { (window as any).jarallax(ctaRef.current, 'destroy'); } }; }, []); if (!mounted) { // Server-side render: simple div without jarallax return (

200+

Satisfied Customers

100+

Global Clients

150+

Team Members

15+

Business Experience

300+

Projects Complete

); } // Client-side render: with jarallax return (

200+

Satisfied Customers

100+

Global Clients

150+

Team Members

15+

Business Experience

300+

Projects Complete

); }