
:root{
    --darker-purple:#420039;
    --dark-purple:#932F6D;
    --pink:#E07BE0;
    --grey:#DCCCFF;
    --dark-grey:#F6F2FF;
}

.project-card:hover {
  background-color: #f0f0f0;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
  transform: scale(1.05);
}

.projects-section {
  width: 100%;
  /* removed fixed height so grid can flow */
  padding: 20px;
  padding-bottom: 50px;
  color: var(--dark-purple);
  background-color: var(--dark-purple);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
/* make the Projects heading span the full row so cards fill the columns */
.projects-section > h1 {
  grid-column: 1 / -1;
}
/*project section*/
.project-card {
  display: flex;
  flex-direction: column;
  padding: 30px;
  margin-bottom: 20px;
  background-color: var(--dark-grey);
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease, box-shadow 0.3s ease,transform 0.3s ease;
}

.project-image {
  height: 200px; /* Adjust the height of the image container */
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-details {
  padding: 20px;
}

.project-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 10px;
}

.project-description {
  font-size: 16px;
  color: #555;
  margin-bottom: 10px;
}

.project-link {
  color: #3498db;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.project-link:hover {
  color: #2980b9;
}


/* Responsive Layout */

@media (min-width: 768px) {
  .projects-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (min-width: 992px) {
  .projects-section {
    grid-template-columns: repeat(3, 1fr);
  }
}

