'use client'; import React, { useRef } from 'react'; import { useScroll, useTransform, m } from 'framer-motion'; import { useLocale } from 'next-intl'; export function DeepDrillAnimation() { const containerRef = useRef(null); const locale = useLocale(); const { scrollYProgress } = useScroll({ target: containerRef, offset: ["start center", "end center"] }); const drillDepth = useTransform(scrollYProgress, [0, 1], ["0%", "100%"]); return (

{locale === 'en' ? 'Precision in Depth' : 'Präzision in der Tiefe'}

{locale === 'en' ? 'Horizontal Directional Drilling (HDD) allows us to cross obstacles and rivers with extreme care.' : 'Horizontalspülbohrverfahren (HDD) erlaubt uns, Hindernisse und Flüsse extrem schonend zu unterqueren.'}

{/* The Drill Path */}
{/* The Drill Head */}
{/* The Reveal Data */}
102.771m
{locale === 'en' ? 'Drilled distance since 2023' : 'Gebohrte Strecke seit 2023'}
); }