import { useState } from 'react'; import { motion, AnimatePresence } from 'framer-motion'; import legal from '../assets/legal.png'; import collective from '../assets/collective.png'; import sovereign from '../assets/sovereign.png'; const Foundations = () => { const [activeImage, setActiveImage] = useState(legal); const [hoveredIndex, setHoveredIndex] = useState(0); // Start with first item highlighted const foundations = [ { title: 'Legal Framework', line1: 'Operate as a sovereign legal entity within our digital free zone. Form businesses, manage compliance, and handle taxation, all within a transparent, compliant system designed for digital sovereignty.', image: legal, }, { title: 'Collective Direction', line1: 'Members guide the roadmap. Every voice counts, every vote matters.', line2: 'Together, we decide which tools replace corporate dependencies.', image: collective, }, { title: 'Sovereign Infrastructure', line1: 'A decentralized cloud, peer-to-peer networking protocols, and a legally recognized digital free zone. Your systems, your control, hosted on networks that cannot be shut down.', image: sovereign, }, ]; return (
{/* Header */}

The Foundations of the

Mycelium Society

{/* Two Column Container - Using Inline Styles for Absolute Control */}
{/* Left Column - Image */}
{/* Right Column - Text Content */}
{foundations.map((foundation, index) => ( { setActiveImage(foundation.image); setHoveredIndex(index); }} onMouseLeave={() => { setActiveImage(mushroom); setHoveredIndex(null); }} className="relative group cursor-pointer" initial={{ opacity: 0, y: 20 }} animate={{ opacity: 1, y: 0 }} transition={{ delay: index * 0.1 }} >

{foundation.title}

{foundation.line1}

{foundation.line2}

{index < foundations.length - 1 && (
)} ))}
); }; export default Foundations;