.projects-header {
  max-width: 1000px;
  margin: 0 auto;
  padding: 130px 8% 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 90vh;
}

.projects-title {
  color: var(--accent-primary);
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  line-height: 1.15;
  text-align: center;
}

.projects-subtitle {
  color: var(--text-primary);
  font-size: clamp(1rem, 2.1vw, 1.35rem);
  line-height: 1.65;
  max-width: 900px;
  margin: 0 auto;
  padding-top: 10px;
}

.projects-main {
  padding: 0 0 70px;
}

.project-section {
  margin: 0;
  padding: 34px 8%;
  border: none;
  border-radius: 0;
}

.project-section:nth-of-type(odd) {
  background: var(--section-muted-bg);
}

.project-section:nth-of-type(even) {
  background: var(--page-bg);
}

.section-title {
  color: var(--text-primary);
  font-size: clamp(1.35rem, 2.8vw, 1.9rem);
  line-height: 1.2;
  margin-bottom: 14px;
  max-width: 1000px;
  padding-top: 25px;
  padding-bottom: 55px;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.project-list {
  display: grid;
  gap: 14px;
  max-width: 1000px;
  margin: 0 auto;
}

.project-card {
  min-height: 160px;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 36px;
  align-items: stretch;
  background: transparent;
  border: none;
  border-radius: 12px;
  padding: 12px;
}

.project-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  min-height: 0;
  border-radius: 10px;
  overflow: hidden;
  display: block;
  object-fit: contain;
  object-position: center;
  border: none;
}

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

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.project-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.project-content h3 {
  order: 1;
}

.project-content .project-tech {
  order: 2;
}

.project-content h4 {
  order: 3;
}

.project-content .project-tags {
  order: 4;
}

.project-content > a {
  order: 5;
}

.project-content h3 {
  color: var(--text-primary);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  line-height: 1.3;
}

.project-content h4 {
  color: var(--text-primary);
  opacity: 0.9;
  font-size: clamp(0.92rem, 1.7vw, 1.02rem);
  line-height: 1.6;
}

.project-content a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--accent-primary);
  text-decoration: none;
  font-size: 0.82rem;
  line-height: 1;
  background: rgba(69, 109, 229, 0.12);
  border: 1px solid rgba(69, 109, 229, 0.25);
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.project-content a:hover {
  text-decoration: none;
  background: rgba(69, 109, 229, 0.2);
  border-color: rgba(69, 109, 229, 0.35);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.project-tag {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  line-height: 1;
  color: var(--text-primary);
  background: rgba(69, 109, 229, 0.08);
  border: 1px solid rgba(69, 109, 229, 0.22);
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.project-tag:hover {
  transform: translateY(-1px);
  background: rgba(69, 109, 229, 0.16);
  border-color: rgba(69, 109, 229, 0.4);
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 0;
}

.tech-icon-img {
  width: 35px;
  height: 35px;
  padding: 4px;
  border-radius: 50%;
  background: rgba(69, 109, 229, 0.12);
  border: 1px solid rgba(69, 109, 229, 0.25);
  object-fit: contain;
  display: block;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.tech-icon-img:hover {
  transform: translateY(-2px) scale(1.05);
  background: rgba(69, 109, 229, 0.2);
  border-color: rgba(69, 109, 229, 0.45);
}

body[data-theme='light'] .tech-icon-img {
  background: rgba(69, 109, 229, 0.1);
  border-color: rgba(69, 109, 229, 0.2);
}

body[data-theme='light'] .project-card {
  background: transparent;
  border: none;
}

@media (max-width: 760px) {
  .projects-header {
    padding-top: 124px;
    padding-bottom: 36px;
    gap: 12px;
  }

  .projects-subtitle{
    text-align: justify;
    padding-top: 20px;
  }

  .section-title {
    padding-top: 20px;
    padding-bottom: 25px;
  }

  .project-section {
    padding: 24px 6%;
  }

  .project-card {
    gap: 16px;
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .project-thumb {
    aspect-ratio: 16 / 10;
  }
}
