/* ============================================================
   PJ.SEC — Retro White Phosphor CRT Portfolio Stylesheet
   ============================================================ */

/* ── CSS Reset ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  cursor: none !important;
}

/* ── :root Variables ── */
:root {
  --primary:       #D4D4D4;
  --primary-bright:#F2F2F2;
  --primary-dim:   #888888;
  --primary-glow:  rgba(212,212,212,0.07);
  --green:         #00FF41;
  --green-dim:     rgba(0,255,65,0.08);
  --red:           #FF4444;
  --bg:            #080808;
  --bg2:           #0E0E0E;
  --bg3:           #131313;
  --border:        #1E1E1E;
  --border2:       #333333;
  --muted:         #555555;
  --crt:           'VT323', monospace;
  --mono:          'Share Tech Mono', monospace;
}

/* ── Body ── */
body {
  background: var(--bg);
  color: var(--primary);
  font-family: var(--mono);
  font-size: 0.85rem;
  line-height: 1.6;
  cursor: none;
  overflow-x: hidden;
  position: relative;
}

/* ── CRT Scanlines ── */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 2px,
    rgba(0,0,0,0.18) 2px,
    rgba(0,0,0,0.18) 4px
  );
  pointer-events: none;
  z-index: 9000;
}

/* ── CRT Vignette ── */
body::after {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(
    ellipse at center,
    transparent 60%,
    rgba(0,0,0,0.55) 100%
  );
  pointer-events: none;
  z-index: 8999;
}

/* ── Retro Crosshair Cursor ── */
.retro-cursor {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  width: 0;
  height: 0;
  transform: translate(-50%, -50%);
}

.cursor-arm {
  position: absolute;
  background: #00FF41;
  box-shadow: 0 0 6px rgba(0,255,65,0.9), 0 0 14px rgba(0,255,65,0.4);
  transition: width 0.12s ease, height 0.12s ease;
}

/* Top arm */
.cursor-arm.top {
  width: 2px;
  height: 16px;
  left: 0;
  bottom: 4px;
  transform: translateX(-50%);
}

/* Bottom arm */
.cursor-arm.bottom {
  width: 2px;
  height: 16px;
  left: 0;
  top: 4px;
  transform: translateX(-50%);
}

/* Left arm */
.cursor-arm.left {
  height: 2px;
  width: 16px;
  top: 0;
  right: 4px;
  transform: translateY(-50%);
}

/* Right arm */
.cursor-arm.right {
  height: 2px;
  width: 16px;
  top: 0;
  left: 4px;
  transform: translateY(-50%);
}

/* Expanded state */
.retro-cursor.expanded .cursor-arm.top,
.retro-cursor.expanded .cursor-arm.bottom {
  height: 26px;
}

.retro-cursor.expanded .cursor-arm.left,
.retro-cursor.expanded .cursor-arm.right {
  width: 26px;
}

/* Center dot (instant follow) */
.retro-cursor-dot {
  position: fixed;
  pointer-events: none;
  z-index: 10000;
  width: 5px;
  height: 5px;
  background: #00FF41;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(0,255,65,1), 0 0 16px rgba(0,255,65,0.5);
  transform: translate(-50%, -50%);
}

/* ── Navigation ── */
nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 2rem;
  height: 52px;
  transition: border-color 0.3s;
}

nav.scrolled {
  border-bottom-color: var(--border2);
}

.nav-logo {
  font-family: var(--crt);
  font-size: 2rem;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: 0.05em;
  flex-shrink: 0;
  line-height: 1;
  text-shadow: 0 0 12px rgba(212,212,212,0.3);
}

.logo-dot {
  color: var(--green);
}

.nav-links {
  display: flex;
  list-style: none;
  margin-left: auto;
  gap: 0;
}

.nav-links li {
  border-left: 1px solid var(--border);
}

.nav-links li:first-child {
  border-left: none;
}

.nav-links a {
  display: block;
  padding: 0 0.75rem;
  height: 52px;
  line-height: 52px;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  background: var(--primary-glow);
}

.nav-links a.nav-tools {
  color: var(--green) !important;
}

.nav-links a.nav-tools:hover {
  background: var(--green-dim);
}

.num {
  color: var(--muted);
  margin-right: 0.25rem;
  font-size: 0.75em;
}

