/* ==========================================================================
   Hussein MENKAM — Portfolio
   ========================================================================== */

:root {
  --bg: #071411;
  --bg-deep: #04100d;
  --surface: #0c201a;
  --surface-soft: #102820;
  --surface-light: #163128;
  --text: #f3f5ee;
  --text-soft: #bdc9c2;
  --muted: #82958c;
  --line: rgba(223, 236, 228, 0.13);
  --line-strong: rgba(223, 236, 228, 0.22);
  --primary: #61e5b5;
  --primary-dark: #1a7054;
  --primary-soft: rgba(97, 229, 181, 0.12);
  --gold: #e0b96c;
  --gold-soft: rgba(224, 185, 108, 0.13);
  --danger: #ff8f8f;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
  --radius: 24px;
  --radius-small: 14px;
  --container: 1180px;
  --header-height: 82px;
  --font-display: "Arial Narrow", "Roboto Condensed", "Helvetica Neue", Arial, sans-serif;
  --font-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 80% 4%, rgba(31, 100, 78, 0.16), transparent 27rem),
    var(--bg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

::selection {
  color: var(--bg-deep);
  background: var(--primary);
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 2000;
  padding: 10px 16px;
  color: var(--bg);
  background: var(--primary);
  border-radius: 8px;
  transform: translateY(-180%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.scroll-progress {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1300;
  height: 3px;
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--gold));
  box-shadow: 0 0 16px rgba(97, 229, 181, 0.55);
  transform: scaleX(0);
  transform-origin: left;
  will-change: transform;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.section {
  position: relative;
  padding: 112px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 440px);
  align-items: end;
  gap: 48px;
  padding-bottom: 36px;
  margin-bottom: 56px;
  border-bottom: 1px solid var(--line);
}

.section-heading h2,
.credentials-intro h2,
.contact-copy h2 {
  max-width: 760px;
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 6vw, 5.1rem);
  font-stretch: condensed;
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.section-heading > p,
.credentials-intro > p,
.contact-copy > p {
  margin: 0;
  color: var(--text-soft);
  font-size: 1.04rem;
}

.section-index {
  margin: 0 0 12px;
  color: var(--primary);
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 13px 21px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.91rem;
  font-weight: 750;
  line-height: 1;
  transition:
    color 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button svg {
  width: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button-primary {
  color: #052018;
  background: var(--primary);
}

.button-primary:hover {
  background: #83edc7;
}

.button-ghost {
  color: var(--text);
  background: transparent;
  border-color: var(--line-strong);
}

.button-ghost:hover,
.button-outline:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.button-small {
  min-height: 42px;
  padding: 10px 17px;
}

.button-outline {
  color: var(--text);
  border-color: var(--line-strong);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-size: 0.93rem;
  font-weight: 750;
}

.text-link span {
  transition: transform 180ms ease;
}

.text-link:hover span {
  transform: translate(3px, -3px);
}

/* Header */

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  height: var(--header-height);
  border-bottom: 1px solid transparent;
  transition:
    background-color 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.site-header.is-scrolled {
  background: rgba(7, 20, 17, 0.86);
  border-color: var(--line);
  box-shadow: 0 8px 36px rgba(0, 0, 0, 0.18);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: space-between;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.89rem;
  font-weight: 750;
  letter-spacing: -0.01em;
}

.brand-mark {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--bg);
  background: var(--primary);
  border-radius: 50%;
  font-size: 0.73rem;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 27px;
}

.nav-link {
  position: relative;
  padding: 8px 0;
  color: var(--text-soft);
  font-size: 0.83rem;
  font-weight: 650;
  transition: color 180ms ease;
}

.nav-link::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 1px;
  background: var(--primary);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--text);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.language-toggle {
  display: grid;
  min-width: 42px;
  height: 34px;
  place-items: center;
  padding: 0 10px;
  color: var(--primary);
  background: rgba(97, 229, 181, 0.07);
  border: 1px solid rgba(97, 229, 181, 0.3);
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  transition:
    color 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
}

.language-toggle:hover {
  color: var(--bg-deep);
  background: var(--primary);
  border-color: var(--primary);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  cursor: pointer;
}

.menu-toggle span {
  position: absolute;
  width: 18px;
  height: 1px;
  background: currentColor;
  transition: transform 180ms ease;
}

.menu-toggle span:first-child {
  transform: translateY(-3px);
}

.menu-toggle span:last-child {
  transform: translateY(3px);
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: rotate(-45deg);
}

/* Hero */

.hero {
  min-height: 100svh;
  padding-top: calc(var(--header-height) + 86px);
  padding-bottom: 70px;
  overflow: hidden;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 68px 68px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

.hero-glow {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(4px);
  opacity: 0.8;
  pointer-events: none;
}

.hero-glow-one {
  top: 100px;
  right: -160px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(66, 207, 156, 0.14), transparent 70%);
}

.hero-glow-two {
  top: 520px;
  left: -260px;
  width: 440px;
  height: 440px;
  background: radial-gradient(circle, rgba(224, 185, 108, 0.08), transparent 70%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.62fr);
  align-items: center;
  gap: clamp(45px, 7vw, 100px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 26px;
  color: var(--text-soft);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.status-dot {
  position: relative;
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(97, 229, 181, 0.08);
}

.hero h1 {
  max-width: 620px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3.1rem, 5.2vw, 4.8rem);
  font-stretch: condensed;
  font-weight: 750;
  line-height: 0.92;
  letter-spacing: -0.06em;
}

.hero h1 .headline-line {
  display: block;
}

.hero h1 .headline-accent {
  color: var(--primary);
}

.typing-line {
  display: flex;
  min-height: 32px;
  align-items: center;
  gap: 10px;
  margin-top: 25px;
  font-size: 0.77rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.typing-label {
  color: var(--muted);
}

.typing-label::after {
  margin-left: 10px;
  color: var(--line-strong);
  content: "/";
}

.typing-value {
  color: var(--gold);
}

.typing-caret {
  width: 7px;
  height: 1.05em;
  background: var(--primary);
  animation: caret-blink 850ms steps(1) infinite;
}

@keyframes caret-blink {
  50% {
    opacity: 0;
  }
}

.hero-intro {
  max-width: 660px;
  margin: 22px 0 0;
  color: var(--text-soft);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 37px;
}

.hero-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  margin-top: 42px;
}

.hero-socials a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.hero-socials a:hover {
  color: var(--primary);
}

.hero-socials span {
  font-size: 1rem;
}

.hero-visual {
  justify-self: end;
}

.portrait-frame {
  position: relative;
  width: min(100%, 330px);
  padding: 10px;
  background: linear-gradient(145deg, rgba(97, 229, 181, 0.3), rgba(224, 185, 108, 0.13));
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 220px 220px 30px 30px;
  box-shadow: var(--shadow);
  transform: perspective(1000px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transform-style: preserve-3d;
  transition:
    transform 240ms cubic-bezier(0.2, 0.7, 0.2, 1),
    box-shadow 240ms ease;
  will-change: transform;
}

.portrait-frame::before {
  position: absolute;
  top: -20px;
  right: -20px;
  bottom: 20px;
  left: 20px;
  z-index: -1;
  border: 1px solid rgba(97, 229, 181, 0.22);
  border-radius: inherit;
  content: "";
}

.portrait-frame::after {
  position: absolute;
  inset: -1px;
  z-index: 3;
  padding: 1px;
  background: conic-gradient(
    from var(--beam-angle, 0deg),
    transparent 0 74%,
    var(--primary) 82%,
    var(--gold) 88%,
    transparent 96%
  );
  border-radius: inherit;
  content: "";
  opacity: 0.72;
  pointer-events: none;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: portrait-beam 5s linear infinite;
}

@property --beam-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

@keyframes portrait-beam {
  to {
    --beam-angle: 360deg;
  }
}

.portrait-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 0.60;
  object-fit: cover;
  object-position: 50% 28%;
  border-radius: 210px 210px 22px 22px;
  filter: saturate(0.9) contrast(1.02);
  transform: translateZ(14px);
}

.portrait-grid {
  position: absolute;
  top: -54px;
  right: -53px;
  z-index: -1;
  width: 132px;
  height: 132px;
  background-image: radial-gradient(var(--gold) 1.4px, transparent 1.4px);
  background-size: 12px 12px;
  opacity: 0.42;
}

.portrait-label {
  position: absolute;
  z-index: 2;
  padding: 9px 14px;
  color: var(--text);
  background: rgba(7, 20, 17, 0.78);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transform: translateZ(30px);
}

.portrait-label-top {
  top: 22%;
  left: -63px;
}

.portrait-card {
  position: absolute;
  right: -42px;
  bottom: 42px;
  display: flex;
  min-width: 250px;
  align-items: center;
  gap: 13px;
  padding: 15px;
  background: rgba(10, 31, 25, 0.92);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
  transform: translateZ(30px);
}

.portrait-card-icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: 50%;
}

.portrait-card-icon svg {
  width: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.portrait-card strong,
.portrait-card small {
  display: block;
}

.portrait-card strong {
  font-size: 0.83rem;
}

.portrait-card small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.7rem;
}

.impact-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 0;
  margin-top: 92px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  list-style: none;
}

