{"version":3,"file":"RadialGradientTop.BFm2aZ2C.mjs","names":["useRef","useState","_Fragment"],"sources":["https:/framerusercontent.com/modules/A8ZwVFYEAW61Vqv4r0lv/4Wq7DlixyLlEztwMXMiP/LinearStyleHero.js","https:/framerusercontent.com/modules/KrvaLTVjMSCSI0zoO3IL/hpnXfIfsNxxmtSVrddTx/RadialGradientTop.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{motion,useInView,useAnimation}from\"framer-motion\";import{useRef,useEffect,useState}from\"react\";import{addPropertyControls,ControlType}from\"framer\";export function HeroTiltReveal({image}){const ref=useRef(null);const isInView=useInView(ref,{once:true,margin:\"-20% 0px\"});const controls=useAnimation();const topGlow=useAnimation();const sideGlow=useAnimation();const[isFrontFacing,setIsFrontFacing]=useState(false);const[isMobile,setIsMobile]=useState(false);// Check if device is mobile\nuseEffect(()=>{const checkMobile=()=>{setIsMobile(window.innerWidth<768)// Adjust breakpoint as needed\n;};checkMobile();window.addEventListener(\"resize\",checkMobile);return()=>window.removeEventListener(\"resize\",checkMobile);},[]);useEffect(()=>{if(isInView){controls.start({rotateX:0,y:0,opacity:1,transition:{duration:2,ease:[.33,0,.2,1]}}).then(()=>{setIsFrontFacing(true);// Only animate glows on desktop\nif(!isMobile){topGlow.start({x:[\"-200px\",\"calc(100% + 300px)\"],opacity:[0,1,0],transition:{duration:2.5,repeat:Infinity,repeatType:\"loop\",ease:\"easeInOut\"}});sideGlow.start({y:[\"-200px\",\"calc(100% + 200px)\"],opacity:[0,1,0],transition:{duration:2.5,repeat:Infinity,repeatType:\"loop\",ease:\"easeInOut\",delay:.3}});}});}},[isInView,isMobile]);const imageShadow=isFrontFacing?\"0px 20px 60px rgba(80, 40, 120, 0.3)\":\"none\";return /*#__PURE__*/_jsx(motion.div,{ref:ref,style:{position:\"relative\",perspective:1200,transformStyle:\"preserve-3d\",willChange:\"transform\"},children:image&&/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(motion.img,{src:image,alt:\"Hero\",initial:{rotateX:45,y:100,opacity:.4},animate:controls,style:{width:\"100%\",height:\"auto\",transformOrigin:\"center\",display:\"block\",borderRadius:\"8px\",boxShadow:imageShadow,transition:\"box-shadow 0.5s ease-in-out\"}}),!isMobile&&/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(motion.div,{animate:topGlow,style:{position:\"absolute\",top:0,left:0,height:\"2px\",width:\"120px\",background:\"linear-gradient(90deg, rgba(128,90,213,0), rgba(165,94,234,0.7), rgba(128,90,213,0))\",pointerEvents:\"none\",opacity:0}}),/*#__PURE__*/_jsx(motion.div,{animate:sideGlow,style:{position:\"absolute\",top:0,right:0,width:\"2px\",height:\"120px\",background:\"linear-gradient(180deg, rgba(128,90,213,0), rgba(165,94,234,0.7), rgba(128,90,213,0))\",pointerEvents:\"none\",opacity:0}})]})]})});}addPropertyControls(HeroTiltReveal,{image:{title:\"Image\",type:ControlType.Image}});\nexport const __FramerMetadata__ = {\"exports\":{\"HeroTiltReveal\":{\"type\":\"reactComponent\",\"name\":\"HeroTiltReveal\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./LinearStyleHero.map","import{jsx as _jsx}from\"react/jsx-runtime\";import{Frame,addPropertyControls}from\"framer\";export function RadialBackground(props){return /*#__PURE__*/_jsx(Frame,{size:\"100%\",background:\"radial-gradient(at 53% 78%, rgba(128, 128, 255, 0.25) 0px, transparent 50%), radial-gradient(at 71% 91%, rgba(30, 144, 219, 0.2) 0px, transparent 50%),  radial-gradient(at 31% 91%, rgba(101, 54, 226, 0.18) 0px, transparent 50%)\",...props});}/*             background=\"radial-gradient(ellipse at bottom right, \n                    rgba(255,255,255,1) 0%, \n                    rgba(255,255,255,0.98) 15%, \n                    rgba(239,224,234,0.75) 30%, \n                    rgba(220,196,244,0.75) 50%, \n                    rgba(225,219,242,0.75) 65%, \n                    rgba(255,255,255,0.98) 85%, \n                    rgba(255,255,255,1) 95%)\"\n*/// Optionally, add property controls if you want to tweak values from the Framer UI.\naddPropertyControls(RadialBackground,{});\nexport const __FramerMetadata__ = {\"exports\":{\"RadialBackground\":{\"type\":\"reactComponent\",\"name\":\"RadialBackground\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./RadialGradientTop.map"],"mappings":"ocAAyO,SAAgB,EAAe,CAAC,SAAO,CAAC,IAAM,EAAIA,EAAO,KAAK,CAAO,EAAS,EAAU,EAAI,CAAC,KAAK,GAAK,OAAO,WAAW,CAAC,CAAO,EAAS,GAAc,CAAO,EAAQ,GAAc,CAAO,EAAS,GAAc,CAAM,CAAC,EAAc,GAAkBC,EAAS,GAAM,CAAM,CAAC,EAAS,GAAaA,EAAS,GAAM,CAC9hB,MAAc,CAAC,IAAM,MAAgB,CAAC,EAAY,EAAO,WAAW,IAAI,EACT,OAA5D,GAAa,CAAC,EAAO,iBAAiB,SAAS,EAAY,KAAW,EAAO,oBAAoB,SAAS,EAAY,EAAG,EAAE,CAAC,CAAC,MAAc,CAAI,GAAU,EAAS,MAAM,CAAC,QAAQ,EAAE,EAAE,EAAE,QAAQ,EAAE,WAAW,CAAC,SAAS,EAAE,KAAK,CAAC,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,EAAiB,GAAK,CAC5Q,IAAU,EAAQ,MAAM,CAAC,EAAE,CAAC,SAAS,qBAAqB,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,WAAW,CAAC,SAAS,IAAI,OAAO,IAAS,WAAW,OAAO,KAAK,YAAY,CAAC,CAAC,CAAC,EAAS,MAAM,CAAC,EAAE,CAAC,SAAS,qBAAqB,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,WAAW,CAAC,SAAS,IAAI,OAAO,IAAS,WAAW,OAAO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