/* ============================================================
   حسين عباس فرهود — هوية بابل
   Lapis Lazuli • Bronze • Gold • Cuneiform Ornaments • RTL
   ============================================================ */

:root {
  --bg: #070d18;
  --bg-2: #0b1626;
  --bg-3: #0e1d33;
  --surface: rgba(16, 34, 58, 0.5);
  --lapis: #2f6db3;
  --lapis-deep: #123a66;
  --lapis-bright: #7db4ee;
  --bronze: #b08d57;
  --gold: #d8b56a;
  --gold-2: #f3e2b3;
  --gold-deep: #8f6f33;
  --clay: #c98a5e;
  --ink: #eef2f8;
  --muted: #9fb0c6;
  --line: rgba(176, 141, 87, 0.22);
  --line-strong: rgba(216, 181, 106, 0.5);
  --radius: 18px;
  --radius-lg: 26px;
  --shadow-gold: 0 18px 50px -18px rgba(216, 181, 106, 0.35);
  --shadow-lapis: 0 24px 70px -26px rgba(47, 109, 179, 0.55);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --font-head: 'Changa', 'Tajawal', 'Segoe UI', sans-serif;
  --font-body: 'Tajawal', 'Segoe UI', Tahoma, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background:
    radial-gradient(1200px 700px at 85% -10%, rgba(47, 109, 179, 0.14), transparent 60%),
    radial-gradient(900px 600px at -10% 30%, rgba(216, 181, 106, 0.07), transparent 60%),
    var(--bg);
  color: var(--ink);
  line-height: 1.8;
  overflow-x: clip;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(216, 181, 106, 0.4); color: #fff; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--lapis-deep), var(--gold));
  border-radius: 10px;
  border: 2px solid var(--bg);
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img, svg, canvas { display: block; }
button { font-family: inherit; cursor: pointer; background: none; border: none; color: inherit; }

.container { width: min(1180px, 92%); margin-inline: auto; }
section { scroll-margin-top: 90px; position: relative; }

/* ============ خلفيات عامة ============ */
.bg-noise {
  position: fixed;
  inset: 0;
  z-index: -2;
  opacity: 0.45;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0.75 0 0 0 0 0.8 0 0 0 0 0.95 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(110px);
  z-index: -1;
  pointer-events: none;
  will-change: transform;
}
.bg-orb--one {
  width: 520px; height: 520px;
  top: -160px; inset-inline-start: -140px;
  background: radial-gradient(circle, rgba(47, 109, 179, 0.22), transparent 65%);
}
.bg-orb--two {
  width: 600px; height: 600px;
  top: 42%; inset-inline-end: -220px;
  background: radial-gradient(circle, rgba(216, 181, 106, 0.13), transparent 65%);
}
.bg-orb--three {
  position: absolute;
  width: 480px; height: 480px;
  bottom: -180px; inset-inline-start: 18%;
  background: radial-gradient(circle, rgba(47, 109, 179, 0.2), transparent 65%);
}

/* ============ زخارف مشتركة ============ */
.istar { color: var(--gold); display: inline-flex; animation: spin-slow 22s linear infinite; }
@keyframes spin-slow { to { transform: rotate(360deg); } }

/* نمط طابوق بوابة عشتار */
.bricks {
  background-image:
    linear-gradient(rgba(125, 180, 238, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 180, 238, 0.14) 1px, transparent 1px);
  background-size: 58px 26px, 58px 26px;
  background-position: 0 0, 29px 13px;
}

/* ============ الأزرار ============ */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  overflow: hidden;
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out),
    border-color 0.45s var(--ease-out), background 0.45s var(--ease-out);
  will-change: transform;
}
.btn--lg { padding: 16px 38px; font-size: 1rem; }
.btn--small { padding: 10px 22px; font-size: 0.88rem; }

