﻿/*
Theme Name: Nemoh Egbe CV
Theme URI: https://www.linkedin.com/in/nemoh-egbe-b8b0412bb/
Author: Junior Nemoh Asong Egbe
Description: Minimal, network-engineering themed CV site. Block child theme of Twenty Twenty-Five.
Version: 1.3.0
Requires at least: 6.7
Template: twentytwentyfive
Text Domain: nemoh-cv
*/

:root {
  --nm-bg: #07111f;
  --nm-panel: rgba(15, 23, 42, 0.7);
  --nm-panel-dark: rgba(11, 18, 30, 0.9);
  --nm-border: rgba(148, 163, 184, 0.18);
  --nm-text: #e5eefb;
  --nm-muted: #9db0c9;
  --nm-accent: #7dd3fc;
  --nm-accent-soft: rgba(125, 211, 252, 0.12);
  --nm-up: #74f2c9;
  --nm-radius: 20px;
  --nm-sans: var(--wp--preset--font-family--manrope, "Segoe UI", sans-serif);
  --nm-mono: var(--wp--preset--font-family--fira-code, ui-monospace, "Cascadia Code", Consolas, monospace);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  background:
    radial-gradient(circle at 10% 0%, rgba(56, 189, 248, 0.12), transparent 35%),
    radial-gradient(circle at 100% 100%, rgba(116, 242, 201, 0.06), transparent 30%),
    var(--nm-bg);
  background-attachment: fixed;
}

/* Faint grid, like a topology canvas. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(rgba(125, 211, 252, 0.18) 1px, transparent 1.5px),
    linear-gradient(rgba(148, 163, 184, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.035) 1px, transparent 1px);
  background-size: 64px 64px, 32px 32px, 32px 32px;
  background-position: -0.5px -0.5px, 0 0, 0 0;
  mask-image: radial-gradient(circle at 50% 20%, black, transparent 85%);
}

/* The CV is laid out with its own grid/flex rules, so drop the default block-gap margins. */
.nm-cv-header :where(.is-layout-flow) > *,
.nm-cv-shell :where(.is-layout-flow) > *,
.nm-cv-shell.is-layout-flow > *,
.nm-cv-footer :where(.is-layout-flow) > *,
.wp-site-blocks > .nm-cv-header,
.wp-site-blocks > .nm-cv-shell,
.wp-site-blocks > .nm-cv-footer {
  margin-block-start: 0;
}

.nm-cv-shell p,
.nm-cv-shell h1,
.nm-cv-shell h2,
.nm-cv-shell h3,
.nm-cv-shell ul {
  margin: 0;
}

.nm-cv-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px 72px;
  position: relative;
  z-index: 1;
  font-size: 1rem;
  line-height: 1.6;
}

/* Header */

.nm-cv-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(7, 17, 31, 0.75);
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.admin-bar .nm-cv-header {
  top: var(--wp-admin--admin-bar--height, 32px);
}

.nm-cv-header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nm-brand {
  margin: 0;
  font-family: var(--nm-mono);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.nm-brand a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--nm-text);
  text-decoration: none;
}

.nm-brand a::before {
  content: ">_";
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--nm-accent-soft);
  border: 1px solid rgba(125, 211, 252, 0.35);
  color: var(--nm-accent);
  font-size: 0.8rem;
  font-weight: 700;
}

.nm-nav {
  gap: 6px 22px;
}

.nm-nav a {
  color: var(--nm-muted);
  text-decoration: none;
  font-family: var(--nm-mono);
  font-size: 0.8rem;
  transition: color 0.2s ease;
}

.nm-nav a::before {
  content: "#";
  color: var(--nm-accent);
  opacity: 0.6;
  margin-right: 2px;
}

.nm-nav a:hover,
.nm-nav a:focus-visible {
  color: var(--nm-text);
}

.nm-header-cta .wp-block-button__link {
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--nm-accent-soft);
  border: 1px solid rgba(125, 211, 252, 0.35);
  color: var(--nm-text);
  font-family: var(--nm-mono);
  font-size: 0.78rem;
  font-weight: 600;
}

.nm-header-cta .wp-block-button__link:hover {
  background: rgba(125, 211, 252, 0.2);
  color: var(--nm-text);
}

/* Hero */

.nm-hero {
  padding-top: 72px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  grid-template-areas:
    "copy photo"
    "copy term";
  gap: 28px 48px;
  align-items: center;
}

