/* Card ka outer box */
.card {
  font-family: "Poppins", sans-serif;
  min-width: 280px;
  border-radius: 15px;
  box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.15);
  overflow: hidden; /*← yeh important hai! */
  background: #fdf8f3;
  transition: all 0.4s ease;
}
.card:hover {
  /* transform: translateY(-1px); */
  box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.25);
}

/* Image */
.card img {
  width: 100%;
  height: 200px;
  object-fit: cover; /*← yeh bhi important!*/
  background-color: #e0e0e0;
  margin: 1rem;
  border-radius: 20px;
  width: calc(100% - 2rem);
}

/* Text wala hissa */
.card-content {
  padding: 16px;
}
.temp {
  display: flex;
  gap: 10px;
  justify-content: start;
  align-items: start;
}

.card-content h2 {
  font-size: 20px;
  margin: 0 0 4px 0;
  /* text ko ek line mein rakho */
  white-space: nowrap;
  /* bahar jaane se roko */
  overflow: hidden;
  /* "..." laga do end mein */
  text-overflow: ellipsis;
}

/* Author text */
.card-content p {
  color: #444;
  font-size: 14px;
  margin: 0 0 12px 0;
}

/* Info rows - side by side */
.tech-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  font-size: 13px;
  color: #555;
}
.tech-row .card__tag {
  background-color: orange;
  padding: 0.5rem;
  font-weight: 700;
  border-radius: 5px;
}

.tech-row .card__tag--html {
  background-color: #ffe5d0;
  color: #e44d26;
}
.tech-row .card__tag--css {
  background-color: #d0e8ff;
  color: #264de4;
}

.tech-row .card__tag--javascript {
  background-color: #d4edda;
  color: #856404;
}
.tech-row .card__tag--default {
  background-color: #d0f0ff;
  color: #00b4d8;
}

/* CSS: "card__tag--css",
    Javascript: "",

/* Button Container */
.btn-container {
  display: flex;
  gap: 20px;
  justify-content: center;
}
/* Button */
.btn {
  width: 100%;
  border: none;
  cursor: pointer;
  background: none;
}
.btn a {
  display: block;
  width: 100%;
  padding: 12px 24px;
  border-radius: 50px;
  background: grey;
  font-size: 15px;
  color: white;
  transition: all 0.3s ease;
  text-decoration: none;
}
.btn a:hover {
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.45);
}
.btn-github a:hover {
  background-color: grey;
}
.btn-live a:hover {
  background-color: green;
}

@media (max-width: 768px) {
  header h1 {
    font-size: 2rem;
  }
  .card {
    width: 100%;
  }
}
