{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "bento-16",
  "dependencies": [
    "lucide-react",
    "motion",
    "react-icons"
  ],
  "registryDependencies": [
    "card"
  ],
  "files": [
    {
      "path": "src/components/watermelon-ui/bento-16.tsx",
      "content": "\"use client\";\nimport { motion, type Variants } from \"motion/react\";\nimport { useMemo, useState } from \"react\";\nimport { FaShield } from \"react-icons/fa6\";\nimport {\n  Card,\n  CardContent,\n  CardDescription,\n  CardFooter,\n  CardHeader,\n  CardTitle,\n} from \"@/components/ui/card\";\n\n// const container:Variants = {\n//   hidden: { opacity: 0 },\n//   show: {\n//     opacity: 1,\n//     transition: { staggerChildren: 0.08 },\n//   },\n// };\n\nconst item:Variants = {\n  hidden: { opacity: 0, y: 20 },\n  show: { opacity: 1, y: 0 },\n};\n\nfunction PerformanceCard() {\n  return (\n    <motion.div\n      initial=\"initial\"\n      whileHover=\"hover\"\n      className=\"col-span-12 lg:col-span-3\"\n    >\n      <Card className=\"bg-white rounded-2xl p-6 flex flex-col justify-end border border-neutral-200 min-h-[360px] md:min-h-[380px] lg:min-h-[420px] h-full gap-6 ring-0 shadow-none\">\n        <CardContent className=\"h-[120px] md:h-[140px] lg:h-[200px] flex items-center justify-center relative p-0 mb-4\">\n          <svg viewBox=\"0 0 200 120\" className=\"w-full h-full\">\n            <rect x=\"40\" y=\"70\" width=\"20\" height=\"150\" fill=\"#9DB4E0\" />\n            <rect x=\"70\" y=\"55\" width=\"20\" height=\"145\" fill=\"#9DB4E0\" />\n            <rect x=\"100\" y=\"40\" width=\"20\" height=\"160\" fill=\"#9DB4E0\" />\n            <rect x=\"130\" y=\"25\" width=\"20\" height=\"175\" fill=\"#9DB4E0\" />\n          </svg>\n\n          <ArrowPathIcon className=\"scale-140 absolute -translate-y-9 text-[#9DB4E0]\" />\n        </CardContent>\n\n        <CardFooter className=\"text-center pb-2 w-full flex-col items-center gap-3 bg-transparent border-none\">\n          <CardTitle className=\"text-the xl font-semibold text-neutral-800\">\n            Build for performance\n          </CardTitle>\n          <CardDescription className=\"text-sm text-neutral-500 mt-1\">\n            Grew 30,000+ strong global design community!!\n          </CardDescription>\n        </CardFooter>\n      </Card>\n    </motion.div>\n  );\n}\n\nconst dots = [\n  { t: \"13%\", l: \"40%\" },\n  { t: \"38%\", l: \"30%\" },\n  { t: \"32%\", l: \"60%\" },\n  { t: \"70%\", l: \"50%\" },\n  { t: \"80%\", l: \"73%\" },\n  { t: \"85%\", l: \"35%\" },\n];\n\nconst createDelays = (seed: number) =>\n  dots.map((_, index) => {\n    const value = Math.abs(Math.sin((index + 1) * seed) * 10000);\n    return (value - Math.floor(value)) * 0.8;\n  });\n\nfunction EarthDots() {\n  const [hovered, setHovered] = useState(false);\n\n  const enterDelays = useMemo(() => createDelays(12.9898), []);\n  const exitDelays = useMemo(() => createDelays(78.233), []);\n\n  return (\n    <motion.div\n      onHoverStart={() => setHovered(true)}\n      onHoverEnd={() => setHovered(false)}\n      className=\"col-span-12 lg:col-span-6\"\n    >\n      <Card className=\"bg-[#f3f4f6] rounded-md p-6 flex flex-col items-center border gap-12 border-[#e5e7eb] h-[420px] w-full ring-0 shadow-none\">\n        <CardContent className=\"relative w-full h-[210px] p-0\">\n          <div className=\"absolute inset-0 flex items-center justify-center\">\n            <img\n              src=\"https://assets.watermelon.sh/Earth.svg\"\n              className=\"absolute inset-0 w-[350px] mx-auto h-full object-contain\"\n            />\n\n            {dots.map((pos, i) => (\n              <motion.div\n                key={i}\n                animate={\n                  hovered ? { scale: 1, opacity: 1 } : { scale: 0, opacity: 0 }\n                }\n                transition={{\n                  duration: 0.3,\n                  delay: hovered ? enterDelays[i] : exitDelays[i],\n                }}\n                className=\"absolute w-3 h-3 bg-slate-800 rounded-full shadow-[0_0_10px_rgba(0,0,0,0.25)]\"\n                style={{ top: pos.t, left: pos.l }}\n              />\n            ))}\n          </div>\n        </CardContent>\n\n        <CardFooter className=\"text-center flex flex-col gap-2 p-0 items-center bg-transparent border-none\">\n          <CardTitle className=\"text-3xl font-semibold text-neutral-800\">\n            Effortless funding\n          </CardTitle>\n          <CardDescription className=\"text-md text-neutral-500 font-normal max-w-[280px]\">\n            Grew 30,000+ strong global design community!!\n          </CardDescription>\n        </CardFooter>\n      </Card>\n    </motion.div>\n  );\n}\n\nconst card:Variants = {\n  hidden: { y: 80, opacity: 0 },\n  show: {\n    y: 0,\n    opacity: 1,\n    transition: {\n      duration: 0.6,\n      ease: \"easeOut\",\n      when: \"beforeChildren\",\n      staggerChildren: 0.12,\n    },\n  },\n};\n\nconst skeletonItem:Variants = {\n  hidden: { opacity: 0, y: 12 },\n  show: { opacity: 1, y: 0 },\n};\n\nfunction ProjectQualificationCard() {\n  return (\n    <motion.div\n      initial=\"hidden\"\n      animate=\"show\"\n      className=\"col-span-12 lg:col-span-3\"\n    >\n      <Card className=\"h-[420px] group rounded-xl p-6 flex flex-col overflow-hidden border border-white/20 bg-gradient-to-b from-[#9fb2d9] to-[#8ea4cf] gap-0 ring-0 shadow-none\">\n        <CardHeader className=\"space-y-2 p-0\">\n          <CardTitle className=\"text-2xl font-medium text-neutral-900 leading-tight\">\n            Project qualification and verification\n          </CardTitle>\n\n          <CardDescription className=\"text-md font-medium text-black/70 leading-tight\">\n            Grew 30,000+ strong global design community!!\n          </CardDescription>\n        </CardHeader>\n\n        <CardContent className=\"flex items-end justify-center mt-6 p-0 group-hover:scale-110 transition-transform duration-300\">\n          <motion.div\n            className=\"relative w-[200px] z-0 h-[260px] rounded-lg bg-white/60  p-4 flex flex-col gap-3 [mask-image:linear-gradient(to_bottom,#000000,transparent)]\"\n            variants={card}\n          >\n            {[...Array(7)].map((_, i) => (\n              <motion.div\n                key={i}\n                variants={skeletonItem}\n                className=\"flex items-center gap-3\"\n              >\n                <div className=\"size-6 rounded-full bg-white/40\" />\n                <div className=\"h-4 flex-1 rounded-full bg-white/40\" />\n              </motion.div>\n            ))}\n          </motion.div>\n        </CardContent>\n      </Card>\n    </motion.div>\n  );\n}\n\nfunction GraphBar({ className, delay = 0, width }:{className:string, delay?:number, width:string|number}) {\n  return (\n    <motion.div\n      initial={{ width: 0 }}\n      animate={{ width }}\n      transition={{ duration: 0.45, delay, ease: \"easeOut\" }}\n      className={className}\n    />\n  );\n}\n\nfunction Card5() {\n  const [hovered, setHovered] = useState(false);\n\n  return (\n    <motion.div\n      variants={item}\n      onHoverStart={() => setHovered(true)}\n      onHoverEnd={() => setHovered(false)}\n      className=\"col-span-12 lg:col-span-6\"\n    >\n      <Card className=\"bg-neutral-100 rounded-xl p-6 flex flex-col gap-10 min-h-[420px] ring-0 shadow-none border-0\">\n        <CardHeader className=\"p-0\">\n          <CardTitle className=\"text-lg text-neutral-800 font-normal\">\n            Tax liability optimize\n          </CardTitle>\n        </CardHeader>\n\n        <CardContent className=\"p-0 flex flex-col gap-10 w-full overflow-hidden\">\n          <div className=\"flex items-center gap-6 w-full flex-row-reverse\">\n            <div className=\"text-md flex flex-1 font-semibold text-neutral-700 leading-tight whitespace-nowrap min-w-[80px]\">\n              <div>\n                <div>Tax credit</div>\n                <div>$100000</div>\n              </div>\n            </div>\n            <div className=\"flex-[3] flex justify-end\">\n              <GraphBar\n                className=\"h-16 bg-slate-700 rounded-lg origin-right\"\n                delay={0}\n                width={hovered ? \"70%\" : \"100%\"}\n              />\n            </div>\n          </div>\n\n          <div className=\"flex items-center gap-6 w-full flex-row-reverse\">\n            <div className=\"text-md flex flex-1 font-semibold text-neutral-700 leading-tight whitespace-nowrap min-w-[80px]\">\n              <div>\n                <div>Tax saving</div>\n                <div>$1200000</div>\n              </div>\n            </div>\n            <div className=\"flex-[3] flex justify-end\">\n              <GraphBar\n                className=\"h-16 bg-blue-300 rounded-xl origin-right\"\n                delay={0.2}\n                width={hovered ? \"80%\" : \"30%\"}\n              />\n            </div>\n          </div>\n\n          <div className=\"flex items-center gap-6 w-full flex-row-reverse\">\n            <div className=\"text-md flex flex-1 font-semibold text-neutral-700 leading-tight whitespace-nowrap min-w-[80px]\">\n              <div>\n                <div>Paid</div>\n                <div>$500000</div>\n              </div>\n            </div>\n            <div className=\"flex-[3] flex justify-end\">\n              <GraphBar\n                className=\"h-16 bg-blue-200 rounded-xl origin-right\"\n                delay={0.4}\n                width={hovered ? \"50%\" : \"70%\"}\n              />\n            </div>\n          </div>\n        </CardContent>\n      </Card>\n    </motion.div>\n  );\n}\n\nfunction OngoingSupportCard() {\n  const [hovered, setHovered] = useState(false);\n\n  return (\n    <motion.div\n        variants={item}\n        onHoverStart={() => setHovered(true)}\n        onHoverEnd={() => setHovered(false)}\n        className=\"col-span-12 md:col-span-6 lg:col-span-3\"\n      >\n        <Card className=\"bg-[#2f3d59] group text-white rounded-2xl p-6 flex flex-col justify-between h-[420px] gap-0 ring-0 shadow-none border-0\">\n          <CardHeader className=\"space-y-2 p-0\">\n            <CardTitle className=\"text-lg font-semibold text-white\">Ongoing support</CardTitle>\n            <CardDescription className=\"text-sm text-white/70 leading-relaxed\">\n              Grew 30,000+ strong global design community!!\n            </CardDescription>\n          </CardHeader>\n\n          <CardContent className=\"flex items-center justify-center w-full p-0 py-6 group-hover:scale-110 transition-transform duration-300\">\n            <div className=\"relative w-full max-w-[240px] aspect-square flex items-center justify-center\">\n              <div className=\"absolute w-[80%] h-[80%] rounded-full bg-white/5\" />\n              <div className=\"absolute w-[65%] h-[65%] rounded-full bg-white/10\" />\n              <div className=\"absolute w-[50%] h-[50%] rounded-full bg-white/15\" />\n\n              <div\n                className=\"absolute w-full h-full rounded-full pointer-events-none z-0\"\n                style={{\n                  animation: `spin ${hovered ? '2s' : '8s'} linear infinite`,\n                  background:\n                    \"conic-gradient(from 0deg, rgba(255,255,255,0.18) 0deg 90deg, transparent 60deg 360deg)\",\n                }}\n              />\n              <div className=\"absolute w-[60px] h-[60px] md:w-[80px] md:h-[80px] rounded-full bg-[#2f3e5a] border border-white/20 z-10 flex justify-center items-center\">\n                 <img\n                  src=\"https://assets.watermelon.sh/Headset.png\"\n                  alt=\"Support Agent\"\n                  className=\"w-6 h-6 md:w-10 md:h-10 opacity-90 absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2\"\n                />\n              </div>\n            </div>\n          </CardContent>\n        </Card>\n      </motion.div>\n  );\n}\n\nexport default function Bento16() {\n  return (\n    <motion.div className=\"grid grid-cols-12 gap-4 p-6 md:p-10 lg:p-20 min-h-screen font-sans\">\n      <EarthDots />\n      <ProjectQualificationCard />\n      <OngoingSupportCard />\n      <PerformanceCard />\n\n      <motion.div\n        variants={item}\n        className=\"col-span-12 md:col-span-6 lg:col-span-3\"\n      >\n        <Card className=\"bg-[#2f3e5a] text-white rounded-xl p-6 flex flex-col justify-between min-h-[420px] gap-0 ring-0 shadow-none border-0\">\n          <CardHeader className=\"p-0\">\n            <CardTitle className=\"text-2xl font-semibold mb-2 text-white\">Secure transactions</CardTitle>\n            <CardDescription className=\"text-md text-white/70\">\n              Grew 30,000+ strong global design community!!\n            </CardDescription>\n          </CardHeader>\n\n          <CardContent className=\"flex items-center justify-center w-full p-0 py-6\">\n            <div className=\"relative w-full max-w-[200px] aspect-square flex items-center justify-center\">\n              <motion.div\n                animate={{ scale: [1, 1.08, 1] }}\n                transition={{\n                  duration: 2.5,\n                  repeat: Infinity,\n                  ease: \"easeInOut\",\n                }}\n                className=\"absolute w-full h-full rounded-full bg-white/5\"\n              />\n              <motion.div\n                animate={{ scale: [1, 1.12, 1] }}\n                transition={{\n                  duration: 2.5,\n                  repeat: Infinity,\n                  ease: \"easeInOut\",\n                }}\n                className=\"absolute w-[80%] h-[80%] rounded-full bg-white/10\"\n              />\n              <motion.div\n                animate={{ scale: [1, 1.16, 1] }}\n                transition={{\n                  duration: 2.5,\n                  repeat: Infinity,\n                  ease: \"easeInOut\",\n                }}\n                className=\"absolute w-[60%] h-[60%] rounded-full bg-white/15\"\n              />\n              <motion.div\n                animate={{ scale: [1, 1.2, 1] }}\n                transition={{\n                  duration: 2.5,\n                  repeat: Infinity,\n                  ease: \"easeInOut\",\n                }}\n                className=\"absolute w-[45%] h-[45%] rounded-full bg-[#2f3e5a] border border-black/10 flex items-center justify-center\"\n              >\n                <FaShield className=\"size-8 md:size-12 text-white/90 fill-white/90\" />\n              </motion.div>\n            </div>\n          </CardContent>\n        </Card>\n      </motion.div>\n\n      <Card5 />\n    </motion.div>\n  );\n}\n\nfunction ArrowPathIcon({ className, ...props }: { className?: string; [key: string]: unknown }) {\n  return (\n    <svg\n      width=\"112\"\n      height=\"95\"\n      viewBox=\"0 0 112 95\"\n      fill=\"none\"\n      xmlns=\"http://www.w3.org/2000/svg\"\n      className={className}\n      {...props}\n    >\n      <motion.path\n        d=\"M10 85 L10 75 C10 68 16 63 23 63 C30 63 36 57 36 50 C36 43 43 38 50 38 C57 38 64 32 64 26 C64 20 70 15 78 15 L90 15\"\n        fill=\"none\"\n        stroke=\"currentColor\"\n        strokeWidth=\"3\"\n        strokeLinecap=\"round\"\n        strokeLinejoin=\"round\"\n        initial={{ pathLength: 0, opacity: 0 }}\n        variants={{ hover: { pathLength: 1, opacity: 1 } }}\n        transition={{ duration: 0.8, ease: \"easeInOut\" }}\n      />\n      <motion.path\n        d=\"M82 7 L90 15 L82 23\"\n        fill=\"none\"\n        stroke=\"currentColor\"\n        strokeWidth=\"3\"\n        strokeLinecap=\"round\"\n        strokeLinejoin=\"round\"\n        initial={{ pathLength: 0, opacity: 0 }}\n        variants={{ hover: { pathLength: 1, opacity: 1 } }}\n        transition={{ duration: 0.2, delay: 0.8 }}\n      />\n    </svg>\n  );\n}\n",
      "type": "registry:ui",
      "target": "components/ui/bento-16.tsx"
    }
  ],
  "type": "registry:ui"
}