.nm-hero-copy { grid-area: copy; }
.nm-terminal { grid-area: term; }

/* Round profile photo with a green "link up" status light. */
.nm-cv-shell .nm-hero-photo {
  grid-area: photo;
  justify-self: center;
  position: relative;
  width: 176px;
  aspect-ratio: 1;
  margin: 0;
  padding: 6px;
  border-radius: 50%;
  background: conic-gradient(from 210deg, var(--nm-accent), rgba(116, 242, 201, 0.9), rgba(125, 211, 252, 0.15), var(--nm-accent));
  box-shadow: 0 20px 50px rgba(56, 189, 248, 0.2);
}

.nm-hero-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--nm-bg);
}

.nm-hero-photo::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--nm-up);
  border: 4px solid var(--nm-bg);
  box-shadow: 0 0 14px rgba(116, 242, 201, 0.8);
}

.nm-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(116, 242, 201, 0.07);
  border: 1px solid rgba(116, 242, 201, 0.25);
  color: var(--nm-up);
  font-family: var(--nm-mono);
  font-size: 0.75rem;
}

.nm-kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--nm-up);
  box-shadow: 0 0 12px rgba(116, 242, 201, 0.9);
  animation: nm-pulse 2.4s ease-in-out infinite;
}

@keyframes nm-pulse {
  50% { opacity: 0.35; }
}

.nm-cv-shell .nm-hero-title {
  margin: 22px 0 20px;
  font-size: clamp(2.6rem, 5.2vw, 4.6rem);
  line-height: 1;
  letter-spacing: -0.045em;
  font-weight: 800;
}

.nm-accent {
  color: var(--nm-accent);
}

.nm-cv-shell .nm-hero-title + .nm-focus {
  margin: -6px 0 22px;
  font-family: var(--nm-mono);
  font-size: 0.85rem;
  color: var(--nm-text);
  opacity: 0.85;
}

.nm-cv-shell .nm-lead {
  max-width: 600px;
  color: var(--nm-muted);
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 30px;
}

.nm-actions {
  gap: 14px;
  flex-wrap: wrap;
}

.nm-hero .nm-actions {
  margin-bottom: 36px;
}

.nm-button .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--nm-sans);
  font-size: 0.95rem;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease;
}

.nm-button .wp-block-button__link:hover,
.nm-button .wp-block-button__link:focus-visible {
  transform: translateY(-1px);
}

.nm-button--primary .wp-block-button__link {
  background: var(--nm-accent);
  color: #06131c;
  box-shadow: 0 16px 30px rgba(56, 189, 248, 0.18);
}

.nm-button--primary .wp-block-button__link:hover {
  background: #a5e3fd;
  color: #06131c;
}

.nm-button--secondary .wp-block-button__link {
  border-color: rgba(148, 163, 184, 0.3);
  background: rgba(15, 23, 42, 0.65);
  color: var(--nm-text);
}

.nm-button--secondary .wp-block-button__link:hover {
  border-color: rgba(125, 211, 252, 0.5);
  color: var(--nm-text);
}

.nm-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 600px;
}

.nm-stat {
  padding: 18px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid var(--nm-border);
}

.nm-cv-shell .nm-stat-value {
  font-family: var(--nm-mono);
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1;
  margin-bottom: 8px;
}

.nm-stat-label {
  color: var(--nm-muted);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Terminal card */

.nm-terminal {
  border-radius: 18px;
  background: rgba(5, 11, 20, 0.92);
  border: 1px solid var(--nm-border);
  box-shadow: 0 30px 70px rgba(2, 6, 23, 0.6), 0 0 0 1px rgba(125, 211, 252, 0.05);
  overflow: hidden;
  font-family: var(--nm-mono);
}

.nm-cv-shell .nm-terminal-bar {
  position: relative;
  padding: 12px 16px 12px 76px;
  background: rgba(30, 41, 59, 0.6);
  border-bottom: 1px solid var(--nm-border);
  color: var(--nm-muted);
  font-size: 0.75rem;
}

.nm-terminal-bar::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-top: -5px;
  border-radius: 50%;
  background: #f87171;
  box-shadow: 16px 0 0 #fbbf24, 32px 0 0 #34d399;
}

.nm-terminal-body {
  padding: 22px 22px 26px;
  display: grid;
  gap: 6px;
  font-size: 0.86rem;
  line-height: 1.55;
}

.nm-term-cmd {
  color: var(--nm-text);
  margin-bottom: 8px !important;
}