.impact-item {
  min-height: 128px;
  padding: 26px 28px;
  border-left: 1px solid var(--line);
}

.impact-item:last-child {
  border-right: 1px solid var(--line);
}

.impact-item strong,
.impact-item span {
  display: block;
}

.impact-item strong {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
  letter-spacing: -0.04em;
}

.impact-item > span {
  margin-top: 11px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.tech-marquee {
  width: 100%;
  margin-top: 52px;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.012);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: tech-marquee 32s linear infinite;
}

.marquee-group {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 24px;
  padding: 17px 12px;
}

.marquee-group span {
  color: var(--text-soft);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.marquee-group i {
  width: 5px;
  height: 5px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(97, 229, 181, 0.06);
}

.tech-marquee:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes tech-marquee {
  to {
    transform: translateX(-50%);
  }
}

/* About */

.about {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.012), transparent 24%),
    var(--bg-deep);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(50px, 8vw, 120px);
}

.about-statement p {
  margin: 0;
  color: var(--text-soft);
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.65rem);
  line-height: 1.1;
  letter-spacing: -0.045em;
}

.about-statement em {
  color: var(--gold);
  font-style: normal;
}

.about-copy > p {
  margin: 0 0 20px;
  color: var(--text-soft);
}

.about-copy strong {
  color: var(--text);
}

