/* PROJECTS SECTION */
.projects-section {
  padding: 0 9vw 10vh;
}

.projects-heading {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: clamp(2.4rem, 3.4vw, 3.5rem);
}

.projects-heading span {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1rem, 1.2vw, 1.5rem);
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.75);
}

.projects-heading div {
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.18);
}

/* PROJECT GRID */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2.4rem, 3.4vw, 3.5rem);
}

/* PROJECT CARD */
.project-card {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  text-decoration: none;
  background-color: black;
  color: white;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

/* OVERLAY */
.project-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.60);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.project-overlay h2 {
  margin: 0;
  max-width: 90%;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(0.85rem, 1.1vw, 1.3rem);
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
}

.project-card:hover img {
  transform: scale(1.05);
}

.project-card:hover .project-overlay {
  opacity: 1;
}

/* MOBILE */
@media (max-width: 700px) {
  .projects-section {
    padding-top: 10vh;
    padding-bottom: 2vh;
    padding-right: 0vw;
    padding-left: 0vw;
  }

  .projects-heading {
    margin-bottom: 2rem;
  }

  .project-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .project-card {
    border-radius: 0;
  }

  .project-overlay {
    opacity: 1;
  }
}