.header-section {
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow: hidden;
}

.header-text {
  display: flex;
  justify-content: space-between;
  gap: 60px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.header-text h1 {
  flex: 1;
  font-size: 28px;
  font-weight: 500;
  color: var(--text-light);
  line-height: 36px;
  text-align: left;
}

.header-text p {
  flex: 2;
  font-size: 14px;
  font-weight: 400;
  line-height: 24px;
  color: var(--text-light);
  text-align: justify;
  min-width: 250px;
}

/* project section */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  padding: 40px 0;
}

.project-card {
  background: white;
  border-radius: 12px;
  height: 520px;
  padding: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

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

.project-image {
  width: 596px;
  height: 312px;
  overflow: hidden;
  border-radius: 4px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  image-rendering: auto;
 
}

.project-title {
  font-size: 18px;
  font-weight: 500;
  color: var(--text-light);
  margin-bottom: 8px;
  line-height: 28px;
}

.project-year {
  color: var(--orange-accent);
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  margin-bottom: 15px;
}

.project-description {
  color: var(--text-400);
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  text-align: justify;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
@media (max-width: 1024px) {
  .project-card {
    padding: 20px;
    width: 470px;
    height: 400px;
  }
  .project-image {
    width: 320px;
    height: 200px;
  }
  .project-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    image-rendering: auto;
  }
}
@media (max-width: 768px) {
  .header-section {
    display: flex;
    flex-direction: row;
    width: 100%;
  }
  .header-text {
    gap: 12px;
    margin-top: 20px;
  }

  .project-card {
    padding: 20px;
    width: 360px;
    height: 400px;
  }
  .project-image {
    width: 298px;
    height: 156px;
  }
  .project-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    image-rendering: auto;
  }
}

@media (max-width: 480px) {
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .project-card {
    padding: 20px;
    width: 320px;
    height: 420px;
  }
  .project-image {
    width: 275px;
    height: 200px;
  }
  .project-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    image-rendering: auto;
  }
}
