import{t as e}from"./useTranslation-BNaeUrDn.js";import{S as t,_ as n,a as r,t as i}from"./index-CyveQwnz.js";import{t as a}from"./proxy-B_Exbr39.js";import{t as o}from"./AnimatePresence-CH9Cx01g.js";import"./emotion-is-prop-valid.esm-DKI-Z5VI.js";import"./index.esm-A-QCvYor.js";import{c as s,i as c,n as l,s as u}from"./firebase-CaNZe86C.js";import{f as d}from"./fa-Dm_y8sJq.js";import"./createLucideIcon-Du4OBjka.js";import"./arrow-left-Qr9Njbm2.js";import{t as f}from"./play-DaP7W8Nv.js";import{t as p}from"./BacktoWorks-Clkax9hZ.js";var m=t(n()),h=t(i());function g({darkMode:t}){let{i18n:n,t:i}=e(),g=n.language,[_,v]=(0,m.useState)(null),[y,b]=(0,m.useState)([]);(0,m.useEffect)(()=>(document.body.style.overflow=_?`hidden`:`auto`,()=>document.body.style.overflow=`auto`),[_]);let x=e=>{let t=e||``;return t?(t.includes(`youtube.com/shorts/`)?t=`https://www.youtube.com/embed/${t.split(`youtube.com/shorts/`)[1].split(`?`)[0]}`:t.includes(`youtube.com/watch?v=`)?t=`https://www.youtube.com/embed/${t.split(`v=`)[1].split(`&`)[0]}`:t.includes(`youtu.be/`)&&(t=`https://www.youtube.com/embed/${t.split(`youtu.be/`)[1].split(`?`)[0]}`),t):``},S=e=>{let t=x(e)?.match(/\/embed\/([a-zA-Z0-9_-]{11})/);return t?t[1]:null},C=e=>{let t=S(e);return t?`https://img.youtube.com/vi/${t}/maxresdefault.jpg`:`/assets/placeholder.jpg`};(0,m.useEffect)(()=>{(async()=>{try{let e=s(c(l,`videos`)),t=(await u(e)).docs.map(e=>({id:e.id,...e.data()})).filter(e=>e.category==`Director`).sort((e,t)=>(Number(e.order)||0)-(Number(t.order)||0));b(t)}catch(e){console.error(`Firestore Error:`,e)}})()},[]);let w=(0,m.useCallback)(e=>{v(x(e))},[]);return(0,h.jsxs)(`section`,{className:`py-30 overflow-hidden transition-colors duration-500 min-h-screen `,children:[(0,h.jsxs)(r,{children:[(0,h.jsx)(`title`,{children:`Video Director & Portfolio | Faress Mohamed`}),(0,h.jsx)(`meta`,{name:`description`,content:`استعرض أعمال فارس محمد كمخرج محترف، تشمل مشاريع الإخراج، إدارة الفيديوهات، وإنتاج فيديوهات احترافية عالية الجودة.`}),(0,h.jsx)(`link`,{rel:`canonical`,href:`https://faress-mohamed.com/director`}),(0,h.jsx)(`meta`,{property:`og:title`,content:`Video Director & Portfolio | Faress Mohamed`}),(0,h.jsx)(`meta`,{property:`og:description`,content:`استعرض أعمال فارس محمد كمخرج محترف، تشمل مشاريع الإخراج وإدارة الفيديو الاحترافية.`}),(0,h.jsx)(`meta`,{property:`og:image`,content:`https://res.cloudinary.com/dydngnb6v/image/upload/v1766738913/videography_nkujuy.webp`}),(0,h.jsx)(`meta`,{property:`og:url`,content:`https://faress-mohamed.com/director`}),(0,h.jsx)(`meta`,{property:`og:type`,content:`website`}),(0,h.jsx)(`meta`,{name:`twitter:card`,content:`summary_large_image`}),(0,h.jsx)(`meta`,{name:`twitter:title`,content:`Video Director & Portfolio | Faress Mohamed`}),(0,h.jsx)(`meta`,{name:`keywords`,content:`Faress Mohamed, فارس محمد, Video Editor, Motion Graphics, 3D Animation, Director, Video Production`}),(0,h.jsx)(`meta`,{name:`twitter:description`,content:`استعرض أعمال فارس محمد كمخرج محترف، مشاريع الإخراج وإدارة الفيديوهات الاحترافية.`}),(0,h.jsx)(`meta`,{name:`twitter:image`,content:`https://res.cloudinary.com/dydngnb6v/image/upload/v1766738913/videography_nkujuy.webp`}),(0,h.jsx)(`meta`,{name:`twitter:url`,content:`https://faress-mohamed.com/director`}),(0,h.jsx)(`script`,{type:`application/ld+json`,children:JSON.stringify({"@context":`https://schema.org`,"@graph":[{"@type":`Service`,"@id":`https://faress-mohamed.com/director#service`,name:`Video Directing & Production Services | Faress Mohamed`,alternateName:`فارس محمد | خدمات الإخراج وإنتاج الفيديو`,provider:{"@type":`Person`,name:`Faress Mohamed`,url:`https://faress-mohamed.com/`},areaServed:`Worldwide`,serviceType:`Video Directing`,description:`تقديم خدمات الإخراج وإدارة الفيديوهات الاحترافية، تشمل إنتاج مشاريع فيديو عالية الجودة.`},{"@type":`CollectionPage`,"@id":`https://faress-mohamed.com/director`,url:`https://faress-mohamed.com/director`,name:`Director Portfolio`,description:`صفحة تعرض مجموعة من أعمال الإخراج الاحترافية الخاصة بـ فارس محمد، تشمل مشاريع الفيديو وإدارة الإنتاج.`}]})})]}),(0,h.jsx)(p,{}),(0,h.jsx)(`div`,{className:`text-center mb-14`,children:(0,h.jsxs)(`div`,{className:`inline-block relative`,children:[(0,h.jsx)(`h1`,{className:`text-2xl sm:text-4xl lg:text-5xl font-extrabold mb-4 ${t?`text-white`:`text-[#404040]`}`,children:i(`director.title`)}),(0,h.jsx)(a.div,{initial:{width:0},animate:{width:`80%`},transition:{duration:1},className:`h-[4px] mx-auto rounded-full ${t?`bg-[#1a90c0]`:`bg-[#404040]`}`})]})}),(0,h.jsx)(`div`,{className:`mx-auto grid grid-cols-1 lg:grid-cols-2 gap-12 mt-10 px-1 md:px-6 max-w-[1600px]`,children:y.map(e=>{let n=e.title?.[g]||e.title?.en||``,r=e.description?.[g]||e.description?.en||``,i=x(e.youtubeUrl);return(0,h.jsxs)(a.div,{dir:g===`ar`?`rtl`:`ltr`,className:`${e.recommended?`ring-2 ring-yellow-500`:``} relative overflow-hidden shadow-xs ${t?`shadow-white/50`:`shadow-[#404040]`} rounded-2xl`,children:[e.recommended&&(0,h.jsxs)(`span`,{className:`absolute top-3 left-3 z-20
                               text-xs font-bold
                               px-3 py-1 rounded-full
                               shadow-md
                               bg-gradient-to-r from-yellow-400 via-yellow-300 to-yellow-500
                               text-black
                               backdrop-blur-sm
                               border border-white/30 flex items-center gap-1
                               transform scale-105 hover:scale-110 transition-all duration-300`,children:[(0,h.jsx)(d,{}),` Recommended`]}),(0,h.jsxs)(`div`,{className:`relative aspect-[16/9] cursor-pointer`,onClick:()=>w(i),children:[(0,h.jsx)(a.img,{src:C(i),alt:n,loading:`lazy`,className:`w-full h-full object-cover`}),(0,h.jsx)(`div`,{className:`absolute inset-0 flex items-center justify-center`,children:(0,h.jsx)(f,{size:72,className:`text-white bg-black/40 p-4 rounded-full`})})]}),(0,h.jsxs)(`div`,{className:`py-8 sm:px-8 text-center`,children:[(0,h.jsx)(`h3`,{className:`text-2xl sm:text-3xl font-bold ${t?`text-sky-100`:`text-black`}`,children:n}),(0,h.jsx)(`p`,{className:`mt-3 p-1 ${t?`text-sky-200`:`text-black`}`,children:r})]})]},e.id)})}),(0,h.jsx)(o,{children:_&&(0,h.jsx)(a.div,{className:`fixed inset-0 bg-black/80 flex justify-center items-center z-50`,onClick:()=>v(null),children:(0,h.jsx)(a.div,{className:`w-full max-w-5xl h-[500px]`,onClick:e=>e.stopPropagation(),children:(0,h.jsx)(`iframe`,{className:`w-full h-full rounded-xl`,src:_,allowFullScreen:!0})})})})]})}var _=(0,m.memo)(g);export{_ as default};