:root { --color-primary: #f9a225; --color-secondary: #242424; }
* { box-sizing: border-box; }
body { overflow-x: hidden; }
.lang-btn { min-width: 2.25rem; border-radius: 999px; padding: .45rem .55rem; font-size: .7rem; font-weight: 700; transition: background .2s ease, color .2s ease; }
.lang-btn:hover { background: rgb(36 36 36 / .08); }
.lang-btn.is-active { background: var(--color-secondary); color: white; }
.nav-link { position: relative; color: rgb(36 36 36 / .62); transition: color .2s ease; }
.nav-link::after { content: ""; position: absolute; right: 0; bottom: -5px; width: 0; height: 2px; background: var(--color-primary); transition: width .25s ease; }
.nav-link:hover { color: var(--color-secondary); }
.nav-link:hover::after { width: 100%; }
.name-panel { isolation: isolate; }
.name-panel > * { position: relative; z-index: 2; }
.orb { position: absolute; z-index: 1; width: 38%; aspect-ratio: 1; right: 10%; top: 22%; border-radius: 999px; background: radial-gradient(circle at 35% 30%, #fff4d7 0, #ffd274 22%, #ec761d 58%, #242424 59%, #242424 100%); box-shadow: 0 25px 60px rgb(36 36 36 / .28); transform: rotate(-18deg); }
.portrait-panel img { transition: transform .8s cubic-bezier(.2,.8,.2,1), filter .5s ease; }
.portrait-panel:hover img { transform: scale(1.035); filter: grayscale(0); }
.section-kicker { font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.highlight { position: relative; white-space: nowrap; }
.highlight::after { content: ""; position: absolute; z-index: -1; left: -2%; right: -2%; bottom: .06em; height: .28em; background: var(--color-primary); border-radius: 999px; }
.skill-card { min-height: 240px; padding: 1.6rem; border: 1px solid rgb(255 255 255 / .14); border-radius: 1.5rem; display: flex; flex-direction: column; transition: transform .25s ease, border-color .25s ease; }
.skill-card:hover { transform: translateY(-5px); border-color: var(--color-primary); }
.skill-card > span { font-size: .75rem; color: rgb(255 255 255 / .4); }
.skill-card h3 { margin-top: auto; font: 700 clamp(1.6rem,3vw,2.2rem)/1 "Space Grotesk",sans-serif; letter-spacing: -.04em; }
.skill-card p { margin-top: .85rem; max-width: 18rem; color: rgb(255 255 255 / .55); line-height: 1.55; }
.skill-card--primary { background: var(--color-primary); color: var(--color-secondary); border-color: var(--color-primary); }
.skill-card--primary > span,.skill-card--primary p { color: rgb(36 36 36 / .65); }
.tool-pill { padding: .55rem .9rem; border: 1px solid rgb(255 255 255 / .14); border-radius: 999px; }
.timeline-title { border-bottom: 2px solid var(--color-secondary); padding-bottom: 1rem; font: 700 1.8rem/1 "Space Grotesk",sans-serif; letter-spacing: -.03em; }
.timeline-list { border-left: 1px solid rgb(36 36 36 / .22); margin-left: .45rem; }
.timeline-item { position: relative; display: grid; gap: .55rem; padding: 1.75rem 0 1.75rem 1.75rem; border-bottom: 1px solid rgb(36 36 36 / .12); }
.timeline-item::before { content: ""; position: absolute; left: -.43rem; top: 2.15rem; width: .8rem; height: .8rem; border: 2px solid var(--color-secondary); border-radius: 50%; background: var(--color-primary); }
.timeline-item time { font-size: .8rem; font-weight: 700; letter-spacing: .04em; color: rgb(36 36 36 / .5); }
.timeline-item h4 { font: 700 1.2rem/1.2 "Space Grotesk",sans-serif; }
.timeline-item p { margin-top: .45rem; color: rgb(36 36 36 / .6); }
.mini-card { min-height: 190px; padding: 1.5rem; border-radius: 1.5rem; background: white; display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 16px 50px rgb(36 36 36 / .06); }
.mini-card span { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.mini-card strong { line-height: 1.7; }
.mini-card--accent { background: var(--color-primary); }
.contact-link { display: flex; align-items: center; justify-content: space-between; gap: 2rem; border-bottom: 1px solid rgb(36 36 36 / .3); padding-bottom: .55rem; transition: opacity .2s ease; }
.contact-link:hover { opacity: .55; }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
#toTop.is-visible { opacity: 1; transform: translateY(0); }
@media (min-width: 640px) { .timeline-item { grid-template-columns: 155px 1fr; } }
@media (max-width: 1023px) { .orb { width: 34%; right: 8%; top: 27%; } }
@media (max-width: 639px) {
  .orb { width: 42%; right: 8%; top: 31%; }
  .name-panel h1 { max-width: 90%; }
  [dir="rtl"] .name-panel > p {
    align-self: flex-start;
    width: 48%;
    max-width: 48%;
    font-size: .9rem;
    line-height: 1.65;
  }
}
[dir="rtl"] body { font-family: "Noto Kufi Arabic", sans-serif; }
[dir="rtl"] .font-display, [dir="rtl"] .skill-card h3, [dir="rtl"] .timeline-title, [dir="rtl"] .timeline-item h4 { font-family: "Noto Kufi Arabic", sans-serif; }
[dir="rtl"] .section-kicker { letter-spacing: 0; }
[dir="rtl"] .nav-link::after { right: auto; left: 0; }
[dir="rtl"] .name-panel { direction: ltr; }
[dir="rtl"] .name-panel h1 { direction: ltr; font-family: "Space Grotesk", sans-serif; letter-spacing: -.09em; line-height: .72; }
[dir="rtl"] .name-panel h1 span { margin-left: .34em; margin-right: 0; }
[dir="rtl"] .name-panel > div:first-child span { direction: rtl; }
[dir="rtl"] .name-panel > p { direction: rtl; text-align: right; }
[dir="rtl"] .timeline-list { border-left: 0; border-right: 1px solid rgb(36 36 36 / .22); margin-left: 0; margin-right: .45rem; }
[dir="rtl"] .timeline-item { padding-left: 0; padding-right: 1.75rem; }
[dir="rtl"] .timeline-item::before { left: auto; right: -.43rem; }
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { scroll-behavior: auto !important; transition-duration: .01ms !important; } .reveal { opacity: 1; transform: none; } }
