/* ================================================================
   style.css — أيمن الفرع · مصور ومونتير سينمائي
   النسخة: 4.0 | تنظيم منفصل + Responsive كامل
   ================================================================ */

/* ----------------------------------------------------------------
   0. متغيرات CSS الأساسية
   ---------------------------------------------------------------- */
:root {
  --bg: #090A0D;
  --card-bg: #121318;
  --surface-subtle: #171821;
  --grid-line: rgba(255, 255, 255, 0.04);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(253, 185, 39, 0.5);

  --purple-aura: rgba(85, 37, 131, 0.45);
  --fire-aura: rgba(253, 185, 39, 0.25);
  --gold: #FDB927;

  --text-white: #FFFFFF;
  --text-body: #C0C4D0;
  --text-muted: #7E8394;
  --text-ghost: rgba(255, 255, 255, 0.035);

  --f-display: "Readex Pro", system-ui, sans-serif;
  --f-body: "IBM Plex Sans Arabic", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", monospace;
  --f-hand: "Alex Brush", cursive;
}

/* ----------------------------------------------------------------
   1. Base Reset
   ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
/* إصلاح الموبايل: الهالات الضوئية (.glow-aura بعرض 750px) كانت توسّع عرض الصفحة على الشاشات الصغيرة
   لأن overflow-x: hidden على body وحده لا تلتزم به متصفحات الموبايل. clip يقص الجزء الزائد فقط
   دون إنشاء حاوية تمرير جديدة، فلا يتغير شكل الهالات ولا سلوك التمرير أو الأنيميشن. */
html { overflow-x: clip; }

body {
  background-color: var(--bg);
  color: var(--text-white);
  font-family: var(--f-body);
  overflow-x: hidden;
  position: relative;
  line-height: 1.7;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ----------------------------------------------------------------
   2. شبكة الخطوط العمودية الهندسية
   ---------------------------------------------------------------- */
.vertical-grid {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 20px;
}
.grid-col-line {
  width: 1px;
  height: 100%;
  background: var(--grid-line);
}

/* ----------------------------------------------------------------
   3. الهالات الضوئية السينمائية
   ---------------------------------------------------------------- */
.glow-aura {
  position: absolute;
  width: 750px;
  height: 750px;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.75;
}
.glow-hero-right {
  top: -200px;
  right: -250px;
  background: radial-gradient(circle, var(--fire-aura) 0%, transparent 70%);
}
.glow-hero-left {
  top: 150px;
  left: -200px;
  background: radial-gradient(circle, var(--purple-aura) 0%, transparent 70%);
}
.glow-video-center {
  top: 900px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(85, 37, 131, 0.35) 0%, transparent 75%);
}

/* ----------------------------------------------------------------
   4. تأثيرات Reveal-up عند التمرير
   ---------------------------------------------------------------- */
