/* === Past Work Section === */
.past-work {
  width: 90%;
  max-width: 1200px;
  margin: 60px auto;
  padding: 40px;
  background-color: #1a1a1a;
  border-radius: 24px;
  box-shadow: 0 0 16px rgba(0, 0, 0, 0.5);
  color: #eee;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: 32px;
  color: #9a5de1;
  margin-bottom: 8px;
}

.section-header p {
  font-size: 16px;
  color: #aaa;
}

/* Grid Layout */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  row-gap: 100px;
}

/* Work Card */
.work-card {
  background-color: #262626;
  border-radius: 16px;
  padding: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 10px rgba(255, 255, 255, 0.05);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  min-height: 340px;
}

.work-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 14px rgba(154, 93, 225, 0.3);
}

/* Image */
.work-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 12px;
}

/* Title */
.work-card h4 {
  color: #f0f0f0;
  font-size: 20px;
  margin-bottom: 10px;
}

/* Description Reveal */
.work-description {
  background-color: #1f1f1f;
  padding: 12px;
  border-left: 4px solid #9a5de1;
  border-radius: 8px;
  color: #ccc;
  font-size: 0.95rem;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.4s ease, max-height 0.4s ease;
}

.work-card:hover .work-description {
  opacity: 1;
  max-height: 200px;
  margin-top: 8px;
}

.work-description code {
  background-color: #333;
  color: #dcdcdc;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.85em;
  font-family: monospace;
}
