*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{font-family:Tahoma,Arial,sans-serif;background:#fff;color:#111;line-height:1.8;overflow-x:hidden}
a{text-decoration:none;color:inherit}

#intro{position:fixed;inset:0;background:#fff;z-index:9999;display:flex;align-items:center;justify-content:center}
.intro-card{position:relative;width:330px;height:380px;display:flex;flex-direction:column;align-items:center;justify-content:center}
.intro-card .circle{position:absolute;width:300px;height:300px;border-radius:50%;border:2px solid transparent;border-top-color:#111;border-right-color:#777;border-bottom-color:#ddd;animation:spin 2.4s ease forwards}
.intro-card img{width:240px;position:relative;z-index:2;filter:none}
.intro-card button{margin-top:35px;background:#111;color:#fff;border:0;padding:15px 42px;border-radius:50px;font-size:17px;cursor:pointer;z-index:3}
body.entered #intro{opacity:0;visibility:hidden;transition:1s}
#site{display:none}

@keyframes spin{0%{transform:rotate(0) scale(.65);opacity:0}80%{transform:rotate(720deg) scale(1);opacity:.75}100%{transform:rotate(720deg) scale(1);opacity:.25}}

header{height:86px;padding:0 70px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #eee;background:#fff;position:sticky;top:0;z-index:9}
.brand{display:flex;align-items:center;gap:12px;font-size:24px;font-weight:900}
.brand img{width:42px;filter:none}
nav{display:flex;gap:34px;color:#333}
.note{text-align:center;background:#111;color:#fff;padding:12px 20px;font-size:14px}

section{max-width:1180px;margin:auto;padding:75px 40px}
.hero{max-width:none;display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:50px;padding:80px 90px}
.hero h1{font-size:64px;line-height:1.25;margin:12px 0}
.hero p{font-size:28px;color:#444}
.hero small{display:block;max-width:650px;color:#666;font-size:18px;margin:22px 0}
.buttons{display:flex;gap:14px;margin-top:28px}
.buttons a,.contact a{background:#111;color:#fff;padding:14px 28px;border-radius:12px}
.buttons .light{background:#fff;color:#111;border:1px solid #111}
.logo-box{text-align:center}
.logo-box img{max-width:330px;width:80%;filter:none}

.label{display:block;color:#888;font-size:13px;letter-spacing:3px;font-weight:800;margin-bottom:10px}
h2{font-size:42px;margin-bottom:25px}
p{color:#666}
.about,.timeline,#fields,#work{max-width:1180px}
.grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.grid>div,.line>div,.portfolio a{border:1px solid #e8e8e8;border-radius:24px;padding:30px;background:#fff;box-shadow:0 12px 35px rgba(0,0,0,.04)}
.timeline .line{display:flex;gap:25px;margin-bottom:18px}
.line b{min-width:100px}
.tools{display:flex;flex-wrap:wrap;gap:12px}
.tools span{padding:12px 20px;border:1px solid #ddd;border-radius:50px;background:#fff}
.portfolio{display:grid;grid-template-columns:1fr 1fr;gap:22px}
.portfolio a{min-height:260px;display:flex;flex-direction:column;justify-content:flex-end;transition:.3s}
.portfolio .dark{background:#111;color:#fff}
.portfolio .dark p{color:#ccc}

footer{margin-top:60px;background:#080808;color:#fff;padding:80px 90px;display:flex;justify-content:space-between;gap:30px}
footer p{color:#bbb}
.contact{display:flex;gap:12px;flex-wrap:wrap}
.contact a{background:#fff;color:#111}

@media(max-width:900px){
header{height:auto;padding:18px 22px;display:block}
nav{margin-top:15px;overflow-x:auto;gap:18px}
.hero{grid-template-columns:1fr;text-align:center;padding:45px 25px}
.hero h1{font-size:40px}.hero p{font-size:22px}
.buttons{justify-content:center;flex-wrap:wrap}
.grid,.portfolio{grid-template-columns:1fr}
.timeline .line{display:block}
footer{display:block;text-align:center;padding:60px 25px}
.contact{justify-content:center;margin-top:25px}
}

.intro-card img,
.logo-box img,
.brand img{
filter: grayscale(100%) brightness(1.15) contrast(1.05) !important;
}

.about{
  padding-top:45px;
  padding-bottom:45px;
}

.about-box{
  border:1px solid #e8e8e8;
  border-radius:28px;
  background:#fff;
  padding:38px;
  box-shadow:0 18px 45px rgba(0,0,0,.05);
}

.about-head{
  display:flex;
  justify-content:space-between;
  align-items:end;
  gap:20px;
  margin-bottom:18px;
}

.about-box p{
  font-size:18px;
  max-width:900px;
  line-height:2;
}

.about-tags{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:24px;
}

.about-tags span{
  padding:10px 18px;
  border:1px solid #ddd;
  border-radius:50px;
  background:#fafafa;
  font-size:14px;
}

@media(max-width:900px){
  .about-box{
    padding:26px;
  }

  .about-head{
    display:block;
  }
}

/* Journey vertical redesign */
.timeline{
  max-width:980px;
  margin:35px auto 70px;
  padding:34px 38px;
  border:1px solid #e8e8e8;
  border-radius:28px;
  background:#fff;
  box-shadow:0 18px 45px rgba(0,0,0,.045);
}

.timeline .label,
.timeline h2{
  text-align:right;
}

.journey-vertical{
  position:relative;
  max-width:640px;
  margin:24px auto 0;
}

.journey-vertical::before{
  content:"";
  position:absolute;
  right:145px;
  top:20px;
  bottom:20px;
  width:2px;
  background:#111;
  opacity:.85;
}

.journey-row{
  display:grid;
  grid-template-columns:120px 34px 1fr;
  gap:14px;
  align-items:center;
  margin-bottom:18px;
}

.journey-year{
  font-weight:800;
  font-size:15px;
  text-align:left;
  color:#111;
}

.journey-dot{
  width:13px;
  height:13px;
  border-radius:50%;
  background:#111;
  position:relative;
  z-index:2;
  margin:auto;
}

.journey-card{
  border:1px solid #e9e9e9;
  border-radius:16px;
  padding:17px 20px;
  background:linear-gradient(180deg,#fff,#fbfbfb);
  box-shadow:0 10px 25px rgba(0,0,0,.045);
}

.journey-card h3{
  font-size:18px;
  margin-bottom:3px;
}

.journey-card p{
  font-size:14px;
  color:#666;
}

@media(max-width:900px){
  .timeline{
    margin:25px 18px 55px;
    padding:26px 20px;
  }

  .journey-vertical::before{
    right:95px;
  }

  .journey-row{
    grid-template-columns:76px 28px 1fr;
    gap:10px;
  }

  .journey-year{
    font-size:13px;
  }
}

/* Journey clean layout */
.timeline{
    max-width:1100px !important;
    margin:80px auto !important;
    padding:0 !important;
    border:none !important;
    background:transparent !important;
    box-shadow:none !important;
}

.journey-vertical{
    max-width:760px !important;
    margin-right:auto !important;
    margin-left:0 !important;
}

.journey-vertical::before{
    right:115px !important;
}

.journey-row{
    margin-bottom:28px !important;
}

.journey-card{
    border:none !important;
    background:transparent !important;
    box-shadow:none !important;
    padding:10px 0 !important;
}

.journey-card h3{
    font-size:38px;
    font-weight:800;
    margin-bottom:6px;
}

.journey-card p{
    font-size:22px;
    color:#666;
}

.journey-year{
    font-size:30px;
    font-weight:800;
}

.journey-dot{
    width:18px !important;
    height:18px !important;
}

@media(max-width:900px){

    .journey-card h3{
        font-size:24px;
    }

    .journey-card p{
        font-size:16px;
    }

    .journey-year{
        font-size:18px;
    }
}

/* move journey section to right */
.timeline{
    max-width:1100px !important;
}

.journey-vertical{
    width:520px !important;
    margin-right:120px !important;
    margin-left:auto !important;
}

.timeline h2{
    text-align:right !important;
    margin-right:120px !important;
}

.timeline .label{
    text-align:right !important;
    margin-right:120px !important;
    display:block;
}

@media(max-width:900px){
    .journey-vertical{
        width:auto !important;
        margin-right:0 !important;
    }

    .timeline h2,
    .timeline .label{
        margin-right:0 !important;
    }
}

.project-thumb{
  height:170px;
  border-radius:18px;
  margin-bottom:22px;
  background:linear-gradient(135deg,#f2f2f2,#e8e8e8);
  background-size:cover;
  background-position:center;
  border:1px solid #e5e5e5;
}

.portfolio .dark .project-thumb{
  background:linear-gradient(135deg,#111,#333);
  border-color:#222;
}

/* Modern selected work cards */
.portfolio{
  display:grid !important;
  grid-template-columns:repeat(2,1fr) !important;
  gap:24px !important;
}

.portfolio a{
  min-height:320px !important;
  border-radius:30px !important;
  padding:30px !important;
  background:#fff !important;
  border:1px solid #e6e6e6 !important;
  box-shadow:0 18px 45px rgba(0,0,0,.055) !important;
  position:relative !important;
  overflow:hidden !important;
}

.portfolio a::before{
  content:"";
  position:absolute;
  inset:0;
  background:radial-gradient(circle at top left, rgba(0,0,0,.06), transparent 38%);
  pointer-events:none;
}

.portfolio a b{
  font-size:14px !important;
  width:46px;
  height:46px;
  border-radius:50%;
  background:#111;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  margin-bottom:55px !important;
  opacity:1 !important;
}

.portfolio a h3{
  font-size:30px !important;
  margin-bottom:12px !important;
  position:relative;
  z-index:2;
}

.portfolio a p{
  color:#666 !important;
  max-width:360px;
  position:relative;
  z-index:2;
}

.portfolio a::after{
  content:"عرض المشروع";
  position:absolute;
  bottom:28px;
  right:30px;
  font-weight:700;
  color:#111;
}

.portfolio .dark{
  background:#111 !important;
  color:#fff !important;
  border-color:#111 !important;
}

.portfolio .dark::before{
  background:radial-gradient(circle at top left, rgba(255,255,255,.12), transparent 38%);
}

.portfolio .dark b{
  background:#fff;
  color:#111;
}

.portfolio .dark p{
  color:#cfcfcf !important;
}

.portfolio .dark::after{
  color:#fff;
}

.portfolio a:hover{
  transform:translateY(-8px) !important;
  box-shadow:0 28px 70px rgba(0,0,0,.12) !important;
}

@media(max-width:900px){
  .portfolio{
    grid-template-columns:1fr !important;
  }
}


/* AMJD_WORK_REAL_START */
#work.work-new{
  width:min(980px, calc(100% - 32px));
  margin:90px auto;
  padding:0;
  direction:rtl;
}

#work.work-new .work-head{
  text-align:right;
  margin-bottom:26px;
}

#work.work-new .work-head h2{
  margin:6px 0 10px;
  font-size:clamp(34px, 5vw, 58px);
  line-height:1.05;
  letter-spacing:-1.5px;
}

#work.work-new .work-head p{
  max-width:620px;
  margin:0;
  color:rgba(0,0,0,.52);
  line-height:1.9;
  font-size:15px;
}

#work.work-new .work-cards{
  display:grid !important;
  grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
  gap:22px !important;
}

#work.work-new .work-card{
  position:relative !important;
  display:block !important;
  min-height:390px !important;
  overflow:hidden !important;
  border-radius:28px !important;
  background:#111 !important;
  text-decoration:none !important;
  color:#fff !important;
  box-shadow:0 28px 80px rgba(0,0,0,.14) !important;
  isolation:isolate !important;
  transition:transform .25s ease, box-shadow .25s ease !important;
}

#work.work-new .work-card:hover{
  transform:translateY(-7px) !important;
  box-shadow:0 38px 95px rgba(0,0,0,.20) !important;
}

#work.work-new .work-image{
  position:absolute !important;
  inset:0 !important;
  height:100% !important;
  margin:0 !important;
  border-radius:0 !important;
  overflow:hidden !important;
  background:#111 !important;
}

#work.work-new .project-thumb{
  width:100% !important;
  height:100% !important;
  min-height:100% !important;
  border-radius:0 !important;
  background-size:cover !important;
  background-position:center !important;
  transform:scale(1.04) !important;
  transition:transform .4s ease !important;
}

#work.work-new .work-card:hover .project-thumb{
  transform:scale(1.10) !important;
}

#work.work-new .work-card::before{
  content:"" !important;
  position:absolute !important;
  inset:0 !important;
  z-index:1 !important;
  background:
    linear-gradient(to top, rgba(0,0,0,.82), rgba(0,0,0,.38) 45%, rgba(0,0,0,.10)),
    radial-gradient(circle at 85% 18%, rgba(255,255,255,.18), transparent 28%) !important;
}

#work.work-new .work-number{
  position:absolute !important;
  top:20px !important;
  right:20px !important;
  z-index:3 !important;
  width:44px !important;
  height:44px !important;
  display:grid !important;
  place-items:center !important;
  border-radius:50% !important;
  background:#fff !important;
  color:#000 !important;
  font-size:13px !important;
  font-weight:900 !important;
  box-shadow:0 14px 35px rgba(0,0,0,.22) !important;
}

#work.work-new .work-content{
  position:absolute !important;
  right:24px !important;
  left:24px !important;
  bottom:24px !important;
  z-index:2 !important;
  padding:0 !important;
  text-align:right !important;
}

#work.work-new .work-type{
  display:inline-flex !important;
  margin-bottom:12px !important;
  padding:8px 13px !important;
  border-radius:999px !important;
  background:rgba(255,255,255,.18) !important;
  border:1px solid rgba(255,255,255,.28) !important;
  color:#fff !important;
  backdrop-filter:blur(12px) !important;
  font-size:12px !important;
  font-weight:700 !important;
}

#work.work-new .work-card h3{
  margin:0 0 8px !important;
  font-size:clamp(26px, 3vw, 38px) !important;
  line-height:1.15 !important;
  color:#fff !important;
}

#work.work-new .work-card p{
  margin:0 0 18px !important;
  max-width:420px !important;
  line-height:1.8 !important;
  color:rgba(255,255,255,.82) !important;
  font-size:14px !important;
}

#work.work-new .work-link{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  padding:11px 17px !important;
  border-radius:999px !important;
  background:#fff !important;
  color:#000 !important;
  font-size:13px !important;
  font-weight:900 !important;
}

@media(max-width:760px){
  #work.work-new{
    width:calc(100% - 22px);
    margin:60px auto;
  }

  #work.work-new .work-cards{
    grid-template-columns:1fr !important;
  }

  #work.work-new .work-card{
    min-height:360px !important;
    border-radius:26px !important;
  }
}
/* AMJD_WORK_REAL_END */


/* AMJD_ANIMATION_START */

/* حركة عامة ناعمة */
html{
  scroll-behavior:smooth;
}

body{
  overflow-x:hidden;
}

/* الهيدر */
header{
  animation:amjdHeaderDown .75s cubic-bezier(.2,.9,.2,1) both;
}

@keyframes amjdHeaderDown{
  from{
    opacity:0;
    transform:translateY(-18px);
  }
  to{
    opacity:1;
    transform:translateY(0);
  }
}

/* العناصر تظهر مع التمرير */
.amjd-animate{
  opacity:0;
  transform:translateY(28px) scale(.985);
  filter:blur(8px);
  transition:
    opacity .85s cubic-bezier(.2,.9,.2,1),
    transform .85s cubic-bezier(.2,.9,.2,1),
    filter .85s cubic-bezier(.2,.9,.2,1);
  transition-delay:var(--amjd-delay, 0ms);
  will-change:opacity, transform, filter;
}

.amjd-animate.is-visible{
  opacity:1;
  transform:translateY(0) scale(1);
  filter:blur(0);
}

/* دخول خاص للهيرو */
.hero h1{
  animation:amjdTitleIn .95s cubic-bezier(.2,.9,.2,1) .15s both;
}

.hero p{
  animation:amjdFadeUp .9s cubic-bezier(.2,.9,.2,1) .28s both;
}

.hero small{
  animation:amjdFadeUp .9s cubic-bezier(.2,.9,.2,1) .40s both;
}

.hero .buttons{
  animation:amjdFadeUp .9s cubic-bezier(.2,.9,.2,1) .52s both;
}

.logo-box,
.about-box{
  animation:amjdSoftZoom .95s cubic-bezier(.2,.9,.2,1) .25s both;
}

@keyframes amjdTitleIn{
  from{
    opacity:0;
    transform:translateY(28px);
    filter:blur(10px);
  }
  to{
    opacity:1;
    transform:translateY(0);
    filter:blur(0);
  }
}

@keyframes amjdFadeUp{
  from{
    opacity:0;
    transform:translateY(18px);
  }
  to{
    opacity:1;
    transform:translateY(0);
  }
}

@keyframes amjdSoftZoom{
  from{
    opacity:0;
    transform:scale(.94) translateY(18px);
    filter:blur(8px);
  }
  to{
    opacity:1;
    transform:scale(1) translateY(0);
    filter:blur(0);
  }
}

/* الكروت والأزرار */
.grid > *,
.tools > *,
.about-tags > *,
.journey-row,
.work-card,
.portfolio > a,
.contact > a{
  transition:
    transform .28s ease,
    box-shadow .28s ease,
    border-color .28s ease,
    background .28s ease;
}

.grid > *:hover,
.tools > *:hover,
.about-tags > *:hover,
.journey-row:hover,
.contact > a:hover{
  transform:translateY(-5px);
}

/* الأعمال */
.work-card,
.portfolio > a{
  transform-style:preserve-3d;
}

.work-card:hover,
.portfolio > a:hover{
  transform:translateY(-8px) scale(1.01);
}

/* الصورة داخل الأعمال تتحرك شوي */
.project-thumb{
  transition:transform .45s ease, filter .45s ease !important;
}

.work-card:hover .project-thumb,
.portfolio > a:hover .project-thumb{
  transform:scale(1.08) !important;
  filter:saturate(1.08) contrast(1.04);
}

/* زر دخول الموقع */
#intro .intro-card{
  animation:amjdIntroCard .9s cubic-bezier(.2,.9,.2,1) both;
}

#intro button{
  transition:transform .25s ease, box-shadow .25s ease, background .25s ease;
}

