#projects-section {
  text-align: center;
  padding: 50px 50px;
  background-color: #f4f4f4;
}

#projects-section h1 {
  font-size: 2.5rem;
  font-weight: bold;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 30px;
  position: relative;
  display: block;
}

#projects-section h1::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background-color: #007BFF;
  margin: 8px auto 0;
  border-radius: 2px;
}

.projects-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.project-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.project-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
}

.project-card h3 {
  font-size: 1.5rem;
  color: var(--text-color);
  margin: 1.5rem 1.5rem 1rem;
}

.project-card p {
  color: var(--secondary-color);
  margin: 0 1.5rem 1.5rem;
  flex-grow: 1;
  font-size: 1rem;
  line-height: 1.6;
}

.project-link {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  margin: 0 1.5rem 1.5rem;
  text-decoration: none;
  color: var(--primary-color);
  font-weight: 500;
  border: 2px solid var(--primary-color);
  border-radius: 6px;
  transition: all 0.3s ease;
}

.project-link:hover {
  background-color: var(--primary-color);
  color: white;
  text-decoration: none;
}

@media (max-width: 768px) {
  .projects-container {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .project-card h3 {
    font-size: 1.25rem;
  }

  .project-card p {
    font-size: 0.9rem;
  }
}
