.win98-body {
  background-color: #008080;
  padding: 15px;
}

.title-bar-text {
  font-size: 0.8rem;
  font-weight: bold;
}

.title-icon {
  width: 16px;
  height: 16px;
  margin-right: 5px;
  vertical-align: text-bottom;
}

.button-icon {
  width: 1rem;
  height: 1rem;
  margin-right: 0.3rem;
  vertical-align: text-top;
}

.projects-intro {
  margin: 15px 10px;
  font-size: 1.1rem;
  line-height: 1.4;
  color: #222;
  padding: 10px;
}

.status-bar {
  display: flex;
  justify-content: space-between;
  padding: 2px;
  background: #c0c0c0;
  margin-bottom: 10px;
}

.status-bar-field {
  margin: 0;
  padding: 2px 5px;
  font-size: 0.8rem;
  border: inset 1px #c0c0c0;
  flex-grow: 0;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  background-color: var(--off-white);
  border: 2px solid #808080;
  margin: 20px 0;
  gap: 1.5rem;
  padding: 1.5rem;
}

.window-body {
  max-height: 95%;
}

.project-card {
  margin-bottom: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease;
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(0.1rem) scale(1.05) translateX(-0.1rem);
}

.project-card:focus {
  outline: 1px dotted #000080;
}

.project-window-body {
  display: flex;
  flex-direction: column;
  padding: 8px;
  height: 100%;
}

.project-thumbnail {
  border: 1px inset #d5d5d5;
  background: #fff;
  margin-bottom: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  max-height: 200px;
  overflow: hidden;
}

.project-thumbnail img {
  max-height: 100%;
  object-fit: cover;
}

.project-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  height: calc(100% - 160px);
}

.project-description {
  margin: 4px 0 8px;
  font-size: 1rem;
  line-height: 1.4;
  flex-grow: 1;
}

.project-stars {
  display: flex;
  align-items: center;
  margin: 6px 0;
}

.project-star {
  font-size: 1rem;
  margin-right: 4px;
}

.project-stars img {
  width: auto;
  max-height: 1.2rem;
  vertical-align: middle;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 6px 0;
}

.project-tag {
  background: #ececec;
  border: 1px solid #d1d1d1;
  font-size: 0.75rem;
  padding: 1px 5px;
  color: #333;
}

.project-languages {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 6px 0;
}

.project-language {
  background: #ececec;
  border: 1px solid #d1d1d1;
  font-size: 0.75rem;
  padding: 1px 5px;
  color: #333;
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.project-actions button {
  font-size: 1rem;
  flex: 1;
  min-width: 70px;
  padding: 2px 4px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 15px;
  }
  
  .project-thumbnail {
    height: 120px;
  }
}

@media (max-width: 480px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .project-actions {
    justify-content: space-between;
  }
  
  .project-actions button {
    min-width: 28%;
  }
}