.btn--gold {
  background: linear-gradient(120deg, var(--gold-deep), var(--gold) 45%, var(--gold-2) 75%, var(--gold));
  background-size: 200% 100%;
  color: #14100a;
  box-shadow: var(--shadow-gold);
}
.btn--gold:hover {
  background-position: 100% 0;
  transform: translateY(-3px);
  box-shadow: 0 24px 60px -16px rgba(216, 181, 106, 0.55);
}
.btn--gold::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 45%;
  inset-inline-start: -60%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-20deg);
  transition: inset-inline-start 0.7s var(--ease-out);
}
.btn--gold:hover::after { inset-inline-start: 130%; }

.btn--ghost {
  border: 1px solid var(--line-strong);
  color: var(--gold-2);
  background: rgba(18, 58, 102, 0.35);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover {
  background: rgba(47, 109, 179, 0.4);
  border-color: var(--gold);
  transform: translateY(-3px);
}

/* ============ البطاقات الزجاجية ============ */
.glass {
  background: linear-gradient(155deg, rgba(27, 52, 86, 0.55), rgba(11, 22, 38, 0.65));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: relative;
  transition: border-color 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
.glass::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%),
    rgba(216, 181, 106, 0.4), transparent 45%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s var(--ease-out);
  pointer-events: none;
}
.glass:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-lapis), 0 0 0 1px rgba(216, 181, 106, 0.08);
}
.glass:hover::before { opacity: 1; }

/* ============ شاشة التحميل: بوابتان ============ */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 300;
  overflow: hidden;
  background: transparent;
}
.gate {
  position: absolute;
  top: 0; bottom: 0;
  width: 50.5%;
  background:
    linear-gradient(180deg, rgba(216, 181, 106, 0.08), transparent 30%),
    linear-gradient(135deg, #10345c, #0a1f3a 55%, #081628);
}
.gate--start {
  inset-inline-start: 0;
  border-inline-end: 1px solid rgba(216, 181, 106, 0.4);
}
.gate--end {
  inset-inline-end: 0;
  border-inline-start: 1px solid rgba(216, 181, 106, 0.4);
}
.gate::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(125, 180, 238, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 180, 238, 0.12) 1px, transparent 1px);
  background-size: 56px 26px, 56px 26px;
  background-position: 0 0, 28px 13px;
}
.gate::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 150px; height: 270px;
  transform: translateY(-50%);
  border: 2px solid rgba(216, 181, 106, 0.35);
  border-radius: 80px 80px 12px 12px;
}
.gate--start::after { inset-inline-end: -75px; }
.gate--end::after { inset-inline-start: -75px; }

.preloader__inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
}
.preloader__mark { color: var(--gold); animation: pulse-mark 1.6s ease-in-out infinite; }
@keyframes pulse-mark {
  0%, 100% { transform: scale(1); opacity: 0.75; }
  50% { transform: scale(1.12); opacity: 1; }
}
.preloader__count {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(3.4rem, 10vw, 6rem);
  line-height: 1;
  background: linear-gradient(160deg, var(--gold-2), var(--gold), var(--gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: flex;
  align-items: flex-start;
  gap: 4px;
}
.preloader__count small { font-size: 1.4rem; color: var(--gold); -webkit-text-fill-color: var(--gold); margin-top: 10px; }
.preloader__name {
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--lapis-bright);
}
.preloader__hint { color: var(--muted); font-size: 0.88rem; }
.preloader__bar {
  width: min(280px, 70vw);
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 8px;
}
.preloader__bar span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--lapis), var(--gold-2));
  box-shadow: 0 0 14px var(--gold);
}
.preloader.is-done { pointer-events: none; }

/* ============ المؤشر المخصص ============ */
.cursor { position: fixed; inset: 0; z-index: 250; pointer-events: none; }
.cursor__dot, .cursor__ring { position: fixed; top: 0; left: 0; border-radius: 50%; pointer-events: none; }
.cursor__dot {
  width: 7px; height: 7px;
  background: var(--gold-2);
  box-shadow: 0 0 12px rgba(216, 181, 106, 0.8);
  transform: translate(-50%, -50%);
}
.cursor__ring {
  width: 38px; height: 38px;
  border: 1.4px solid rgba(216, 181, 106, 0.6);
  transform: translate(-50%, -50%);
  transition: width 0.35s var(--ease-out), height 0.35s var(--ease-out),
    border-color 0.35s, background 0.35s;
}
.cursor__ring.is-hover {
  width: 64px; height: 64px;
  background: rgba(47, 109, 179, 0.15);
  border-color: var(--gold);
}
@media (pointer: coarse), (pointer: none) { .cursor { display: none; } }

