import{t as e}from"./useTranslation-BNaeUrDn.js";import{S as t,_ as n,m as r,t as i}from"./index-CyveQwnz.js";import{t as a}from"./proxy-B_Exbr39.js";import"./emotion-is-prop-valid.esm-DKI-Z5VI.js";var o=t(n()),s=t(i()),c=[{src:`/assets/after-effects.webp`,alt:`After Effects`,pos:`bottom-5 right-4 md:right-2`,anim:{y:[12,-13],duration:2},rot:`-12`,size:`w-[70px] md:w-[110px]`},{src:`/assets/photoshop.webp`,alt:`Photoshop`,pos:`top-20 right-10`,anim:{y:[10,-10],duration:1.5},rot:`12`,size:`w-[85px] md:w-[130px]`},{src:`/assets/blender.webp`,alt:`Blender`,pos:`top-5 left-4 md:left-1`,anim:{y:[10,-10],duration:2},rot:`12`,size:`w-[95px] md:w-[120px]`},{src:`/assets/premiere.webp`,alt:`Premiere`,pos:`bottom-20 left-5`,anim:{y:[15,-15],duration:1.7},rot:`12`,size:`w-[80px] md:w-[120px]`}];function l({darkMode:t}){let n=r(),{t:i}=e(),o=t?`#3db9eb`:`#404040`,l=t?`text-white`:`text-[#404040]`;return(0,s.jsx)(`section`,{id:`hero`,className:`Hero flex items-center justify-center pt-3 mt-4 pb-33 transition-colors duration-500 ${l}`,children:(0,s.jsxs)(`div`,{className:`grid grid-cols-1 lg:grid-cols-3 items-center md:px-4 gap-6 max-w-7xl`,children:[(0,s.jsx)(`div`,{className:`flex justify-center z-10 relative ms-0 md:ms-5`,children:(0,s.jsxs)(a.div,{initial:{opacity:0},animate:{opacity:1},transition:{duration:1.2},className:`relative rounded-2xl`,children:[c.map((e,t)=>(0,s.jsx)(a.div,{initial:{y:e.anim.y[0]},animate:{y:e.anim.y[1]},transition:{delay:.8,repeat:1/0,repeatType:`mirror`,duration:e.anim.duration,ease:`easeInOut`},className:`absolute ${e.pos} z-40`,children:(0,s.jsx)(`img`,{src:e.src,alt:e.alt,loading:`lazy`,className:`${e.size} h-auto`,style:{rotate:`${e.rot}deg`,filter:`blur(0.4px)`,willChange:`transform`}})},t)),(0,s.jsx)(a.div,{className:`relative w-[330px] h-[390px] md:w-[450px] md:h-[520px] lg:w-[510px] lg:h-[600px] mt-5 overflow-hidden transition-all duration-700 ease-out rounded-full ${t?`shadow-[0_0_20px_#3db9eb]`:`inset-shadow-[0_0_1000px_#404040] shadow-[0_0_20px_#404040]`}`,style:{background:t?`rgba(0,0,0,0.1)`:``,backdropFilter:`blur(1px)`,willChange:`transform`},children:(0,s.jsx)(`img`,{src:`/assets/faressImg.webp`,alt:`Faress Mohamed | فارس محمد - Video Editing`,className:`object-cover z-10 w-full h-full scale-110 transition-transform duration-700 hover:scale-105`,loading:`lazy`})},t?`dark`:`light`)]})}),(0,s.jsxs)(a.div,{className:`space-y-4 lg:col-span-2 text-center md:ml-26 flex flex-col justify-center items-center p-1 md:p-0`,initial:{opacity:0,y:50},animate:{opacity:1,y:0},transition:{duration:1,ease:`easeOut`},children:[(0,s.jsxs)(a.h1,{className:`text-3xl md:text-5xl lg:text-6xl font-extrabold leading-tight`,initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},transition:{duration:1,delay:.3,ease:`easeOut`},children:[(0,s.jsx)(`span`,{style:{color:o},children:i(`hero.im`)}),` `,i(`hero.intro_name`),(0,s.jsx)(`br`,{}),(0,s.jsx)(`span`,{className:`text-lg md:text-3xl lg:text-4xl font-semibold`,children:i(`hero.title`)})]}),(0,s.jsxs)(a.p,{className:`text-center text-sm md:text-lg mx-auto px-2 ${t?`text-gray-200`:`text-gray-700`}`,initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},transition:{duration:1,delay:.6,ease:`easeOut`},viewport:{once:!0},children:[i(`hero.description1`),` `,(0,s.jsx)(`span`,{style:{color:o},className:`font-bold`,children:i(`hero.description2`)}),` `,i(`hero.description3`)]}),(0,s.jsxs)(a.div,{className:`flex flex-wrap justify-center gap-6 pt-4 mt-3`,initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:1,delay:.9,ease:`easeOut`},viewport:{once:!0},children:[(0,s.jsx)(`button`,{onClick:()=>{n(`/`,{replace:!1}),requestAnimationFrame(()=>{let e=document.getElementById(`portfolio`);if(e){let t=e.getBoundingClientRect().top+window.scrollY+-80;window.scrollTo({top:t,behavior:`smooth`})}})},className:`inline-block cursor-pointer font-bold px-7 py-3 rounded-xl border hover:scale-105 transition-all`,style:{color:o,borderColor:o},children:i(`hero.buttons.view_works`)}),(0,s.jsx)(a.a,{href:`/assets/Faress_Mohamed_CV.pdf`,download:`Faress_Mohamed_CV.pdf`,children:(0,s.jsx)(`button`,{className:`inline-block text-white cursor-pointer font-bold px-7 py-3 rounded-xl border hover:scale-105 transition-all`,style:{borderColor:o,background:o},children:i(`hero.buttons.download_cv`)})})]})]})]})})}var u=(0,o.memo)(l);export{u as default};