/* =========================================================
   خط ثمانية: Serif Display للعناوين · Sans للنصوص
   ========================================================= */
@font-face { font-family: 'Thmanyah Serif Display'; font-weight: 300 400; font-display: swap; src: url('../assets/fonts/thmanyahserifdisplay-Regular.otf') format('opentype'); }
@font-face { font-family: 'Thmanyah Serif Display'; font-weight: 500 600; font-display: swap; src: url('../assets/fonts/thmanyahserifdisplay-Medium.otf') format('opentype'); }
@font-face { font-family: 'Thmanyah Serif Display'; font-weight: 700 800; font-display: swap; src: url('../assets/fonts/thmanyahserifdisplay-Bold.otf') format('opentype'); }
@font-face { font-family: 'Thmanyah Serif Display'; font-weight: 900; font-display: swap; src: url('../assets/fonts/thmanyahserifdisplay-Black.otf') format('opentype'); }
:root { --f-head: 'Thmanyah Serif Display', 'Thmanyah Sans', serif; }
.hero__name { letter-spacing: 0; line-height: 1.2; }
.sec-head h2, .contact h2 { letter-spacing: 0; }

/* Outlined serif numbers (like the reference sheet) */
.step__n, .bd-layer__n {
  font-family: 'Thmanyah Serif Display', serif; font-weight: 400; color: transparent;
  -webkit-text-stroke: 1.2px var(--c-300);
}
.step { text-align: start; padding-top: 26px; }
.step__n { position: static; display: block; font-size: 64px; line-height: 1; margin-bottom: 16px; }
.step .ico { position: absolute; top: 26px; inset-inline-end: 22px; margin: 0; }
.bd-layer__n { font-size: 30px; line-height: 1; padding-top: 0; }

/* Portrait: person keeps natural colors (background already red in the photo) */
.portrait__img img { filter: none; }
.portrait__img::after { background: linear-gradient(180deg, transparent 60%, rgba(18, 3, 2, .85)); }

/* Endless marquee: LTR track, no gap seam (spacing via margins) */
.marquee { direction: ltr; }
.marquee__track { gap: 0; will-change: transform; }
.marquee__track > * { margin-inline: 17px; flex-shrink: 0; }

/* =========================================================
   CV content — experience, real projects, languages
   ========================================================= */
.hero__en { font-size: clamp(14px, 1.4vw, 17px); font-weight: 500; letter-spacing: 1.5px; color: var(--c-300); text-transform: uppercase; margin-top: 2px; }
@media (max-width: 980px) { .hero__en { text-align: center; } }