.reveal-up {
  opacity: 0;
  transform: translateY(45px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ----------------------------------------------------------------
   5. الحاوية العامة .wrap
   ---------------------------------------------------------------- */
.wrap {
  max-width: 1140px;
  margin-inline: auto;
  padding-inline: 24px;
  position: relative;
  z-index: 2;
}

/* ----------------------------------------------------------------
   6. شريط التنقل العائم (Floating Pill Navbar)
   ---------------------------------------------------------------- */
.nav-holder {
  position: fixed;
  top: 24px;
  left: 0;
  right: 0;
  z-index: 999;
  display: flex;
  justify-content: center;
  pointer-events: none;
  padding-inline: 16px;
}
.nav-capsule {
  pointer-events: auto;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px;
  background: rgba(15, 16, 21, 0.9);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 6px 8px;
  border-radius: 999px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
  max-width: 100%;
}
.nav-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  padding: 8px 14px;
  border-radius: 999px;
  transition: all 0.25s ease;
  font-family: var(--f-display);
  white-space: nowrap;
}
.nav-btn:hover { color: var(--text-white); }
.nav-btn.active {
  background: #FFFFFF;
  color: #090A0D;
  font-weight: 600;
}
.cta-hire-pill {
  background: var(--gold);
  color: #090A0D;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.88rem;
  margin-inline-start: 4px;
  transition: transform 0.2s, background 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.cta-hire-pill:hover {
  background: #FFFFFF;
  transform: scale(1.03);
}

/* ----------------------------------------------------------------
   7. قسم الهيرو (Hero Section)
   ---------------------------------------------------------------- */
section.hero-section {
  min-height: 94vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  padding-top: 130px;
  padding-bottom: 50px;
  overflow: hidden;
}
.hero-watermark-text {
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--f-display);
  font-size: clamp(5rem, 21vw, 22rem);
  font-weight: 900;
  color: var(--text-ghost);
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
  z-index: 1;
  letter-spacing: -0.04em;
}
.hero-person-stage {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  margin-inline: auto;
  width: min(100%, 780px);
  height: 90%;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  pointer-events: none;
}
.person-ghost-shadow {
  position: absolute;
  bottom: 0;
  width: 90%;
  height: 92%;
  /* --hero-image تُضبط من لوحة التحكم (hero.image)؛ القيمة الاحتياطية هي الصورة الأصلية */
  background: var(--hero-image, url('https://images.unsplash.com/photo-1542038784456-1ea8e935640e?auto=format&fit=crop&w=1000&q=80')) no-repeat center bottom / contain;
  filter: blur(20px) brightness(0.35) opacity(0.55);
  transform: scale(1.05) translateX(-40px);
}
.person-visual-cutout {
  position: relative;
  width: 90%;
  height: 94%;
  background: radial-gradient(circle at 50% 25%, transparent 35%, #090A0D 96%),
              var(--hero-image, url('https://images.unsplash.com/photo-1542038784456-1ea8e935640e?auto=format&fit=crop&w=1000&q=80')) no-repeat center bottom / contain;
  z-index: 3;
}
.hero-layout-grid {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: flex-end;
  gap: 36px;
  width: 100%;
}
.hero-title-main {
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 800;
  line-height: 1.18;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.hero-desc-p {
  font-size: 1.05rem;
  color: var(--text-body);
  margin-bottom: 24px;
  max-width: 48ch;
}
.hero-action-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.btn-action-dark {
  background: #14151C;
  color: #FFF;
  border: 1px solid var(--border-subtle);
  padding: 12px 26px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
}
.btn-action-dark:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}
.signature-area {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-bottom: 10px;
}
.personal-signature {
  font-family: var(--f-hand);
  font-size: 3.5rem;
  color: rgba(255, 255, 255, 0.7);
  direction: ltr;
  line-height: 1;
  margin-bottom: 6px;
  transform: rotate(-3deg);
}
.quote-mark {
  font-size: 1.05rem;
  color: #D6D9E3;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ----------------------------------------------------------------
   8. سيكشن الفيديو التعريفي
   ---------------------------------------------------------------- */
section.intro-video-section {
  padding-block: 80px 70px;
  position: relative;
}
.video-header-block {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.video-header-block h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  font-weight: 700;
}
.video-header-block p {
  color: var(--text-muted);
  font-size: 1rem;
}
.intro-video-container {
  max-width: 960px;
  margin-inline: auto;
  position: relative;
}
.video-frame-box {
  aspect-ratio: 16 / 9;
  background: linear-gradient(145deg, #181224 0%, #0C0D12 100%);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.8), 0 0 40px rgba(85, 37, 131, 0.2);
}
.vf-corner {
  position: absolute;
  width: 22px;
  height: 22px;
  border-color: var(--gold);
  border-style: solid;
  pointer-events: none;
  z-index: 3;
}
.vf-top-right    { top: 20px; right: 20px; border-width: 3px 3px 0 0; }
.vf-top-left     { top: 20px; left: 20px;  border-width: 3px 0 0 3px; }
.vf-bottom-right { bottom: 20px; right: 20px; border-width: 0 3px 3px 0; }
.vf-bottom-left  { bottom: 20px; left: 20px;  border-width: 0 0 3px 3px; }
.rec-indicator {
  position: absolute;
  top: 24px;
  right: 56px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: #FFF;
  z-index: 3;
  background: rgba(0, 0, 0, 0.5);
  padding: 4px 10px;
  border-radius: 6px;
}
.rec-red-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #E5484D;
  animation: recBlink 1.2s infinite;
  flex-shrink: 0;
}
@keyframes recBlink { 50% { opacity: 0.2; } }
.play-btn-large {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--gold);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 4;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s;
  box-shadow: 0 0 40px rgba(253, 185, 39, 0.45);
}
.play-btn-large:hover {
  transform: scale(1.1);
  box-shadow: 0 0 55px rgba(253, 185, 39, 0.7);
}
.play-btn-large::after {
  content: "";
  border-inline-start: 22px solid #090A0D;
  border-block: 13px solid transparent;
  margin-inline-start: 5px;
  transform: scaleX(-1);
}
.play-btn-large::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  animation: pulsePlay 2.4s infinite ease-out;
}
@keyframes pulsePlay {
  from { transform: scale(0.9); opacity: 0.8; }
  to   { transform: scale(1.6); opacity: 0; }
}
.video-bottom-bar {
  position: absolute;
  bottom: 20px;
  inset-inline: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--f-mono);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
  z-index: 3;
  flex-wrap: wrap;
  gap: 8px;
}
.video-subtitles-pill {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border-subtle);
  padding: 4px 12px;
  border-radius: 99px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ----------------------------------------------------------------
   9. قسم المشاريع والأعمال
   ---------------------------------------------------------------- */
