import { useState, useEffect, useRef } from 'react'; import dynamic from 'next/dynamic'; import Navbar from '../components/Navbar'; import Hero from '../components/Hero'; import Stats from '../components/Stats'; import Work from '../components/Work'; import Contact from '../components/Contact'; // Dynamic import for Three.js background to avoid SSR issues const Scene = dynamic(() => import('../components/Background'), { ssr: false }); export default function Home() { const [mounted, setMounted] = useState(false); useEffect(() => { setMounted(true); }, []); return (
{/* Noise Texture Overlay */}
{/* 3D Background */} {mounted && } {/* Navigation */} {/* Content Sections */}
); }