/* === Portfolio Grid === */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  justify-items: center;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

/* === Project Card === */
.project-card {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 25px;
  padding: 15px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(173, 216, 230, 0.4),
              0 0 20px rgba(255, 182, 193, 0.3);
  transition: transform 0.3s ease;
  width: 320px;              /* fixed card width */
  height: 250px;             /* fixed card height */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}


.project-card:hover {
  transform: translateY(-4px);
}

/* === Image Box === */
.project-image-box {
  width: 100%;
  height: 150px;             /* fixed height for uniformity */
  border-radius: 15px;
  overflow: hidden;
  margin-bottom: 10px;
  flex-shrink: 0;
}

.project-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;          /* ensures image fills the box */
  border-radius: 15px;
}

@media (max-width: 768px) {
  .project-card {
    width: 90%;
    height: auto;
  }

  .project-image-box {
    height: 200px;
  }
}


/* === Card Buttons === */
.view-btn {
  background: linear-gradient(90deg, #ffb6c1, #add8e6);
  color: white;
  font-weight: bold;
  border: none;
  border-radius: 15px;
  padding: 10px 20px;
  text-decoration: none;
  box-shadow: 0 0 15px rgba(255,182,193,0.4);
  transition: transform 0.2s;
}

.view-btn:hover {
  transform: scale(1.05);
}
