/* ════════════════════════════════════════════════════════════════
   PROJECT CARD — single source of truth for the project card look,
   shared by index.html (Ongoing/Completed sections) and
   project-list.html. Requires base.css (for --gold, dgPulse, .dg-glass).
   ════════════════════════════════════════════════════════════════ */

.dg-project { position: relative; display: flex; flex-direction: column }
.dg-project__media { position: relative; width: 100%; aspect-ratio: 1; overflow: hidden; background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02)), linear-gradient(180deg, #2a2a2a, #111) }
.dg-project__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.01); transition: transform .8s ease, filter .8s ease }
.dg-project:hover .dg-project__media img { transform: scale(1.08); filter: brightness(1.08) }
.dg-project__shade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.08)), linear-gradient(to bottom, rgba(255, 255, 255, 0.10), transparent 36%) }
.dg-project__cat { position: absolute; top: 22px; left: 22px; z-index: 2; color: rgba(247, 241, 229, 0.88); font-size: 11px; letter-spacing: .34em; text-transform: uppercase; text-shadow: 0 10px 30px rgba(0, 0, 0, 0.45) }
.dg-project__progress { position: absolute; top: 18px; right: 18px; z-index: 3; display: flex; align-items: center; justify-content: center; width: 58px; height: 58px; border-radius: 999px; background: conic-gradient(var(--gold) var(--p), rgba(255, 255, 255, 0.16) 0); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18), 0 0 28px rgba(226, 210, 170, 0.28), 0 18px 40px rgba(0, 0, 0, 0.34); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); animation: dgPulse 2.6s ease-in-out infinite }
.dg-project__progress::before { content: ""; position: absolute; inset: -7px; border: 1px solid rgba(226, 210, 170, 0.28); border-radius: inherit; box-shadow: 0 0 28px rgba(226, 210, 170, 0.22); opacity: 0.72; animation: dgPulse 2.6s ease-in-out infinite }
.dg-project__progress::after { content: ""; position: absolute; inset: 6px; border-radius: inherit; background: linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06)), rgba(12, 12, 12, 0.72); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12) }
.dg-project__progress-text { position: relative; z-index: 2; color: #fff7e8; font-size: 10px; font-weight: 600; letter-spacing: .1em; text-shadow: 0 8px 22px rgba(0, 0, 0, 0.34) }
.dg-project__loc { position: absolute; left: 22px; right: 22px; bottom: 18px; z-index: 2; display: flex; align-items: center; gap: 8px; color: rgba(247, 241, 229, 0.88); font-size: 12px; font-weight: 600; text-shadow: 0 10px 28px rgba(0, 0, 0, 0.42) }
.dg-project__loc-icon { color: rgba(226, 210, 170, 0.95); font-size: 15px }
.dg-project__body { padding: 24px; padding-top: 28px }
.dg-project__body h3 { color: #fff7e8; font-size: 24px; line-height: 1.15; font-weight: 500; letter-spacing: -0.035em; margin-bottom: 12px }
.dg-project__body p { color: var(--text-muted); font-size: 14px; line-height: 1.65; margin-bottom: 16px }
.dg-project__link { color: var(--gold-light); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 4px; text-decoration: none; display: inline-flex; align-items: center; gap: 8px }

.dg-badge-done { position: absolute; top: 22px; left: 22px; z-index: 2; color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .34em; text-transform: uppercase; text-shadow: 0 10px 30px rgba(0, 0, 0, 0.45); padding: 6px 14px; border-radius: 999px; background: rgba(0, 150, 136, 0.6); border: 1px solid rgba(0, 150, 136, 0.4); backdrop-filter: blur(8px) }
.dg-badge-comp { position: absolute; top: 22px; right: 22px; z-index: 2; color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .34em; text-transform: uppercase; text-shadow: 0 10px 30px rgba(0, 0, 0, 0.45); padding: 6px 14px; border-radius: 999px; background: rgba(0, 150, 136, 0.6); border: 1px solid rgba(0, 150, 136, 0.4); backdrop-filter: blur(8px) }

.dg-cta-all { text-align: center; margin-top: 48px }
.dg-cta-all a { display: inline-flex; align-items: center; min-height: 52px; padding: 0 28px; border-radius: 16px; color: var(--text-warm); background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.22); text-decoration: none; font-size: 12px; font-weight: 800; letter-spacing: 6px; text-transform: uppercase; transition: transform .26s ease, background .26s ease }
.dg-cta-all a:hover { transform: translateY(-3px); background: rgba(255, 255, 255, 0.22) }

/* Reusable 4-column responsive grid for any page that lists project cards */
.dg-card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px }

@media (max-width: 1100px) {
  .dg-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) }
}
@media (max-width: 768px) {
  .dg-card-grid { grid-template-columns: 1fr }
  .dg-project__media { aspect-ratio: 3/2 }
  .dg-project__body h3 { font-size: 20px }
  .dg-project__body { padding: 18px }
  .dg-project__progress { width: 48px; height: 48px; top: 12px; right: 12px }
  .dg-project__progress-text { font-size: 9px }
  .dg-project__cat { font-size: 10px; letter-spacing: .2em }
  .dg-project__loc { font-size: 11px }
}
@media (max-width: 480px) {
  .dg-project__body h3 { font-size: 18px }
  .dg-project__body p { font-size: 13px }
}
