/* =========================
   PROJECTS HERO
========================= */
.projects-hero {
  position: relative;
  background-image: url("/images/home-hero.png");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.projects-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1;
}

.projects-hero * {
  position: relative;
  z-index: 2;
}

/* ================================
   PROJECTS SECTION
================================ */
.projects-section {
  padding: 80px 60px;
  background: #f7f5f2;
  font-family: "DM Sans", sans-serif;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.section-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.section-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #c0873f;
}

.section-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 42px;
  color: #1a1a1a;
  text-align: center;
  margin: 0;
}

/* ================================
   PROJECTS CONTAINER & CARDS
================================ */
.projects-container {
  display: grid;
  align-items: center;
  justify-items: center;
  justify-content: center;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.project-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.13);
}

.project-card.completed {
  opacity: 0.88;
}
.project-card.completed:hover {
  transform: translateY(-4px);
}

.project-img {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}

.card-badge.active {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
}

.card-badge.done {
  background: #e3f2fd;
  color: #1565c0;
  border: 1px solid #90caf9;
}

.card-content {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.project-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 20px;
  color: #1a1a1a;
  margin: 0;
  line-height: 1.3;
}

.project-desc {
  font-size: 14px;
  color: #777;
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ================================
   PROGRESS BAR
================================ */
.progress-wrapper {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: auto;
  padding-top: 10px;
}

.progress-bar-container {
  width: 100%;
  height: 8px;
  background: #ece9e4;
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(to right, #e8a44a, #c0873f);
  border-radius: 999px;
  width: 0%;
  transition: width 0.9s cubic-bezier(0.25, 1, 0.5, 1);
}

.project-card.completed .progress-bar {
  background: linear-gradient(to right, #42a5f5, #1565c0);
}

.goal-raised {
  display: flex;
  justify-content: space-between;
}

.goal-amount,
.raised-amount {
  font-size: 12px;
  font-weight: 600;
  color: #555;
}

.progress-percentage {
  font-size: 12px;
  font-weight: 700;
  color: #c0873f;
  text-align: right;
  margin: 0;
}

.project-card.completed .progress-percentage {
  color: #1565c0;
}

.completed-btn {
  background: #e3f2fd;
  color: #1565c0;
  cursor: not-allowed;
}

.completed-btn:hover {
  background: #e3f2fd;
  transform: none;
}

/* ================================
   EMPTY STATE
================================ */
.projects-container .empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
  background: #f9fafb;
  border-radius: 16px;
  margin: 0 auto;
  max-width: 600px;
  width: 100%;
}

.projects-container .empty-state i {
  font-size: 80px;
  color: #d1d5db;
  margin-bottom: 20px;
  display: block;
}

.projects-container .empty-state p {
  font-size: 1.2rem;
  color: #6b7280;
  margin-bottom: 30px;
}

.projects-container .empty-state .get-involved-btn {
  margin: 0 auto;
}

/* ================================
   RESPONSIVE
================================ */
@media (max-width: 768px) {
  .projects-section {
    padding: 40px 16px;
  }
  .section-title {
    font-size: 26px;
  }
  .projects-container {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  .project-card {
    border-radius: 12px;
  }
  .project-img {
    height: 160px;
  }
  .card-content {
    padding: 14px 16px 18px;
    gap: 8px;
  }
  .project-title {
    font-size: 16px;
  }
  .project-desc {
    font-size: 13px;
    -webkit-line-clamp: 2;
  }
  .progress-bar-container {
    height: 6px;
  }
  .goal-amount,
  .raised-amount,
  .progress-percentage {
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .projects-section {
    padding: 30px 12px;
  }
  .project-img {
    height: 140px;
  }
  .card-content {
    padding: 12px 14px 16px;
  }
  .project-title {
    font-size: 15px;
  }
}
