/* =========================================================================
   رزومه حرفه‌ای — استایل اصلی
   ========================================================================= */

@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/vazirmatn-arabic.05d9ce2a23d3.woff2") format("woff2-variations"),
       url("../fonts/vazirmatn-arabic.05d9ce2a23d3.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200D;
}

@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/vazirmatn-latin.e7eada615dc3.woff2") format("woff2-variations"),
       url("../fonts/vazirmatn-latin.e7eada615dc3.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}

@counter-style persian-pad {
  system: numeric;
  symbols: "۰" "۱" "۲" "۳" "۴" "۵" "۶" "۷" "۸" "۹";
  pad: 2 "۰";
}

:root {
  --navy: #12233d;
  --navy-900: #0b1729;
  --navy-800: #14263f;
  --navy-700: #1d3555;
  --accent: #c8a15a;
  --accent-soft: #e2c68d;
  --ink: #1b2432;
  --ink-soft: #5c6879;
  --ink-faint: #8b95a5;
  --line: #e4e7ec;
  --line-soft: #eef0f4;
  --surface: #ffffff;
  --surface-2: #f7f8fa;
  --bg: #fbfbfc;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 10px rgba(18, 35, 61, .05);
  --shadow: 0 12px 34px rgba(18, 35, 61, .08);
  --shadow-lg: 0 26px 60px rgba(18, 35, 61, .14);

  --shell: 1180px;
  --ease: cubic-bezier(.22, .68, .36, 1);
  --dur: .45s;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Vazirmatn", Tahoma, "Segoe UI", sans-serif;
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--ink);
  background: var(--bg);
  counter-reset: section;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.4; font-weight: 800; letter-spacing: -.01em; }
p { margin: 0; }
dl, dd, dt { margin: 0; }
button { font: inherit; }

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: 24px;
}

.icon {
  width: 1.15em;
  height: 1.15em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.skip-link {
  position: absolute;
  inset-inline-start: -9999px;
  top: 0;
  z-index: 200;
  background: var(--navy);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}
.skip-link:focus { inset-inline-start: 16px; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ------------------------------------------------------- scroll progress bar */
.scroll-progress {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  height: 3px;
  z-index: 120;
  pointer-events: none;
}
.scroll-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
  box-shadow: 0 0 12px rgba(200, 161, 90, .55);
  transition: width .1s linear;
}

/* ------------------------------------------------------------------ header */
.site-header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 110;
  padding-block: 16px;
  transition: padding .3s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(251, 251, 252, .82);
  backdrop-filter: blur(14px);
  opacity: 0;
  transition: opacity .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-stuck { padding-block: 10px; }
.site-header.is-stuck::before {
  opacity: 1;
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(140deg, var(--navy), var(--navy-700));
  color: var(--accent-soft);
  font-weight: 800;
  font-size: 18px;
  box-shadow: 0 6px 16px rgba(18, 35, 61, .22);
  transition: transform .35s var(--ease);
}
.brand:hover .brand-mark { transform: rotate(-6deg) scale(1.05); }
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.brand-text { display: flex; flex-direction: column; line-height: 1.35; }
.brand-text strong { font-size: 15.5px; }
.brand-text small { color: var(--ink-faint); font-size: 12px; }

.main-nav ul { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  position: relative;
  display: block;
  padding: 8px 13px;
  font-size: 14px;
  color: var(--ink-soft);
  border-radius: 9px;
  transition: color .25s var(--ease), background .25s var(--ease);
}
.main-nav a::after {
  content: "";
  position: absolute;
  inset-inline: 13px;
  inset-block-end: 3px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: inline-end;
  transition: transform .3s var(--ease);
}
.main-nav a:hover { color: var(--navy); }
.main-nav a:hover::after { transform: scaleX(1); }
.main-nav a.is-active { color: var(--navy); font-weight: 700; }
.main-nav a.is-active::after { transform: scaleX(1); }

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

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 12px;
  color: var(--navy);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

/* ------------------------------------------------------------------ buttons */
.btn {
  --btn-bg: var(--navy);
  --btn-fg: #fff;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease),
              background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, .28), transparent);
  transform: translateX(-120%);
  transition: transform .7s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(18, 35, 61, .18); }