/* ── Hamburger (Mobile) ── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: none;
  margin-left: auto;
  padding: 0.5rem;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--primary-dim);
  transition: transform 0.2s, opacity 0.2s;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ── Page Content Wrapper ── */
.page-content {
  min-height: calc(100vh - 52px);
}

/* ── Hero Section ── */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem 4rem;
  overflow: hidden;
}

.hero-scanline {
  position: absolute;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(transparent, rgba(212,212,212,0.02), transparent);
  animation: scanroll 7s linear infinite;
  pointer-events: none;
  z-index: 1;
}

/* Boot sequence */
.boot-seq {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  margin-bottom: 2rem;
  text-align: left;
  display: inline-block;
}

.boot-seq p {
  margin-bottom: 0.15rem;
}

.boot-seq .ok {
  color: var(--green);
}

/* Hero badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid var(--border2);
  padding: 0.35rem 0.9rem;
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 2;
}

/* Status dot — square, no border-radius */
.status-dot {
  width: 7px;
  height: 7px;
  background: var(--green);
  display: inline-block;
  flex-shrink: 0;
  animation: blink 1.2s step-end infinite;
}

/* Hero name */
.hero-name {
  font-family: var(--crt);
  font-size: clamp(3.5rem, 8vw, 7rem);
  color: var(--primary-bright);
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-shadow: 0 0 12px rgba(212,212,212,0.4), 0 0 40px rgba(212,212,212,0.1);
  margin-bottom: 1.2rem;
  animation: glow-pulse 4s ease-in-out infinite;
  position: relative;
  z-index: 2;
}

/* Hero sub */
.hero-sub {
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
  position: relative;
  z-index: 2;
}

/* Hero typewriter line */
.hero-type {
  font-size: 0.88rem;
  color: var(--primary-dim);
  letter-spacing: 0.05em;
  margin-bottom: 2rem;
  min-height: 1.4em;
  position: relative;
  z-index: 2;
}

/* Cursor block (blinking block cursor) */
.cursor-block {
  display: inline-block;
  width: 10px;
  height: 1.1em;
  background: var(--primary);
  vertical-align: text-bottom;
  animation: blink 0.9s step-end infinite;
}

/* Hero CTA buttons */
.hero-cta {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
  position: relative;
  z-index: 2;
}

