/* ═══════════════════════════════════════════════════════════════════════════
   MODAL — Overlay, box, project cards, YouTube embed
   ═══════════════════════════════════════════════════════════════════════════ */

/* Modal */
#modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9500;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
}
#modal-overlay.open {
  display: flex;
}
#modal-box {
  background: #0a0a1a;
  border: 2px solid var(--neon-cyan);
  border-radius: 4px;
  max-width: 700px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 32px;
  position: relative;
  box-shadow:
    0 0 30px var(--neon-cyan),
    0 0 60px rgba(0, 245, 255, 0.1);
  animation: modalIn 0.3s ease;
}
@keyframes modalIn {
  from {
    transform: scale(0.8) translateY(40px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}
#modal-title {
  font-family: "Press Start 2P", monospace;
  font-size: 14px;
  color: var(--neon-cyan);
  margin-bottom: 16px;
  text-shadow: 0 0 10px var(--neon-cyan);
}
#modal-body {
  font-family: "Space Mono", monospace;
  font-size: 16px;
  color: #ccc;
  line-height: 1.8;
}
#modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  font-family: "Press Start 2P", monospace;
  font-size: 12px;
  background: none;
  border: 1px solid var(--neon-pink);
  color: var(--neon-pink);
  padding: 6px 10px;
  cursor: none;
  text-shadow: 0 0 6px var(--neon-pink);
  box-shadow: 0 0 8px var(--neon-pink);
  transition: all 0.2s;
}
#modal-close:hover {
  background: var(--neon-pink);
  color: #000;
}

/* Project card inside modal */
.proj-card {
  border: 1px solid rgba(0, 245, 255, 0.3);
  border-radius: 4px;
  padding: 20px;
  margin-bottom: 16px;
  background: rgba(0, 245, 255, 0.03);
}
.proj-card h3 {
  font-family: "Press Start 2P", monospace;
  font-size: 12px;
  color: var(--neon-yellow);
  margin-bottom: 10px;
  text-shadow: 0 0 6px var(--neon-yellow);
}
.proj-card p {
  font-size: 14px;
  color: #aaa;
  line-height: 1.7;
}
.proj-card .tags {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.proj-card .tag {
  font-family: "Press Start 2P", monospace;
  font-size: 9px;
  padding: 4px 8px;
  border: 1px solid var(--neon-purple);
  color: var(--neon-purple);
  border-radius: 2px;
}
.proj-card .thumb {
  width: 100%;
  height: 140px;
  background: linear-gradient(135deg, #0d0221 0%, #1a0533 100%);
  border-radius: 3px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Press Start 2P", monospace;
  font-size: 10px;
  color: rgba(0, 245, 255, 0.3);
  border: 1px dashed rgba(0, 245, 255, 0.15);
  position: relative;
  overflow: hidden;
}
.proj-card .thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(0, 245, 255, 0.02) 10px,
    rgba(0, 245, 255, 0.02) 20px
  );
}

/* ── Project modal ────────────────────────────────────────────────────────── */
.proj-thumb-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 3px;
  margin-bottom: 14px;
  display: block;
  border: 1px solid rgba(0, 245, 255, 0.2);
}

.proj-desc {
  font-size: 12px;
  color: #bbb;
  line-height: 1.8;
  margin-bottom: 12px;
}
.proj-desc h2,
.proj-desc strong {
  color: var(--neon-cyan);
}
.proj-desc a {
  color: var(--neon-cyan);
  text-decoration: none;
}
.proj-desc a:hover {
  text-decoration: underline;
}

/* ── YouTube embed ────────────────────────────────────────────────────────── */
.yt-embed-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  margin-top: 16px;
  border: 1px solid rgba(0, 245, 255, 0.2);
  border-radius: 3px;
  overflow: hidden;
  background: #000;
}
.yt-embed-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
