.projects-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin: 2rem auto;
  max-width: 1200px;
}

.project-card {
  background-color: #f8f8f8;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin: 0 auto;
  flex: 0 0 auto;
  width: calc(50% - 2rem);
  max-width: 450px;
  min-width: 280px;
}

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

.project-card h2 {
  margin-top: 0;
  font-size: 1.5rem;
  color: #333;
}

.project-card p {
  color: #666;
  line-height: 1.6;
}

.tech-stack {
  margin: 1rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-stack span {
  background-color: #e0e0e0;
  color: #333;
  padding: 0.3rem 0.6rem;
  border-radius: 20px;
  font-size: 0.8rem;
}

.project-link {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.6rem 1rem;
  background-color: #333;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.project-link:hover {
  background-color: #555;
}

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

.more-projects {
  max-width: 800px;
  margin: 3rem auto;
  padding: 2rem;
  background-color: #f8f8f8;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.more-projects h2 {
  margin-top: 0;
  color: #333;
}

.more-projects p {
  color: #666;
  margin-bottom: 1.5rem;
}

.tech-interests {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}

.tech-interests span {
  background-color: #e9e9e9;
  color: #444;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  border: 1px solid #ddd;
}

@media (min-width: 769px) and (max-width: 1200px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .projects-grid {
    padding: 0 4rem;
    justify-content: space-evenly;
  }
  
  .project-card {
    width: calc(45% - 2rem);
  }
}

@media (max-width: 991px) {
  .projects-grid {
    flex-direction: column;
    align-items: center;
  }
  
  .project-card {
    width: 100%;
    max-width: 500px;
  }
}