.btn:hover::before { transform: translateX(120%); }
.btn:active { transform: translateY(0); }
.btn .icon { font-size: 16px; }

.btn-primary {
  --btn-bg: linear-gradient(135deg, var(--navy), var(--navy-700));
  box-shadow: 0 10px 24px rgba(18, 35, 61, .18);
}
.btn-outline {
  --btn-bg: transparent;
  --btn-fg: var(--navy);
  border-color: var(--line);
  background: rgba(255, 255, 255, .7);
}
.btn-outline:hover { border-color: var(--accent); color: var(--navy); }
.btn-ghost {
  --btn-bg: transparent;
  --btn-fg: var(--navy);
  border-color: var(--line);
}
.btn-sm { padding: 9px 16px; font-size: 13px; border-radius: 10px; }

/* ------------------------------------------------------------------ hero */
.hero {
  position: relative;
  padding-block: 148px 72px;
  overflow: hidden;
  background: linear-gradient(180deg, #f4f6f9 0%, var(--bg) 78%);
}
.hero-glow { position: absolute; inset: 0; pointer-events: none; }
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .5;
}
.glow-a {
  width: 480px; height: 480px;
  inset-inline-end: -110px;
  inset-block-start: -140px;
  background: radial-gradient(circle, rgba(200, 161, 90, .5), transparent 68%);
  animation: floatSlow 16s ease-in-out infinite;
}
.glow-b {
  width: 420px; height: 420px;
  inset-inline-start: -120px;
  inset-block-start: 180px;
  background: radial-gradient(circle, rgba(29, 53, 85, .32), transparent 68%);
  animation: floatSlow 20s ease-in-out infinite reverse;
}
.grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to left, rgba(18, 35, 61, .045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(18, 35, 61, .045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, #000 30%, transparent 78%);
}

@keyframes floatSlow {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-18px, 22px, 0) scale(1.06); }
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 56px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 16px;
  border: 1px solid rgba(200, 161, 90, .4);
  background: rgba(200, 161, 90, .1);
  border-radius: 100px;
  color: #8a6c2c;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 20px;
}
.hero-eyebrow .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(200, 161, 90, .2);
}

.hero-title {
  font-size: clamp(2.1rem, 5vw, 3.5rem);
  line-height: 1.22;
  color: var(--navy-900);
  margin-bottom: 16px;
}
.hero-tagline {
  font-size: clamp(1rem, 2vw, 1.18rem);
  color: var(--ink-soft);
  max-width: 46ch;
  margin-bottom: 22px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--ink-soft);
}
.hero-meta li { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta .icon { color: var(--accent); }

.availability {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 700;
  color: #1f6b4a;
  background: rgba(36, 145, 98, .1);
  border: 1px solid rgba(36, 145, 98, .24);
  padding: 8px 16px;
  border-radius: 100px;
  margin-bottom: 28px;
}
.availability-inline { margin: 20px 0 0; }
.pulse {
  position: relative;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #24a06a;
}
.pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: inherit;
  animation: pulseRing 2s ease-out infinite;
}
@keyframes pulseRing {
  0% { transform: scale(1); opacity: .7; }
  100% { transform: scale(3.4); opacity: 0; }
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }

.social-row { display: flex; flex-wrap: wrap; gap: 10px; }
.social-row a {
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--navy);
  font-size: 17px;
  transition: transform .28s var(--ease), color .28s var(--ease),
              border-color .28s var(--ease), box-shadow .28s var(--ease);
}
.social-row a:hover {
  transform: translateY(-3px);
  color: var(--accent);
  border-color: rgba(200, 161, 90, .55);
  box-shadow: 0 10px 20px rgba(18, 35, 61, .12);
}
.social-row-sm a { width: 38px; height: 38px; font-size: 15px; }