.profile-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 42px 0 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.profile-facts div {
  min-height: 106px;
  padding: 20px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.profile-facts dt {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.profile-facts dd {
  margin: 8px 0 0;
  font-size: 0.9rem;
  font-weight: 700;
}

/* Experience */

.experience {
  background: var(--bg);
}

.timeline {
  border-top: 1px solid var(--line);
}

.timeline-item {
  display: grid;
  grid-template-columns: minmax(190px, 0.36fr) minmax(0, 1fr);
  gap: 54px;
  padding: 46px 0;
  border-bottom: 1px solid var(--line);
}

.timeline-meta {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: var(--muted);
  font-size: 0.78rem;
}

.timeline-meta span:first-child {
  color: var(--primary);
  font-weight: 750;
}

.timeline-company {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 0.77rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.timeline-content h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.45rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.timeline-content > p:not(.timeline-company) {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--text-soft);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 25px 0 0;
  list-style: none;
}

.tag-list li,
.project-features span {
  padding: 7px 11px;
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.69rem;
  font-weight: 650;
}

/* Projects */

.projects {
  background:
    radial-gradient(circle at 85% 40%, rgba(97, 229, 181, 0.055), transparent 25rem),
    var(--bg-deep);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.js-ready .project-extra[hidden] {
  display: none;
}

.projects-more {
  display: flex;
  justify-content: center;
  margin-top: 36px;
}

.projects-toggle {
  display: none;
  min-width: 220px;
}

.js-ready .projects-toggle {
  display: inline-flex;
}

.projects-toggle svg {
  transition: transform 220ms ease;
}

.projects-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.project-card {
  position: relative;
  display: flex;
  min-height: 490px;
  flex-direction: column;
  overflow: hidden;
  padding: 31px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition:
    border-color 220ms ease,
    transform 220ms ease,
    box-shadow 220ms ease;
}

.project-card:hover {
  border-color: rgba(97, 229, 181, 0.35);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.2);
  transform: translateY(-4px);
}

.project-featured {
  display: grid;
  min-height: 590px;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: end;
  gap: 55px;
  padding: 38px;
  background:
    linear-gradient(120deg, rgba(97, 229, 181, 0.05), transparent 50%),
    var(--surface);
}

.project-featured .project-topline {
  position: absolute;
  top: 35px;
  right: 38px;
  left: 38px;
}

.project-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.project-number {
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
}

.project-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.project-status span {
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(97, 229, 181, 0.08);
}

.project-year {
  color: var(--muted);
  font-size: 0.72rem;
}

.project-graphic {
  position: relative;
  display: grid;
  min-height: 390px;
  place-items: center;
}

.project-graphic-logo {
  isolation: isolate;
}

.project-graphic-logo::before {
  position: absolute;
  z-index: 0;
  width: min(66%, 285px);
  aspect-ratio: 1;
  background: radial-gradient(
    circle,
    rgba(236, 247, 242, 0.22) 0%,
    rgba(173, 222, 204, 0.12) 48%,
    transparent 72%
  );
  border-radius: 50%;
  filter: blur(12px);
  content: "";
}

.project-logo-glow {
  position: absolute;
  z-index: -2;
  width: 72%;
  aspect-ratio: 1;
  background: radial-gradient(
    circle,
    rgba(56, 188, 177, 0.2),
    rgba(97, 229, 181, 0.055) 44%,
    transparent 70%
  );
  border-radius: 50%;
  filter: blur(18px);
}

.project-logo-ring {
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(97, 229, 181, 0.12);
  border-radius: 50%;
}

.project-logo-ring-one {
  width: 70%;
  aspect-ratio: 1;
}

.project-logo-ring-two {
  width: 88%;
  aspect-ratio: 1;
  border-color: rgba(224, 185, 108, 0.09);
}

.project-logo-onehealth {
  position: relative;
  z-index: 1;
  width: min(64%, 285px);
  height: auto;
  object-fit: contain;
  filter:
    contrast(1.08)
    brightness(1.05)
    drop-shadow(0 14px 24px rgba(0, 0, 0, 0.2));
  animation: onehealth-logo-float 5s ease-in-out infinite;
}

@keyframes onehealth-logo-float {
  0%,
  100% {
    transform: translateY(0) rotate(-0.6deg);
  }

  50% {
    transform: translateY(-9px) rotate(0.6deg);
  }
}

.project-graphic-map svg {
  width: 235px;
  fill: none;
  stroke: rgba(97, 229, 181, 0.36);
  stroke-width: 0.6;
}

.map-orbit {
  position: absolute;
  border: 1px solid rgba(97, 229, 181, 0.15);
  border-radius: 50%;
}

.map-orbit-one {
  width: 330px;
  height: 330px;
}

.map-orbit-two {
  width: 410px;
  height: 410px;
}

.map-node {
  position: absolute;
  z-index: 2;
  width: 13px;
  height: 13px;
  background: var(--primary);
  border: 3px solid var(--surface);
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(97, 229, 181, 0.08);
}

.map-node-one {
  top: 31%;
  left: 31%;
}

.map-node-two {
  top: 48%;
  right: 25%;
}

.map-node-three {
  bottom: 25%;
  left: 43%;
  background: var(--gold);
}

.map-line {
  position: absolute;
  z-index: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--primary), var(--gold));
  transform-origin: left;
}