section.projects-section {
  padding-block: 90px;
  position: relative;
}
.section-head {
  margin-bottom: 44px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.section-head .tag-eyebrow {
  font-family: var(--f-mono);
  font-size: 0.82rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.section-head h2 {
  font-size: clamp(1.8rem, 3.8vw, 2.7rem);
  font-weight: 700;
}
.projects-grid-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.project-card-item {
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s ease, border-color 0.35s ease;
}
.project-card-item:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.22);
}
.project-mockup-screen {
  aspect-ratio: 16 / 10;
  background: #0E0F14;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 16px;
}
.project-mockup-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.project-card-item:hover .project-mockup-screen img {
  transform: scale(1.05);
}
.floating-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(18, 19, 24, 0.85);
  border: 1px solid var(--border-subtle);
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-family: var(--f-mono);
  color: #E0E2EC;
}
.project-info-row {
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-subtle);
  background: #111217;
  gap: 12px;
  flex-wrap: wrap;
}
.project-title-text {
  font-size: 1.05rem;
  font-weight: 700;
}
.project-link-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #FFF;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.project-link-btn:hover {
  background: var(--gold);
  color: #000;
  border-color: var(--gold);
}

/* ----------------------------------------------------------------
   10. قسم المهارات والخدمات الإنتاجية
   ---------------------------------------------------------------- */
section.skills-section {
  padding-block: 90px;
  position: relative;
}
.skills-interactive-list {
  display: flex;
  flex-direction: column;
}
.skill-interactive-item {
  display: grid;
  grid-template-columns: 360px 1fr;
  align-items: center;
  padding-block: 36px;
  border-bottom: 1px solid var(--border-subtle);
  cursor: default;
  transition: background 0.3s ease;
}
.skill-interactive-item:first-child {
  border-top: 1px solid var(--border-subtle);
}
.skill-title-col {
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.skill-name-txt {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 700;
  display: inline-block;
  position: relative;
  color: var(--text-white);
  background-image: linear-gradient(
    90deg,
    var(--text-white) 0%,
    var(--gold)        40%,
    #fff8e0            55%,
    var(--gold)        70%,
    var(--text-white)  100%
  );
  background-size: 220% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition:
    background-position 0.55s cubic-bezier(0.16, 1, 0.3, 1),
    transform           0.4s  cubic-bezier(0.16, 1, 0.3, 1),
    letter-spacing      0.4s  cubic-bezier(0.16, 1, 0.3, 1);
}
.skill-name-txt::after {
  content: '';
  position: absolute;
  bottom: -4px;
  right: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), #fff8e0);
  border-radius: 2px;
  transition: width 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.skill-interactive-item:hover .skill-name-txt {
  background-position: 0% 0;
  transform: translateX(-10px) scale(1.04);
  letter-spacing: 0.01em;
}
.skill-interactive-item:hover .skill-name-txt::after {
  width: 100%;
}
.skill-num-tag {
  font-family: var(--f-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color 0.3s ease;
  flex-shrink: 0;
}
.skill-interactive-item:hover .skill-num-tag {
  color: rgba(253, 185, 39, 0.6);
}
.skill-desc-txt {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 58ch;
  transition: color 0.35s ease;
}
.skill-interactive-item:hover .skill-desc-txt {
  color: var(--text-body);
}

/* ----------------------------------------------------------------
   11. معرض الأعمال المائل (Tilted Gallery)
   ---------------------------------------------------------------- */
section.tilted-gallery-section {
  padding-block: 100px;
  position: relative;
  overflow: hidden;
}
.gallery-bg-watermark {
  position: absolute;
  top: 10px;
  right: 4%;
  font-family: var(--f-display);
  font-size: clamp(4rem, 16vw, 15rem);
  font-weight: 900;
  color: var(--text-ghost);
  line-height: 1;
  pointer-events: none;
  z-index: 0;
}
.tilted-gallery-container {
  width: 150%;
  margin-inline-start: -25%;
  transform: rotate(-3.5deg);
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-block: 20px;
}
.tilted-gallery-strip {
  display: flex;
  gap: 22px;
}
.gallery-thumb-box {
  flex: 0 0 300px;
  height: 200px;
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  background: #15161D;
}
.gallery-thumb-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-thumb-box:hover img {
  transform: scale(1.06);
}

/* ----------------------------------------------------------------
   12. أكورديون الأسئلة الشائعة (FAQ)
   ---------------------------------------------------------------- */
section.faq-section {
  padding-block: 90px 120px;
  position: relative;
}
.faq-accordion-wrap {
  max-width: 880px;
  margin-inline: auto;
  border-top: 1px solid var(--border-subtle);
  margin-top: 40px;
}
.faq-item-row {
  border-bottom: 1px solid var(--border-subtle);
}
.faq-trigger-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: 24px;
  background: none;
  border: none;
  color: #FFF;
  text-align: right;
  cursor: pointer;
  font-family: var(--f-display);
  font-size: 1.15rem;
  font-weight: 600;
  gap: 16px;
}
.faq-left-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  text-align: start;
}
.faq-index {
  font-family: var(--f-mono);
  font-size: 0.88rem;
  color: var(--text-muted);
  flex-shrink: 0;
}
.faq-plus-icon {
  font-size: 1.4rem;
  color: var(--text-muted);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
}
.faq-answer-drawer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s ease;
  color: var(--text-body);
  font-size: 1rem;
  line-height: 1.85;
  padding-inline-start: 44px;
}
.faq-item-row.open .faq-answer-drawer {
  max-height: 300px;
  padding-bottom: 26px;
}
.faq-item-row.open .faq-plus-icon {
  transform: rotate(45deg);
  color: var(--gold);
}