/* ---------------------------------------------------------- profile photo */
.hero-visual { display: flex; justify-content: center; }
.portrait-frame { position: relative; width: min(330px, 100%); }
.portrait {
  position: relative;
  z-index: 2;
  aspect-ratio: 4 / 5;
  border-radius: 26px;
  overflow: hidden;
  background: linear-gradient(150deg, var(--navy), var(--navy-700));
  box-shadow: var(--shadow-lg);
  display: grid;
  place-items: center;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait-placeholder {
  display: grid;
  place-items: center;
  font-size: 92px;
  color: rgba(226, 198, 141, .35);
}
.portrait-placeholder .icon { stroke-width: 1.1; }
.portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(190deg, transparent 55%, rgba(11, 23, 41, .45));
}
.frame-line {
  position: absolute;
  border-radius: 26px;
  border: 1.5px solid var(--accent);
  z-index: 1;
}
.frame-line-1 {
  inset: 18px -18px -18px 18px;
  opacity: .55;
  animation: frameFloat 9s ease-in-out infinite;
}
.frame-line-2 {
  inset: 34px -34px -34px 34px;
  opacity: .22;
  animation: frameFloat 9s ease-in-out infinite .6s;
}
@keyframes frameFloat {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(4px, -4px); }
}

.float-card {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 15px;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  font-size: 12.5px;
  max-width: 210px;
}
.float-card .icon { color: var(--accent); font-size: 18px; }
.float-card strong { display: block; font-size: 13px; color: var(--navy); }
.float-card small { color: var(--ink-faint); font-size: 11.5px; }
.float-card-1 {
  inset-block-start: 30px;
  inset-inline-start: -46px;
  animation: bob 6s ease-in-out infinite;
}
.float-card-2 {
  inset-block-end: 46px;
  inset-inline-end: -34px;
  animation: bob 6s ease-in-out infinite 1.6s;
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* ------------------------------------------------------------ key figures */
.stats-strip {
  position: relative;
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.stat {
  background: var(--surface);
  padding: 26px 20px;
  text-align: center;
  transition: background .3s var(--ease), transform .3s var(--ease);
}
.stat:hover { background: var(--surface-2); }
.stat-icon { font-size: 20px; color: var(--accent); margin-bottom: 8px; }
.stat-value {
  font-size: 30px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
}
.stat-value i { font-style: normal; font-size: 18px; color: var(--accent); }
.stat-label { font-size: 13px; color: var(--ink-soft); margin-top: 4px; }

.scroll-hint {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  margin: 40px auto 0;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--ink-faint);
  background: var(--surface);
  animation: hintBounce 2.4s ease-in-out infinite;
}
.scroll-hint:hover { color: var(--accent); border-color: var(--accent); }
@keyframes hintBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ------------------------------------------------------------------ sections */
.section { padding-block: 84px; position: relative; }
.section-about { background: var(--surface); border-block: 1px solid var(--line-soft); }
.section-skills { background: var(--surface); border-block: 1px solid var(--line-soft); }
.section-certificates { background: var(--surface); border-block: 1px solid var(--line-soft); }
.section-assessments { background: var(--surface); border-block: 1px solid var(--line-soft); }

.section-head { max-width: 620px; margin-bottom: 44px; }
.section-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-eyebrow::before {
  counter-increment: section;
  content: counter(section, persian-pad);
  font-size: 12px;
  font-weight: 800;
  color: var(--navy);
  background: rgba(200, 161, 90, .14);
  border: 1px solid rgba(200, 161, 90, .3);
  border-radius: 8px;
  padding: 2px 8px;
}
.section-eyebrow::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(to left, var(--line), transparent);
}
.section-title {
  font-size: clamp(1.5rem, 3.1vw, 2.1rem);
  color: var(--navy-900);
}
.section-lead { margin-top: 12px; color: var(--ink-soft); font-size: 15px; }

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: rgba(200, 161, 90, .38);
}
.card-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 16px;
  color: var(--navy);
  margin-bottom: 14px;
}
.card-title .icon { color: var(--accent); }
.card-subtitle { font-size: 12.5px; color: var(--ink-faint); }

