'use client'; import { useEffect, useRef } from 'react'; import styles from './HowItWorks.module.css'; import { TrendingUp, BarChart3, Users, Heart } from 'lucide-react'; export default function HowItWorks() { const sectionRef = useRef(null); useEffect(() => { const observer = new IntersectionObserver( (entries) => { entries.forEach((entry) => { if (entry.isIntersecting) { entry.target.classList.add(styles.visible); } }); }, { threshold: 0.1 } ); const steps = sectionRef.current?.querySelectorAll(`.${styles.stepItem}`); steps?.forEach((step) => observer.observe(step)); return () => observer.disconnect(); }, []); const steps = [ { number: '01', title: 'Trends and Technologies', description: 'Leverage emerging tools to foster innovation and collaboration.', icon: , }, { number: '02', title: 'Data Analysis and Analytics', description: 'Deploy insights to improve decision making and drive traffic.', icon: , }, { number: '03', title: 'Your Target Audience', description: 'Understand Your Target Audience and their shopping behavior.', icon: , }, { number: '04', title: 'Social Media Engagement', description: 'Create valuable, shareable content for increased engagement.', icon: , }, ]; return (
Our Work Process

How We Drive Results

{steps.map((step, index) => (
{/* Number Circle Left */}
{step.number}
{/* Content Capsule */}

{step.title}

{step.description}

{step.icon}
{/* Manual connecting line logic for visual flow if needed (CSS pseudo-element ::before handles main vertical line) */}
))}
); }