/*
 * ┌─────────────────────────────────────────────────────────────────┐
 * │  STEP 9 of 13 (CSS thread) — css/projects.css                   │
 * │                                                                 │
 * │  Project and Service cards, plus the animated stats counters.   │
 * │                                                                 │
 * │  KEY CONCEPT: grid-column: 1 / -1.                              │
 * │  When a card spans all columns of its grid parent, -1 means     │
 * │  "the last grid line" — so this always fills the full row       │
 * │  regardless of how many columns the auto-fill grid creates.     │
 * │  Used by .game-project-card to make the featured card full-     │
 * │  width on every viewport size.                                  │
 * │                                                                 │
 * │  .service-tag overrides .project-tag's blue with green (#059669)│
 * │  to visually distinguish service work from research projects.   │
 * │                                                                 │
 * │  ▶  Next: See css/awards.css (Step 10)                         │
 * └─────────────────────────────────────────────────────────────────┘
 */

/* ===================================
   Projects Section
   =================================== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.project-card {
    background: white;
    border-radius: 8px;
    padding: var(--spacing-md);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-medium), box-shadow var(--transition-medium);
    border: 2px solid var(--border-color);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.project-card.featured {
    border-color: var(--secondary-color);
    background: linear-gradient(to bottom, #f8f9fa 0%, white 100%);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-sm);
}

.project-tag {
    background-color: var(--secondary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
}

.project-year {
    color: var(--text-light);
    font-weight: 500;
}

.service-tag {
    background-color: #059669;
}

.project-link {
    display: inline-block;
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: border-color var(--transition-fast);
}

.project-link:hover {
    border-bottom-color: var(--secondary-color);
}

.project-card h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.project-description {
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
}

.project-tech span {
    background-color: var(--bg-alt);
    color: var(--text-color);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    border: 1px solid var(--border-color);
}

.project-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
    text-align: center;
}

.stat {
    background: var(--bg-alt);
    padding: var(--spacing-md);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.stat h3 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: var(--spacing-xs);
}

.stat p {
    margin: 0;
    color: var(--text-light);
}