/* Button base */
.btn {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.65rem 1.6rem;
  border: 1px solid;
  cursor: none;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.btn-primary {
  background: var(--primary);
  color: var(--bg);
  border-color: var(--primary);
}

.btn-primary:hover {
  background: transparent;
  color: var(--primary);
  box-shadow: 0 0 15px rgba(212,212,212,0.2);
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border-color: var(--border2);
}

.btn-secondary:hover {
  border-color: var(--primary-dim);
  box-shadow: 0 0 10px rgba(212,212,212,0.1);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border-color: var(--border);
}

.btn-ghost:hover {
  color: var(--primary);
  border-color: var(--border2);
}

.btn-green {
  background: transparent;
  color: var(--green);
  border-color: rgba(0,255,65,0.5);
}

.btn-green:hover {
  background: var(--green-dim);
  box-shadow: 0 0 12px rgba(0,255,65,0.15);
}

/* Hero stats */
.hero-stats {
  display: flex;
  gap: 3rem;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

.hstat {
  text-align: center;
}

.hstat-num {
  font-family: var(--crt);
  font-size: 2.8rem;
  color: var(--primary);
  line-height: 1;
  text-shadow: 0 0 12px rgba(212,212,212,0.3);
}

.hstat-label {
  font-size: 0.6rem;
  color: var(--muted);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-top: 0.2rem;
}

/* ── Section ── */
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

.section-tag {
  display: block;
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.section-title {
  font-family: var(--crt);
  font-size: 2.8rem;
  color: var(--primary);
  text-shadow: 0 0 12px rgba(212,212,212,0.25);
  margin-bottom: 0.5rem;
  line-height: 1;
}

.section-line {
  height: 1px;
  border: none;
  background: linear-gradient(to right, var(--border2), transparent);
  margin-bottom: 2rem;
  margin-top: 0.5rem;
}

.section-desc {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.8;
}

.section-header {
  margin-bottom: 2.5rem;
}

/* ── Container ── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── Grids ── */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* ── Terminal Window ── */
.term-window {
  border: 1px solid var(--border);
  background: var(--bg2);
  overflow: hidden;
}

.term-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.8rem;
  background: var(--bg3);
  border-bottom: 1px solid var(--border);
}

.tdot {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
}

.tr { background: #FF5F57; }
.ty { background: #FEBC2E; }
.tg { background: #28C840; }

.tpath {
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.05em;
  margin-left: 0.4rem;
}

.term-body {
  padding: 1.2rem 1.5rem;
  font-size: 0.82rem;
  line-height: 1.9;
}

.tl {
  margin-bottom: 0.2rem;
}

.tps {
  color: var(--green);
  margin-right: 0.4rem;
}

.tc {
  color: var(--primary);
}

.to {
  color: var(--muted);
  padding-left: 0.2rem;
}

.tk {
  color: var(--primary-dim);
}

.tv {
  color: var(--primary);
}

/* ── Cert Grid ── */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.cert-card {
  background: var(--bg2);
  padding: 1.5rem 1rem;
  text-align: center;
  position: relative;
  transition: background 0.2s;
}

a.cert-card {
  text-decoration: none;
  display: block;
  color: inherit;
}

.cert-card:hover {
  background: var(--bg3);
  box-shadow: inset 0 0 20px rgba(212,212,212,0.03);
}

/* Hexagonal badge wrapper */
.cert-badge-hex {
  width: 96px;
  height: 96px;
  margin: 0 auto 1.2rem;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 6px rgba(212,212,212,0.18));
}

.cert-badge-hex::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--border2);
  clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
  z-index: 0;
}

.cert-badge-hex::after {
  content: '';
  position: absolute;
  inset: 3px;
  background: var(--bg3);
  clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
  z-index: 0;
}

/* Achieved badge hex — green border glow */
a.cert-card .cert-badge-hex::before {
  background: rgba(0,255,65,0.5);
}

.cert-badge-img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  display: block;
  position: relative;
  z-index: 1;
  margin: 0;
  clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
}

/* White-background badges: render on a light inner hex so they show correctly */
.cert-badge-hex.light-bg::after {
  background: #e8e8e8;
}

.cert-badge-img.blend {
  width: 62px;
  height: 62px;
  object-fit: contain;
  clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
}

.cert-title {
  font-family: var(--crt);
  font-size: 1.15rem;
  color: var(--primary);
  margin-bottom: 0.2rem;
  line-height: 1.2;
}

.cert-org {
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  margin-bottom: 0.7rem;
  text-transform: uppercase;
}

.cert-status {
  display: flex;
  justify-content: center;
}

.tag-achieved {
  display: inline-block;
  border: 1px solid rgba(0,255,65,0.5);
  color: var(--green);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.5rem;
  text-transform: uppercase;
}

.tag-progress {
  display: inline-block;
  border: 1px solid var(--border2);
  color: var(--primary-dim);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.5rem;
  text-transform: uppercase;
}

.cert-corner {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  font-size: 0.55rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}

/* 2-col cert grid variant */
.cert-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-top: none;
}

/* ── Skills Grid ── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.skills-category {
  border: 1px solid var(--border);
  padding: 1.2rem 1.4rem;
  background: var(--bg2);
}

.skills-category h3 {
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  padding-bottom: 0.6rem;
  margin-bottom: 0.8rem;
  border-bottom: 1px solid var(--border);
}

.skills-category h3::before {
  content: '▸ ';
  color: var(--primary);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

/* ── Tags ── */
.tag {
  display: inline-block;
  border: 1px solid var(--border);
  padding: 0.28rem 0.7rem;
  font-size: 0.72rem;
  color: var(--primary-dim);
  font-family: var(--mono);
  transition: color 0.2s, border-color 0.2s, text-shadow 0.2s;
}

.tag:hover {
  color: var(--primary-bright);
  border-color: var(--border2);
  text-shadow: 0 0 8px rgba(212,212,212,0.3);
}

.tag-green {
  display: inline-block;
  border: 1px solid rgba(0,255,65,0.4);
  color: var(--green);
  font-size: 0.72rem;
  padding: 0.28rem 0.7rem;
}

.tag-orange {
  display: inline-block;
  border: 1px solid rgba(255,165,0,0.35);
  color: #FFA500;
  font-size: 0.72rem;
  padding: 0.28rem 0.7rem;
}