/* ============ شريط التقدم ============ */
.scroll-progress {
  position: fixed;
  top: 0; right: 0;
  height: 3px;
  width: 100%;
  z-index: 200;
  background: linear-gradient(90deg, var(--lapis-deep), var(--gold), var(--gold-2));
  transform-origin: right;
  transform: scaleX(0);
  box-shadow: 0 0 16px rgba(216, 181, 106, 0.6);
}

/* ============ القائمة العلوية ============ */
.nav {
  position: fixed;
  top: 0; right: 0; left: 0;
  z-index: 150;
  padding: 22px 0;
  transition: padding 0.4s var(--ease-out), background 0.4s, border-color 0.4s, box-shadow 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  padding: 12px 0;
  background: rgba(7, 13, 24, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: var(--line);
  box-shadow: 0 12px 40px -20px #000;
}
.nav__wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.nav__brand { display: flex; align-items: center; gap: 11px; }
.nav__mark {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 12px;
  color: var(--gold);
  background: linear-gradient(150deg, rgba(47, 109, 179, 0.35), rgba(216, 181, 106, 0.08));
  border: 1px solid var(--line);
}
.nav__brand-text { font-family: var(--font-head); font-weight: 700; font-size: 1.08rem; color: var(--ink); }
.nav__brand-text b { color: var(--gold); font-weight: 800; }

.nav__links { display: flex; gap: 4px; }
.nav__links a {
  position: relative;
  padding: 9px 14px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
  border-radius: 999px;
  transition: color 0.3s;
}
.nav__links a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  right: 14px; left: 14px;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: scaleX(0);
  transition: transform 0.4s var(--ease-out);
}
.nav__links a:hover { color: var(--gold-2); }
.nav__links a:hover::after { transform: scaleX(1); }

.nav__actions { display: flex; align-items: center; gap: 14px; }
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(47, 109, 179, 0.2);
}
.nav__toggle span {
  display: block;
  width: 20px; height: 2px;
  margin-inline: auto;
  background: var(--gold-2);
  border-radius: 2px;
  transition: transform 0.4s var(--ease-out), opacity 0.3s;
}
body.menu-open .nav__toggle span:first-child { transform: translateY(4px) rotate(45deg); }
body.menu-open .nav__toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 140;
  background: rgba(7, 13, 24, 0.97);
  backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px 8% 60px;
  clip-path: circle(0% at calc(100% - 44px) 42px);
  transition: clip-path 0.7s var(--ease-out);
  pointer-events: none;
}
body.menu-open .mobile-menu { clip-path: circle(150% at calc(100% - 44px) 42px); pointer-events: auto; }
.mobile-menu__links { display: flex; flex-direction: column; gap: 8px; }
.mobile-menu__links a {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 7vw, 2.3rem);
  font-weight: 700;
  color: var(--ink);
  padding: 10px 0;
  border-bottom: 1px solid rgba(216, 181, 106, 0.12);
  display: flex;
  align-items: baseline;
  gap: 14px;
  opacity: 0;
  transform: translateY(24px);
  transition: color 0.3s, opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
body.menu-open .mobile-menu__links a { opacity: 1; transform: none; }
body.menu-open .mobile-menu__links a:nth-child(1) { transition-delay: 0.1s; }
body.menu-open .mobile-menu__links a:nth-child(2) { transition-delay: 0.16s; }
body.menu-open .mobile-menu__links a:nth-child(3) { transition-delay: 0.22s; }
body.menu-open .mobile-menu__links a:nth-child(4) { transition-delay: 0.28s; }
body.menu-open .mobile-menu__links a:nth-child(5) { transition-delay: 0.34s; }
body.menu-open .mobile-menu__links a:nth-child(6) { transition-delay: 0.4s; }
.mobile-menu__links a em { font-style: normal; font-size: 0.9rem; color: var(--gold); }
.mobile-menu__links a:hover { color: var(--gold-2); }
.mobile-menu__foot {
  margin-top: 44px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--muted);
  font-size: 0.95rem;
}
.mobile-menu__foot a { color: var(--gold-2); font-family: var(--font-head); font-weight: 600; }

