.projects-wrapper {
  width: 100%;
  margin: 60px auto;
  padding: 0 30px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 40px;
  animation: fadeSlideUp 0.8s ease-out;
  margin-top: 30px;
}

.project-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  padding: 30px;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  cursor: pointer;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.18);
}

.project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 20px;
}

.project-card h3 {
  margin: 0 0 12px;
  font-size: 1.8rem;
  color: #222;
  font-weight: 600;
}

.project-card p {
  font-size: 1.1rem;
  color: #555;
  line-height: 1.6;
  flex-grow: 1;
  overflow: hidden;
}

.empty-page-error {
  text-align: center;
  font-size: 1.5rem;
  color: #ff4d4d;
  margin-top: 40px;
}