.nm-term-cursor {
  margin: 10px 0 0 !important;
}

.nm-term-cursor::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 1.05em;
  margin-left: 8px;
  vertical-align: text-bottom;
  background: var(--nm-accent);
  animation: nm-blink 1.1s steps(1) infinite;
}

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

.nm-prompt {
  color: var(--nm-up);
}

.nm-term-row {
  display: grid;
  grid-template-columns: 9ch 1fr;
  gap: 12px;
  color: var(--nm-text);
}

.nm-key {
  color: var(--nm-accent);
}

.nm-up {
  color: var(--nm-up);
  margin-right: 6px;
}

.nm-term-row .nm-up {
  display: inline;
}

/* Sections */

.nm-section {
  padding-top: 88px;
}

.nm-section-header {
  margin-bottom: 26px;
}

.nm-cv-shell .nm-eyebrow {
  font-family: var(--nm-mono);
  color: var(--nm-accent);
  font-size: 0.8rem;
  margin-bottom: 10px;
}

.nm-cv-shell .nm-section-header h2,
.nm-cta h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.nm-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 22px;
}

.nm-card {
  background: var(--nm-panel);
  border: 1px solid var(--nm-border);
  border-radius: var(--nm-radius);
  padding: 26px;
}

.nm-about {
  display: grid;
  gap: 16px;
  color: var(--nm-muted);
  font-size: 1.04rem;
  line-height: 1.8;
}

.nm-cv-shell .nm-card-label {
  font-family: var(--nm-mono);
  color: var(--nm-muted);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.nm-cv-shell .nm-bullets {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 12px;
}

.nm-bullets li {
  position: relative;
  padding-left: 22px;
  line-height: 1.6;
}

.nm-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--nm-accent);
  box-shadow: 0 0 12px rgba(125, 211, 252, 0.6);
}

/* Skills */

.nm-skill-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.nm-cv-shell .nm-skill-title {
  font-size: 1.05rem;
  margin-bottom: 16px;
}

.nm-cv-shell .nm-chips,
.nm-cv-shell .nm-tags {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.nm-chips li {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(125, 211, 252, 0.06);
  border: 1px solid rgba(125, 211, 252, 0.2);
  font-size: 0.85rem;
}

/* Experience / education timeline */

.nm-timeline {
  display: grid;
  gap: 8px;
}

.nm-entry {
  position: relative;
  padding: 16px 8px 16px 26px;
  border-left: 1px solid rgba(125, 211, 252, 0.2);
  margin-left: 6px;
}

.nm-entry::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 22px;
  width: 11px;
  height: 11px;
  border-radius: 3px;
  background: var(--nm-bg);
  border: 2px solid var(--nm-accent);
}

.nm-entry-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px 18px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.nm-cv-shell .nm-entry h3 {
  font-size: 1.15rem;
}

.nm-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(116, 242, 201, 0.07);
  border: 1px solid rgba(116, 242, 201, 0.2);
  color: var(--nm-up);
  font-family: var(--nm-mono);
  font-size: 0.72rem;
}

.nm-pill--progress {
  background: rgba(251, 191, 36, 0.08);
  border-color: rgba(251, 191, 36, 0.25);
  color: #fcd34d;
}

.nm-certs {
  display: grid;
  gap: 10px;
  margin-bottom: 28px;
}

.nm-cert {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px 14px;
  flex-wrap: wrap;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(11, 18, 30, 0.7);
  border: 1px solid var(--nm-border);
}

.nm-cert-name {
  font-size: 0.92rem;
  font-weight: 600;
}

.nm-pill--muted {
  background: rgba(148, 163, 184, 0.08);
  border-color: rgba(148, 163, 184, 0.2);
  color: var(--nm-muted);
}

.nm-cv-shell .nm-entry-meta {
  color: var(--nm-accent);
  font-family: var(--nm-mono);
  font-size: 0.8rem;
  margin-bottom: 12px;
}

.nm-entry > p:not(.nm-entry-meta),
.nm-entry li {
  color: var(--nm-muted);
}

/* Labs / projects */

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