/* ============ الهيرو ============ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 150px 0 100px;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  animation: kenburns 22s var(--ease-out) infinite alternate;
}
@keyframes kenburns {
  from { transform: scale(1.05) translateY(-1.5%); }
  to { transform: scale(1.18) translateY(1.5%); }
}
.hero__dust {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.hero__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(7, 13, 24, 0.72) 0%, rgba(7, 13, 24, 0.35) 38%, rgba(7, 13, 24, 0.75) 78%, var(--bg) 100%),
    radial-gradient(ellipse 70% 55% at 50% 45%, rgba(18, 58, 102, 0.25), transparent 75%);
}
.hero__content { position: relative; z-index: 2; text-align: center; }

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 22px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(7, 13, 24, 0.55);
  color: var(--gold-2);
  font-size: 0.92rem;
  font-weight: 500;
  margin-bottom: 28px;
  backdrop-filter: blur(10px);
}

.hero__title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2.7rem, 9vw, 6.4rem);
  line-height: 1.12;
  letter-spacing: 0.5px;
  margin-bottom: 18px;
  text-shadow: 0 12px 50px rgba(0, 0, 0, 0.6);
}
.hero__title .word { display: inline-block; overflow: hidden; vertical-align: bottom; }
.hero__title .word__inner {
  display: inline-block;
  background: linear-gradient(120deg, #fff 0%, var(--gold-2) 35%, var(--gold) 60%, var(--lapis-bright) 82%, #fff 100%);
  background-size: 240% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 7s linear infinite;
  filter: drop-shadow(0 4px 24px rgba(216, 181, 106, 0.35));
}
@keyframes shimmer { to { background-position: 240% center; } }

.hero__role {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.05rem, 2.6vw, 1.4rem);
  color: var(--lapis-bright);
  margin-bottom: 20px;
}
.hero__role i { color: var(--gold); font-style: normal; font-size: 0.8rem; }

.hero__subtitle {
  max-width: 660px;
  margin: 0 auto 36px;
  color: #d5deeb;
  font-size: clamp(1rem, 2.4vw, 1.13rem);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.5);
}
.hero__cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; margin-bottom: 54px; }

.hero__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 4vw, 40px);
  flex-wrap: wrap;
}
.hero__meta-item { display: flex; flex-direction: column; gap: 2px; }
.hero__meta-item strong {
  font-family: var(--font-head);
  font-size: 1.02rem;
  color: var(--gold-2);
  font-weight: 700;
}
.hero__meta-item span { color: var(--muted); font-size: 0.85rem; }
.hero__meta-sep { width: 1px; height: 38px; background: var(--line-strong); }

.hero__scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 1px;
}
.hero__scroll-line {
  width: 24px; height: 42px;
  border: 1.4px solid var(--line-strong);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 7px;
}
.hero__scroll-line span {
  width: 3px; height: 9px;
  border-radius: 3px;
  background: var(--gold);
  animation: scroll-dot 1.7s var(--ease-out) infinite;
}
@keyframes scroll-dot {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(16px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ============ الشريط المتحرك ============ */
.marquee {
  position: relative;
  padding: 26px 0;
  border-block: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(18, 58, 102, 0.4), rgba(216, 181, 106, 0.08), rgba(18, 58, 102, 0.4));
  overflow: hidden;
}
.marquee__track { display: flex; direction: ltr; width: max-content; animation: marquee 34s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; gap: 38px; padding-inline: 19px; direction: rtl; }
.marquee__group span {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.12rem;
  color: var(--ink);
  white-space: nowrap;
}
.marquee__group i { color: var(--gold); font-style: normal; font-size: 0.85rem; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============ الأقسام والستائر ============ */
.section { padding: clamp(90px, 12vh, 150px) 0; overflow: hidden; }
.section--alt {
  background: linear-gradient(180deg, rgba(47, 109, 179, 0.06), transparent 60%);
  border-block: 1px solid rgba(176, 141, 87, 0.1);
}

/* ستارة الانتقال اللازوردية بين الأقسام */
.curtain {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  transform: translateY(101%);
  background:
    linear-gradient(180deg, rgba(216, 181, 106, 0.12), transparent 28%),
    linear-gradient(135deg, #16457a, #0d2a4d 55%, #081a31);
}
.curtain::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(125, 180, 238, 0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 180, 238, 0.13) 1px, transparent 1px);
  background-size: 58px 26px, 58px 26px;
  background-position: 0 0, 29px 13px;
}
.curtain::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 90px; height: 90px;
  transform: translate(-50%, -50%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cg fill='none' stroke='%23d8b56a' stroke-width='1.3'%3E%3Crect x='7' y='7' width='18' height='18'/%3E%3Crect x='7' y='7' width='18' height='18' transform='rotate(45 16 16)'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0.5;
}

