* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Bai Jamjuree', sans-serif;
}

body {
  background: #212529;
  color: #f8f9fa;
}

.header {
  background: url(img/Banner.png) no-repeat center/cover;
  height: 25vh;
  width: 100%;
}

.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem;
}

.profile img {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  border: 4px solid #212529;
  margin-top: -65px;
}

.profile h1 {
  margin-top: 10px;
  font-size: 1.8rem;
}

.profile p {
  color: #f8f9fa;
  margin: 0.5rem 0;
}

.description {
  max-width: 300px;
  margin: 1rem auto;
  font-size: 0.95rem;
}

.socials {
  margin: 1rem auto;
}

.socials a {
  margin: 0 10px;
  color: #f8f9fa;
  font-size: 1.4rem;
  text-decoration: none;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 1rem 0;
}

.filters button {
  padding: 0.7rem 1.2rem;
  border: 2px solid #f8f9fa;
  border-radius: 40px;
  background: #212529;
  cursor: pointer;
  font-weight: bold;
  font-size: 0.9rem;
  color: #f8f9fa;
}

.filters button.active,
.filters button:hover {
  background: #f8f9fa;
  color: #212529;
}

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

.project {
  background: #f8f9fa;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.2s;
}

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

.project img {
  width: 100%;
  display: block;
}

.project-title {
  font-weight: bold;
  padding: 0.7rem 1rem;
  font-size: 1rem;
  color: #212529;
}

.project a {
  text-decoration: none;
}

@media (max-width: 500px) {
  .description {
    padding: 0 1rem;
  }
}