.map-line-one {
  top: 37%;
  left: 32%;
  width: 42%;
  transform: rotate(18deg);
}

.map-line-two {
  top: 53%;
  left: 45%;
  width: 31%;
  transform: rotate(-35deg);
}

.project-icon {
  display: grid;
  width: 84px;
  height: 84px;
  place-items: center;
  margin: 76px 0 47px;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: 22px;
}

.project-icon svg {
  width: 42px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.project-thumbnail {
  position: relative;
  height: 185px;
  margin: 29px 0 34px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(97, 229, 181, 0.08), rgba(224, 185, 108, 0.05)),
    var(--bg-deep);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.project-thumbnail::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(4, 16, 13, 0.28));
  content: "";
  pointer-events: none;
}

.project-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 500ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.project-card:hover .project-thumbnail img {
  transform: scale(1.045);
}

.project-content {
  margin-top: auto;
}

.project-category {
  margin: 0 0 9px;
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-content h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.project-content > p:not(.project-category) {
  max-width: 610px;
  margin: 18px 0 0;
  color: var(--text-soft);
}

.project-features {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 24px;
}

.project-content .text-link {
  margin-top: 27px;
}

.project-reference {
  display: inline-flex;
  margin-top: 27px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Skills */

.skills {
  background: var(--bg);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.skill-card {
  position: relative;
  min-height: 470px;
  padding: 30px 26px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background-color 220ms ease;
}

.skill-card:hover {
  background: rgba(97, 229, 181, 0.035);
}

.skill-index {
  position: absolute;
  top: 24px;
  right: 25px;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.9rem;
}

.skill-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  margin-bottom: 58px;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: 50%;
}

.skill-icon svg {
  width: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skill-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.7rem;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.skill-card p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.6;
}

.skill-card ul {
  padding: 0;
  margin: 26px 0 0;
  list-style: none;
}

.skill-card li {
  position: relative;
  padding: 7px 0 7px 15px;
  color: var(--text-soft);
  border-top: 1px solid rgba(255, 255, 255, 0.055);
  font-size: 0.78rem;
}

.skill-card li::before {
  position: absolute;
  top: 17px;
  left: 0;
  width: 4px;
  height: 4px;
  background: var(--gold);
  border-radius: 50%;
  content: "";
}

/* Credentials */

.credentials {
  background:
    linear-gradient(180deg, transparent, rgba(97, 229, 181, 0.025)),
    var(--bg-deep);
}

.credentials-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.68fr) minmax(0, 1.32fr);
  gap: clamp(55px, 9vw, 135px);
}

