/* css/work.css */
#work { background: var(--bg); }

.work-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 64px;
  flex-wrap: wrap;
  gap: 24px;
}

.view-all-link {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color var(--transition-base), gap var(--transition-base);
}
.view-all-link:hover { color: var(--purple-bright); gap: 16px; }
.view-all-link svg { transition: transform var(--transition-base); }
.view-all-link:hover svg { transform: translateX(4px); }

/* Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

/* Card */
.project-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-3);
  border: 1px solid var(--border);
  cursor: none;
  transition:
    transform 0.55s var(--ease),
    box-shadow 0.55s var(--ease),
    border-color 0.4s;
}
.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 36px 70px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(139, 92, 246, 0.18);
  border-color: rgba(139, 92, 246, 0.12);
}

/* Span variants */
.project-card.large  { grid-column: span 7; min-height: 520px; }
.project-card.medium { grid-column: span 5; min-height: 520px; }
.project-card.wide   { grid-column: span 5; min-height: 320px; }
.project-card.tall   { grid-column: span 7; min-height: 320px; }

/* Project image */
.project-card img {
  width: 100%; height: 100%;
  min-height: inherit;
  object-fit: cover;
  transition: transform 0.85s var(--ease);
}
.project-card:hover img { transform: scale(1.05); }

/* Placeholder (when no image) */
.project-placeholder {
  width: 100%;
  height: 100%;
  min-height: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.85s var(--ease);
}
.project-card:hover .project-placeholder { transform: scale(1.04); }

.ph-branding  { background: linear-gradient(135deg, #1a0a2e 0%, #2d1458 50%, #1a0a2e 100%); }
.ph-ui        { background: linear-gradient(135deg, #0a0a1e 0%, #1a1a3e 50%, #0e0e28 100%); }
.ph-packaging { background: linear-gradient(135deg, #0d0d0d 0%, #1a1a1a 100%); }
.ph-social    { background: linear-gradient(135deg, #0a1628 0%, #1a2e48 50%, #0a1628 100%); }

.ph-shapes { position: absolute; inset: 0; overflow: hidden; }
.ph-circle {
  position: absolute;
  border-radius: 50%;
}
.ph-label {
  position: relative; z-index: 1;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 3rem);
  font-weight: 800;
  color: rgba(255, 255, 255, 0.06);
  letter-spacing: -0.02em;
  text-align: center;
  padding: 20px;
  line-height: 1;
}

/* Always-visible bottom bar */
.project-footer {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 22px 26px;
  background: linear-gradient(to top, rgba(8, 8, 8, 0.88) 0%, transparent 100%);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  transition: opacity 0.3s;
}
.project-card:hover .project-footer { opacity: 0; }
.project-footer-name {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
}
.project-footer-cat {
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--purple-bright);
  margin-top: 3px;
}

/* Hover overlay */
.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8,8,8,0.94) 0%, rgba(8,8,8,0.35) 45%, transparent 100%);
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.project-card:hover .project-overlay { opacity: 1; }

.project-category {
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--purple-bright);
  margin-bottom: 8px;
}
.project-name {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.45rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.project-arrow {
  width: 38px; height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  transition: background 0.3s, border-color 0.3s, transform 0.4s var(--ease);
}
.project-card:hover .project-arrow {
  background: var(--purple);
  border-color: var(--purple);
  transform: rotate(45deg);
}