.tag-purple {
  display: inline-block;
  border: 1px solid rgba(160,100,255,0.35);
  color: #A064FF;
  font-size: 0.72rem;
  padding: 0.28rem 0.7rem;
}

.tag-cyan {
  display: inline-block;
  border: 1px solid rgba(0,200,200,0.35);
  color: #00C8C8;
  font-size: 0.72rem;
  padding: 0.28rem 0.7rem;
}

/* ── About Grid ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
}

.about-avatar-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.avatar-container {
  position: relative;
  width: 180px;
  height: 180px;
}

.avatar-hex {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 5rem;
  border: 2px solid var(--border2);
  background: var(--bg2);
}

.avatar-label {
  font-family: var(--crt);
  font-size: 1.2rem;
  color: var(--primary);
  letter-spacing: 0.1em;
  margin-top: 1rem;
  text-align: center;
}

.avatar-status {
  font-size: 0.72rem;
  color: var(--green);
  letter-spacing: 0.15em;
  margin-top: 0.3rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.info-cards-retro {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1.5rem;
  width: 100%;
}

.info-card-retro {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--muted);
}

/* ── About Bio ── */
.about-bio {
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.9;
  margin-bottom: 1rem;
}

.about-bio strong {
  color: var(--primary);
}

.highlight {
  color: var(--primary-bright);
}

/* ── Timeline ── */
.timeline {
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border);
}

.timeline-item {
  padding: 0 0 1.5rem 1.5rem;
  position: relative;
}

.timeline-item::before {
  content: '■';
  position: absolute;
  left: -0.45rem;
  top: 0.05rem;
  font-size: 0.65rem;
  color: #FFA500;
  line-height: 1;
}

.timeline-date {
  font-size: 0.65rem;
  color: var(--muted);
  letter-spacing: 0.2em;
  margin-bottom: 0.2rem;
  text-transform: uppercase;
}

.timeline-title {
  font-family: var(--crt);
  font-size: 1.15rem;
  color: var(--primary);
  margin-bottom: 0.2rem;
}

