{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "hero-1",
  "dependencies": [
    "lucide-react",
    "motion"
  ],
  "registryDependencies": [
    "button",
    "utils"
  ],
  "files": [
    {
      "path": "src/components/watermelon-ui/hero-1.tsx",
      "content": "\"use client\";\n\nimport React, { useState } from \"react\";\nimport { motion, AnimatePresence } from \"motion/react\";\nimport { ArrowUpRight, ArrowDown } from \"lucide-react\";\nimport { cn } from \"@/lib/utils\";\n\n\nexport interface NavLink {\n    label: string;\n    href: string;\n    active?: boolean;\n}\n\nexport interface SocialLink {\n    label: string;\n    href: string;\n}\n\nexport interface Hero1Props {\n    /** Brand / logo name shown top-left */\n    brand?: React.ReactNode;\n    /** Navigation links rendered in the center of the navbar */\n    navLinks?: NavLink[];\n    /** Main headline — can be a string or JSX (e.g. with <br />) */\n    headline?: React.ReactNode;\n    /** CTA button label */\n    ctaLabel?: string;\n    /** CTA button href */\n    ctaHref?: string;\n    /** Small description text at the bottom-left */\n    description?: string;\n    /** Social links rendered at the bottom-right */\n    socialLinks?: SocialLink[];\n    /** Sign-in / auth button label */\n    signInLabel?: string;\n    /** Sign-in href */\n    signInHref?: string;\n    /** Callback for when a nav link is clicked */\n    onNavLinkClick?: (link: NavLink) => void;\n    /** Additional wrapper CSS classes */\n    className?: string;\n}\n\nconst DEFAULT_NAV: NavLink[] = [\n    { label: \"Products\", href: \"#\", active: true },\n    { label: \"About\", href: \"#\" },\n    { label: \"Features\", href: \"#\" },\n    { label: \"Support\", href: \"#\" },\n];\n\nconst DEFAULT_SOCIAL: SocialLink[] = [\n    { label: \"Linkedin\", href: \"#\" },\n    { label: \"Instagram\", href: \"#\" },\n    { label: \"Behance\", href: \"#\" },\n];\n\nexport default function Hero1({\n    brand = \"Watermelon\",\n    navLinks = DEFAULT_NAV,\n    headline = (\n        <>\n            The goal&apos;s the focus,\n            <br />\n            time&apos;s the marker.\n        </>\n    ),\n    ctaLabel = \"Let's Move Forward Today\",\n    ctaHref = \"#\",\n    description = \"Advanced wind turbines that take energy\\n production to new heights.\",\n    socialLinks = DEFAULT_SOCIAL,\n    signInLabel = \"Sign in\",\n    signInHref = \"#\",\n    onNavLinkClick,\n    className,\n}: Hero1Props) {\n    const [links, setLinks] = useState<NavLink[]>(navLinks);\n    const [isMobileMenuOpen, setIsMobileMenuOpen] = useState(false);\n\n    const handleNavLinkClick = (clickedLink: NavLink, e: React.MouseEvent) => {\n        // Avoid default navigation behavior for smooth demo purposes if needed\n        if (onNavLinkClick) {\n            e.preventDefault();\n            onNavLinkClick(clickedLink);\n        }\n        setLinks(\n            links.map((link) => ({\n                ...link,\n                active: link.label === clickedLink.label,\n            }))\n        );\n        setIsMobileMenuOpen(false);\n    };\n\n\n    const containerVariants = {\n        hidden: { opacity: 0 },\n        visible: {\n            opacity: 1,\n            transition: {\n                staggerChildren: 0.12,\n                delayChildren: 0.1,\n            },\n        },\n    };\n\n    const itemVariants = {\n        hidden: { opacity: 0, y: 24 },\n        visible: {\n            opacity: 1,\n            y: 0,\n            transition: { duration: 0.8, ease: [0.16, 1, 0.3, 1] as const },\n        },\n    };\n\n    const backgroundVariants = {\n        hidden: { opacity: 0, scale: 1.05 },\n        visible: {\n            opacity: 0.9,\n            scale: 1,\n            transition: { duration: 1.2, ease: \"easeOut\" as const },\n        },\n    };\n\n    return (\n        <section\n            className={cn(\n                \"relative w-full min-h-screen flex flex-col justify-between overflow-hidden text-white selection:bg-white selection:text-black\",\n                className\n            )}\n            style={{ backgroundColor: \"#06060c\" }}\n        >\n        \n            <motion.div\n                initial=\"hidden\"\n                animate=\"visible\"\n                variants={backgroundVariants}\n                className=\"absolute bottom-0 left-0 w-full sm:w-[85%] md:w-[65%] h-[80%] md:h-[75%] pointer-events-none select-none z-0 overflow-hidden\"\n            >\n                <img\n                    src={\"https://assets.watermelon.sh/hero-1.avif\"}\n                    alt=\"Purple grid structure background\"\n                    className=\"absolute inset-0 h-full w-full object-cover object-bottom-left opacity-90\"\n                />\n              \n                <div\n                    className=\"absolute inset-0\"\n                    style={{\n                        background:\n                            \"radial-gradient(ellipse 80% 70% at 20% 80%, transparent 40%, #06060c 85%)\",\n                    }}\n                />\n            </motion.div>\n\n   \n            <motion.header\n                initial={{ opacity: 0, y: -10 }}\n                animate={{ opacity: 1, y: 0 }}\n                transition={{ duration: 0.6, ease: \"easeOut\" }}\n                className=\"relative z-50 flex items-center justify-between px-6 py-6 md:px-12 lg:px-20\"\n            >\n                {/* Brand Logo */}\n                <a href=\"/\" className=\"flex items-center gap-1 group\">\n                    {typeof brand === \"string\" ? (\n                        <span className=\"relative text-white font-semibold text-lg tracking-tight select-none\">\n                            {brand}\n                            <span className=\"absolute -top-1 -right-2 text-xs text-white select-none\">\n                                •\n                            </span>\n                        </span>\n                    ) : (\n                        brand\n                    )}\n                </a>\n\n      \n                <nav className=\"hidden md:block\">\n                    <ul className=\"flex items-center gap-12 lg:gap-16\">\n                        {links.map((link) => (\n                            <li key={link.label} className=\"relative py-1\">\n                                <a\n                                    href={link.href}\n                                    onClick={(e) => handleNavLinkClick(link, e)}\n                                    className={cn(\n                                        \"text-base font-medium transition-colors duration-300 relative px-0.5 tracking-wide\",\n                                        link.active\n                                            ? \"text-white\"\n                                            : \"text-white/60 hover:text-white\"\n                                    )}\n                                >\n                                    {link.label}\n                                    {link.active && (\n                                        <motion.span\n                                            layoutId=\"activeUnderline\"\n                                            className=\"absolute left-0 right-0 bottom-[-4px] h-[1.5px] bg-white\"\n                                            transition={{ type: \"spring\", stiffness: 380, damping: 30 }}\n                                        />\n                                    )}\n                                </a>\n                            </li>\n                        ))}\n                    </ul>\n                </nav>\n\n                <div className=\"hidden md:block ml-4\">\n                    <a\n                        href={signInHref}\n                        className=\"inline-flex items-center justify-center px-6 py-2.5 rounded-lg border border-white text-white text-base font-medium bg-transparent hover:border-white/50 hover:bg-white/5 transition-all duration-300\"\n                    >\n                        {signInLabel}\n                    </a>\n                </div>\n\n         \n                <button\n                    onClick={() => setIsMobileMenuOpen(!isMobileMenuOpen)}\n                    className=\"md:hidden flex flex-col justify-center items-center w-9 h-9 rounded-full border border-white/15 bg-white/5 hover:bg-white/10 transition-colors z-50 relative\"\n                    aria-label=\"Toggle navigation menu\"\n                >\n                    <div className=\"w-4 h-4 flex flex-col justify-between items-center relative\">\n                        <span\n                            className={cn(\n                                \"w-full h-[1.5px] bg-white transition-all duration-300 absolute left-0\",\n                                isMobileMenuOpen ? \"rotate-45 top-[7px]\" : \"top-[2px]\"\n                            )}\n                        />\n                        <span\n                            className={cn(\n                                \"w-full h-[1.5px] bg-white transition-all duration-300 absolute left-0 top-[7px]\",\n                                isMobileMenuOpen && \"opacity-0\"\n                            )}\n                        />\n                        <span\n                            className={cn(\n                                \"w-full h-[1.5px] bg-white transition-all duration-300 absolute left-0\",\n                                isMobileMenuOpen ? \"-rotate-45 top-[7px]\" : \"top-[12px]\"\n                            )}\n                        />\n                    </div>\n                </button>\n            </motion.header>\n\n      \n            <AnimatePresence>\n                {isMobileMenuOpen && (\n                    <motion.div\n                        initial={{ opacity: 0 }}\n                        animate={{ opacity: 1 }}\n                        exit={{ opacity: 0 }}\n                        transition={{ duration: 0.25 }}\n                        className=\"fixed inset-0 bg-[#06060c]/98 backdrop-blur-md z-40 flex flex-col justify-between px-6 py-24 md:hidden\"\n                    >\n                        {/* Nav links stack */}\n                        <nav className=\"flex flex-col gap-6 mt-8\">\n                            {links.map((link, idx) => (\n                                <motion.div\n                                    key={link.label}\n                                    initial={{ opacity: 0, x: -20 }}\n                                    animate={{ opacity: 1, x: 0 }}\n                                    transition={{ delay: idx * 0.05 }}\n                                >\n                                    <a\n                                        href={link.href}\n                                        onClick={(e) => handleNavLinkClick(link, e)}\n                                        className={cn(\n                                            \"text-3xl font-semibold transition-colors duration-200 block\",\n                                            link.active ? \"text-white\" : \"text-white/50\"\n                                        )}\n                                    >\n                                        {link.label}\n                                    </a>\n                                </motion.div>\n                            ))}\n                        </nav>\n\n                        {/* Bottom buttons & info */}\n                        <motion.div\n                            initial={{ opacity: 0, y: 20 }}\n                            animate={{ opacity: 1, y: 0 }}\n                            transition={{ delay: 0.25 }}\n                            className=\"flex flex-col gap-6\"\n                        >\n                            <a\n                                href={signInHref}\n                                className=\"w-full py-3.5 rounded-full border border-white/20 text-white text-center text-base font-medium bg-white/5 hover:bg-white/10 transition-colors\"\n                            >\n                                {signInLabel}\n                            </a>\n                        </motion.div>\n                    </motion.div>\n                )}\n            </AnimatePresence>\n\n            {/* ── Main Hero Content Area ── */}\n            <motion.div\n                variants={containerVariants}\n                initial=\"hidden\"\n                animate=\"visible\"\n                className=\"relative z-10 flex-1 flex flex-col justify-between px-6 pt-12 pb-10 md:px-12 lg:px-20 md:pt-16 md:pb-12\"\n            >\n                {/* Top Section: Headline & CTA Button */}\n                <div className=\"flex flex-col gap-8 md:gap-10 max-w-[850px] mt-[5vh]\">\n                    {/* Main Headline */}\n                    <motion.h1\n                        variants={itemVariants}\n                        className=\"text-5xl md:text-6xl lg:text-7xl font-medium leading-[1.08] tracking-[-0.04em] text-white\"\n                    >\n                        {headline}\n                    </motion.h1>\n\n                    {/* CTA Pill Button with Hover Micro-animations */}\n                    <motion.div variants={itemVariants} className=\"w-fit\">\n                        <a\n                            href={ctaHref}\n                            className=\"inline-flex w-fit items-center gap-4 bg-white text-black font-medium text-sm p-1 pl-4 rounded-lg hover:bg-white/90 transition-all duration-300 shadow-[0_4px_16px_rgba(255,255,255,0.06)] group\"\n                        >\n                            <span>{ctaLabel}</span>\n                            <span className=\"w-8 h-8 rounded-md bg-black flex items-center justify-center shrink-0 overflow-hidden relative\">\n                                {/* Arrow up-right with custom sliding movement on hover */}\n                                <ArrowUpRight className=\"w-4 h-4 text-white transition-transform duration-300 ease-out group-hover:translate-x-[2px] group-hover:translate-y-[-2px]\" />\n                            </span>\n                        </a>\n                    </motion.div>\n                </div>\n\n                {/* Bottom Section: Description & Controls */}\n                <motion.div\n                    variants={itemVariants}\n                    className=\"flex flex-col lg:flex-row lg:items-end justify-between gap-12 lg:gap-10 mt-auto pt-16 w-full relative\"\n                >\n                    {/* Top Row / Left Column: Muted Description paragraph */}\n                    <div className=\"md:max-w-3xl\">\n                        <p className=\"text-white text-base md:text-lg lg:text-xl leading-relaxed font-normal whitespace-pre-line\">\n                            {description}\n                        </p>\n                    </div>\n\n                    {/* Bottom Row / Center & Right Columns */}\n                    <div className=\"flex flex-col md:flex-row md:items-end justify-between lg:justify-end gap-10 pb-1 w-full lg:w-auto\">\n                        {/* Premium Social Links (Left on tablet, Right on Desktop) */}\n                        <div className=\"flex items-center gap-6 lg:gap-12 order-1 lg:order-2\">\n                            {socialLinks.map((social) => (\n                                <a\n                                    key={social.label}\n                                    href={social.href}\n                                    className=\"text-white text-base lg:text-lg hover:text-white/80 transition-colors duration-250 tracking-wide\"\n                                >\n                                    {social.label}\n                                </a>\n                            ))}\n                        </div>\n\n                        {/* Floating scroll indicator (Right on tablet, Center on Desktop) */}\n                        <div className=\"hidden md:flex items-center gap-3 text-white text-sm lg:text-base tracking-wide order-2 lg:order-1 lg:absolute lg:left-1/2 lg:-translate-x-1/2 lg:bottom-1\">\n                            <span>Scroll to Discover</span>\n                            <motion.span\n                                animate={{ y: [0, 4, 0] }}\n                                transition={{ repeat: Infinity, duration: 1.8, ease: \"easeInOut\" }}\n                            >\n                                <ArrowDown className=\"w-4 h-4 text-white\" strokeWidth={1.5} />\n                            </motion.span>\n                        </div>\n                    </div>\n                </motion.div>\n            </motion.div>\n        </section>\n    );\n}",
      "type": "registry:ui",
      "target": "components/ui/hero-1.tsx"
    }
  ],
  "type": "registry:ui"
}
