

/* --- mini logo hero --- */
.project-hero {
  background: var(--light-lav);
  border-radius: 0 0 32px 32px;
  margin: 0 auto;
  max-width: 900px;
  padding: 24px 36px;
  display: flex;
  justify-content: center;
}

.project-hero-logo {
  width: 32%;
  min-width: 160px;
  max-width: 330px;
  height: auto;
  display: block;
}

/* --- section shell --- */
.projects-page {
  padding: 60px 0 105px;
}

.page-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--ink);
  text-align: left;
  margin-bottom: 36px;
  letter-spacing: -0.01em;
}

/* --- grid --- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1180px;
  margin: 0 auto;
  align-items: stretch;
}

/* --- card --- */
.project-card {
  position: relative;
  background: var(--light-lav);
  border-radius: 20px;
  overflow: visible;
  display: flex;
  flex-direction: column;
}

/* --- image --- */
.project-image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s ease-in-out;
  border-radius: 20px 20px 0 0;
}

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

/* --- bottom accent --- */
.bottom-accent {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;

  width: 85%;
  height: 2px;
  border-radius: 999px;

  background: linear-gradient(
    90deg,
    transparent 0%,
    #ffc8fd 20%,
    #9DA2FF 50%,
    #ffc8fd 80%,
    transparent 100%
  );

  opacity: 0;
  transition: transform 0.85s ease, opacity 0.3s ease;
  pointer-events: none;
  z-index: 3;
}

.project-card:hover .bottom-accent {
  opacity: 1;
  transform: translateX(-50%) scaleX(1);
}

/* --- info --- */
.project-info {
  padding: 20px 22px 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* --- typography --- */
.project-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.project-date {
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--text-purple);
  margin-left: 2px;
}

.project-desc {
  color: #47405d;
  font-size: 0.9rem;
  max-width: 420px;
  margin-bottom: 18px;
}

.project-link {
  display: flex;
  flex-direction: column;
  flex: 1;
  text-decoration: none;
  color: inherit;
}

/* --- tags --- */
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.tag {
  padding: 7px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--purple-btn);
  border: 1.5px solid var(--purple-btn);
  white-space: nowrap;
}

.tag-filled {
  background: var(--purple-btn);
  color: #fff;
}

/* ================= MOBILE RESPONSIVE ================= */

@media (max-width: 768px) {

  /* MINI LOGO HERO */

  .project-hero {
    width: calc(100% - 30px);
    padding: 20px;
    border-radius: 0 0 24px 24px;
  }

  .project-hero-logo {
    width: 55%;
    min-width: 120px;
    max-width: 220px;
  }


  /* PAGE */

  .projects-page {
    padding: 45px 20px 80px;
  }

  .page-title {
    font-size: 1.5rem;
    margin-bottom: 28px;
    text-align: center;
  }


  /* GRID */

  .project-grid {
    grid-template-columns: 1fr;
    gap: 22px;
    width: 100%;
  }


  /* CARD */

  .project-card {
    border-radius: 18px;
  }

  .project-image,
  .project-image img {
    border-radius: 18px 18px 0 0;
  }


  /* INFO */

  .project-info {
    padding: 18px 18px 22px;
  }

  .project-title {
    font-size: 1.05rem;
  }

  .project-desc {
    font-size: 0.88rem;
    max-width: 100%;
  }


  /* TAGS */

  .tag-row {
    gap: 7px;
  }

  .tag {
    padding: 6px 13px;
    font-size: 0.75rem;
  }

}


@media (max-width: 480px) {

  .project-hero {
    width: calc(100% - 20px);
    padding: 18px;
  }

  .project-hero-logo {
    width: 65%;
  }

  .projects-page {
    padding: 35px 15px 70px;
  }

  .page-title {
    font-size: 1.35rem;
  }

  .project-info {
    padding: 16px;
  }

  .tag {
    padding: 6px 11px;
  }

}