.rich-text { color: var(--ink-soft); font-size: 14.5px; }
.rich-text p { margin-bottom: 8px; }
.rich-text p:last-child { margin-bottom: 0; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  white-space: nowrap;
}
.tag-period { font-variant-numeric: tabular-nums; }
.tag-gold {
  background: rgba(200, 161, 90, .12);
  border-color: rgba(200, 161, 90, .32);
  color: #8a6c2c;
}
.tag-live {
  background: rgba(36, 160, 106, .1);
  border-color: rgba(36, 160, 106, .28);
  color: #1f6b4a;
}
.sep { color: var(--ink-faint); margin-inline: 2px; }

/* ------------------------------------------------------------ about me */
.about-grid {
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  gap: 32px;
  align-items: start;
}
.about-text { position: relative; padding-top: 8px; }
.quote-mark {
  font-size: 34px;
  color: rgba(200, 161, 90, .35);
  margin-bottom: 12px;
}
.about-text .rich-text { font-size: 16px; line-height: 2; }

.about-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  margin-top: 26px;
}
.highlight {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  transition: transform .28s var(--ease), border-color .28s var(--ease), background .28s var(--ease);
}
.highlight:hover {
  transform: translateY(-2px);
  border-color: rgba(200, 161, 90, .45);
  background: var(--surface);
}
.highlight .icon { font-size: 19px; color: var(--accent); }
.highlight small { display: block; font-size: 11.5px; color: var(--ink-faint); }
.highlight strong { font-size: 13.5px; color: var(--navy); }

.about-side { display: grid; gap: 18px; }
.detail-list { display: grid; gap: 2px; }
.detail-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 13.5px;
}
.detail-row:last-child { border-bottom: 0; }
.detail-row dt { color: var(--ink-faint); }
.detail-row dd { color: var(--navy); font-weight: 600; text-align: end; }

.salary-card { background: linear-gradient(150deg, var(--navy), var(--navy-700)); border-color: transparent; }
.salary-card .card-title { color: #fff; }
.salary-card .card-title .icon { color: var(--accent-soft); }
.salary-value { font-size: 19px; font-weight: 800; color: var(--accent-soft); }
.salary-note { font-size: 12.5px; color: rgba(255, 255, 255, .62); margin-top: 6px; }

/* ------------------------------------------------------------- timeline */
.timeline { position: relative; padding-inline-start: 34px; }
.timeline::before {
  content: "";
  position: absolute;
  inset-block: 8px;
  inset-inline-start: 7px;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), rgba(200, 161, 90, .22) 70%, transparent);
}
.timeline-item { position: relative; padding-bottom: 20px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-node {
  position: absolute;
  inset-inline-start: -34px;
  inset-block-start: 26px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--accent);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.timeline-item.is-featured .timeline-node {
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(200, 161, 90, .18);
}
.timeline-item:hover .timeline-node { transform: scale(1.22); }

.timeline-card { padding: 20px 22px; }
.timeline-item.is-featured .timeline-card { border-inline-start: 3px solid var(--accent); }
.timeline-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.timeline-position { font-size: 16.5px; color: var(--navy-900); }
.timeline-company {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 5px;
  font-size: 13.5px;
  color: var(--ink-soft);
}
.timeline-company .icon { color: var(--accent); font-size: 15px; }
.timeline-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.timeline-body { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }
.timeline-duration {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-faint);
  margin-bottom: 6px;
}

/* ------------------------------------------------------------- skills */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 20px;
}
.skill-card { display: flex; flex-direction: column; }
.skill-card-head { display: flex; align-items: center; gap: 13px; margin-bottom: 18px; }
.skill-card-head .card-title { margin-bottom: 0; }
.skill-icon {
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(200, 161, 90, .16), rgba(200, 161, 90, .05));
  border: 1px solid rgba(200, 161, 90, .3);
  color: var(--accent);
  font-size: 19px;
  transition: transform .35s var(--ease);
}
.skill-card:hover .skill-icon { transform: rotate(-8deg) scale(1.06); }

.bar-list { display: grid; gap: 16px; }
.bar-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 7px;
}
.bar-name { font-size: 14px; font-weight: 600; color: var(--navy); }
.bar-level { font-size: 12px; color: var(--accent); font-weight: 700; }
.bar-track {
  height: 7px;
  border-radius: 100px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  overflow: hidden;
}
.bar-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 100px;
  background: linear-gradient(90deg, var(--navy-700), var(--accent));
  transition: width 1.1s var(--ease);
}
.bar-note { font-size: 12px; color: var(--ink-faint); margin-top: 5px; }

