/* Projects Page Specific CSS */

.projects-page {
  background: var(--clr-dark);
}

.projects-hero {
  position: relative;
  width: 100%;
  height: 60vh;
  min-height: 400px;
  background-size: cover;
  background-position: center;
  display: flex;
  z-index: 1;
}

.projects-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 100%);
  z-index: -1;
}

.projects-hero__content {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.projects-hero__right {
  position: absolute;
  bottom: 6rem;
  right: 15px;
}

.projects-hero__left .bns-eyebrow {
  border: none;
  padding: 0;
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.projects-hero__title {
  color: #fff;
  font-size: 3.5rem;
  font-weight: 600;
  margin: 0.5rem 0;
  letter-spacing: -0.02em;
}

.projects-hero__desc {
  color: #ddd;
  font-size: 1.1rem;
}

.projects-breadcrumb {
  color: #aaa;
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 600;
}

.projects-main {
  position: relative;
  background: #fff;
  border-radius: 60px 60px 0 0;
  margin-top: -80px;
  z-index: 2;
  padding: 4rem 0 6rem;
}

/* Filter Bar */
.projects-filter {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 4rem;
  align-items: center;
}

.projects-filter__selects {
  display: flex;
  flex: 1;
  gap: 1.5rem;
}

.filter-select {
  flex: 1;
  position: relative;
}

.filter-select select {
  width: 100%;
  appearance: none;
  background: #f8f8f8;
  border: 1px solid rgba(0,0,0,0.03);
  border-radius: 30px;
  padding: 1rem 1.5rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  color: #444;
  cursor: pointer;
  outline: none;
  box-shadow: 0 2px 10px rgba(0,0,0,0.01);
}

.filter-select .fa-chevron-down {
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  font-size: 0.7rem;
  pointer-events: none;
}

.filter-btn {
  padding: 1rem 2.5rem;
  border-radius: 30px;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
}

/* Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 5rem;
}

.project-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 4/5;
  background: #eee;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  cursor: pointer;
}

.project-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

.project-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.4) 40%, rgba(0,0,0,0) 70%);
}

.project-card__badge {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.badge-completed { background: #ffcc8e; color: #111; }
.badge-under-construction { background: #facc15; color: #111; }
.badge-active { background: #fed7aa; color: #111; }
.badge-ready { background: #fdba74; color: #111; }

.project-card__info {
  position: relative;
  z-index: 2;
  padding: 1.5rem;
}

.project-card__title {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.project-card__location {
  color: #ccc;
  font-size: 0.85rem;
}
.project-card__location i {
  margin-right: 4px;
}

/* Partners Section */
.projects-partners {
  text-align: center;
  padding-top: 3rem;
  border-top: 1px solid rgba(0,0,0,0.05);
}

.projects-partners h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--clr-dark);
  margin-bottom: 0.5rem;
}

.projects-partners p {
  color: var(--clr-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.projects-partners__logos {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.projects-partners__logo-box {
  background: #fcfcfc;
  border-radius: 16px;
  width: 180px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.projects-partners__logo-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Responsive */
@media (max-width: 991px) {
  .projects-hero__content {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }
  .projects-hero__right {
    position: relative;
    bottom: auto;
    right: auto;
    margin-top: 1rem;
  }
  .projects-filter {
    flex-direction: column;
  }
  .projects-filter__selects {
    flex-wrap: wrap;
    width: 100%;
    gap: 1rem;
  }
  .filter-select {
    min-width: calc(50% - 0.5rem);
  }
  .filter-btn {
    width: 100%;
  }
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .projects-hero {
    padding-top: 80px; 
    height: auto;
    min-height: 350px;
  }
  .projects-hero__title {
    font-size: 2.5rem;
  }
  .projects-main {
    margin-top: -40px;
    border-radius: 40px 40px 0 0;
    padding: 3rem 0 4rem;
  }
  .projects-partners__logo-box {
    width: 140px;
    height: 100px;
  }
}

@media (max-width: 576px) {
  .projects-hero__title {
    font-size: 1.8rem;
  }
  .projects-hero__desc {
    font-size: 1rem;
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .filter-select {
    min-width: 100%;
  }
  .projects-filter__selects {
    gap: 0.8rem;
  }
  .projects-filter {
    gap: 1rem;
    margin-bottom: 3rem;
  }
  .projects-partners__logos {
    flex-wrap: wrap;
  }
}
