/* ============================================================
   COMPONENTS — Cards, Tags, Timeline, Radar, Terminal
   T.M CORP — Cyberpunk CV
   ============================================================ */

/* --- Overview Grid --- */
.overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 20px;
}

/* --- Identity Card --- */
.identity-card {
  grid-column: 1 / 3;
  display: flex; gap: 30px; align-items: center;
}

/* Avatar Hologram */
.avatar-holo {
  width: 140px; height: 140px; flex-shrink: 0;
  border-radius: 50%;
  border: 2px solid var(--cyan);
  position: relative;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle, rgba(0, 245, 255, 0.08), transparent);
  overflow: hidden;
}
.avatar-holo::after {
  content: ""; position: absolute; inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(0, 245, 255, 0.15);
  animation: holoSpin 6s linear infinite;
}
@keyframes holoSpin {
  0%   { transform: rotate(0deg);   border-color: rgba(0, 245, 255, 0.2); }
  50%  { border-color: rgba(255, 0, 255, 0.2); }
  100% { transform: rotate(360deg); border-color: rgba(0, 245, 255, 0.2); }
}
.avatar-holo .initials {
  font-family: 'Orbitron', sans-serif; font-size: 36px; font-weight: 900;
  color: var(--cyan);
  text-shadow: 0 0 30px rgba(0, 245, 255, 0.5);
}
.avatar-holo img.avatar-photo {
  width: 100%;
  object-fit: contain;
  filter: grayscale(0.3) contrast(1.1) brightness(0.5);
  margin-top: 60px;
  mix-blend-mode: screen;
  position: relative; z-index: 1;
}
.avatar-holo .avatar-overlay {
  position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 245, 255, 0.12), rgba(255, 0, 255, 0.06), transparent);
  mix-blend-mode: screen;
  z-index: 2; pointer-events: none;
}
.avatar-holo .avatar-scanline {
  position: absolute; inset: 0; border-radius: 50%; overflow: hidden;
  z-index: 3; pointer-events: none;
}
.avatar-holo .avatar-scanline::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(transparent, transparent 2px, rgba(0, 245, 255, 0.04) 3px);
}
.avatar-scan {
  position: absolute; width: 100%; height: 5px;
  background: linear-gradient(180deg, transparent, var(--cyan), transparent);
  opacity: 0.6;
  animation: scanDown 3s ease-in-out infinite;
}
@keyframes scanDown { 0%, 100% { top: 10%; } 50% { top: 85%; } }

/* Identity Info */
.identity-info h1 {
  font-family: 'Orbitron', sans-serif; font-size: 32px; font-weight: 700;
  letter-spacing: 4px;
  color: var(--cyan);
  text-shadow: 0 0 20px rgba(0, 245, 255, 0.4), 0 0 40px rgba(0, 245, 255, 0.2);
  background: none;
  margin-bottom: 4px;
}
.identity-info .tagline {
  font-family: 'Share Tech Mono', monospace; font-size: 14px;
  color: rgba(200, 230, 255, 0.6); letter-spacing: 3px;
  margin-bottom: 12px; min-height: 1.4em;
}
.tagline-cursor {
  display: inline-block; width: 2px; height: 1em;
  background: var(--cyan);
  vertical-align: text-bottom;
  animation: blink-cursor 0.6s step-end infinite;
}
@keyframes blink-cursor { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
.identity-info .bio {
  font-size: 15px; line-height: 1.7;
  color: rgba(200, 230, 255, 0.75);
  max-width: 650px;
}

/* --- Status Widget --- */
.status-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.status-item {
  padding: 12px;
  background: rgba(0, 245, 255, 0.03);
  border: 1px solid rgba(0, 245, 255, 0.08);
  border-radius: 3px;
}
.status-item .label {
  font-family: 'Share Tech Mono', monospace; font-size: 10px;
  color: rgba(200, 230, 255, 0.4);
  text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 4px;
}
.status-item .value {
  font-family: 'Orbitron', sans-serif; font-size: 16px; font-weight: 600;
  color: var(--cyan);
}
.status-item .value.magenta { color: var(--magenta); }
.status-item .value.green   { color: var(--neon-green); }
.status-item .value.amber   { color: var(--amber); }

/* --- Skill Tags --- */
.skill-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-tag {
  font-family: 'Share Tech Mono', monospace; font-size: 12px;
  padding: 7px 16px 7px 28px;
  border: 1px solid rgba(0, 245, 255, 0.15);
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  color: rgba(200, 230, 255, 0.55);
  background: transparent;
}
.skill-tag::before {
  content: "";
  position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--tag-color, var(--cyan));
  opacity: 0.4;
  transition: all 0.3s ease;
}
.skill-tag:hover,
.skill-tag.active {
  color: #fff;
  border-color: var(--tag-color, var(--cyan));
  background: rgba(0, 245, 255, 0.06);
  box-shadow: 0 0 15px rgba(0, 245, 255, 0.08);
}
.skill-tag:hover::before,
.skill-tag.active::before {
  opacity: 1;
  box-shadow: 0 0 8px var(--tag-color, var(--cyan));
}

