.projects {
  background-color: #f5f9fa;
  position: relative;
}

.project-card {
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
  height: 100%;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.project-image {
  height: 240px;
  overflow: hidden;
  position: relative;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.1);
}

.project-content {
  padding: 1.5rem;
}

.project-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #4a6670;
}

.project-description {
  color: #5a6e72;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.project-tag {
  padding: 0.3rem 0.8rem;
  background-color: rgba(74, 102, 112, 0.1);
  color: #4a6670;
  border-radius: 20px;
  font-size: 0.85rem;
}

.project-link {
  display: inline-block;
  color: #4a6670;
  font-weight: 600;
  transition: all 0.3s ease;
}

.project-link:hover {
  color: #a6977b;
}

.project-link i {
  margin-left: 0.5rem;
  transition: transform 0.3s ease;
}

.project-link:hover i {
  transform: translateX(5px);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 60%);
}

.project-category {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  padding: 0.3rem 1rem;
  background-color: #4a6670;
  color: white;
  border-radius: 20px;
  font-size: 0.85rem;
}

@media (max-width: 768px) {
  .project-card {
    margin-bottom: 2rem;
  }
}
