import { useState, useRef, useEffect } from 'react'; import { NavView } from '../types'; import { Sparkles, ArrowRight } from 'lucide-react'; import { motion } from 'motion/react'; interface HeroSectionProps { onNavigate: (view: NavView) => void; onExploreServices: () => void; } export default function HeroSection({ onNavigate, onExploreServices }: HeroSectionProps) { const [videoReady, setVideoReady] = useState(false); const videoRef = useRef(null); useEffect(() => { if (videoRef.current) { videoRef.current.play().catch(() => { // Autoplay policy handled with muted }); } }, []); return (
{/* 1. FALLBACK BACKGROUND (Canvas grid lines & dark-mode ambient orbs) */}
{/* 2. BACKGROUND VIDEO (Slightly darker, richer tone with lessened white wash) */}
{/* Subtle cool foundation behind video so light canvas doesn't wash out deep pixels */}
); }