const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/About-B_nvNAb6.js","assets/index-CyveQwnz.js","assets/index-D86tsq33.css","assets/emotion-is-prop-valid.esm-DKI-Z5VI.js","assets/styled-components.browser.esm-DKNPpcCv.js","assets/proxy-B_Exbr39.js","assets/useTranslation-BNaeUrDn.js","assets/Contact-CeI_zEYg.js","assets/fa-Dm_y8sJq.js","assets/Services-BFTZhysu.js","assets/Portfolio-6wpJfzxB.js","assets/AnimatePresence-CH9Cx01g.js","assets/createLucideIcon-Du4OBjka.js","assets/Portfolio-kZb8pGZf.css","assets/HeroSec-Cj7tVY0U.js","assets/SideSocial-FCeh37Nf.js","assets/chevron-down-CNwzAtAv.js","assets/Reviews-CA5ZrpFE.js"])))=>i.map(i=>d[i]);
import{t as e}from"./useTranslation-BNaeUrDn.js";import{S as t,_ as n,a as r,c as i,g as a,i as o,m as s,p as c,s as l,t as u}from"./index-CyveQwnz.js";import"./emotion-is-prop-valid.esm-DKI-Z5VI.js";/* empty css */import{n as d,t as f}from"./index.esm-A-QCvYor.js";import{c as p}from"./fa-Dm_y8sJq.js";import{t as m}from"./createLucideIcon-Du4OBjka.js";import{t as h}from"./chevron-down-CNwzAtAv.js";import{t as g}from"./styled-components.browser.esm-DKNPpcCv.js";var _=m(`arrow-up`,[[`path`,{d:`m5 12 7-7 7 7`,key:`hav0vg`}],[`path`,{d:`M12 19V5`,key:`x0mq9r`}]]),v=m(`menu`,[[`path`,{d:`M4 5h16`,key:`1tepv9`}],[`path`,{d:`M4 12h16`,key:`1lakjw`}],[`path`,{d:`M4 19h16`,key:`1djgab`}]]),y=m(`x`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]),b=t(n()),x=t(u());function S({darkMode:e}){let[t,n]=(0,b.useState)(!1);return(0,b.useEffect)(()=>{let e=()=>{n(window.scrollY>300)};return window.addEventListener(`scroll`,e),()=>window.removeEventListener(`scroll`,e)},[]),t?(0,x.jsx)(`button`,{onClick:()=>{window.scrollTo({top:0,behavior:`smooth`})},className:`
fixed bottom-3 right-3 z-50 p-3 rounded-full shadow-lg hover:scale-110 transition cursor-pointer
${e?`bg-cyan-800/70 text-white hover:bg-cyan-800/90`:`bg-gray-600/60 text-white hover:bg-gray-600/90`}
`,"aria-label":`Scroll to top`,children:(0,x.jsx)(_,{size:22})}):null}
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
var C=function(){return C=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},C.apply(this,arguments)};function w(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}var T=``,E=null,D=null,O=null;function k(){T=``,E!==null&&E.disconnect(),D!==null&&(window.clearTimeout(D),D=null)}function A(e){return[`BUTTON`,`INPUT`,`SELECT`,`TEXTAREA`].includes(e.tagName)&&!e.hasAttribute(`disabled`)||[`A`,`AREA`].includes(e.tagName)&&e.hasAttribute(`href`)}function j(){var e=null;if(T===`#`)e=document.body;else{var t=T.replace(`#`,``);e=document.getElementById(t),e===null&&T===`#top`&&(e=document.body)}if(e!==null){O(e);var n=e.getAttribute(`tabindex`);return n===null&&!A(e)&&e.setAttribute(`tabindex`,-1),e.focus({preventScroll:!0}),n===null&&!A(e)&&(e.blur(),e.removeAttribute(`tabindex`)),k(),!0}return!1}function M(e){window.setTimeout(function(){j()===!1&&(E===null&&(E=new MutationObserver(j)),E.observe(document,{attributes:!0,childList:!0,subtree:!0}),D=window.setTimeout(function(){k()},e||1e4))},0)}function N(e){return b.forwardRef(function(t,n){var r=``;typeof t.to==`string`&&t.to.includes(`#`)?r=`#`+t.to.split(`#`).slice(1).join(`#`):typeof t.to==`object`&&typeof t.to.hash==`string`&&(r=t.to.hash);var a={};e===i&&(a.isActive=function(e,t){return e&&e.isExact&&t.hash===r});function o(e){k(),T=t.elementId?`#`+t.elementId:r,t.onClick&&t.onClick(e),T!==``&&!e.defaultPrevented&&e.button===0&&(!t.target||t.target===`_self`)&&!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&(O=t.scroll||(function(e){return t.smooth?e.scrollIntoView({behavior:`smooth`}):e.scrollIntoView()}),M(t.timeout))}var s=w(t,[`scroll`,`smooth`,`timeout`,`elementId`]);return b.createElement(e,C({},a,s,{onClick:o,ref:n}),t.children)})}var P=N(l);N(i);var F=(0,b.memo)(({darkMode:e,setDarkMode:t})=>(0,x.jsx)(I,{children:(0,x.jsxs)(`label`,{className:`switch grayscale-40`,children:[(0,x.jsx)(`input`,{id:`checkbox`,type:`checkbox`,checked:!e,onChange:()=>t(e=>!e)}),(0,x.jsxs)(`span`,{className:`slider`,children:[(0,x.jsxs)(`div`,{className:`stars`,children:[(0,x.jsx)(`div`,{className:`star star_1`}),(0,x.jsx)(`div`,{className:`star star_2`}),(0,x.jsx)(`div`,{className:`star star_3`})]}),(0,x.jsx)(`svg`,{viewBox:`0 0 16 16`,className:`cloud_1 cloud`,children:(0,x.jsx)(`path`,{transform:`matrix(.77976 0 0 .78395-299.99-418.63)`,fill:`#fff`,d:`m391.84 540.91c-.421-.329-.949-.524-1.523-.524-1.351 0-2.451 1.084-2.485 2.435-1.395.526-2.388 1.88-2.388 3.466 0 1.874 1.385 3.423 3.182 3.667v.034h12.73v-.006c1.775-.104 3.182-1.584 3.182-3.395 0-1.747-1.309-3.186-2.994-3.379.007-.106.011-.214.011-.322 0-2.707-2.271-4.901-5.072-4.901-2.073 0-3.856 1.202-4.643 2.925`})}),(0,x.jsx)(`span`,{className:`transition-overlay`})]})]})})),I=g.div`
.switch {
font-size: 12px;
position: relative;
display: inline-block;
width: 4em;
height: 2.2em;
border-radius: 30px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.switch input {
opacity: 0;
width: 0;
height: 0;
}
.slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: #0c0c18;
transition: background-color 0.2s ease, box-shadow 0.2s ease;
border-radius: 30px;
overflow: hidden;
}
.slider:before {
position: absolute;
content: "";
height: 1.2em;
width: 1.2em;
border-radius: 20px;
left: 0.5em;
bottom: 0.5em;
transition: 0.4s cubic-bezier(0.81, -0.04, 0.38, 1.5);
box-shadow: inset 8px -4px 0px 0px #fff;
}
.switch input:checked + .slider {
background-color: skyblue;
}
.switch input:checked + .slider:before {
transform: translateX(1.8em);
box-shadow: inset 15px -4px 0px 15px #ffcf48;
}
.stars {
position: absolute;
width: 100%;
height: 100%;
transition: opacity 0.4s ease;
}
.star {
background-color: white;
position: absolute;
width: 8px;
height: 8px;
opacity: 0.9;
box-shadow: 0 0 10px 3px rgba(255, 255, 180, 0.9);
clip-path: polygon(
50% 0%,
61% 35%,
98% 35%,
68% 57%,
79% 91%,
50% 70%,
21% 91%,
32% 57%,
2% 35%,
39% 35%
);
}
.star_1 { left: 2.5em; top: 0.5em; animation-delay: 0.1s; }
.star_2 { left: 2.2em; top: 1.2em; animation-delay: 0.3s; }
.star_3 { left: 3em; top: 0.9em; animation-delay: 0.5s; }
.switch input:checked ~ .slider .stars {
opacity: 0;
}
.cloud {
width: 3.5em;
position: absolute;
bottom: -1.4em;
left: -1.1em;
opacity: 0;
transition: opacity 0.4s ease, transform 0.6s ease;
transform: translateY(10px);
}
.switch input:checked ~ .slider .cloud {
opacity: 1;
transform: translateY(0);
}
.transition-overlay {
content: "";
position: absolute;
inset: 0;
background: radial-gradient(circle, rgba(255, 255, 255, 0.3), transparent 60%);
opacity: 0;
transition: opacity 0.8s ease;
pointer-events: none;
}
.switch input:checked ~ .slider .transition-overlay {
opacity: 1;
animation: fadeOut 0.5s ease forwards;
}
@keyframes fadeOut {
from { opacity: 1; }
to { opacity: 0; }
}
`;function L({darkMode:t,txEn:n,txAr:r}){let{i18n:i}=e(),[a,o]=(0,b.useState)(!1),s=e=>{i.changeLanguage(e),o(!1)};return(0,x.jsxs)(`div`,{className:`relative`,children:[(0,x.jsxs)(`button`,{onClick:()=>o(!a),className:`flex justify-center items-center gap-1 px-2 w-22 md:w-28 py-1 cursor-pointer ${t?`text-white`:`text-black`} rounded-xl transition-all`,children:[(0,x.jsx)(p,{size:16}),(0,x.jsx)(`span`,{className:`text-md`,children:i.language===`ar`?r:n}),(0,x.jsx)(h,{size:16})]}),a&&(0,x.jsxs)(`div`,{className:`absolute right-0 mt-2 w-24 bg-black/60 shadow-lg rounded-xl overflow-hidden border`,children:[(0,x.jsx)(`button`,{className:`${i.language===`ar`?`text-white `:`bg-white text-black`} w-full text-left px-4 py-2 hover:bg-white hover:text-black cursor-pointer`,onClick:()=>s(`en`),children:`English`}),(0,x.jsx)(`button`,{className:`${i.language===`ar`?`bg-white text-black`:`text-white`} w-full text-left px-4 py-2 hover:bg-white hover:text-black cursor-pointer`,onClick:()=>s(`ar`),children:`العربية`})]})]})}function R({darkMode:t,setDarkMode:n}){let[r,i]=(0,b.useState)(!1),a=c(),l=s(),{t:u}=e(),[p,m]=(0,b.useState)(null),h=f();(0,b.useEffect)(()=>{let e=d(h,e=>{m(e)});return()=>e()},[h]);let g=(0,b.useMemo)(()=>[{text:u(`navbar.links.about`),path:`/#about`},{text:u(`navbar.links.services`),path:`/#services`},{text:u(`navbar.links.portfolio`),path:`/my-works`},{text:u(`navbar.links.feedback`),path:`/#feedback`},{text:u(`navbar.links.contact`),path:`/#contact`}],[u]),_=(0,b.useCallback)(e=>{if(i(!1),e.includes(`#`)){let t=()=>{let t=e.split(`#`)[1],n=document.getElementById(t);if(n){let e=n.getBoundingClientRect().top+window.scrollY+-80;window.scrollTo({top:e,behavior:`smooth`})}};a.pathname===`/`?t():(l(`/`,{replace:!1}),setTimeout(t,500));return}if(e===`/my-works`){let t=document.querySelectorAll(`#hero, #about, #services, #portfolio, #feedback, #contact`),n=`hero`;t.forEach(e=>{e.getBoundingClientRect().top<window.innerHeight/2&&(n=e.id)}),sessionStorage.setItem(`lastHomeSection`,n),l(e);return}l(e)},[a.pathname,l]),S=({path:e,text:n})=>(0,x.jsx)(`button`,{dir:`rtl`,onClick:()=>_(e),className:`relative font-bold text-[18px] cursor-pointer transition-all duration-300 ${t?`text-white hover:text-[#3db9eb]`:`text-[#5A5A5A] hover:text-[#404040]`}`,children:n});return(0,x.jsxs)(`nav`,{className:`relative w-full h-20 z-50 backdrop-blur-xs shadow-md flex justify-between items-center pr-1 md:px-8 lg:px-12 transition-all duration-500 ${t?`bg-black/5 text-white`:`bg-[#f0f1f3]/40 text-[#5A5A5A]`}`,children:[(0,x.jsx)(`div`,{className:`relative h-full flex items-center overflow-hidden`,children:(0,x.jsx)(P,{to:`/`,onClick:()=>_(`/`),className:`flex items-center z-10`,children:(0,x.jsx)(`img`,{src:`/assets/logo1.webp`,alt:`Faress_Logo`,loading:`lazy`,decoding:`async`,width:`214`,height:`214`,className:`object-contain ${t?``:`grayscale brightness-30`} transition-transform duration-300 hover:scale-105`})})}),(0,x.jsxs)(`div`,{className:`hidden lg:flex items-center gap-16`,children:[(0,x.jsxs)(`div`,{className:`hidden lg:flex gap-10`,dir:o.language===`ar`?`rtl`:`ltr`,children:[g.map(e=>(0,x.jsx)(S,{path:e.path,text:e.text},e.path)),p&&(0,x.jsx)(S,{path:`/admin-523625af234`,text:u(`navbar.links.admin`)})]}),(0,x.jsxs)(`div`,{className:`hidden lg:flex gap-3`,children:[(0,x.jsx)(L,{darkMode:t,txEn:`English`,txAr:`العربية`}),(0,x.jsx)(F,{darkMode:t,setDarkMode:n})]})]}),(0,x.jsxs)(`div`,{className:`flex justify-center items-center lg:hidden `,children:[(0,x.jsx)(L,{darkMode:t,txEn:`En`,txAr:`ع`}),(0,x.jsx)(F,{darkMode:t,setDarkMode:n}),(0,x.jsx)(`button`,{onClick:()=>i(e=>!e),className:`focus:outline-none p-2 ${t?`text-[#3db9eb]`:`text-gray-700`}`,"aria-label":`Toggle menu`,children:r?(0,x.jsx)(y,{size:30}):(0,x.jsx)(v,{size:30})})]}),r&&(0,x.jsxs)(`div`,{className:`absolute top-20 left-0 w-full flex flex-col items-center gap-5 py-6 lg:hidden transition-all duration-500 ease-in-out ${t?`bg-black/90 text-white`:`bg-[#f0f1f3]/95 text-gray-900 border-t border-gray-300`}`,children:[g.map(e=>(0,x.jsx)(`button`,{onClick:()=>_(e.path),className:`text-lg font-medium transition-all duration-300 ${t?`hover:text-[#3db9eb]`:`hover:text-[#404040]`}`,children:e.text},e.path)),p&&(0,x.jsx)(`button`,{onClick:()=>_(`/admin-523625af234`),className:`text-lg font-medium transition-all duration-300 ${t?`hover:text-[#3db9eb]`:`hover:text-[#404040]`}`,children:u(`navbar.links.admin`)})]})]})}var z=b.memo(R),B=(0,b.lazy)(()=>a(()=>import(`./About-B_nvNAb6.js`),__vite__mapDeps([0,1,2,3,4,5,6]))),V=(0,b.lazy)(()=>a(()=>import(`./Contact-CeI_zEYg.js`),__vite__mapDeps([7,1,2,3,5,6,8]))),H=(0,b.lazy)(()=>a(()=>import(`./Services-BFTZhysu.js`),__vite__mapDeps([9,1,2,3,5,6,8]))),U=(0,b.lazy)(()=>a(()=>import(`./Portfolio-6wpJfzxB.js`),__vite__mapDeps([10,1,2,3,5,11,12,6,13]))),W=(0,b.memo)((0,b.lazy)(()=>a(()=>import(`./HeroSec-Cj7tVY0U.js`),__vite__mapDeps([14,1,2,3,5,6])))),G=(0,b.memo)((0,b.lazy)(()=>a(()=>import(`./SideSocial-FCeh37Nf.js`),__vite__mapDeps([15,1,2,3,5,11,12,16,8])))),K=(0,b.memo)((0,b.lazy)(()=>a(()=>import(`./Reviews-CA5ZrpFE.js`),__vite__mapDeps([17,1,2,3,5,12,6])))),q=({height:e=128})=>(0,x.jsx)(`div`,{className:`h-[${e}px] w-full bg-transparent animate-pulse my-6 rounded-xl`});function J({darkMode:e,setDarkMode:t}){let n=c();return(0,b.useEffect)(()=>{let e=document.querySelectorAll(`#hero,#about, #services, #portfolio, #feedback, #contact`),t=new IntersectionObserver(e=>{e.forEach(e=>{e.isIntersecting&&sessionStorage.setItem(`lastHomeSection`,e.target.id)})},{threshold:.6});return e.forEach(e=>t.observe(e)),()=>t.disconnect()},[]),(0,b.useEffect)(()=>{let e=n.hash?.replace(`#`,``),t=sessionStorage.getItem(`lastHomeSection`),r=e||t;r&&requestAnimationFrame(()=>{document.getElementById(r)?.scrollIntoView({behavior:`auto`})})},[n.hash]),(0,x.jsxs)(`div`,{className:`relative overflow-hidden pb-10`,children:[(0,x.jsxs)(r,{children:[(0,x.jsx)(`title`,{children:`Faress Mohamed | Creative Director & Multimedia Specialist`}),(0,x.jsx)(`link`,{rel:`canonical`,href:`https://faress-mohamed.com/`}),(0,x.jsx)(`meta`,{name:`keywords`,content:`Fares Mohamed, فارس محمد, Video Editor, مونتير محترف, مونتاج, Video Editing, Motion Graphics, Social Media Video Editor, YouTube Video Editing, Commercial Video Editing, Promotional Videos, Color Grading, Cinematic Editing, Reels Editor, Shorts Editor, Creative Video Editor, Brand Video Production, صناعة محتوى, تعديل فيديوهات احترافي`}),(0,x.jsx)(`meta`,{name:`description`,content:`فارس محمد | مخرج إبداعي ومتخصص في المونتاج الاحترافي، تصميم الفيديوهات، الموشن جرافيك، وفنون 3D. أقدّم خدمات إنتاج وإخراج فيديوهات إعلانية وتجارية بجودة عالية واحترافية.`}),(0,x.jsx)(`meta`,{name:`keywords`,content:`Faress Mohamed, فارس محمد, Video Editor, Motion Graphics, 3D Animation, Director, Video Production`}),(0,x.jsx)(`meta`,{property:`og:title`,content:`فارس محمد | Creative Director & Video Editor | Motion & 3D Artist`}),` `,(0,x.jsx)(`meta`,{property:`og:description`,content:`Creative Director and Multimedia Specialist offering professional video editing, motion graphics, and 3D production services.`}),(0,x.jsx)(`meta`,{property:`og:image`,content:`https://faress-mohamed.com/assets/ImageUrl.webp`}),(0,x.jsx)(`meta`,{property:`og:url`,content:`https://faress-mohamed.com/`}),(0,x.jsx)(`meta`,{property:`og:type`,content:`website`}),(0,x.jsx)(`meta`,{name:`twitter:card`,content:`summary_large_image`}),(0,x.jsx)(`meta`,{name:`twitter:title`,content:`Faress Mohamed | Home`}),(0,x.jsx)(`meta`,{name:`twitter:description`,content:`مرحبًا بك في الموقع الرسمي لـ Faress Mohamed، استعرض أعمالي ومشاريعي الاحترافية.`}),(0,x.jsx)(`script`,{type:`application/ld+json`,children:JSON.stringify({"@context":`https://schema.org`,"@graph":[{"@type":`Person`,"@id":`https://faress-mohamed.com/#person`,name:`Faress Mohamed`,alternateName:`فارس محمد`,url:`https://faress-mohamed.com/`,image:`https://faress-mohamed.com/assets/ImageUrl.webp`,jobTitle:`Creative Director & Multimedia Specialist`,description:`Creative Director specializing in professional video editing, motion graphics, 3D animation, and commercial production.`,knowsAbout:[`Video Editing`,`Motion Graphics`,`3D Animation`,`Film Direction`,`Commercial Production`,`Videography`]},{"@type":`WebSite`,"@id":`https://faress-mohamed.com/#website`,url:`https://faress-mohamed.com/`,name:`Faress Mohamed Portfolio`,publisher:{"@id":`https://faress-mohamed.com/#person`}},{"@type":`ProfessionalService`,"@id":`https://faress-mohamed.com/#service`,name:`Creative Video Production Services`,provider:{"@id":`https://faress-mohamed.com/#person`},areaServed:`Worldwide`,serviceType:[`Video Editing`,`Motion Graphics`,`3D Animation`,`Creative Direction`,`Commercial Video Production`]}]})})]}),(0,x.jsx)(G,{darkMode:e}),(0,x.jsx)(S,{darkMode:e}),(0,x.jsx)(`div`,{id:`hero`,children:(0,x.jsxs)(b.Suspense,{fallback:(0,x.jsx)(q,{height:400}),children:[(0,x.jsx)(z,{darkMode:e,setDarkMode:t}),(0,x.jsx)(W,{darkMode:e})]})}),(0,x.jsx)(`div`,{id:`about`,children:(0,x.jsx)(b.Suspense,{fallback:(0,x.jsx)(q,{}),children:(0,x.jsx)(B,{darkMode:e})})}),(0,x.jsx)(`div`,{id:`services`,children:(0,x.jsx)(b.Suspense,{fallback:(0,x.jsx)(q,{}),children:(0,x.jsx)(H,{darkMode:e})})}),(0,x.jsx)(`div`,{id:`portfolio`,children:(0,x.jsx)(b.Suspense,{fallback:(0,x.jsx)(q,{}),children:(0,x.jsx)(U,{darkMode:e})})}),(0,x.jsx)(`div`,{id:`feedback`,children:(0,x.jsx)(b.Suspense,{fallback:(0,x.jsx)(q,{}),children:(0,x.jsx)(K,{darkMode:e})})}),(0,x.jsx)(`div`,{id:`contact`,children:(0,x.jsx)(b.Suspense,{fallback:(0,x.jsx)(q,{}),children:(0,x.jsx)(V,{darkMode:e})})})]})}export{J as default};