#intro button:hover{
  transform:translateY(-3px) scale(1.03);
  box-shadow:0 18px 45px rgba(0,0,0,.18);
}

@keyframes amjdIntroCard{
  from{
    opacity:0;
    transform:translateY(18px) scale(.96);
    filter:blur(10px);
  }
  to{
    opacity:1;
    transform:translateY(0) scale(1);
    filter:blur(0);
  }
}

/* لمعة خفيفة على أزرار الموقع */
.buttons a,
.work-link,
.contact a{
  position:relative;
  overflow:hidden;
}

.buttons a::after,
.work-link::after,
.contact a::after{
  content:"";
  position:absolute;
  inset:-40% auto -40% -70%;
  width:45%;
  background:linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent);
  transform:skewX(-18deg);
  transition:left .7s ease;
  pointer-events:none;
}

.buttons a:hover::after,
.work-link:hover::after,
.contact a:hover::after{
  left:125%;
}

/* احترام إعدادات تقليل الحركة */
@media (prefers-reduced-motion: reduce){
  *,
  *::before,
  *::after{
    animation:none !important;
    transition:none !important;
    scroll-behavior:auto !important;
  }

  .amjd-animate{
    opacity:1 !important;
    transform:none !important;
    filter:none !important;
  }
}

/* AMJD_ANIMATION_END */