.credentials-intro {
  align-self: start;
  position: sticky;
  top: calc(var(--header-height) + 40px);
}

.credentials-intro h2 {
  font-size: clamp(2.7rem, 5vw, 4.6rem);
}

.credentials-intro > p {
  margin-top: 25px;
}

.credentials-intro .text-link {
  margin-top: 31px;
}

.credentials-list {
  border-top: 1px solid var(--line);
}

.credential-row {
  display: grid;
  min-height: 145px;
  grid-template-columns: 73px minmax(0, 1fr) 48px;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}

.credential-year {
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 750;
}

.credential-row h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.credential-row p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.credential-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--bg-deep);
  background: var(--text);
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 900;
}

.credential-mark-heart {
  color: var(--bg-deep);
  background: var(--gold);
}

/* Contact */

.contact {
  padding-bottom: 80px;
  background: var(--bg);
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(350px, 0.75fr);
  gap: clamp(55px, 8vw, 115px);
  padding: clamp(38px, 7vw, 80px);
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 100%, rgba(224, 185, 108, 0.09), transparent 25rem),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: 32px;
}

.contact-copy h2 {
  font-size: clamp(3rem, 6vw, 5.6rem);
}

.contact-copy > p {
  max-width: 580px;
  margin-top: 28px;
}

.contact-direct {
  display: grid;
  gap: 18px;
  margin-top: 50px;
}

.contact-direct a {
  display: flex;
  flex-direction: column;
}

.contact-direct a span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-direct a strong {
  margin-top: 2px;
  font-size: 0.95rem;
}

.copy-button {
  justify-self: start;
  padding: 7px 0;
  color: var(--primary);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 750;
}

.contact-form {
  padding: 30px;
  background: rgba(3, 15, 12, 0.47);
  border: 1px solid var(--line);
  border-radius: 22px;
}