.section__head {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: clamp(44px, 6vh, 70px);
}
.section__index {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2.6rem, 6vw, 4rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.3px rgba(216, 181, 106, 0.6);
  opacity: 0.9;
}
.section__tag {
  display: inline-block;
  color: var(--lapis-bright);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  margin-bottom: 6px;
}
.section__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.7rem, 4.5vw, 2.7rem);
  line-height: 1.25;
}
.section__title .word { display: inline-block; overflow: hidden; vertical-align: bottom; }
.section__title .word__inner { display: inline-block; }
.section__line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line-strong), transparent);
  transform-origin: right;
}

/* ============ إطارات الصور ============ */
.frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-lapis);
  aspect-ratio: 4 / 3;
  background: var(--bg-2);
}
.frame img, .gcard__media img, .edu__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* صور parallax: متغير --py يحرّكه GSAP، والـscale خاصية مستقلة */
[data-parallax-img] {
  scale: 1.08;
  transform: translateY(var(--py, 0px));
  will-change: transform;
}
.gcard__media img {
  transform: translateY(var(--py, 0px)) scale(1);
  transition: transform 0.9s var(--ease-out);
}
.gcard:hover .gcard__media img {
  transform: translateY(var(--py, 0px)) scale(1.07);
}
/* زوايا مزخرفة */
.frame::after, .gcard__media::after {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(243, 226, 179, 0.35);
  border-radius: 12px;
  pointer-events: none;
  transition: inset 0.5s var(--ease-out), border-color 0.5s;
}
.frame:hover::after, .gcard__media:hover::after { inset: 14px; border-color: rgba(243, 226, 179, 0.65); }
.frame__caption {
  position: absolute;
  bottom: 0; right: 0; left: 0;
  padding: 40px 20px 16px;
  font-size: 0.85rem;
  color: var(--gold-2);
  background: linear-gradient(transparent, rgba(7, 13, 24, 0.9));
  z-index: 2;
}

/* ============ النبذة ============ */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 30px;
  align-items: stretch;
  margin-bottom: 28px;
}
.about__visual { position: relative; display: flex; }
.about__visual .frame { width: 100%; }
.about__badge {
  position: absolute;
  bottom: -24px;
  inset-inline-start: -18px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  color: var(--gold);
  z-index: 3;
}
.about__badge b { display: block; font-family: var(--font-head); color: var(--gold-2); }
.about__badge span { font-size: 0.78rem; color: var(--muted); }

.about__text { padding: clamp(28px, 4vw, 44px); display: flex; flex-direction: column; gap: 20px; }
.about__text p { color: var(--muted); font-size: 1.04rem; }
.about__text b { color: var(--gold-2); font-weight: 700; }
.about__chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 10px; }
.about__chips span {
  padding: 7px 18px;
  border-radius: 999px;
  font-size: 0.86rem;
  color: var(--gold-2);
  border: 1px solid var(--line);
  background: rgba(47, 109, 179, 0.15);
  transition: background 0.35s, border-color 0.35s, transform 0.35s var(--ease-out);
}
.about__chips span:hover {
  background: rgba(216, 181, 106, 0.14);
  border-color: var(--line-strong);
  transform: translateY(-3px);
}