/* Skills Columns */
.skills-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}

/* --- Experience Timeline --- */
.exp-timeline { position: relative; padding-left: 30px; }
.exp-item { margin-bottom: 30px; position: relative; }
.exp-item::before {
  content: ""; position: absolute; left: -29px; top: -2px;
  width: 12px; height: 12px;
  border: 2px solid var(--cyan);
  background: var(--bg);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}
.exp-item::after {
  content: ""; position: absolute; left: -22px; top: 14px;
  width: 1px; height: calc(100% + 16px);
  background: var(--cyan);
  opacity: 0.4;
}
/* Timeline color alternation */
.exp-item:nth-child(2)::before { border-color: var(--magenta); }
.exp-item:nth-child(2)::after  { background: var(--magenta); }
.exp-item:nth-child(3)::before { border-color: var(--neon-green); }
.exp-item:nth-child(3)::after  { background: var(--neon-green); }
.exp-item:nth-child(4)::before { border-color: var(--amber); }
.exp-item:nth-child(4)::after  { background: var(--amber); }
.exp-item:nth-child(5)::before { border-color: #61dafb; }
.exp-item:nth-child(5)::after  { background: #61dafb; }
.exp-item:nth-child(6)::before { border-color: #aa44ff; }
.exp-item:nth-child(6)::after  { background: #aa44ff; }
.exp-item:nth-child(7)::before { border-color: #ff8844; }
.exp-item:nth-child(7)::after  { background: #ff8844; }

.exp-item .exp-date {
  font-family: 'Share Tech Mono', monospace; font-size: 11px;
  color: var(--cyan); letter-spacing: 2px;
  margin-bottom: 2px;
}
.exp-item h3 {
  font-family: 'Orbitron', sans-serif; font-size: 14px; letter-spacing: 1px;
  margin-bottom: 6px;
}
.exp-item p {
  font-size: 14px; color: rgba(200, 230, 255, 0.6); line-height: 1.6;
}
.exp-tags { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.exp-tag {
  font-family: 'Share Tech Mono', monospace; font-size: 10px;
  padding: 3px 8px;
  border: 1px solid var(--panel-border);
  border-radius: 2px;
  color: rgba(200, 230, 255, 0.5);
  background: rgba(0, 245, 255, 0.03);
}

/* --- Education --- */
.edu-card {
  padding: 16px; margin-bottom: 12px;
  background: rgba(0, 245, 255, 0.02);
  border: 1px solid rgba(0, 245, 255, 0.08);
  border-left: 3px solid var(--cyan);
  border-radius: 3px;
  transition: all 0.3s ease;
}
.edu-card:hover {
  background: rgba(0, 245, 255, 0.05);
  transform: translateX(4px);
}
.edu-card h3 {
  font-family: 'Orbitron', sans-serif; font-size: 13px; letter-spacing: 1px;
  margin-bottom: 4px;
}
.edu-card p { font-size: 13px; color: rgba(200, 230, 255, 0.5); }

/* --- Projects --- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.project-card {
  background: rgba(0, 245, 255, 0.02);
  border: 1px solid var(--panel-border);
  border-radius: 6px;
  padding: 20px;
  position: relative;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.project-card:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 20px rgba(0, 245, 255, 0.08);
}
.project-card .project-status {
  position: absolute; bottom: 10px; right: 8px;
  font-family: 'Share Tech Mono', monospace; font-size: 9px;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--panel);
}
.project-card .project-status.live    { color: var(--neon-green); border: 1px solid var(--neon-green); }
.project-card .project-status.wip     { color: var(--amber);      border: 1px solid var(--amber); }
.project-card .project-status.concept { color: var(--magenta);     border: 1px solid var(--magenta); }
.project-card .project-status.old     { color: #888;              border: 1px solid #888; }
.project-card h3 {
  font-family: 'Orbitron', sans-serif; font-size: 14px;
  letter-spacing: 1px; margin-bottom: 8px; color: #fff;
}
.project-card p {
  font-size: 13px; color: rgba(200, 230, 255, 0.5);
  line-height: 1.5; margin-bottom: 12px;
}
.project-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.project-tag {
  font-family: 'Share Tech Mono', monospace; font-size: 10px;
  padding: 3px 8px;
  border: 1px solid var(--panel-border);
  border-radius: 3px;
  color: rgba(200, 230, 255, 0.5);
}

/* --- Neural Map --- */
.neural-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}
.neural-node {
  padding: 20px; text-align: center;
  border: 1px solid var(--panel-border);
  border-radius: 4px;
  background: rgba(0, 245, 255, 0.02);
  transition: all 0.4s ease;
  cursor: default;
}
.neural-node:hover {
  background: rgba(0, 245, 255, 0.08);
  border-color: var(--cyan);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 245, 255, 0.1);
}
.neural-node .node-icon {
  font-size: 28px; margin-bottom: 8px;
  filter: grayscale(0.3);
}
.neural-node .node-label {
  font-family: 'Orbitron', sans-serif; font-size: 10px; letter-spacing: 2px;
  color: rgba(200, 230, 255, 0.7);
  text-transform: uppercase;
}

/* --- Contact --- */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.contact-item {
  padding: 16px;
  border: 1px solid var(--panel-border);
  border-radius: 3px;
  display: flex; align-items: center; gap: 14px;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.contact-item::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(0, 245, 255, 0.06), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}
.contact-item:hover::before { transform: translateX(100%); }
.contact-item:hover {
  background: rgba(0, 245, 255, 0.05);
  border-color: var(--cyan);
  box-shadow: 0 0 15px rgba(0, 245, 255, 0.08);
}
.contact-item:hover .contact-icon {
  border-color: var(--cyan);
  box-shadow: 0 0 12px rgba(0, 245, 255, 0.2);
  color: var(--cyan);
}
.contact-item:hover .contact-value {
  text-shadow: 0 0 8px rgba(0, 245, 255, 0.4);
}
.contact-icon {
  width: 40px; height: 40px;
  border: 1px solid var(--panel-border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
  transition: all 0.3s ease;
}
.contact-label {
  font-family: 'Share Tech Mono', monospace; font-size: 10px;
  color: rgba(200, 230, 255, 0.4);
  text-transform: uppercase; letter-spacing: 1px;
}
.contact-value {
  font-size: 13px; color: var(--cyan); margin-top: 2px;
}

/* --- Word Cloud --- */
.cloud-container {
  display: flex; flex-wrap: wrap; gap: 8px;
  justify-content: center;
  padding: 10px;
}
.cloud-tag {
  font-family: 'Share Tech Mono', monospace;
  padding: 6px 14px;
  border: 1px solid var(--panel-border);
  border-radius: 20px;
  font-size: 12px;
  transition: all 0.3s ease;
  cursor: default;
  position: relative; overflow: hidden;
}
.cloud-tag::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(0, 245, 255, 0.1), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}
.cloud-tag:hover::before { transform: translateX(100%); }
.cloud-tag:hover {
  border-color: var(--cyan); color: var(--cyan);
  text-shadow: 0 0 10px rgba(0, 245, 255, 0.5);
}

/* --- Data Stream Borders --- */
.data-stream {
  position: absolute; bottom: -20px; left: 0; right: 0;
  height: 14px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 9px;
  color: rgba(0, 245, 255, 0.12);
  letter-spacing: 2px;
  overflow: hidden;
  white-space: nowrap;
  pointer-events: none;
}

/* --- Floating Terminal --- */
#terminal {
  position: fixed; bottom: 35px; right: 3px; z-index: 200;
  width: 460px; min-width: 280px; min-height: 200px;
  display: flex; flex-direction: column;
  background: rgba(2, 5, 12, 0.95);
  border: 1px solid var(--panel-border);
  border-radius: 6px;
  font-family: 'Share Tech Mono', monospace; font-size: 14px;
  color: var(--cyan);
  backdrop-filter: blur(20px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  transition: opacity 0.3s ease;
  overflow: hidden;
}
#terminal.hidden { display: none; }

/* Terminal resize handles */
.term-resize          { position: absolute; z-index: 10; }
.term-resize-left     { left: -3px; top: 0; bottom: 0; width: 6px; cursor: ew-resize; }
.term-resize-top      { top: -3px; left: 0; right: 0; height: 6px; cursor: ns-resize; }
.term-resize-topleft  { top: -3px; left: -3px; width: 12px; height: 12px; cursor: nwse-resize; }
.term-resize-topright { top: -3px; right: -3px; width: 12px; height: 12px; cursor: nesw-resize; }

/* Terminal header */
.term-header {
  padding: 10px 16px;
  border-bottom: 1px solid var(--panel-border);
  display: flex; align-items: center; justify-content: space-between;
  cursor: grab; user-select: none;
}
.term-header:active { cursor: grabbing; }
.term-close {
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: rgba(200, 230, 255, 0.4);
  font-size: 18px;
  transition: color 0.2s;
}
.term-close:hover { color: var(--red); }
.term-btns { display: flex; align-items: center; gap: 2px; }
.term-expand {
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: rgba(200, 230, 255, 0.4);
  font-size: 14px;
  line-height: 1;
  transition: color .2s;
}
.term-expand:hover { color: var(--cyan); }
.term-header .dots { display: flex; gap: 6px; }
.term-header .dot  { width: 10px; height: 10px; border-radius: 50%; }
.term-header .dot.r { background: #ff5f57; }
.term-header .dot.y { background: #ffbd2e; }
.term-header .dot.g { background: #28c840; }
.term-logo {
  font-size: 10px; color: var(--cyan);
  text-shadow: 0 0 8px var(--cyan); letter-spacing: 1px;
}
.term-title { font-size: 12px; letter-spacing: 2px; opacity: 0.6; }

/* Terminal output */
#termOutput {
  flex: 1; min-height: 0;
  height: 220px; overflow-y: auto; overflow-x: hidden;
  padding: 12px 16px;
  scroll-behavior: smooth;
  scrollbar-width: thin; scrollbar-color: var(--cyan) transparent;
}
#termOutput::-webkit-scrollbar       { width: 4px; }
#termOutput::-webkit-scrollbar-thumb { background: var(--cyan); border-radius: 2px; }

#termOutput .line         { margin-bottom: 4px; font-size: 14px; white-space: pre-wrap; word-break: break-all; }
#termOutput .line.system  { color: var(--amber); }
#termOutput .line.success { color: var(--neon-green); }
#termOutput .line.error   { color: var(--red); }
#termOutput .line.info    { color: var(--magenta); }
#termOutput .line.cmd     { color: var(--neon-green); }

/* Terminal input */
.term-input-wrap {
  padding: 10px 16px;
  border-top: 1px solid var(--panel-border);
  display: flex; align-items: center; gap: 10px;
}
.term-input-wrap .prompt { color: var(--neon-green); flex-shrink: 0; font-size: 14px; }
#termInput {
  flex: 1; background: transparent; border: none; outline: none;
  color: var(--neon-green);
  font-family: 'Share Tech Mono', monospace; font-size: 14px;
}

/* --- Alfred Concierge --- */
.alfred-hat-btn {
  flex-shrink: 0;
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: rgba(0, 245, 255, 0.35);
  font-family: 'Share Tech Mono', monospace;
  font-size: 16px;
  font-weight: bold;
  transition: color 0.3s, text-shadow 0.3s, filter 0.3s;
}
.alfred-hat-btn:hover {
  color: var(--cyan);
  text-shadow: 0 0 10px var(--cyan);
}
.alfred-hat-btn.active {
  color: var(--cyan);
  text-shadow: 0 0 12px var(--cyan);
  animation: alfredPulse 2s ease-in-out infinite;
}
@keyframes alfredPulse {
  0%, 100% { filter: brightness(1); }
  50%      { filter: brightness(1.5) drop-shadow(0 0 6px var(--cyan)); }
}

.alfred-popup {
  position: absolute;
  bottom: 44px; right: 12px;
  padding: 5px 12px;
  background: rgba(2, 5, 12, 0.95);
  border: 1px solid var(--panel-border);
  border-radius: 4px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  color: rgba(200, 230, 255, 0.7);
  display: flex; align-items: center; gap: 6px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
  white-space: nowrap;
}
.alfred-popup.visible {
  opacity: 1;
  transform: translateY(0);
}
.alfred-popup.hidden {
  opacity: 0;
  transform: translateY(4px);
}
.alfred-popup-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(200, 230, 255, 0.3);
}
.alfred-popup-dot.green { background: var(--neon-green); box-shadow: 0 0 6px var(--neon-green); }
.alfred-popup-dot.red   { background: var(--red); box-shadow: 0 0 6px var(--red); }


/* Alfred message lines */
#termOutput .line.alfred {
  color: #ffffff;
}
#termOutput .line.alfred .alfred-prefix {
  color: #ffffff;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.8), 0 0 16px rgba(255, 255, 255, 0.4);
}
#termOutput .line.alfred.banner {
  color: #ffffff;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.8), 0 0 16px rgba(255, 255, 255, 0.4);
  line-height: 1.2;
}
#termOutput .line.alfred.thinking {
  color: rgba(255, 255, 255, 0.35);
  animation: alfredThink 1s ease-in-out infinite;
}
@keyframes alfredThink {
  0%, 100% { opacity: 0.35; }
  50%      { opacity: 0.7; }
}

/* Old fixer styles removed — all fixer styles now in fixer.css */

/* --- Space Invader Game --- */
#invaderGame {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(2, 5, 12, 0.95);
  display: none;
  flex-direction: column;
  align-items: center; justify-content: center;
  backdrop-filter: blur(6px);
}
#invaderGame.active { display: flex; }
#invaderGame canvas {
  border: 1px solid var(--panel-border);
  border-radius: 4px;
}
#invaderHud {
  width: 480px; max-width: 90vw;
  display: flex; justify-content: space-between;
  padding: 10px 0;
  font-family: 'Share Tech Mono', monospace; font-size: 12px;
}
#invaderHud .score { color: var(--cyan); }
#invaderHud .lives { color: var(--red); }
#invaderClose {
  margin-top: 12px;
  font-family: 'Share Tech Mono', monospace; font-size: 11px;
  color: rgba(200, 230, 255, 0.4); letter-spacing: 2px;
}

/* --- Shimmer Skeleton --- */
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.shimmer-line {
  height: 12px; margin: 8px 0; border-radius: 2px;
  background: linear-gradient(90deg,
    rgba(0, 245, 255, 0.03) 25%,
    rgba(0, 245, 255, 0.08) 50%,
    rgba(0, 245, 255, 0.03) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s ease infinite;
}