.chip-list { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 13.5px;
  opacity: 0;
  transform: translateY(8px);
  animation: chipIn .45s var(--ease) forwards;
  animation-delay: calc(var(--i, 0) * 45ms);
  transition: border-color .25s var(--ease), transform .25s var(--ease), background .25s var(--ease);
}
.chip:hover {
  border-color: rgba(200, 161, 90, .5);
  background: var(--surface);
  transform: translateY(-2px);
}
.chip-name { font-weight: 600; color: var(--navy); }
.chip-level { font-size: 11.5px; color: var(--accent); }
@keyframes chipIn {
  to { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------- education & courses */
.two-column {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  align-items: start;
}
.column-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  color: var(--navy);
  padding-bottom: 12px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.column-title .icon { color: var(--accent); font-size: 18px; }
.stack { display: grid; gap: 14px; }

.edu-degree { font-size: 16px; color: var(--navy-900); }
.edu-institution {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 6px;
  font-size: 13.5px;
  color: var(--ink-soft);
}
.edu-institution .icon { color: var(--accent); font-size: 15px; }
.edu-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }

.course-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 17px 19px;
}
.course-title { font-size: 14.5px; color: var(--navy-900); line-height: 1.6; }
.course-provider { font-size: 12.5px; color: var(--ink-soft); margin-top: 5px; }
.course-note { font-size: 12.5px; color: var(--ink-faint); margin-top: 5px; }
.course-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.course-hours {
  font-size: 11.5px;
  color: var(--accent);
  font-weight: 700;
  white-space: nowrap;
}

/* --------------------------------------------------------- certificates */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.cert-card { padding-top: 30px; overflow: hidden; }
.cert-ribbon {
  position: absolute;
  inset-block-start: 0;
  inset-inline-end: 0;
  width: 54px; height: 54px;
  display: grid;
  place-items: center;
  color: var(--accent);
  font-size: 20px;
  background: linear-gradient(225deg, rgba(200, 161, 90, .18), transparent 70%);
  border-end-start-radius: 20px;
}
.cert-title { font-size: 15.5px; color: var(--navy-900); padding-inline-end: 34px; }
.cert-issuer { font-size: 13px; color: var(--accent); font-weight: 600; margin-top: 6px; }
.cert-meta {
  display: grid;
  gap: 1px;
  margin-top: 16px;
  border-top: 1px dashed var(--line);
  padding-top: 12px;
}
.cert-meta li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12.5px;
  padding: 5px 0;
}
.cert-meta span { color: var(--ink-faint); }
.cert-meta b { color: var(--navy); font-weight: 600; }
.cert-thumb {
  display: block;
  margin-top: 14px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
}
.cert-thumb img { transition: transform .5s var(--ease); }
.cert-thumb:hover img { transform: scale(1.05); }

/* ------------------------------------------------------------- projects */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}
.project-card { padding: 0; overflow: hidden; }
.project-image { aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); }
.project-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.project-card:hover .project-image img { transform: scale(1.06); }
.project-body { padding: 24px; position: relative; }
.project-index {
  position: absolute;
  inset-block-start: 12px;
  inset-inline-end: 20px;
  font-size: 44px;
  font-weight: 800;
  color: rgba(18, 35, 61, .06);
  line-height: 1;
}
.project-title { font-size: 16.5px; color: var(--navy-900); position: relative; }
.project-meta { display: flex; flex-wrap: wrap; gap: 7px; margin: 12px 0 14px; }

/* ----------------------------------------------------------- assessments */
.assessment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.assessment-card { text-align: center; padding-block: 30px; }
.assessment-icon {
  width: 54px; height: 54px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(200, 161, 90, .18), rgba(200, 161, 90, .04));
  border: 1px solid rgba(200, 161, 90, .3);
  color: var(--accent);
  font-size: 24px;
  transition: transform .4s var(--ease);
}
.assessment-card:hover .assessment-icon { transform: translateY(-3px) scale(1.05); }
.assessment-title { font-size: 15px; color: var(--ink-soft); font-weight: 600; }
.assessment-result { font-size: 17px; font-weight: 800; color: var(--navy-900); margin-top: 6px; }
.assessment-score { font-size: 13.5px; color: var(--accent); font-weight: 700; margin-top: 4px; }
.assessment-note { font-size: 12.5px; color: var(--ink-faint); margin-top: 8px; }