.about__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stat {
  padding: 26px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: hidden;
}
.stat__num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2.4rem, 5vw, 3.2rem);
  line-height: 1;
  background: linear-gradient(150deg, var(--gold-2), var(--gold), var(--gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat__label { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.stat p { color: var(--muted); font-size: 0.88rem; }

/* ============ المؤهل العلمي ============ */
.edu {
  padding: clamp(26px, 4vw, 44px);
  display: grid;
  grid-template-columns: 0.9fr 1.2fr;
  gap: clamp(24px, 4vw, 44px);
  align-items: stretch;
  overflow: hidden;
}
.edu__visual {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 280px;
  border: 1px solid var(--line);
}
.edu__badge {
  width: 64px; height: 64px;
  border-radius: 18px;
  display: grid; place-items: center;
  color: var(--gold);
  background: linear-gradient(150deg, rgba(47, 109, 179, 0.4), rgba(216, 181, 106, 0.08));
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-gold);
  margin-bottom: 16px;
}
.edu__degree {
  display: inline-block;
  padding: 5px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--lapis-bright);
  background: rgba(47, 109, 179, 0.2);
  border: 1px solid rgba(125, 180, 238, 0.35);
  margin-bottom: 12px;
}
.edu__body h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.4rem, 3.4vw, 2rem);
  margin-bottom: 24px;
}
.edu__body h3 span {
  display: block;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
  margin-top: 4px;
  letter-spacing: 1px;
}
.edu__list { display: grid; gap: 14px; }
.edu__list li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(176, 141, 87, 0.14);
  transition: transform 0.4s var(--ease-out), border-color 0.4s, background 0.4s;
}
.edu__list li:hover {
  transform: translateX(-6px);
  border-color: var(--line-strong);
  background: rgba(47, 109, 179, 0.14);
}
.edu__list svg { color: var(--gold); flex-shrink: 0; }
.edu__list b { display: block; font-family: var(--font-head); font-size: 0.95rem; color: var(--gold-2); }
.edu__list span { color: var(--muted); font-size: 0.95rem; }
.edu__stamp {
  position: absolute;
  top: 22px;
  inset-inline-end: 26px;
  color: rgba(216, 181, 106, 0.3);
  animation: spin-slow 26s linear infinite;
  pointer-events: none;
}

/* ============ معرض بابل ============ */
.gallery { padding: clamp(90px, 12vh, 140px) 0 70px; overflow: hidden; }
.gallery__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}
.gallery__hint {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.9rem;
  border: 1px solid var(--line);
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(47, 109, 179, 0.12);
}
.gallery__hint svg { color: var(--gold); }

.gallery__viewport {
  direction: ltr;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  padding-bottom: 18px;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) transparent;
}
.gallery__viewport::-webkit-scrollbar { height: 6px; }
.gallery__viewport::-webkit-scrollbar-thumb { background: linear-gradient(90deg, var(--lapis), var(--gold)); border-radius: 6px; border: none; }
.gallery.is-pinned .gallery__viewport { overflow: visible; }

.gallery__track {
  display: flex;
  gap: 26px;
  width: max-content;
  padding-inline: max(4vw, calc((100vw - 1180px) / 2));
}
.gcard {
  width: min(380px, 82vw);
  scroll-snap-align: center;
  flex-shrink: 0;
}
.gcard__media {
  position: relative;
  aspect-ratio: 3 / 3.6;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--bg-2);
  box-shadow: var(--shadow-lapis);
}
.gcard__num {
  position: absolute;
  top: 16px;
  inset-inline-start: 18px;
  z-index: 2;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--gold-2);
  background: rgba(7, 13, 24, 0.6);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  backdrop-filter: blur(8px);
}
.gcard__body { padding: 18px 8px 0; }
.gcard__body h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--gold-2);
  margin-bottom: 6px;
}
.gcard__body p { color: var(--muted); font-size: 0.92rem; }
.gallery__progress {
  width: min(260px, 60vw);
  height: 3px;
  margin: 26px auto 0;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.gallery__progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--lapis), var(--gold-2));
  box-shadow: 0 0 12px rgba(216, 181, 106, 0.6);
}