/* Experience */
.xp { display: grid; grid-template-columns: 320px 1fr; border-radius: 28px; overflow: hidden; border: 1px solid var(--line-2); background: var(--surface); max-width: 1040px; margin-inline: auto; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8); }
.xp__side { padding: 34px 30px; background: linear-gradient(160deg, rgba(173, 40, 49, .4), rgba(56, 4, 14, .7)); border-inline-end: 1px solid var(--line); position: relative; }
.xp__logo { width: 70px; height: 70px; border-radius: 20px; display: grid; place-items: center; font-family: var(--f-head); font-weight: 900; font-size: 38px; color: #fff; background: linear-gradient(135deg, var(--c-500), var(--c-700)); box-shadow: 0 16px 40px -12px rgba(173, 40, 49, .9), inset 0 1px 0 rgba(255, 255, 255, .25); margin-bottom: 18px; }
.xp__now { position: absolute; top: 34px; inset-inline-end: 28px; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; padding: 4px 12px; border-radius: 999px; background: rgba(0, 0, 0, .3); border: 1px solid rgba(95, 211, 154, .35); color: #9be8c1; }
.xp__side h3 { font-size: 26px; font-weight: 900; margin-bottom: 4px; }
.xp__co { color: var(--ink-2); font-size: 16px; line-height: 1.6; margin-bottom: 18px; }
.xp__co span { color: var(--ink-3); font-size: 14px; }
.xp__list { padding: 26px 30px; display: flex; flex-direction: column; gap: 6px; }
.xp__list li { display: flex; gap: 16px; align-items: flex-start; padding: 14px 12px; border-radius: 14px; transition: background .25s; }
.xp__list li:hover { background: rgba(173, 40, 49, .12); }
.xp__list .ico { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: rgba(173, 40, 49, .18); color: var(--c-300); border: 1px solid var(--line); }
.xp__list p { margin: 0; color: var(--ink-2); font-size: 16.5px; line-height: 1.75; }
.xp__list strong { color: var(--ink); }

/* Projects */
.proj--wide { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1.15fr; }
.proj--wide .proj__thumb { height: auto; min-height: 320px; gap: 22px; display: flex; align-items: center; justify-content: center; }
.proj--wide .proj__body { padding: 36px; display: flex; flex-direction: column; justify-content: center; }
.proj--wide h3 { font-size: 28px; }
.proj p strong { color: var(--ink); }
.proj__thumb--5 { background: linear-gradient(135deg, #640D14, #AD2831); }
.proj__link { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-2); font-weight: 700; font-size: 14.5px; color: var(--c-200); transition: all .25s; }
.proj__link:hover { background: var(--c-500); color: #fff; border-color: var(--c-400); }
.proj__link .ico { width: 16px; height: 16px; }

.mock--phone { width: 132px; height: 250px; border-radius: 26px; border: 3px solid rgba(255, 255, 255, .3); padding: 22px 14px 14px; display: flex; flex-direction: column; align-items: center; gap: 8px; background: rgba(18, 3, 2, .55); animation: float-a 6s ease-in-out infinite; }
.mock--phone::before { content: ''; position: absolute; top: 8px; width: 40px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .3); }
.mock--phone2 { width: 112px; height: 210px; opacity: .85; animation: float-c 7s ease-in-out infinite; }
.mock__pin { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: rgba(95, 211, 154, .18); animation: ping-ok 2s infinite; margin-top: 8px; }
.mock__pin .ico { width: 28px; height: 28px; color: var(--ok); }
.mock--phone b { color: #fff; font-size: 20px; font-weight: 900; direction: ltr; }
.mock--phone small { color: #9be8c1; font-size: 11px; }
.mock--phone i { width: 100%; height: 12px; border-radius: 6px; background: rgba(255, 255, 255, .14); }
.mock__file { font-size: 30px; margin: 10px 0 6px; }
.mock--apps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 18px; width: 70%; height: auto; }
.mock--apps i { aspect-ratio: 1; border-radius: 12px; background: rgba(255, 255, 255, .16); animation: tilepop 3.2s ease-in-out infinite; }
.mock--apps i:nth-child(odd) { background: rgba(255, 255, 255, .26); }
.mock--apps i:nth-child(2) { animation-delay: .2s; }
.mock--apps i:nth-child(3) { animation-delay: .4s; }
.mock--apps i:nth-child(4) { animation-delay: .6s; }
.mock--apps i:nth-child(5) { animation-delay: .8s; }
.mock--apps i:nth-child(6) { animation-delay: 1s; }
.mock--apps i:nth-child(7) { animation-delay: 1.2s; }
.mock--apps i:nth-child(8) { animation-delay: 1.4s; }
@keyframes tilepop { 0%, 70%, 100% { transform: scale(1); } 80% { transform: scale(1.12); background: rgba(255, 255, 255, .5); } }
.mock--site { padding: 30px 14px 14px; display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; }
.mock--site::before { content: ''; position: absolute; top: 12px; inset-inline: 14px; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .22); }
.mock--site i { border-radius: 8px; background: rgba(255, 255, 255, .14); }
.mock--site i:first-child { grid-row: 1 / 3; background: linear-gradient(135deg, rgba(255, 255, 255, .3), rgba(255, 255, 255, .08)); }
.mock--bars { display: flex; align-items: flex-end; gap: 10px; padding: 18px; }
.mock--bars i { flex: 1; height: var(--h); border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, #fff, rgba(255, 255, 255, .3)); transform-origin: bottom; animation: barup 2.8s ease-in-out infinite alternate; }
.mock--bars i:nth-child(2n) { animation-delay: .4s; }
.mock--bars span { position: absolute; top: 10px; inset-inline-start: 12px; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: rgba(0, 0, 0, .35); color: #fff; }
@keyframes barup { from { transform: scaleY(.55); } to { transform: scaleY(1); } }
.mock--wash { display: grid; place-items: center; overflow: hidden; }
.mock--wash span { font-size: 54px; animation: float-a 4s ease-in-out infinite; }
.mock--wash i { position: absolute; bottom: -20px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .55); animation: bubble 3.6s linear infinite; }
.mock--wash i:nth-child(2) { left: 18%; }
.mock--wash i:nth-child(3) { left: 42%; animation-delay: 1s; width: 20px; height: 20px; }
.mock--wash i:nth-child(4) { left: 66%; animation-delay: 2s; }
.mock--wash i:nth-child(5) { left: 84%; animation-delay: .5s; width: 10px; height: 10px; }
@keyframes bubble { to { transform: translateY(-200px); opacity: 0; } }

/* Languages */
.langs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; padding: 14px 18px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface); }
.langs > span { display: inline-flex; align-items: center; gap: 8px; color: var(--c-300); font-weight: 700; margin-inline-end: 6px; }
.langs b { font-weight: 700; padding: 4px 14px; border-radius: 999px; background: rgba(0, 0, 0, .25); border: 1px solid var(--line); }
.langs small { color: var(--ink-3); font-weight: 400; font-size: 12.5px; }

@media (max-width: 860px) {
  .xp { grid-template-columns: 1fr; }
  .xp__side { border-inline-end: 0; border-bottom: 1px solid var(--line); }
  .proj--wide { grid-template-columns: 1fr; }
  .proj--wide .proj__thumb { min-height: 280px; }
}
@media (max-width: 640px) {
  .xp__list { padding: 14px; }
  .xp__list li { padding: 12px 6px; gap: 12px; }
  .proj--wide .proj__body { padding: 24px 22px 28px; }
}