.nm-project {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px 22px;
  background: var(--nm-panel-dark);
  border: 1px solid var(--nm-border);
  border-radius: 18px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.nm-project:hover {
  border-color: rgba(125, 211, 252, 0.4);
  transform: translateY(-2px);
}

.nm-project--featured {
  grid-column: 1 / -1;
  padding: 30px 28px;
  background:
    linear-gradient(135deg, rgba(125, 211, 252, 0.09), rgba(116, 242, 201, 0.04)),
    var(--nm-panel-dark);
  border-color: rgba(125, 211, 252, 0.3);
}

.nm-cv-shell .nm-project--featured h3 {
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
}

.nm-project--featured > p:not(.nm-project-link) {
  max-width: 760px;
  font-size: 1.04rem;
}

.nm-project-top {
  display: grid;
  gap: 8px;
}

.nm-cv-shell .nm-project h3 {
  font-size: 1.15rem;
  order: 2;
}

.nm-project-meta {
  order: 1;
  color: var(--nm-accent);
  font-family: var(--nm-mono);
  font-size: 0.75rem;
}

.nm-project-meta--live::before {
  content: "â— ";
  color: var(--nm-up);
}

.nm-project > p:not(.nm-project-link) {
  color: var(--nm-muted);
  line-height: 1.7;
  flex-grow: 1;
}

.nm-tags li {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 6px;
  background: rgba(148, 163, 184, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.14);
  font-family: var(--nm-mono);
  font-size: 0.72rem;
}

.nm-project-link a {
  color: var(--nm-accent);
  font-family: var(--nm-mono);
  font-size: 0.82rem;
  text-decoration: none;
}

.nm-project-link a:hover {
  text-decoration: underline;
}

.nm-cv-shell .nm-study {
  margin-bottom: 28px;
  font-size: 0.92rem;
}

.nm-cv-shell .nm-on-request {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px dashed var(--nm-border);
  color: var(--nm-muted);
  font-family: var(--nm-mono);
  font-size: 0.75rem;
}

/* Contact */

.nm-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  padding: 36px;
  background: linear-gradient(135deg, rgba(125, 211, 252, 0.08), rgba(116, 242, 201, 0.05));
  border: 1px solid rgba(125, 211, 252, 0.2);
  border-radius: 24px;
}

.nm-cta h2 {
  margin-bottom: 8px !important;
}

.nm-cta p:not(.nm-eyebrow) {
  color: var(--nm-muted);
}

/* CV download strip */

.nm-cv-download {
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px 24px;
  flex-wrap: wrap;
  padding: 20px 24px;
  border-radius: 18px;
  background: var(--nm-panel-dark);
  border: 1px dashed rgba(125, 211, 252, 0.3);
}

.nm-cv-download-text {
  position: relative;
  padding-left: 58px;
}

.nm-cv-download-text::before {
  content: "PDF";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--nm-accent-soft);
  border: 1px solid rgba(125, 211, 252, 0.35);
  color: var(--nm-accent);
  font-family: var(--nm-mono);
  font-size: 0.72rem;
  font-weight: 700;
}

.nm-cv-shell .nm-cv-download-title {
  font-weight: 700;
  font-size: 1.05rem;
}

.nm-cv-download-meta {
  color: var(--nm-muted);
  font-family: var(--nm-mono);
  font-size: 0.75rem;
}

/* Footer */

.nm-footer {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 20px 40px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  color: var(--nm-muted);
  font-family: var(--nm-mono);
  font-size: 0.78rem;
}

.nm-footer p {
  margin: 0;
}

.nm-footer a {
  color: var(--nm-text);
  text-decoration: none;
}

.nm-footer a:hover {
  color: var(--nm-accent);
}

/* Responsive */

@media (max-width: 980px) {
  .nm-hero,
  .nm-grid,
  .nm-projects {
    grid-template-columns: 1fr;
  }

  .nm-hero {
    padding-top: 40px;
    grid-template-areas:
      "photo"
      "copy"
      "term";
  }

  .nm-cv-shell .nm-hero-photo {
    justify-self: start;
    width: 128px;
  }

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

  .nm-nav {
    display: none;
  }
}

@media (max-width: 640px) {
  .nm-stats,
  .nm-skill-grid {
    grid-template-columns: 1fr;
  }

  .nm-section {
    padding-top: 64px;
  }

  .nm-card,
  .nm-cta {
    padding: 22px;
  }

  .nm-term-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .nm-kicker {
    font-size: 0.7rem;
    border-radius: 12px;
  }

  .nm-cv-shell .nm-hero-title + .nm-focus {
    font-size: 0.78rem;
  }
}

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

  .nm-kicker::before,
  .nm-term-cursor::after {
    animation: none;
  }
}