/* ----------------------------------------------------------------
   13. قسم التواصل (Contact)
   ---------------------------------------------------------------- */
section.contact-section {
  padding-block: 90px 130px;
  position: relative;
  border-top: 1px solid var(--border-subtle);
}
.contact-layout-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 60px;
  align-items: start;
}
.contact-quick-links h3 {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.direct-link-anchor {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 1.1rem;
  color: #FFF;
  text-decoration: underline;
  margin-bottom: 12px;
  word-break: break-all;
}
.social-btn-list {
  display: flex;
  gap: 12px;
  margin-top: 26px;
  flex-wrap: wrap;
}
.social-circ-btn {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #16171E;
  border: 1px solid var(--border-subtle);
  display: grid;
  place-items: center;
  color: #FFF;
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.25s ease;
}
.social-circ-btn:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
}
.contact-form-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  padding: 32px;
  border-radius: 20px;
}
.form-ctrl {
  width: 100%;
  background: #0E0F14;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 16px;
  color: #FFF;
  font-family: var(--f-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.25s;
}
.form-ctrl:focus {
  border-color: rgba(255, 255, 255, 0.4);
}
.btn-submit-action {
  background: var(--gold);
  color: #090A0D;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1rem;
  padding: 16px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: transform 0.25s, background 0.25s;
  width: 100%;
}
.btn-submit-action:hover {
  background: #FFFFFF;
  transform: translateY(-2px);
}

/* حقل الحماية من البرامج الآلية (Honeypot): مخفي عن الزائر وقارئات الشاشة */
.form-hp {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* رسالة نتيجة إرسال النموذج */
.form-status {
  display: none;
  font-size: 0.95rem;
  line-height: 1.7;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: #0E0F14;
}
.form-status.is-success { display: block; color: var(--gold); border-color: var(--border-focus); }
.form-status.is-error   { display: block; color: #F2777B; border-color: rgba(229, 72, 77, 0.45); }
.btn-submit-action[disabled] { opacity: 0.65; cursor: wait; transform: none; }

/* ----------------------------------------------------------------
   13.1 مشغّل الفيديو التعريفي (يُحمَّل الفيديو فقط عند الضغط على زر التشغيل)
   ---------------------------------------------------------------- */
.video-frame-box.has-thumbnail {
  background: linear-gradient(rgba(9, 10, 13, 0.35), rgba(9, 10, 13, 0.55)),
              var(--video-thumb) center / cover no-repeat;
}
.intro-video-player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  z-index: 5;
  background: #000;
}
.video-frame-box.is-playing .play-btn-large,
.video-frame-box.is-playing .video-bottom-bar,
.video-frame-box.is-playing .rec-indicator { display: none; }

.video-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(5, 6, 8, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.video-lightbox-inner {
  position: relative;
  width: min(100%, 1100px);
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.8);
}
.video-lightbox-close {
  position: absolute;
  top: 16px;
  inset-inline-end: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: #14151C;
  color: #FFF;
  font-size: 1.4rem;
  cursor: pointer;
  z-index: 2001;
}
.video-lightbox-close:hover { border-color: var(--gold); }

/* ----------------------------------------------------------------
   14. الفوتر
   ---------------------------------------------------------------- */
footer.site-bottom-footer {
  padding-block: 40px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.88rem;
  border-top: 1px solid var(--border-subtle);
}

/* ================================================================
   15. Media Queries — Responsive Design الكامل
   ================================================================ */

/* لابتوب وشاشات متوسطة (<=1100px) */
@media (max-width: 1100px) {
  .nav-btn { font-size: 0.82rem; padding: 7px 11px; }
  .skill-interactive-item { grid-template-columns: 280px 1fr; }
  .gallery-thumb-box { flex: 0 0 260px; height: 180px; }
}

/* تابلت (<=900px) */
@media (max-width: 900px) {
  .nav-btn:not(.cta-hire-pill) { font-size: 0.78rem; padding: 6px 10px; }
  .hero-layout-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-section { justify-content: flex-start; padding-top: 110px; min-height: auto; padding-bottom: 40px; }
  .hero-person-stage { width: 100%; height: 55%; opacity: 0.4; }
  .personal-signature { font-size: 2.8rem; }
  .projects-grid-2col { grid-template-columns: 1fr; gap: 20px; }
  .skill-interactive-item { grid-template-columns: 1fr; gap: 10px; padding-block: 28px; }
  .skill-interactive-item:hover .skill-name-txt { transform: none; }
  .contact-layout-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* موبايل كبير (<=680px) */
@media (max-width: 680px) {
  .nav-holder { top: 12px; padding-inline: 12px; }
  .nav-capsule { padding: 5px 6px; border-radius: 20px; }
  .nav-btn:is([href="#video-intro"], [href="#gallery"]) { display: none; }
  .nav-btn { font-size: 0.75rem; padding: 6px 9px; }
  .cta-hire-pill { font-size: 0.78rem; padding: 6px 12px; }

  .hero-section { padding-top: 90px; padding-bottom: 32px; }
  .hero-person-stage { height: 40%; opacity: 0.3; }
  .hero-desc-p { font-size: 0.95rem; }
  .btn-action-dark { padding: 10px 20px; font-size: 0.88rem; }

  section.intro-video-section { padding-block: 60px 50px; }
  .rec-indicator { right: 36px; font-size: 0.72rem; }

  section.projects-section { padding-block: 70px; }
  .project-info-row { flex-direction: column; align-items: flex-start; }
  .project-link-btn { width: 100%; justify-content: center; }

  section.skills-section { padding-block: 70px; }
  .skill-name-txt { font-size: 1.5rem; }
  .skill-desc-txt { font-size: 0.95rem; }
  .skill-interactive-item { padding-block: 24px; }

  section.tilted-gallery-section { padding-block: 70px; }
  .tilted-gallery-container { width: 180%; margin-inline-start: -40%; }
  .gallery-thumb-box { flex: 0 0 220px; height: 150px; }

  section.faq-section { padding-block: 70px 90px; }
  .faq-trigger-btn { font-size: 1rem; padding-block: 20px; }
  .faq-answer-drawer { padding-inline-start: 24px; font-size: 0.95rem; }

  section.contact-section { padding-block: 70px 100px; }
  .contact-form-card { padding: 24px; }
  .direct-link-anchor { font-size: 1rem; }
  .wrap { padding-inline: 16px; }
}

/* موبايل صغير (<=420px) */
@media (max-width: 420px) {
  .nav-btn:is([href="#projects"], [href="#skills"]) { display: none; }
  .nav-capsule { border-radius: 16px; }
  .nav-btn { font-size: 0.72rem; padding: 5px 8px; }
  .hero-title-main { font-size: 1.9rem; }
  .personal-signature { font-size: 2.2rem; }
  .gallery-thumb-box { flex: 0 0 180px; height: 130px; }
  .skill-name-txt { font-size: 1.3rem; }
  .wrap { padding-inline: 14px; }
}

/* ================================================================
   16. إمكانية الوصول — prefers-reduced-motion
   ================================================================ */
@media (prefers-reduced-motion: reduce) {
  .reveal-up { transition: none; opacity: 1; transform: none; }
  .skill-name-txt {
    transition: color 0.2s ease;
    background-image: none;
    -webkit-text-fill-color: unset;
    color: var(--text-white);
  }
  .skill-name-txt::after { display: none; }
  .skill-interactive-item:hover .skill-name-txt {
    color: var(--gold);
    transform: none;
    letter-spacing: normal;
  }
  .play-btn-large::before { animation: none; }
  .rec-red-dot { animation: none; }
  .tilted-gallery-strip { transform: none !important; }
}

/* ================================================================
   17. معالجة صورة Hero (من لوحة التحكم: إعدادات Hero ← معالجة الصورة)
   المتغيرات --hero-fx-* تُحسب في App\Support\HeroImageTreatment وتُطبَّق على أي صورة،
   فلا يلزم تعديل CSS عند تغيير الصورة. data-hero-fx="off" = العرض الأصلي تمامًا.
   ================================================================ */
html:not([data-hero-fx="off"]) .hero-person-stage {
  translate: var(--hero-fx-shift, 0) 0;
}
/* إضاءة ذهبية محيطية خافتة خلف الصورة */
html:not([data-hero-fx="off"]) .hero-person-stage::before {
  content: "";
  position: absolute;
  inset-inline: 12%;
  bottom: 0;
  height: 70%;
  background: radial-gradient(ellipse 60% 55% at 50% 75%, color-mix(in srgb, var(--gold) var(--hero-fx-glow, 15%), transparent) 0%, transparent 72%);
  filter: blur(40px);
  pointer-events: none;
}
/* الظل الضبابي خلف الصورة: يُخفَّت ويُمسح من أطرافه حتى لا يظهر كمستطيل فاتح */
html:not([data-hero-fx="off"]) .person-ghost-shadow {
  filter: blur(32px) brightness(0.28) saturate(0.6) opacity(0.5);
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 60%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 60%, #000 30%, transparent 75%);
}
/* الإطار يطابق أبعاد الصورة، فتتلاشى أطرافها الحقيقية في الخلفية بدل ظهور مستطيل منفصل */
html:not([data-hero-fx="off"]) .person-visual-cutout {
  width: auto;
  max-width: 90%;
  aspect-ratio: var(--hero-fx-ratio, 4 / 5);
  background: var(--hero-image) no-repeat center bottom / cover;
  filter: var(--hero-fx-filter, none);
  -webkit-mask-image:
    linear-gradient(to bottom, transparent 0, #000 var(--hero-fx-fade-top, 12%), #000 calc(100% - var(--hero-fx-fade-bottom, 35%)), transparent 100%),
    linear-gradient(to right, transparent 0, #000 var(--hero-fx-fade-x, 18%), #000 calc(100% - var(--hero-fx-fade-x, 18%)), transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to bottom, transparent 0, #000 var(--hero-fx-fade-top, 12%), #000 calc(100% - var(--hero-fx-fade-bottom, 35%)), transparent 100%),
    linear-gradient(to right, transparent 0, #000 var(--hero-fx-fade-x, 18%), #000 calc(100% - var(--hero-fx-fade-x, 18%)), transparent 100%);
  mask-composite: intersect;
}
/* لمسة ذهبية خفيفة (soft-light) لا تغيّر الألوان الطبيعية */
html:not([data-hero-fx="off"]) .person-visual-cutout::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, var(--gold) 0%, transparent 65%);
  mix-blend-mode: soft-light;
  opacity: var(--hero-fx-tint, 0.1);
  pointer-events: none;
}
/* تعتيم سينمائي تدريجي أسفل الصورة وحولها بلون خلفية الهوية */
html:not([data-hero-fx="off"]) .person-visual-cutout::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, color-mix(in srgb, var(--bg) var(--hero-fx-overlay, 60%), transparent) 0%, transparent 55%),
    radial-gradient(ellipse 80% 68% at 50% 38%, transparent 42%, color-mix(in srgb, var(--bg) var(--hero-fx-vignette, 55%), transparent) 100%);
  pointer-events: none;
}
@media (max-width: 900px) {
  html:not([data-hero-fx="off"]) .hero-person-stage { translate: none; }
}

/* ================================================================
   18. زر تسجيل الدخول (من لوحة التحكم: إعدادات التنقل ← زر تسجيل الدخول)
   ================================================================ */
.site-login-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-family: var(--f-display);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  color: var(--login-btn-fg, #FFFFFF);
  background: var(--login-btn-bg, #1A1B21);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  transition: transform 0.2s, filter 0.2s, border-color 0.2s;
}
.site-login-btn:hover { filter: brightness(1.18); transform: scale(1.03); }
.site-login-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.site-login-btn svg { width: 14px; height: 14px; flex-shrink: 0; }
.site-login-btn--rounded { border-radius: 10px; }
.site-login-btn--outline {
  background: transparent;
  border-color: var(--login-btn-fg, #FFFFFF);
}
.nav-capsule .site-login-btn--nav_end { margin-inline-start: 4px; }
.nav-capsule .site-login-btn--nav_start { margin-inline-end: 4px; }
.site-bottom-footer .site-login-btn { margin-top: 12px; font-size: 0.8rem; padding: 7px 14px; }
/* على الموبايل يبقى الرمز فقط حتى يبقى الشريط في سطر واحد (والنص متاح لقارئات الشاشة عبر aria-label) */
@media (max-width: 680px) {
  .nav-capsule .site-login-btn { padding: 6px 8px; }
  .nav-capsule .site-login-btn__label {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
}

/* ================================================================
   19. قائمة الموبايل — زر «القائمة» داخل شريط التنقل العائم
   ----------------------------------------------------------------
   على الشاشات الكبيرة يبقى الشريط كما هو (كل الروابط في سطر واحد).
   على الموبايل (<=680px) يبقى في السطر الأول: زر القائمة + واتساب + تسجيل الدخول،
   والروابط كلها تظهر تحتها داخل نفس الكبسولة عند فتح القائمة.
   زر القائمة والكلاس .js-menu يضيفهما main.js، فبدون JavaScript تبقى كل الروابط ظاهرة (تلتف لسطرين).
   هذا القسم يلغي قاعدتي إخفاء الروابط على الموبايل في القسم 15 (كانت تُخفي الأعمال/المهارات/المعرض/الفيديو).
   ================================================================ */
/* الشريط ثابت في مكانه أعلى الصفحة ولا يلحق الزائر أثناء التمرير
   (absolute بالنسبة لـ body بدل fixed بالنسبة للشاشة؛ نفس الموضع والمظهر في أعلى الصفحة). */
.nav-holder { position: absolute; }

.nav-menu-toggle { display: none; }
.nav-btn:focus-visible,
.cta-hire-pill:focus-visible,
.nav-menu-toggle:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

@media (max-width: 680px) {
  /* بدون JavaScript: لا يُخفى أي رابط (الكبسولة تلتف لسطرين بدل أن تختفي الروابط) */
  .nav-capsule:not(.js-menu) .nav-btn { display: flex; }

  .nav-capsule.js-menu {
    width: 100%;
    max-width: 480px;
    row-gap: 4px;
  }
  .nav-capsule.js-menu .nav-menu-toggle {
    order: 0;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-inline-end: auto;
    min-height: 40px;
    padding: 6px 14px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--text-white);
    font-family: var(--f-display);
    font-size: 0.82rem;
    line-height: 1;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.25s ease;
  }
  .nav-capsule.js-menu .nav-menu-toggle:hover,
  .nav-capsule.js-menu.is-open .nav-menu-toggle { background: rgba(255, 255, 255, 0.06); }
  .nav-capsule.js-menu .cta-hire-pill,
  .nav-capsule.js-menu .site-login-btn { order: 1; }
  .nav-capsule.js-menu .nav-btn { order: 3; display: none; }

  /* القائمة مفتوحة: الروابط صفوف كاملة العرض تحت خط فاصل رفيع */
  .nav-capsule.js-menu.is-open {
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-bottom: 8px;
  }
  .nav-capsule.js-menu.is-open::after {
    content: "";
    order: 2;
    flex: 0 0 calc(100% - 16px);
    height: 1px;
    margin: 4px 8px;
    background: var(--border-subtle);
  }
  .nav-capsule.js-menu.is-open .nav-btn {
    display: flex;
    flex: 0 0 100%;
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 0.95rem;
    animation: navMenuItemIn 0.28s ease both;
  }
}

/* أيقونة الهامبرغر تتحول إلى × عند الفتح */
.nav-menu-toggle__icon {
  position: relative;
  display: inline-block;
  width: 18px;
  height: 12px;
  flex-shrink: 0;
}
.nav-menu-toggle__icon span {
  position: absolute;
  inset-inline: 0;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: top 0.25s ease, transform 0.25s ease, opacity 0.2s ease;
}
.nav-menu-toggle__icon span:nth-child(1) { top: 0; }
.nav-menu-toggle__icon span:nth-child(2) { top: 5px; }
.nav-menu-toggle__icon span:nth-child(3) { top: 10px; }
.is-open .nav-menu-toggle__icon span:nth-child(1) { top: 5px; transform: rotate(45deg); }
.is-open .nav-menu-toggle__icon span:nth-child(2) { opacity: 0; }
.is-open .nav-menu-toggle__icon span:nth-child(3) { top: 5px; transform: rotate(-45deg); }

@keyframes navMenuItemIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .nav-capsule.js-menu.is-open .nav-btn { animation: none; }
  .nav-menu-toggle__icon span { transition: none; }
}

/* ================================================================
   20. Hero على التابلت والموبايل (<=900px) — نفس تكوين نسخة Desktop
   ----------------------------------------------------------------
   السبب: تحت 900px كانت مساحة الصورة تصبح width:100% وارتفاعها نسبة من ارتفاع القسم
   (55% ثم 40%)، فحجمها يتبع طول الشاشة لا عرضها، وتجلس أسفل القسم خلف النصوص بشفافية 0.3–0.4
   بعيدًا عن كلمة AYMAN (المثبتة عند top:15%)، فيضيع الفراغ الأسود والعلاقة بين الكلمة والصورة.
   (قواعد .hero-section في القسم 15 لا تُطبَّق أصلًا لأن section.hero-section أقوى منها.)

   الحل (للشاشات <=900px فقط، فلا يتغير Desktop): الكلمة ثم الصورة ثم النصوص في تدفق عمودي
   بتداخلات سالبة تحاكي Desktop:
   - أعلى الصورة يبدأ عند أعلى كلمة AYMAN، والكلمة أعرض من الصورة فيظهر طرفاها حولها.
   - النص يتداخل فقط مع الجزء السفلي المتلاشي من الصورة (~18% من ارتفاعها).
   - عرض الصورة سلس بـ clamp() (≈50% من العرض على 375px، ≈44% على 768px)، وكلمة AYMAN
     تكبر تدريجيًا بنفس الطريقة، فتبقى الصورة ≈55–58% من عرض الكلمة كما في Desktop (≈54%)
     وارتفاعها من نسبة الصورة الحقيقية (--hero-fx-ratio)، فيبقى فراغ أسود واضح حولها.
   ================================================================ */
@media (max-width: 900px) {
  section.hero-section {
    --hero-stage-w: clamp(170px, 38.4vw + 45px, 400px);
    justify-content: center;
    padding-top: clamp(96px, 8vw + 66px, 130px);
    padding-bottom: clamp(32px, 2.4vw + 23px, 50px);
  }

  .hero-watermark-text {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    align-self: center;
    flex: none;
    font-size: clamp(5rem, 19.8vw + 1rem, 13.5rem);
    margin-bottom: -1em; /* أعلى الصورة = أعلى الكلمة، كما في Desktop */
  }

  .hero-person-stage {
    position: relative;
    inset: auto;
    flex: none;
    align-self: center;
    width: var(--hero-stage-w);
    height: auto;
    margin-inline: auto;
    opacity: 1;
    /* النص يغطي الجزء السفلي المتلاشي من الصورة فقط */
    margin-bottom: calc(var(--hero-stage-w) * -0.18 / (var(--hero-fx-ratio, 4 / 5)));
  }

  section.hero-section .person-visual-cutout {
    width: 100%;
    max-width: none;
    height: auto;
    max-height: 62vh;
    aspect-ratio: var(--hero-fx-ratio, 4 / 5);
  }
}
