/* ============================================================
   Projects modal
   ============================================================ */

.project-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}

.btn-detail {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .65rem 1rem;
  border-radius: 6px;
  border: 1px solid rgba(0, 229, 255, 0.35);
  background: rgba(0, 229, 255, 0.06);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: .85rem;
  text-decoration: none;
  cursor: pointer;
  transition: all .25s var(--ease-out);
  box-shadow: 0 0 0 rgba(0, 229, 255, 0);
}

.btn-detail:hover {
  border-color: rgba(0, 229, 255, 0.7);
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.25);
  transform: translateY(-2px);
}

/* Modal */
.project-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
}

.project-modal.open {
  display: block;
}

.project-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
}

.project-modal-panel {
  position: relative;
  margin: 7vh auto 0;
  width: min(980px, calc(100vw - 2rem));
  background: rgba(3, 3, 8, 0.92);
  border: 1px solid rgba(0, 229, 255, 0.25);
  border-radius: 12px;
  box-shadow: 0 30px 120px rgba(0, 0, 0, 0.7);
  overflow: hidden;
}

@media (max-width: 860px) {
  .project-modal-panel { margin: 4vh auto 0; width: calc(100vw - 1rem); }
  .project-modal-header { flex-direction: column; align-items: stretch; }
  .project-modal-title { font-size: 1.2rem; }
  .project-modal-body { padding: 1rem; }
  .project-modal-close { width: 38px; height: 38px; }
}

@media (max-width: 640px) {
  .project-modal-panel { width: calc(100vw - 0.5rem); }
  .project-modal-body { gap: 1rem; }
  .project-modal-image img { max-height: 260px; }
  .meta-row { flex-direction: column; align-items: flex-start; }
}

.project-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.25rem 1rem;
  border-bottom: 1px solid rgba(0, 229, 255, 0.15);
}

.project-modal-title {
  font-family: var(--font-display);
  color: var(--white);
  font-size: 1.3rem;
  font-weight: 800;
}

.project-modal-subtitle {
  margin-top: .35rem;
  font-family: var(--font-mono);
  color: rgba(0, 229, 255, 0.7);
  font-size: .82rem;
}

.project-modal-close {
  background: transparent;
  border: 1px solid rgba(0, 229, 255, 0.3);
  color: var(--cyan);
  border-radius: 8px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  transition: all .2s var(--ease-out);
}

.project-modal-close:hover {
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.25);
  transform: scale(1.05);
}

.project-modal-body {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 1.25rem;
  padding: 1.25rem;
}

.project-modal-image img {
  width: 100%;
  height: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(0, 229, 255, 0.2);
  box-shadow: 0 0 30px rgba(0, 229, 255, 0.08);
}

.project-modal-desc {
  color: var(--grey);
  line-height: 1.8;
  margin: 0 0 1.1rem;
}

.project-modal-meta {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  margin-bottom: 1.1rem;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .65rem .8rem;
  border: 1px solid rgba(0, 229, 255, 0.18);
  border-radius: 10px;
  background: rgba(0, 229, 255, 0.04);
}

.meta-k {
  font-family: var(--font-mono);
  color: rgba(0, 229, 255, 0.75);
  font-size: .85rem;
}

.meta-v {
  font-family: var(--font-mono);
  color: var(--white);
  font-size: .85rem;
  font-weight: 600;
}

.project-modal-links {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
}

@media (max-width: 860px) {
  .project-modal-body {
    grid-template-columns: 1fr;
  }
}

