/* ============================================================
   projects.css — Project cards with mouse-tracked glow
   ============================================================ */

#projects {
  background: var(--dark-3);
  padding: var(--section-pad) 0;
}

.projects-header {
  text-align: center;
  margin-bottom: 72px;
}

.projects-header .section-title { color: var(--text-light); }
.projects-header .section-sub   { color: var(--text-muted); margin: 12px auto 0; }

/* ---- Grid ---- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 900px;
  margin: 0 auto;
}

/* ---- Card ---- */
.project-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-card);
  padding: 36px;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

/* Mouse-tracked radial glow (--mx/--my set by JS) */
.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-card);
  background: radial-gradient(600px at var(--mx, 50%) var(--my, 50%), rgba(108, 99, 255, 0.12) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.40), 0 0 0 1px rgba(108, 99, 255, 0.35);
  border-color: rgba(108, 99, 255, 0.40);
}

.project-card:hover::before { opacity: 1; }

/* ---- Card internals ---- */
.project-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  opacity: 0.7;
}

.project-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 12px;
  line-height: 1.2;
}

.project-desc {
  font-size: 0.9rem;
  color: var(--text-faint);
  line-height: 1.7;
  margin-bottom: 24px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.project-tag {
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: rgba(108, 99, 255, 0.10);
  border: 1px solid rgba(108, 99, 255, 0.20);
  font-family: var(--font-mono);
  font-size: 0.73rem;
  color: var(--accent-light);
}

.project-footer {
  display: flex;
  align-items: center;
  gap: 10px;
}

.project-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 215, 0, 0.10);
  border: 1px solid rgba(255, 215, 0, 0.25);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-gold);
}
