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

/* ==================================================
   PROJECTS SECTION
================================================== */

.projects {
  padding-block: 5rem;
}

/* ==================================================
   SECTION HEADER
================================================== */

.projects .section-header {
  max-width: 700px;

  margin-inline: auto;
  margin-bottom: 3.5rem;

  text-align: center;
}

.projects .section-header__eyebrow {
  display: inline-block;

  margin-bottom: 1.5rem;
  padding: 0.25rem 0.7rem;

  background: rgba(30, 41, 59, 0.55);

  border-radius: 4px;

  color: #526ff5;

  font-size: 0.75rem;
  font-weight: 500;

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

.projects .section-header__title {
  margin-bottom: 1rem;

  color: #f1f5f9;

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

  line-height: 1.2;
}

.projects .section-header__description {
  max-width: 600px;

  margin-inline: auto;

  color: #94a3b8;

  font-size: 0.95rem;

  line-height: 1.6;
}

/* ==================================================
   PROJECTS GRID
================================================== */

.projects__grid {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 2rem;
}

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

.project-card {
  overflow: hidden;

  background: rgba(7, 16, 35, 0.65);

  border: 1px solid rgba(148, 163, 184, 0.2);

  border-radius: 0.5rem;

  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);

  border-color: rgba(82, 111, 245, 0.55);

  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

/* ==================================================
   PROJECT MEDIA
================================================== */

.project-card__media {
  position: relative;

  width: 100%;

  aspect-ratio: 16 / 9;

  overflow: hidden;

  background: #0b1428;
}

.project-card__image {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;

  transition:
    transform 0.4s ease,
    opacity 0.4s ease;
}

.project-card:hover .project-card__image {
  transform: scale(1.04);

  opacity: 0.9;
}

/* ==================================================
   PROJECT NUMBER
================================================== */

.project-card__number {
  position: absolute;

  top: 0.85rem;
  left: 1rem;

  z-index: 2;

  color: #e6e7e8;

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

  letter-spacing: 0.05em;

  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* ==================================================
   PROJECT CONTENT
================================================== */

.project-card__content {
  display: flex;

  flex-direction: column;

  min-height: 190px;

  padding: 1.25rem;
}

/* ==================================================
   PROJECT CATEGORY
================================================== */

.project-card__category {
  margin-bottom: 0.5rem;

  color: #526ff5;

  font-size: 0.7rem;
  font-weight: 600;

  letter-spacing: 0.08em;

  text-transform: uppercase;
}

/* ==================================================
   PROJECT TITLE
================================================== */

.project-card__title {
  margin-bottom: 0.6rem;

  color: #f1f5f9;

  font-size: 1.15rem;
  font-weight: 600;

  line-height: 1.3;
}

/* ==================================================
   PROJECT DESCRIPTION
================================================== */

.project-card__description {
  margin-bottom: 1.25rem;

  color: #94a3b8;

  font-size: 0.85rem;

  line-height: 1.6;
}

/* ==================================================
   PROJECT LINK
================================================== */

.project-card__link {
  display: inline-flex;

  align-items: center;

  gap: 0.5rem;

  width: fit-content;

  margin-top: auto;

  color: #637df6;

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

  transition:
    color 0.25s ease,
    gap 0.25s ease;
}

.project-card__link:hover {
  color: #869af8;

  gap: 0.75rem;
}

.project-card__link i {
  font-size: 0.7rem;
}

/* ==================================================
   TABLET
   1024px
================================================== */

@media (max-width: 1024px) {
  .projects {
    padding-block: 4.5rem;
  }

  .projects .section-header {
    margin-bottom: 3rem;
  }

  .projects .section-header__title {
    font-size: 2.1rem;
  }

  .projects__grid {
    grid-template-columns: repeat(2, 1fr);

    gap: 1.5rem;
  }

  .project-card__content {
    min-height: 185px;

    padding: 1.15rem;
  }

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

  .project-card__description {
    font-size: 0.8rem;
  }
}

/* ==================================================
   MOBILE
   768px
================================================== */

@media (max-width: 768px) {
  .projects {
    padding-block: 4rem;
  }

  .projects .section-header {
    margin-bottom: 2.5rem;
  }

  .projects .section-header__title {
    font-size: 2rem;
  }

  .projects .section-header__description {
    font-size: 0.9rem;
  }

  .projects__grid {
    grid-template-columns: repeat(2, 1fr);

    gap: 1.25rem;
  }

  .project-card__content {
    min-height: 175px;

    padding: 1rem;
  }

  .project-card__number {
    top: 0.7rem;
    left: 0.8rem;

    font-size: 0.75rem;
  }

  .project-card__category {
    font-size: 0.65rem;
  }

  .project-card__title {
    font-size: 1rem;
  }

  .project-card__description {
    font-size: 0.78rem;
  }

  .project-card__link {
    font-size: 0.75rem;
  }
}

/* ==================================================
   SMALL MOBILE
   480px
================================================== */

@media (max-width: 480px) {
  .projects {
    padding-block: 3.5rem;
  }

  .projects .section-header {
    margin-bottom: 2rem;
  }

  .projects .section-header__eyebrow {
    font-size: 0.65rem;

    letter-spacing: 1.5px;
  }

  .projects .section-header__title {
    font-size: 1.75rem;
  }

  .projects .section-header__description {
    font-size: 0.85rem;
  }

  .projects__grid {
    grid-template-columns: 1fr;

    gap: 1.5rem;
  }

  .project-card__content {
    min-height: 180px;

    padding: 1.15rem;
  }

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

  .project-card__description {
    font-size: 0.8rem;
  }
}
