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

.projects-section {
  width: min(1180px, calc(100% - 48px));
  margin: 80px auto;
  padding: clamp(45px, 6vw, 75px);

  background-color: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 26px;
  box-shadow: 0 18px 45px var(--shadow);
  scroll-margin-top: 110px;
}

.projects-heading {
  margin-bottom: 48px;
  text-align: center;
}

.projects-heading .section-label {
  justify-content: center;
}

.projects-heading h2 {
  position: relative;
  padding-bottom: 17px;
  color: var(--text);
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -2px;
}

.projects-heading h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 54px;
  height: 4px;
  background-color: var(--accent);
  border-radius: 100px;
  transform: translateX(-50%);
}

.project-grid {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 24px;
}

.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 315px;
  padding: 30px;
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 12px 25px var(--shadow);
  overflow: hidden;
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.project-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 95px;
  height: 95px;
  background: radial-gradient(
    circle at top right,
    rgba(255, 32, 32, 0.18),
    transparent 70%
  );
  pointer-events: none;
}

.project-card:hover {
  border-color: var(--accent);
  transform: translateY(-10px);
  box-shadow: 0 20px 38px var(--shadow);
}

.project-card > * {
  position: relative;
  z-index: 1;
}

.project-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 27px;
  padding: 13px;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--accent);
}

.project-icon svg {
  width: 100%;
  height: 100%;
  stroke-width: 1.8;
}

.project-icon > i[data-lucide] {
  font-size: 42px;
  line-height: 1;
}

.project-logo {
  width: 80px;
  height: 80px;
  padding: 0;
  overflow: hidden;
  background: #004832;
}

.project-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.et-wallet-logo {
  width: 80px;
  height: 80px;
}

.bacc-portal-icon {
  width: 80px;
  height: 80px;
  padding: 13px;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.project-card h3 {
  margin-bottom: 4px;
  color: var(--text);
  font-size: 27px;
}

.project-subtitle {
  margin-bottom: 18px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}

.project-card > p:not(.project-subtitle) {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.project-download {
  width: fit-content;
  margin-top: 0;
  padding: 9px 13px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--accent);
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  transition:
    background-color 0.3s ease,
    transform 0.3s ease;
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.project-download:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

.project-download svg {
  width: 15px;
  height: 15px;
  stroke-width: 2.2;
}

.project-highlights {
  margin: 20px 0 24px;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.project-highlights li::marker {
  color: var(--accent);
}

.project-tags {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.project-tags li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  background: color-mix(in srgb, var(--accent) 12%, var(--card));
  border: 1px solid color-mix(in srgb, var(--accent) 38%, var(--border));
  border-radius: 999px;
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
}

.project-tags li > i {
  display: inline-block;
  width: 18px;
  height: 18px;
  font-size: 18px;
  line-height: 1;
}

.project-tags li > svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
  stroke-width: 2;
}

@media (max-width: 1100px) {
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 820px;
  }
}

@media (max-width: 700px) {
  .project-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
  }
}

@media (max-width: 600px) {
  .projects-section {
    width: calc(100% - 24px);
    padding: 75px 24px;
    border-radius: 20px;
  }

  .project-grid {
    margin-top: 42px;
    gap: 18px;
  }

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