.projects {
  padding: 100px 20px;
  background: #f8fafc;
  font-family: 'Inter', sans-serif;
}

.container {
  max-width: 1200px;
  margin: auto;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* Card */
.project-card {
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  overflow: hidden;
  text-decoration: none;
  color: #111827;
  background: #fff;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
  transition: 0.3s ease;
  height: 100%;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

/* Image */
.project-img {
  position: relative;
  height: 200px; /* FIXED HEIGHT */
  overflow: hidden;
}

.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* IMPORTANT */
  transition: 0.4s;
}

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

/* Tags */
.top-tags {
  position: absolute;
  bottom: 12px;
  left: 12px;
  display: flex;
  gap: 8px;
}

.top-tags span {
  background: #facc15;
  color: #111;
  font-size: 11px;
  padding: 5px 12px;
  border-radius: 20px;
  font-weight: 600;
}

/* Content */
.project-content {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* Title */
.project-content h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

/* Description */
.project-content p {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.5;
  flex-grow: 1; /* PUSH ICON DOWN */
}

.icon {
  position: absolute;
  bottom: 15px;
  right: 15px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg,#3b82f6,#60a5fa);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: 0.3s;
  box-shadow: 0 8px 20px rgba(59,130,246,0.3);
}

.project-card:hover .icon {
  transform: scale(1.1) rotate(45deg);
}

/* Responsive */
@media (max-width: 900px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}