.form-row {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.form-row label {
  color: var(--text-soft);
  font-size: 0.73rem;
  font-weight: 700;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  outline: none;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.form-row input,
.form-row select {
  min-height: 50px;
  padding: 0 14px;
}

.form-row textarea {
  min-height: 128px;
  padding: 13px 14px;
  resize: vertical;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  background: rgba(255, 255, 255, 0.055);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(97, 229, 181, 0.08);
}

.form-row input::placeholder,
.form-row textarea::placeholder {
  color: #60736a;
}

.form-row select {
  color-scheme: dark;
}

.form-submit {
  width: 100%;
  margin-top: 4px;
}

.form-note,
.form-status {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 0.66rem;
  line-height: 1.5;
}

.form-status {
  min-height: 1.5em;
  color: var(--primary);
}

.form-status.is-error {
  color: var(--danger);
}

/* Footer */

.site-footer {
  padding: 45px 0;
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 30px;
}

.footer-inner > div:first-child p {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 0.72rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 24px;
  color: var(--text-soft);
  font-size: 0.76rem;
  font-weight: 700;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-copy {
  grid-column: 1 / -1;
  margin: 25px 0 0;
  padding-top: 22px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.67rem;
}

.scroll-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 900;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: var(--bg-deep);
  background: var(--primary);
  border: 0;
  border-radius: 50%;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(15px) scale(0.9);
  transition:
    opacity 220ms ease,
    transform 220ms ease,
    background-color 180ms ease;
}

.scroll-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.scroll-top:hover {
  background: #83edc7;
  transform: translateY(-3px) scale(1);
}

.scroll-top svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Reveal animations */

.js-ready .reveal {
  opacity: 0;
  transform: translateY(34px);
  transition:
    opacity 720ms cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 720ms cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.js-ready .reveal-delay {
  --reveal-delay: 120ms;
}

.js-ready .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.js-ready .hero .headline-line {
  opacity: 0;
  clip-path: inset(0 0 100% 0);
  transform: translateY(36px);
}

.js-ready .hero-copy > :not(h1) {
  opacity: 0;
  transform: translateY(16px);
}

.js-ready.page-loaded .hero-copy > :not(h1) {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 580ms ease,
    transform 580ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.js-ready.page-loaded .hero-copy > .typing-line {
  transition-delay: 180ms;
}

.js-ready.page-loaded .hero-copy > .hero-intro {
  transition-delay: 250ms;
}

.js-ready.page-loaded .hero-copy > .hero-actions {
  transition-delay: 320ms;
}

.js-ready.page-loaded .hero-copy > .hero-socials {
  transition-delay: 390ms;
}

.js-ready .hero-visual {
  opacity: 0;
  transform: translateX(26px);
}

.js-ready.page-loaded .hero-visual {
  opacity: 1;
  transform: translateX(0);
  transition:
    opacity 760ms ease 180ms,
    transform 820ms cubic-bezier(0.2, 0.7, 0.2, 1) 180ms;
}

.js-ready.page-loaded .hero .headline-line {
  opacity: 1;
  clip-path: inset(0);
  transform: translateY(0);
  transition:
    opacity 700ms ease,
    clip-path 850ms cubic-bezier(0.2, 0.75, 0.2, 1),
    transform 850ms cubic-bezier(0.2, 0.75, 0.2, 1);
}

.js-ready.page-loaded .hero .headline-accent {
  transition-delay: 110ms;
}

.section-heading::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--primary), transparent 65%);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 950ms cubic-bezier(0.2, 0.7, 0.2, 1) 180ms;
}

.section-heading {
  position: relative;
}

.section-heading.is-visible::after {
  transform: scaleX(1);
}

/* Responsive */

@media (max-width: 1050px) {
  .main-nav {
    gap: 18px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(285px, 0.58fr);
    gap: 50px;
  }

  .portrait-card {
    right: -18px;
  }

  .portrait-label-top {
    left: -30px;
  }

  .skills-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .skill-card {
    min-height: 440px;
  }
}

@media (max-width: 860px) {
  :root {
    --header-height: 72px;
  }

  .section {
    padding: 86px 0;
  }

  .menu-toggle {
    position: relative;
    z-index: 1002;
    display: grid;
  }

  .header-actions {
    gap: 9px;
  }

  .language-toggle {
    position: relative;
    z-index: 1002;
  }

  .main-nav {
    position: fixed;
    inset: 0;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 4px;
    padding: 80px 30px 40px;
    background: rgba(4, 16, 13, 0.98);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition:
      opacity 180ms ease,
      transform 180ms ease;
  }

  .main-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .main-nav .nav-link {
    padding: 10px 0;
    color: var(--text);
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 8vw, 4rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.04em;
  }

  .main-nav .nav-link::after {
    display: none;
  }

  .main-nav .button {
    align-self: flex-start;
    margin-top: 24px;
  }

  .hero {
    padding-top: calc(var(--header-height) + 70px);
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    position: relative;
    z-index: 2;
  }

  .hero-visual {
    width: min(78%, 390px);
    justify-self: center;
    margin-top: 20px;
  }

  .impact-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .impact-item:nth-child(3),
  .impact-item:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .section-heading > p {
    max-width: 610px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .project-featured {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 100px;
  }

  .project-graphic {
    min-height: 330px;
  }

  .credentials-grid,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .credentials-intro {
    position: static;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .section {
    padding: 74px 0;
  }

  .brand-name {
    font-size: 0.8rem;
  }

  .hero {
    padding-top: calc(var(--header-height) + 48px);
  }

  .hero h1 {
    max-width: 470px;
    font-size: clamp(2.35rem, 9vw, 3.1rem);
    line-height: 1;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-socials {
    gap: 17px;
  }

  .hero-visual {
    width: min(calc(100% - 34px), 310px);
    margin-top: 34px;
  }

  .portrait-frame::before {
    right: -10px;
  }

  .portrait-frame img {
    aspect-ratio: 0.74;
    object-position: 50% 24%;
  }

  .portrait-label-top {
    top: 22px;
    left: 50%;
    white-space: nowrap;
    transform: translateX(-50%) translateZ(30px);
  }

  .portrait-card {
    position: relative;
    right: auto;
    bottom: auto;
    width: calc(100% - 24px);
    min-width: 0;
    margin: -32px auto 2px;
    padding: 12px;
  }

  .portrait-grid {
    top: -34px;
    right: -20px;
    width: 104px;
    height: 104px;
  }

  .impact-strip {
    margin-top: 70px;
  }

  .tech-marquee {
    margin-top: 40px;
  }

  .marquee-group {
    gap: 18px;
  }

  .scroll-top {
    right: 14px;
    bottom: 14px;
    width: 44px;
    height: 44px;
  }

  .impact-item {
    min-height: 117px;
    padding: 22px 16px;
  }

  .impact-item strong {
    font-size: 1.65rem;
  }

  .section-heading {
    margin-bottom: 38px;
  }

  .profile-facts {
    grid-template-columns: 1fr;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 35px 0;
  }

  .timeline-meta {
    flex-flow: row wrap;
    justify-content: space-between;
  }

  .projects-grid,
  .skills-grid {
    grid-template-columns: 1fr;
  }

  .project-card,
  .project-featured {
    min-height: 500px;
    grid-column: auto;
    padding: 25px;
  }

  .project-featured {
    min-height: auto;
    padding-top: 86px;
  }

  .project-featured .project-topline {
    top: 27px;
    right: 25px;
    left: 25px;
  }

  .project-graphic {
    min-height: 295px;
    transform: scale(0.84);
  }

  .skill-card {
    min-height: auto;
  }

  .credential-row {
    min-height: 136px;
    grid-template-columns: 60px minmax(0, 1fr);
  }

  .credential-mark {
    display: none;
  }

  .contact-panel {
    gap: 45px;
    padding: 28px 18px;
    border-radius: 23px;
  }

  .contact-form {
    padding: 22px 16px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .js-ready .reveal {
    opacity: 1;
    transform: none;
  }

  .js-ready .hero .headline-line,
  .js-ready.page-loaded .hero .headline-line {
    opacity: 1;
    clip-path: none;
    transform: none;
  }

  .js-ready .hero-copy > :not(h1),
  .js-ready.page-loaded .hero-copy > :not(h1),
  .js-ready .hero-visual,
  .js-ready.page-loaded .hero-visual {
    opacity: 1;
    transform: none;
  }

  .marquee-track,
  .portrait-frame::after,
  .typing-caret,
  .project-logo-onehealth {
    animation: none;
  }
}