/* ============ الخط الزمني ============ */
.timeline { position: relative; padding-inline-start: 8px; }
.timeline__line {
  position: absolute;
  top: 8px; bottom: 8px;
  inset-inline-start: 17px;
  width: 2px;
  background: linear-gradient(var(--gold), var(--lapis-bright));
  border-radius: 2px;
  transform: scaleY(0);
  transform-origin: top;
  box-shadow: 0 0 14px rgba(216, 181, 106, 0.4);
}
.timeline__item { position: relative; padding-inline-start: 52px; padding-bottom: 34px; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__dot {
  position: absolute;
  inset-inline-start: 9px;
  top: 30px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--gold);
  z-index: 2;
}
.timeline__dot span {
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px var(--gold);
}
.timeline__dot::after {
  content: '';
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 1px solid rgba(216, 181, 106, 0.4);
  animation: dot-ring 2.4s ease-out infinite;
}
@keyframes dot-ring {
  0% { transform: scale(0.7); opacity: 1; }
  100% { transform: scale(1.5); opacity: 0; }
}
.timeline__card { padding: clamp(24px, 3.5vw, 38px); }
.timeline__top { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.timeline__icon {
  width: 50px; height: 50px;
  border-radius: 14px;
  display: grid; place-items: center;
  color: var(--gold);
  background: rgba(47, 109, 179, 0.22);
  border: 1px solid var(--line);
}
.timeline__tag {
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--lapis-bright);
  background: rgba(47, 109, 179, 0.2);
  border: 1px solid rgba(125, 180, 238, 0.32);
}
.timeline__card h3 { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.2rem, 2.6vw, 1.5rem); margin-bottom: 12px; }
.timeline__card > p { color: var(--muted); margin-bottom: 18px; }
.timeline__points { display: grid; gap: 10px; }
.timeline__points li {
  position: relative;
  padding-inline-start: 26px;
  color: var(--ink);
  font-size: 0.96rem;
}
.timeline__points li::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 11px;
  width: 14px; height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), var(--lapis-bright));
}

/* ============ المهارات ============ */
.skills__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(225px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}
.skill {
  padding: 30px 26px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.skill::after {
  content: '';
  position: absolute;
  top: -40%;
  inset-inline-end: -40%;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 109, 179, 0.25), transparent 70%);
  opacity: 0;
  transition: opacity 0.5s var(--ease-out);
}
.skill:hover::after { opacity: 1; }
.skill__icon {
  width: 54px; height: 54px;
  border-radius: 15px;
  display: grid; place-items: center;
  color: var(--gold);
  background: linear-gradient(150deg, rgba(47, 109, 179, 0.4), rgba(216, 181, 106, 0.06));
  border: 1px solid var(--line);
  margin-bottom: 6px;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s;
}
.skill:hover .skill__icon { transform: translateY(-5px) rotate(-6deg); box-shadow: var(--shadow-gold); }
.skill h3 { font-family: var(--font-head); font-weight: 700; font-size: 1.12rem; }
.skill p { color: var(--muted); font-size: 0.92rem; }

.langs { padding: clamp(26px, 4vw, 42px); }
.langs__title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--gold-2);
  margin-bottom: 28px;
}
.langs__title svg { color: var(--gold); }
.langs__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 30px; }
.lang__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.lang__head b { font-family: var(--font-head); font-size: 1.05rem; }
.lang__head span { color: var(--muted); font-size: 0.88rem; }
.lang__track {
  height: 9px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
  border: 1px solid rgba(176, 141, 87, 0.16);
}
.lang__fill {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--lapis-deep), var(--gold), var(--gold-2));
  box-shadow: 0 0 14px rgba(216, 181, 106, 0.55);
  position: relative;
}
.lang__fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  animation: bar-shine 2.4s linear infinite;
}
@keyframes bar-shine {
  from { transform: translateX(100%); }
  to { transform: translateX(-100%); }
}

