/* =========================
   PROJECTS PAGE
========================= */

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background: #24005f;
}

.projects-page {
  background: url("../images/background.svg");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;

  min-height: 100vh;
  overflow-x: hidden;
  padding-bottom: 0;

  background-color: #24005f;
}

/* =========================
   NAVBAR
========================= */

.projects-page .site-header {
  top: 18px;
}

.projects-page .nav-pill {
  width: min(1220px, 92%);
  padding: 16px 22px;
}

.projects-page .brand-logo {
  height: 42px;
}

.projects-page .nav-links {
  gap: 34px;
}

.projects-page .nav-links a {
  font-size: 16px;
  font-weight: 500;
}

.projects-page .nav-cta {
  padding: 12px 22px;
  font-size: 16px;
  font-weight: 600;
}

/* =========================
   HERO
========================= */

.projects-hero {
  position: relative;
  width: 100%;
  min-height: 700px;

  display: flex;
  align-items: flex-start;
  justify-content: center;

  padding: 175px 24px 0;
}

.projects-hero-content {
  width: 100%;
  max-width: 1500px;

  display: flex;
  flex-direction: column;
  align-items: center;

  text-align: center;
}

.projects-title-image {
  width: min(920px, 68vw);
  height: auto;
  object-fit: contain;

  margin-bottom: 8px;

  filter: drop-shadow(0 24px 60px rgba(0, 0, 0, 0.24));
}

.projects-description {
  max-width: 1180px;

  color: rgba(255, 255, 255, 0.92);

  font-family: "Sofia Sans", sans-serif;
  font-size: clamp(22px, 1.7vw, 31px);
  line-height: 1.24;
  font-weight: 300;

  letter-spacing: -0.03em;
}

.projects-description strong {
  font-weight: 600;
  color: #fe84fe;
}

/* =========================
   PROJECTS GALLERY
========================= */

.projects-gallery {
  position: relative;
  z-index: 5;

  margin-top: 40px;
  padding: 0 0 120px;
}

.projects-gallery-container {
  width: min(1320px, calc(100% - 80px));
  margin: 0 auto;

  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 72px 56px;
}

/* =========================
   CARD
========================= */

.project-card {
  width: 100%;
  max-width: 360px;

  overflow: hidden;
  border-radius: 18px;
  background: #26006f;

  box-shadow:
    0 28px 60px rgba(0, 0, 0, 0.26),
    0 0 0 1px rgba(255, 255, 255, 0.04);

  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 34px 74px rgba(0, 0, 0, 0.34),
    0 0 34px rgba(254, 132, 254, 0.18);
}

.project-card__image {
  width: 100%;
  height: 190px;
  overflow: hidden;
  background: #2b0879;
}

.project-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card__content {
  padding: 22px 24px 24px;
}

.project-card__title {
  margin-bottom: 7px;

  font-size: 28px;
  line-height: 0.95;
  font-weight: 800;

  color: #ffffff;
}

.project-card__title span {
  color: #fe84fe;
}

.project-card__tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  margin-bottom: 18px;
  padding: 8px 18px;

  border-radius: 999px;

  font-size: 14px;
  line-height: 1;
  font-weight: 600;

  color: #ffffff;
  background: rgba(254, 132, 254, 0.18);
  border: 1px solid rgba(254, 132, 254, 0.65);
}

.project-card__text {
  min-height: 82px;
  margin-bottom: 26px;

  font-size: 14px;
  line-height: 1.42;
  font-weight: 500;

  color: rgba(255, 255, 255, 0.94);
}

.project-card__button {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  height: 50px;

  border-radius: 10px;

  background: #fe84fe;
  color: #ffffff;

  text-decoration: none;
  font-size: 14px;
  font-weight: 700;

  box-shadow: none;

  transition:
    transform 0.22s ease,
    background 0.22s ease;
}

.project-card__button:hover {
  transform: translateY(-2px);
  background: #f46df6;
  box-shadow: none;
}

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

@media (max-width: 1200px) {
  .projects-page .nav-pill {
    width: calc(100% - 48px);
  }

  .projects-title-image {
    width: min(760px, 82vw);
  }

  .projects-description {
    font-size: 24px;
  }

  .projects-gallery {
    margin-top: 40px;
  }
}

@media (max-width: 1024px) {
  .projects-gallery-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 42px 28px;
  }
}

@media (max-width: 768px) {

  html,
  body,
  .projects-page {
    background-color: #24005f;
  }

  .projects-page {
    background-image: url("../images/background.svg");
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;

    min-height: 100dvh;
  }

  .projects-page .site-header {
    top: 12px;
  }

  .projects-page .nav-pill {
    width: calc(100% - 24px);
    padding: 14px 16px;
  }

  .projects-page .brand-logo {
    height: 34px;
  }

  .projects-page .nav-links {
    display: none;
  }

  .projects-page .nav-cta {
    padding: 11px 16px;
    font-size: 14px;
  }

  .projects-hero {
    min-height: 620px;
    padding: 150px 18px 0;
  }

  .projects-title-image {
    width: 100%;
    margin-bottom: 22px;
  }

  .projects-description {
    font-size: 20px;
    line-height: 1.32;
  }

  .projects-gallery {
    margin-top: 40px;
    padding-bottom: 140px;
  }

  .projects-gallery-container {
    width: calc(100% - 32px);
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .project-card {
    max-width: 100%;
  }

  .project-card__image {
    height: 220px;
  }
}

@media (max-width: 480px) {
  .projects-description {
    font-size: 18px;
  }

  .projects-gallery {
    margin-top: 32px;
  }
}