/* ------------------------------------------------------------------ contact */
.section-contact {
  background: linear-gradient(180deg, var(--bg) 0%, #f2f4f7 100%);
}
.contact-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 24px;
  align-items: start;
}
.contact-card { background: linear-gradient(155deg, var(--navy), var(--navy-800)); border-color: transparent; }
.contact-card .card-title { color: #fff; }
.contact-list { display: grid; gap: 4px; }
.contact-list li {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.contact-list li:last-child { border-bottom: 0; }
.contact-icon {
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .12);
  color: var(--accent-soft);
  font-size: 16px;
  transition: transform .3s var(--ease), background .3s var(--ease);
}
.contact-list li:hover .contact-icon { transform: translateY(-2px); background: rgba(200, 161, 90, .18); }
.contact-list small { display: block; font-size: 11.5px; color: rgba(255, 255, 255, .5); }
.contact-list a, .contact-list b { font-size: 13.5px; color: #fff; font-weight: 600; }
.contact-list a { border-bottom: 1px solid transparent; transition: border-color .25s var(--ease), color .25s var(--ease); }
.contact-list a:hover { color: var(--accent-soft); border-bottom-color: var(--accent-soft); }
.contact-card .availability {
  background: rgba(36, 160, 106, .16);
  border-color: rgba(36, 160, 106, .3);
  color: #7ee0b0;
}

.contact-form { padding: 28px; }
.form-row { display: grid; gap: 16px; margin-bottom: 16px; }
.form-row-2 { grid-template-columns: 1fr 1fr; }
.form-field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.form-row .form-field { margin-bottom: 0; }
.form-field label { font-size: 13.5px; font-weight: 600; color: var(--navy); }
.req { color: #d0483c; }

.form-input {
  width: 100%;
  font: inherit;
  font-size: 14.5px;
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--ink);
  transition: border-color .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease);
}
.form-input::placeholder { color: #b3bbc7; }
.form-input:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 4px rgba(200, 161, 90, .14);
}
.form-input.has-error { border-color: #d0483c; background: rgba(208, 72, 60, .04); }
.form-textarea { resize: vertical; min-height: 130px; line-height: 1.9; }

.field-error {
  font-size: 12px;
  color: #d0483c;
  min-height: 0;
  opacity: 0;
  max-height: 0;
  transform: translateY(-4px);
  transition: opacity .25s var(--ease), max-height .25s var(--ease), transform .25s var(--ease);
}
.field-error:not(:empty) { opacity: 1; max-height: 40px; transform: translateY(0); }

.honeypot {
  position: absolute;
  inset-inline-start: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 6px;
}
.form-hint { font-size: 12px; color: var(--ink-faint); max-width: 32ch; }
.btn-submit { min-width: 158px; justify-content: center; }
.btn-submit .btn-label { display: inline-flex; align-items: center; gap: 8px; }
.btn-spinner {
  position: absolute;
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .35);
  border-top-color: #fff;
  opacity: 0;
  animation: spin .7s linear infinite;
}
.btn-submit.is-loading { pointer-events: none; }
.btn-submit.is-loading .btn-label { opacity: 0; }
.btn-submit.is-loading .btn-spinner { opacity: 1; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 20px;
  animation: alertIn .4s var(--ease);
}
.form-alert[hidden] { display: none; }
.form-alert.is-success {
  background: rgba(36, 160, 106, .1);
  border: 1px solid rgba(36, 160, 106, .3);
  color: #1f6b4a;
}
.form-alert.is-error {
  background: rgba(208, 72, 60, .08);
  border: 1px solid rgba(208, 72, 60, .28);
  color: #b03a2f;
}
@keyframes alertIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.form-disabled { text-align: center; color: var(--ink-soft); padding: 40px 24px; }

.page-messages { display: grid; gap: 10px; margin-top: 24px; }
.page-message {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  background: rgba(36, 160, 106, .1);
  border: 1px solid rgba(36, 160, 106, .28);
  color: #1f6b4a;
}
.page-message.error {
  background: rgba(208, 72, 60, .08);
  border-color: rgba(208, 72, 60, .28);
  color: #b03a2f;
}

/* ------------------------------------------------------------------ footer */
.site-footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, .75);
  padding-block: 34px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.footer-brand { display: flex; flex-direction: column; }
