/* Premium layer for resume.html and portfolio.html
   Scoped under .pm-* so the rest of the template is untouched */

.pm {
  --pm-surface: #0b0c0f;
  --pm-surface-2: #101217;
  --pm-border: rgba(255, 255, 255, 0.08);
  --pm-border-strong: rgba(255, 255, 255, 0.16);
  --pm-text: #a9aeb8;
  --pm-heading: #f4f6fa;
  --pm-muted: #8a909c;
  --pm-accent: #4c97f5;
  --pm-accent-soft: rgba(76, 151, 245, 0.14);
  --pm-mono: "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
  color: var(--pm-text);
}

.pm a { transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease; }

/* page head */
.pm-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.pm-status {
  display: flex; width: fit-content; clear: both; margin-bottom: 30px; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--pm-border-strong);
  font-size: 12px; letter-spacing: 0.04em; color: var(--pm-heading);
}
.pm-status::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: #34d399; box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.16);
}

.pm-label {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--pm-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--pm-accent);
  margin: 0 0 22px;
}
.pm-label::after { content: ""; flex: 1; height: 1px; background: var(--pm-border); }

.pm-lede { font-size: 16px; line-height: 1.8; color: var(--pm-text); max-width: 760px; margin: 0; }
.pm-lede strong { color: var(--pm-heading); font-weight: 500; }

/* stat strip */
.pm-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--pm-border); border-radius: 16px; overflow: hidden;
  background: var(--pm-surface); margin-top: 32px;
}
.pm-stat { padding: 22px 20px; border-right: 1px solid var(--pm-border); }
.pm-stat:last-child { border-right: 0; }
.pm-stat-num { display: block; font-size: 28px; line-height: 1.1; font-weight: 600; color: var(--pm-heading); letter-spacing: -0.01em; }
.pm-stat-num small { font-size: 14px; font-weight: 500; color: var(--pm-muted); margin-left: 4px; }
.pm-stat-text { display: block; margin-top: 8px; font-size: 12px; line-height: 1.5; color: var(--pm-muted); }

/* timeline */
.pm-timeline { position: relative; margin-left: 6px; padding-left: 34px; border-left: 1px solid var(--pm-border-strong); }
.pm-role { position: relative; padding-bottom: 40px; }
.pm-role:last-child { padding-bottom: 0; }
.pm-role::before {
  content: ""; position: absolute; left: -41px; top: 6px; width: 13px; height: 13px; border-radius: 50%;
  background: #000; border: 2px solid var(--pm-border-strong);
}
.pm-role.is-current::before { border-color: var(--pm-accent); background: var(--pm-accent); box-shadow: 0 0 0 5px var(--pm-accent-soft); }
.pm-role-meta { font-family: var(--pm-mono); font-size: 12px; letter-spacing: 0.06em; color: var(--pm-muted); }
.pm-role-title { margin: 6px 0 2px; font-size: 21px; font-weight: 500; color: var(--pm-heading); letter-spacing: -0.005em; }
.pm-role-org { font-size: 14px; color: var(--pm-accent); }
.pm-role-org span { color: var(--pm-muted); }
.pm-role ul { list-style: none; margin: 16px 0 0; padding: 0; }
.pm-role li { position: relative; padding-left: 18px; margin-bottom: 10px; font-size: 14px; line-height: 1.7; }
.pm-role li::before { content: ""; position: absolute; left: 0; top: 11px; width: 6px; height: 1px; background: var(--pm-accent); }
.pm-role li strong { color: var(--pm-heading); font-weight: 500; }

.pm-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.pm-tag {
  padding: 4px 11px; border-radius: 999px; font-size: 11.5px; line-height: 1.6;
  border: 1px solid var(--pm-border); color: var(--pm-text); background: var(--pm-surface);
}

