/* =========================
   PROJECTS PORTFOLIO
========================= */

.projects-portfolio {
  position: relative;
  padding: 130px 8%;
  background: #f5f9fc;
  overflow: hidden;
}

.projects-portfolio-container {
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
}

/* =========================
 SECTION HEADING
========================= */

.projects-portfolio-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 60px;
  margin-bottom: 55px;
}

.projects-heading-text {
  max-width: 650px;
}

.section-label {
  display: inline-block;
  margin-bottom: 18px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #267bb4;
}

.projects-heading-text h2 {
  margin: 0;
  font-size: clamp(42px, 4vw, 64px);
  line-height: 1.05;
  letter-spacing: -1.5px;
  color: #102f4a;
}

.projects-heading-text h2 span {
  color: #267bb4;
}

.projects-portfolio-heading > p {
  max-width: 500px;
  margin: 0 0 5px;
  font-size: 16px;
  line-height: 1.8;
  color: #637687;
}

/* =========================
 PROJECT FILTERS
========================= */

.projects-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 45px;
  padding-bottom: 18px;
  border-bottom: 1px solid #dfe9ef;
}

.project-filter {
  padding: 10px 18px;
  border: 1px solid #d5e3eb;
  border-radius: 50px;
  background: #ffffff;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  color: #637687;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease,
    transform 0.3s ease;
}

.project-filter:hover {
  transform: translateY(-2px);
  border-color: #267bb4;
  color: #267bb4;
}

.project-filter.active {
  border-color: #267bb4;
  background: #267bb4;
  color: #ffffff;
}

/* =========================
 FLEXBOX PORTFOLIO
========================= */

.projects-portfolio-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

/* =========================
 PORTFOLIO CARD
========================= */

.portfolio-card {
  flex: 1 1 30%;
  min-width: 300px;
  overflow: hidden;
  border: 1px solid #e1ebf1;
  border-radius: 24px;
  background: #ffffff;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.portfolio-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 55px rgba(16, 47, 74, 0.13);
}

/* =========================
 IMAGE
========================= */

.portfolio-image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0d3554;
}

.portfolio-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #174f73, #0d3554);
  color: rgba(255, 255, 255, 0.3);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  transition: transform 0.5s ease;
}

.portfolio-card:hover .portfolio-image-placeholder {
  transform: scale(1.05);
}

/* =========================
 CATEGORY
========================= */

.portfolio-category {
  position: absolute;
  top: 18px;
  left: 18px;
  padding: 7px 12px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.94);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #267bb4;
}

/* =========================
 ARROW
========================= */

.portfolio-arrow {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #267bb4;
  color: #ffffff;
  font-size: 20px;
  transition: transform 0.35s ease, background 0.35s ease;
}

.portfolio-card:hover .portfolio-arrow {
  transform: translate(3px, -3px);
  background: #a9dcf8;
  color: #102f4a;
}

/* =========================
 CARD CONTENT
========================= */

.portfolio-content {
  padding: 28px 30px 30px;
}

.portfolio-number {
  display: block;
  margin-bottom: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #8a9aa7;
}

.portfolio-content h3 {
  margin: 0 0 12px;
  font-size: 25px;
  line-height: 1.15;
  color: #102f4a;
}

.portfolio-content p {
  margin: 0 0 25px;
  font-size: 14px;
  line-height: 1.7;
  color: #687d8c;
}

/* =========================
 PROJECT META
========================= */

.portfolio-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding-top: 18px;
  border-top: 1px solid #e8eff3;
  font-size: 11px;
  font-weight: 600;
  color: #637687;
}

.portfolio-meta span:last-child {
  color: #267bb4;
  letter-spacing: 0.5px;
}

/* =========================
 FEATURED CARD
========================= */

.featured-project {
  flex: 1 1 62%;
}

.featured-project .portfolio-image {
  aspect-ratio: 16 / 8.5;
}

.featured-project .portfolio-content h3 {
  font-size: 30px;
}

/* =========================
 LAPTOP
========================= */

@media (max-width: 1100px) {
  .projects-portfolio {
    padding: 100px 6%;
  }

  .projects-portfolio-heading {
    align-items: flex-start;

    flex-direction: column;

    gap: 25px;
  }

  .portfolio-card {
    flex: 1 1 45%;
  }

  .featured-project {
    flex: 1 1 100%;
  }
}

/* =========================
 TABLET
========================= */

@media (max-width: 850px) {
  .projects-portfolio {
    padding: 90px 6%;
  }

  .projects-portfolio-heading {
    margin-bottom: 45px;
  }

  .portfolio-card {
    flex: 1 1 45%;

    min-width: 260px;
  }

  .featured-project {
    flex: 1 1 100%;
  }
}

/* =========================
 LARGE PHONE
========================= */

@media (max-width: 700px) {
  .projects-portfolio {
    padding: 80px 5%;
  }

  .projects-heading-text h2 {
    font-size: 42px;
  }

  .projects-filters {
    gap: 8px;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 15px;
  }

  .project-filter {
    flex-shrink: 0;
  }

  .projects-portfolio-grid {
    gap: 20px;
  }

  .portfolio-card,
  .featured-project {
    flex: 1 1 100%;

    min-width: 0;
  }

  .featured-project .portfolio-image,
  .portfolio-image {
    aspect-ratio: 16 / 10;
  }
}

/* =========================
 SMALL PHONE
========================= */

@media (max-width: 480px) {
  .projects-portfolio {
    padding: 70px 20px;
  }

  .projects-heading-text h2 {
    font-size: 36px;
  }

  .portfolio-content {
    padding: 24px;
  }

  .featured-project .portfolio-content h3 {
    font-size: 27px;
  }

  .portfolio-content h3 {
    font-size: 23px;
  }
}