.footer-brand strong { color: #fff; font-size: 15px; }
.footer-brand span { font-size: 12.5px; color: rgba(255, 255, 255, .5); }
.site-footer .social-row a {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .8);
}
.site-footer .social-row a:hover { color: var(--accent-soft); border-color: rgba(200, 161, 90, .5); }
.footer-note { font-size: 12.5px; color: rgba(255, 255, 255, .45); }

.to-top {
  position: fixed;
  inset-block-end: 24px;
  inset-inline-start: 24px;
  z-index: 100;
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--navy);
  font-size: 18px;
  cursor: pointer;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { color: var(--accent); border-color: var(--accent); }

/* ------------------------------------------------------ reveal animation */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  transition-delay: calc(var(--reveal-delay, 0) * 70ms);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .hero-visual { order: -1; }
  .portrait-frame { width: min(280px, 78%); }
  .float-card-1 { inset-inline-start: -20px; }
  .float-card-2 { inset-inline-end: -14px; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: fixed;
    inset-block-start: 74px;
    inset-inline: 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .28s var(--ease), transform .28s var(--ease), visibility .28s;
  }
  .main-nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .main-nav a { padding: 11px 14px; font-size: 14.5px; }
  .main-nav a::after { display: none; }
  .main-nav a.is-active { background: var(--surface-2); }
  .brand-text small { display: none; }
  .hero { padding-block: 118px 56px; }
  .section { padding-block: 62px; }
  .form-row-2 { grid-template-columns: 1fr; }
  .header-actions .btn span { display: none; }
  .header-actions .btn { padding: 9px 12px; }
}

@media (max-width: 560px) {
  .shell { padding-inline: 18px; }
  body { font-size: 15px; }
  .float-card { display: none; }
  .stats-strip { grid-template-columns: 1fr 1fr; }
  .contact-form { padding: 20px; }
  .timeline { padding-inline-start: 26px; }
  .timeline-node { inset-inline-start: -26px; width: 13px; height: 13px; }
  .course-card { flex-direction: column; }
  .course-side { flex-direction: row; align-items: center; }
}

/* ------------------------------------------------------ reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .chip { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------------ print */
@media print {
  @page { margin: 14mm; }
  body { background: #fff; font-size: 11pt; line-height: 1.6; }
  .site-header,
  .scroll-progress,
  .to-top,
  .scroll-hint,
  .hero-glow,
  .hero-actions,
  .section-contact,
  .nav-toggle,
  .frame-line,
  .float-card,
  .social-row { display: none !important; }
  .hero { padding-block: 0 18px; background: #fff; }
  .hero-inner { grid-template-columns: 1.4fr .6fr; gap: 20px; }
  .portrait-frame { width: 130px; }
  .portrait { box-shadow: none; border-radius: 8px; }
  .section { padding-block: 16px; border: 0 !important; background: #fff !important; }
  .card {
    box-shadow: none !important;
    border: 1px solid #d8dbe0 !important;
    break-inside: avoid;
    page-break-inside: avoid;
  }
  .timeline-item, .cert-card, .project-card, .course-card { break-inside: avoid; page-break-inside: avoid; }
  .section-head { margin-bottom: 14px; }
  .salary-card, .contact-card { background: #fff !important; }
  .salary-card .card-title, .salary-value { color: #12233d !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .bar-fill { width: var(--print-width, 100%) !important; }
  .site-footer { background: #fff; color: #444; border-top: 1px solid #d8dbe0; }
  .footer-note, .footer-brand span { color: #666; }
}