.timeline-org {
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.timeline-badge {
  display: inline-flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

/* ── Soft Skills ── */
.skills-soft {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.soft-skill {
  display: inline-block;
  border: 1px solid var(--border);
  padding: 0.4rem 0.9rem;
  font-size: 0.78rem;
  color: var(--muted);
  transition: color 0.2s, border-color 0.2s;
}

.soft-skill:hover {
  color: var(--primary);
  border-color: var(--border2);
}

/* ── Contact Grid ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--border);
  margin-bottom: 0.8rem;
  transition: border-color 0.2s;
}

.contact-info-item:hover {
  border-color: var(--border2);
}

.contact-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  line-height: 1.4;
}

.contact-label {
  font-size: 0.6rem;
  color: var(--muted);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.contact-value {
  font-size: 0.82rem;
  color: var(--primary);
}

.contact-value a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}

.contact-value a:hover {
  color: var(--primary-bright);
}

/* ── Terminal Form ── */
.terminal-form {
  border: 1px solid var(--border);
  background: var(--bg2);
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.8rem;
  background: var(--bg3);
  border-bottom: 1px solid var(--border);
}

.terminal-dot {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
}

.t-red    { background: #FF5F57; }
.t-yellow { background: #FEBC2E; }
.t-green  { background: #28C840; }

.terminal-title {
  font-size: 0.7rem;
  color: var(--muted);
  margin-left: 0.4rem;
}

.terminal-body {
  padding: 1.5rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  font-size: 0.65rem;
  color: var(--muted);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.form-label::before {
  content: '> ';
  color: var(--primary);
}

.form-input {
  width: 100%;
  background: #000;
  border: 1px solid var(--border);
  padding: 0.6rem 0.8rem;
  color: var(--primary);
  font-family: var(--mono);
  font-size: 0.82rem;
  outline: none;
  transition: border-color 0.2s;
}

.form-input:focus {
  border-color: var(--border2);
}

.form-textarea {
  min-height: 100px;
  resize: vertical;
}

/* ── Social Links ── */
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--border);
  padding: 0.4rem 0.9rem;
  font-size: 0.75rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s;
}

.social-link:hover {
  color: var(--primary);
  border-color: var(--border2);
}

.social-link.tools-link {
  color: var(--green);
  border-color: rgba(0,255,65,0.4);
}

.social-link.tools-link:hover {
  background: var(--green-dim);
}

/* ── Cards ── */
.card {
  border: 1px solid var(--border);
  padding: 1.5rem;
  background: var(--bg2);
  transition: border-color 0.2s;
}

.card:hover {
  border-color: var(--border2);
}

/* ── Project Featured ── */
.project-featured {
  border: 1px solid var(--border2);
  background: var(--bg2);
  margin-bottom: 3rem;
}

.project-featured-header {
  padding: 2rem;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  align-items: start;
}

.project-big-icon {
  width: 70px;
  height: 70px;
  background: var(--bg3);
  border: 1px solid var(--border2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  flex-shrink: 0;
}

.project-badge {
  font-size: 0.7rem;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 0.2rem 0.7rem;
  display: inline-block;
  margin-bottom: 0.8rem;
  letter-spacing: 0.1em;
}

.project-big-title {
  font-family: var(--crt);
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
  text-shadow: 0 0 12px rgba(212,212,212,0.2);
  line-height: 1.1;
}

.project-desc {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.project-links {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  border: 1px solid var(--border2);
  padding: 0.4rem 0.9rem;
  font-size: 0.75rem;
  color: var(--muted);
  transition: color 0.2s, border-color 0.2s;
}

.project-link:hover {
  color: var(--primary);
  border-color: var(--primary-dim);
}

.project-featured-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.pf-section {
  padding: 2rem;
  border-right: 1px solid var(--border);
}

.pf-section:last-child {
  border-right: none;
}

.pf-title {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.6rem;
}

.tech-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.tech-item {
  border: 1px solid var(--border);
  padding: 0.45rem 0.7rem;
  font-size: 0.75rem;
  color: var(--muted);
  transition: color 0.2s, border-color 0.2s;
}

.tech-item:hover {
  color: var(--primary);
  border-color: var(--border2);
}

.outcome-item {
  display: flex;
  gap: 0.75rem;
  padding-bottom: 0.6rem;
  margin-bottom: 0.6rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--muted);
}

.outcome-item::before {
  content: '→';
  color: var(--primary);
  flex-shrink: 0;
}

.outcome-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.project-tech-tags {
  padding: 1.2rem 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

/* ── Future Cards ── */
.future-card {
  border: 1px dashed var(--border);
  padding: 2rem;
  text-align: center;
  position: relative;
  transition: border-color 0.2s;
}

.future-card::before {
  content: 'COMING SOON';
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  font-size: 0.6rem;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 0.15rem 0.4rem;
  letter-spacing: 0.1em;
}

.future-card:hover {
  border-color: var(--border2);
}

.future-card-icon {
  font-size: 2rem;
  margin-bottom: 0.8rem;
}

.future-card-title {
  font-family: var(--crt);
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.future-card-desc {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ── Knowledge Tags ── */
.knowledge-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}

/* ── Page Hero ── */
.page-hero {
  padding: 4rem 2rem 2rem;
  border-bottom: 1px solid var(--border);
  max-width: 1100px;
  margin: 0 auto;
}

.page-hero h1 {
  font-family: var(--crt);
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--primary);
  text-shadow: 0 0 12px rgba(212,212,212,0.3);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.page-hero-sub {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.page-hero-wrapper {
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ── ASCII Divider ── */
.ascii-div {
  text-align: center;
  font-family: var(--crt);
  font-size: 1rem;
  color: var(--border2);
  padding: 0.5rem 0;
  overflow: hidden;
  white-space: nowrap;
}

/* ── Scroll Indicator ── */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.65rem;
  color: var(--muted);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: fadeup 2s ease-in-out infinite;
  z-index: 2;
}

/* ── Tilt retro (flat, no 3D) ── */
.tilt-retro {
  transition: border-color 0.2s;
}

.tilt-retro:hover {
  border-color: var(--border2);
}

/* ── References ── */
.ref-card {
  border: 1px solid var(--border);
  padding: 1.2rem 1.4rem;
  background: var(--bg2);
}

.ref-name {
  font-family: var(--crt);
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 0.2rem;
}

.ref-title {
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.ref-note {
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.05em;
  margin-top: 0.5rem;
  border-top: 1px solid var(--border);
  padding-top: 0.5rem;
}

/* ── Extracurricular ── */
.extra-card {
  border: 1px solid var(--border);
  padding: 1.2rem;
  background: var(--bg2);
  text-align: center;
  transition: border-color 0.2s;
}

.extra-card:hover {
  border-color: var(--border2);
}

.extra-icon {
  font-size: 2rem;
  margin-bottom: 0.6rem;
}

.extra-title {
  font-family: var(--crt);
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 0.3rem;
}

.extra-sub {
  font-size: 0.72rem;
  color: var(--muted);
}

/* ── Timeline Project (continuous growth) ── */
.timeline-project {
  position: relative;
  padding-left: 1.5rem;
}

.timeline-project::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border);
}

.tp-item {
  position: relative;
  padding-bottom: 1.2rem;
  margin-bottom: 0.2rem;
}

.tp-item::before {
  content: '■';
  position: absolute;
  left: -1.65rem;
  top: 0.05rem;
  font-size: 0.6rem;
  color: #FFA500;
}

.tp-year {
  font-size: 0.65rem;
  color: var(--muted);
  letter-spacing: 0.2em;
  margin-bottom: 0.15rem;
}

.tp-text {
  font-size: 0.82rem;
  color: var(--primary-dim);
}

/* ── Contact notice box ── */
.notice-box {
  border: 1px solid var(--border);
  padding: 1rem 1.4rem;
  background: var(--bg2);
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.notice-box .notice-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* ── Availability Banner ── */
.avail-banner {
  border: 1px solid var(--border);
  padding: 1.5rem;
  background: var(--bg2);
  text-align: center;
}

.avail-title {
  font-family: var(--crt);
  font-size: 1.3rem;
  color: var(--primary);
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

.avail-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

/* ── Form status message ── */
.form-status {
  margin-top: 0.8rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  min-height: 1.2em;
}

.form-status.success {
  color: var(--green);
}

.form-status.error {
  color: var(--red);
}

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg2);
  font-size: 0.7rem;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo {
  font-family: var(--crt);
  font-size: 1.5rem;
  color: var(--primary);
  line-height: 1;
  text-shadow: 0 0 10px rgba(212,212,212,0.2);
}

.footer-text {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.1em;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-link {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.footer-link:hover {
  color: var(--primary);
}

/* ── Keyframe Animations ── */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@keyframes glow-pulse {
  0%, 100% { text-shadow: 0 0 12px rgba(212,212,212,0.4), 0 0 40px rgba(212,212,212,0.1); }
  50%       { text-shadow: 0 0 20px rgba(212,212,212,0.6), 0 0 60px rgba(212,212,212,0.2); }
}

@keyframes fadeup {
  0%, 100% { opacity: 0.4; transform: translateX(-50%) translateY(0); }
  50%       { opacity: 0.9; transform: translateX(-50%) translateY(-5px); }
}

@keyframes scanroll {
  0%   { top: -60px; }
  100% { top: 100%; }
}

/* ── Responsive / Mobile ── */
@media (max-width: 768px) {
  nav {
    padding: 0 1.2rem;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 52px;
    left: 0;
    right: 0;
    background: var(--bg2);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 0;
    z-index: 999;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    border-left: none;
    border-top: 1px solid var(--border);
  }

  .nav-links a {
    height: auto;
    line-height: 1;
    padding: 0.9rem 1.5rem;
  }

  .hamburger {
    display: flex;
    margin-left: auto;
  }

  .hero {
    padding: 4rem 1.2rem 3rem;
  }

  .hero-name {
    font-size: clamp(2.8rem, 14vw, 5rem);
  }

  .hero-stats {
    gap: 1.5rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .section {
    padding: 3rem 1.2rem;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .cert-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cert-grid-2col {
    grid-template-columns: 1fr;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .project-featured-header {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .project-featured-body {
    grid-template-columns: 1fr;
  }

  .pf-section {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .pf-section:last-child {
    border-bottom: none;
  }

  footer {
    flex-direction: column;
    text-align: center;
    gap: 0.8rem;
  }

  .footer-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .boot-seq {
    display: none;
  }

  .page-hero {
    padding: 2.5rem 1.2rem 1.5rem;
  }

  .tech-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .cert-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    gap: 1rem;
  }

  .hstat-num {
    font-size: 2rem;
  }
}
