.projects-hero {
  min-height: 65vh;

  display: flex;
  align-items: center;

  padding: 160px 8% 100px;

  background:
    linear-gradient(rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.92)),
    url("/static/img/ui/background.webp");

  background-size: cover;
  background-position: center;
}

.projects-hero-content {
  max-width: 900px;
}

.projects-hero h1 {
  margin-top: 5px;

  font-size: clamp(4rem, 9vw, 7rem);
  line-height: 1;
  font-weight: 800;
}

.projects-hero p {
  max-width: 650px;

  margin-top: 25px;

  color: var(--text-secondary);

  font-size: 1.15rem;
  line-height: 1.8;
}

.all-projects {
  padding: 120px 8%;
  background: #0b0b0b;
}

.project-card {
  min-height: 260px;

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  padding: 32px;
}

.project-type {
  display: inline-block;

  margin-bottom: 14px;

  color: var(--primary);

  font-size: 0.8rem;
  font-weight: 700;

  letter-spacing: 2px;
  text-transform: uppercase;
}

.project-card h3 {
  font-size: 1.7rem;
  margin-bottom: 12px;
}

.project-card p {
  max-width: 500px;

  color: var(--text-secondary);

  line-height: 1.7;
}

.project-link {
  align-self: flex-start;

  margin-top: 30px;

  color: white;

  text-decoration: none;

  font-weight: 600;

  transition: 0.3s;
}

.project-link:hover {
  color: var(--primary);
  transform: translateX(4px);
}

@media (max-width: 768px) {
  .projects-hero {
    min-height: 60vh;
    padding: 140px 8% 80px;
  }

  .projects-hero h1 {
    font-size: 4rem;
  }

  .all-projects {
    padding: 80px 8%;
  }

  .project-card {
    min-height: 240px;
  }
}
