/* Portfolio Section */
.portfolio {
  padding: 40px 20px;
  text-align: center;
  max-width: 1200px;
  margin: auto;
}

.portfolio h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: #ff7f50;
}

.portfolio p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: #c4c1c1;
}

/* Portfolio Container */
.portfolio-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

/* Project Card */
.project-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  width: calc(48% - 10px); /* Two cards per row with a gap */
  display: flex;
  flex-direction: column;
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
}

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

/* Project Image */
.project-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.project-card:hover .project-image {
  transform: scale(1.1); /* Makes the image pop out */
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); /* Optional shadow for the pop-out */
  z-index: 2; /* Ensures the image pops above other elements */
}

/* Project Content */
.project-content {
  padding: 20px;
  text-align: left;
}

.project-content h2 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #1d4747;
}

.project-content p {
  font-size: 1rem;
  color: #1d4747;
  margin-bottom: 20px;
}

.project-button {
  display: inline-block;
  padding: 10px 15px;
  background-color: #ff7f50;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.project-button:hover {
  background-color: #1d4747;
}

@media (max-width: 768px) {
  .project-card {
    width: 100%; /* Single column on smaller screens */
  }
}