/* ============ التواصل ============ */
.contact { overflow: hidden; }
.contact__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 22px;
  margin-bottom: 34px;
}
.contact__card {
  padding: 32px 30px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: transform 0.45s var(--ease-out);
}
a.contact__card:hover { transform: translateY(-6px); }
.contact__icon {
  width: 58px; height: 58px;
  flex-shrink: 0;
  border-radius: 16px;
  display: grid; place-items: center;
  color: var(--gold);
  background: rgba(47, 109, 179, 0.22);
  border: 1px solid var(--line-strong);
}
.contact__info { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.contact__info span { color: var(--muted); font-size: 0.88rem; }
.contact__info b { font-family: var(--font-head); font-size: 1.15rem; font-weight: 700; }
.contact__action {
  font-size: 0.82rem;
  color: var(--lapis-bright);
  border: 1px solid rgba(125, 180, 238, 0.35);
  background: rgba(47, 109, 179, 0.2);
  padding: 6px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.contact__copy { display: flex; justify-content: center; }

/* ============ الفوتر ============ */
.footer {
  border-top: 1px solid var(--line);
  padding: 38px 0;
  background: rgba(255, 255, 255, 0.02);
}
.footer__wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.9rem;
}
.footer__brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-head); font-weight: 700; color: var(--ink); }
.footer__brand .nav__mark { width: 36px; height: 36px; }
.footer__tag { color: var(--gold); font-size: 0.85rem; }

/* ============ زر العودة ============ */
.to-top {
  position: fixed;
  bottom: 28px;
  inset-inline-start: 28px;
  z-index: 120;
  width: 52px; height: 52px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: #14100a;
  background: linear-gradient(140deg, var(--gold), var(--gold-2));
  box-shadow: var(--shadow-gold);
  opacity: 0;
  transform: translateY(24px) scale(0.8);
  pointer-events: none;
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { transform: translateY(-4px) !important; }

/* ============ حالات الظهور ============ */
[data-reveal] { opacity: 0; }
.no-anim [data-reveal] { opacity: 1 !important; }
.no-anim .word__inner { transform: none !important; }
.no-anim .lang__fill { width: var(--w, 0) !important; }
.no-anim .curtain { display: none; }
.no-anim [data-img-reveal] { clip-path: none !important; }

/* ============ استجابة الجوال ============ */
@media (max-width: 960px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__badge { inset-inline-start: 12px; }
  .edu { grid-template-columns: 1fr; }
  .edu__visual { min-height: 240px; }
  .edu__stamp { display: none; }
}

@media (max-width: 860px) {
  .nav__links, .nav__actions .btn { display: none; }
  .nav__toggle { display: flex; }
  .hero__meta-sep { display: none; }
  .hero__meta { gap: 20px; }
}

@media (max-width: 620px) {
  .section { padding: 74px 0; }
  .section__head { gap: 14px; }
  .section__line { display: none; }
  .about__stats { grid-template-columns: 1fr; }
  .hero { padding-top: 120px; }
  .hero__cta .btn { width: 100%; justify-content: center; }
  .timeline__item { padding-inline-start: 42px; }
  .timeline__line { inset-inline-start: 14px; }
  .timeline__dot { inset-inline-start: 6px; }
  .contact__card { flex-wrap: wrap; }
  .to-top { bottom: 20px; inset-inline-start: 20px; width: 46px; height: 46px; }
  .footer__wrap { flex-direction: column; text-align: center; }
  .gate::after { width: 100px; height: 200px; }
}

@media (max-height: 640px) { .hero__scroll { display: none; } }
@media (max-height: 780px) {
  .gallery { padding-top: 56px; padding-bottom: 40px; }
  .gallery__head { margin-bottom: 22px; }
  .gcard__media { aspect-ratio: 3 / 3.1; }
}

/* ============ تقليل الحركة ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .marquee__track { animation: none; }
  .hero__bg img { animation: none; transform: none; }
}
