import { useEffect } from 'react' import { motion } from 'framer-motion' import { useTranslation } from 'react-i18next' import gsap from 'gsap' import { ScrollTrigger } from 'gsap/ScrollTrigger' import './ServicesSection.css' gsap.registerPlugin(ScrollTrigger) function ServicesSection() { useEffect(() => { const cards = document.querySelectorAll('.service-card') cards.forEach((card, index) => { gsap.fromTo(card, { opacity: 0, y: 60, }, { opacity: 1, y: 0, duration: 1, delay: index * 0.1, ease: 'power3.out', scrollTrigger: { trigger: card, start: 'top 85%', toggleActions: 'play none none reverse' } } ) }) const title = document.querySelector('.services-title') if (title) { gsap.fromTo(title, { opacity: 0, y: -50 }, { opacity: 1, y: 0, duration: 1, ease: 'power3.out', scrollTrigger: { trigger: title, start: 'top 85%' } } ) } const subtitle = document.querySelector('.services-subtitle') if (subtitle) { gsap.fromTo(subtitle, { opacity: 0, y: -30 }, { opacity: 1, y: 0, duration: 0.8, delay: 0.2, ease: 'power3.out', scrollTrigger: { trigger: subtitle, start: 'top 85%' } } ) } }, []) const { t } = useTranslation() return (

{t('services.title')}

{t('services.subtitle')}

{t('services.cards.preventive.title')}

{t('services.cards.preventive.description')}

{t('services.cards.tracking.title')}

{t('services.cards.tracking.description')}

{t('services.cards.reminders.title')}

{t('services.cards.reminders.description')}

{t('services.cards.index.title')}

{t('services.cards.index.description')}

Learn More
) } export default ServicesSection