/* open source rows */
.pm-oss { border: 1px solid var(--pm-border); border-radius: 16px; overflow: hidden; background: var(--pm-surface); }
.pm-oss-row {
  display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 18px;
  padding: 18px 22px; border-bottom: 1px solid var(--pm-border); text-decoration: none;
}
.pm-oss-row:last-child { border-bottom: 0; }
a.pm-oss-row:hover { background: var(--pm-surface-2); }
.pm-oss-count { font-size: 24px; font-weight: 600; color: var(--pm-heading); letter-spacing: -0.01em; }
.pm-oss-name { display: block; font-size: 15px; font-weight: 500; color: var(--pm-heading); }
.pm-oss-desc { display: block; margin-top: 3px; font-size: 12.5px; line-height: 1.55; color: var(--pm-muted); }
.pm-oss-go { font-family: var(--pm-mono); font-size: 11px; letter-spacing: 0.08em; color: var(--pm-accent); white-space: nowrap; }
.pm-oss-row:hover .pm-oss-go { color: var(--pm-heading); }
.pm-note { margin: 14px 2px 0; font-size: 12px; line-height: 1.6; color: var(--pm-muted); }

/* skills */
.pm-skills { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.pm-skill-group { padding: 20px 22px; border: 1px solid var(--pm-border); border-radius: 14px; background: var(--pm-surface); }
.pm-skill-group h5 { margin: 0 0 12px; font-family: var(--pm-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--pm-heading); }
.pm-skill-group p { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 8px; font-size: 13px; line-height: 1.5; }
.pm-skill-group p span { padding: 4px 11px; border-radius: 8px; background: rgba(255, 255, 255, 0.04); color: var(--pm-text); }

/* credentials */
.pm-creds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.pm-cred { padding: 20px 22px; border: 1px solid var(--pm-border); border-radius: 14px; background: var(--pm-surface); }
.pm-cred i { font-size: 18px; color: var(--pm-accent); margin-bottom: 14px; display: block; }
.pm-cred b { display: block; font-size: 14.5px; font-weight: 500; color: var(--pm-heading); line-height: 1.4; }
.pm-cred span { display: block; margin-top: 4px; font-size: 12.5px; color: var(--pm-muted); }

.pm-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.pm-two .pm-cred b { font-size: 14px; }

/* portfolio filters */
.pm-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.pm-filter {
  padding: 7px 16px; border-radius: 999px; font-size: 12.5px; cursor: pointer;
  border: 1px solid var(--pm-border); background: transparent; color: var(--pm-text);
}
.pm-filter:hover { border-color: var(--pm-border-strong); color: var(--pm-heading); }
.pm-filter.is-active { background: var(--pm-heading); border-color: var(--pm-heading); color: #000; }

/* portfolio cards */
.pm-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.pm-card {
  position: relative; display: flex; flex-direction: column; padding: 26px 26px 22px;
  border: 1px solid var(--pm-border); border-radius: 16px; background: var(--pm-surface);
  text-decoration: none; cursor: pointer; text-align: left; width: 100%;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.pm-card:hover { transform: translateY(-3px); border-color: var(--pm-border-strong); background: var(--pm-surface-2); }
.pm-card[hidden] { display: none; }
.pm-card-icon {
  width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
  background: var(--pm-accent-soft); color: var(--pm-accent); font-size: 17px; margin-bottom: 20px;
}
.pm-card-kicker { font-family: var(--pm-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--pm-muted); }
.pm-card-title { margin: 8px 0 10px; font-size: 18px; font-weight: 500; line-height: 1.35; color: var(--pm-heading); }
.pm-card-text { margin: 0 0 18px; font-size: 13.5px; line-height: 1.7; color: var(--pm-text); flex: 1; }
.pm-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; border-top: 1px solid var(--pm-border); }
.pm-card-stack { font-size: 12px; color: var(--pm-muted); line-height: 1.5; }
.pm-card-arrow { color: var(--pm-accent); font-size: 13px; transition: transform 0.2s ease; }
.pm-card:hover .pm-card-arrow { transform: translateX(4px); }

.pm-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px;
  padding: 26px 28px; border-radius: 16px; border: 1px solid var(--pm-border-strong);
  background: linear-gradient(135deg, rgba(27, 116, 228, 0.16), rgba(27, 116, 228, 0.02));
}
.pm-cta b { display: block; font-size: 17px; font-weight: 500; color: var(--pm-heading); }
.pm-cta span { display: block; margin-top: 4px; font-size: 13px; color: var(--pm-text); }
.pm-cta > div:last-child { display: flex; flex-wrap: wrap; gap: 10px; }
.pm-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 10px;
  font-size: 13px; font-weight: 500; text-decoration: none; color: #000; background: var(--pm-heading);
}
.pm-btn:hover { background: #fff; color: #000; }
.pm-btn.ghost { background: transparent; color: var(--pm-heading); border: 1px solid var(--pm-border-strong); }
.pm-btn.ghost:hover { background: var(--pm-surface-2); color: var(--pm-heading); }

.pm-section { margin-bottom: 56px; }

/* print: a clean one-column resume */
@media print {
  body, .page-wrapper { background: #fff !important; }
  .bostami-header-area, .bostami-parsonal-info-area, .bostami-main-menu-wrap, #preloader, .pm-cta, .pm-status { display: none !important; }
  .pm, .pm * { color: #111 !important; border-color: #ccc !important; background: transparent !important; }
}

@media (max-width: 991px) {
  .pm-stats { grid-template-columns: repeat(2, 1fr); }
  .pm-stat:nth-child(2) { border-right: 0; }
  .pm-stat:nth-child(-n + 2) { border-bottom: 1px solid var(--pm-border); }
}
@media (max-width: 767px) {
  .pm-skills, .pm-creds, .pm-two, .pm-grid { grid-template-columns: 1fr; }
  .pm-oss-row { grid-template-columns: 44px 1fr; }
  .pm-oss-go { display: none; }
  .pm-timeline { padding-left: 24px; }
  .pm-role::before { left: -31px; }
  .pm-section { margin-bottom: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .pm-card, .pm-card-arrow { transition: none; }
  .pm-card:hover { transform: none; }
}

/* featured platforms */
.pm-feature { padding: 30px 30px 26px; border: 1px solid var(--pm-border); border-radius: 18px; background: var(--pm-surface); margin-bottom: 16px; }
.pm-feature-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.pm-feature-name { margin: 0; font-size: 24px; font-weight: 500; letter-spacing: -0.01em; color: var(--pm-heading); }
.pm-feature-sub { font-size: 13px; color: var(--pm-muted); margin-top: 4px; }
.pm-chip { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; font-size: 11.5px; letter-spacing: 0.04em; border: 1px solid var(--pm-border-strong); color: var(--pm-heading); white-space: nowrap; }
.pm-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #34d399; }
.pm-chip.soon::before { background: #fbbf24; }
.pm-feature p { margin: 0 0 18px; font-size: 14.5px; line-height: 1.75; max-width: 720px; }
.pm-feature h6 { margin: 0 0 10px; font-family: var(--pm-mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--pm-muted); }
.pm-feature ul { list-style: none; padding: 0; margin: 0 0 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 28px; }
.pm-feature li { position: relative; padding-left: 18px; font-size: 13px; line-height: 1.65; }
.pm-feature li::before { content: ""; position: absolute; left: 0; top: 10px; width: 6px; height: 1px; background: var(--pm-accent); }
.pm-feature-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.pm-oss-icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--pm-accent-soft); color: var(--pm-accent); font-size: 14px; }
a.pm-card .pm-card-title { transition: color 0.2s ease; }
@media (max-width: 767px) { .pm-feature ul { grid-template-columns: 1fr; } .pm-feature { padding: 22px 20px; } }

/* photo strip */
.pm-photo { margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.08); background: #0b0c0f; }
.pm-photo img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.pm-photo figcaption { padding: 10px 14px; font-size: 12.5px; color: #8b919c; }
