.projects-header {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 82% 16%,
      rgba(115, 242, 173, 0.23),
      transparent 31%
    ),
    radial-gradient(
      circle at 10% 74%,
      rgba(46, 212, 122, 0.17),
      transparent 34%
    ),
    linear-gradient(120deg, #020806 0%, #04120c 52%, #071d13 100%);
  color: var(--white);
}

.projects-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(46, 212, 122, 0.12), transparent 40%),
    linear-gradient(180deg, transparent 0%, rgba(2, 8, 6, 0.22) 100%);
  pointer-events: none;
}

.projects-header .navbar {
  z-index: 1000;
}

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

.nav-links a.active {
  color: var(--mint);
}

.projects-hero {
  max-width: 930px;
  padding: 68px 0 125px;
  text-align: center;
}

.projects-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(115, 242, 173, 0.24);
  border-radius: 999px;
  background: rgba(115, 242, 173, 0.08);
  padding: 9px 16px;
  color: var(--green-2);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.projects-chip svg {
  width: 16px;
  height: 16px;
}

.projects-hero h1 {
  max-width: 900px;
  margin: 18px auto 0;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.06em;
  font-weight: 900;
}

.projects-hero p {
  max-width: 720px;
  margin: 22px auto 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 18px;
}

.projects-page {
  background:
    radial-gradient(
      circle at 8% 10%,
      rgba(46, 212, 122, 0.08),
      transparent 24%
    ),
    linear-gradient(180deg, #eef7f2 0%, var(--bg) 100%);
  padding: 54px 0 86px;
}

.projects-shell {
  display: grid;
  gap: 20px;
}

.projects-award {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 22px;
  background: linear-gradient(
    135deg,
    rgba(4, 16, 11, 0.96),
    rgba(8, 36, 22, 0.96)
  );
  color: var(--white);
  padding: 20px 24px;
  box-shadow: var(--shadow);
  text-align: center;
  font-weight: 900;
}

.projects-award svg {
  width: 24px;
  height: 24px;
  color: var(--green-2);
}

.projects-trust-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 22px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--white);
  padding: 17px 20px;
  color: #32443c;
  font-size: 14px;
  font-weight: 800;
}

.projects-trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.projects-trust-row svg {
  width: 17px;
  height: 17px;
  color: #14965a;
}

.projects-toolbar {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 22px;
  align-items: end;
  margin-top: 16px;
}

.projects-toolbar h2 {
  margin-top: 8px;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 900;
}

.projects-controls {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 12px;
}

.project-search {
  position: relative;
  display: block;
}

.project-search svg {
  position: absolute;
  left: 17px;
  top: 50%;
  width: 19px;
  height: 19px;
  transform: translateY(-50%);
  color: #14965a;
}

.project-search input,
.projects-controls select {
  width: 100%;
  min-height: 54px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--white);
  color: var(--text);
  padding: 0 17px;
  font: inherit;
  font-weight: 700;
  outline: none;
  box-shadow: 0 8px 24px rgba(4, 16, 11, 0.04);
}

.project-search input {
  padding-left: 48px;
}

.project-search input:focus,
.projects-controls select:focus {
  border-color: rgba(46, 212, 122, 0.72);
  box-shadow: 0 0 0 4px rgba(46, 212, 122, 0.14);
}

.projects-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.sort-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sort-pill {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--white);
  color: #33443d;
  padding: 10px 15px;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.sort-pill.active {
  border-color: transparent;
  background: linear-gradient(135deg, var(--green-2), var(--green));
  color: #03100a;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.project-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(4, 16, 11, 0.06);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: rgba(46, 212, 122, 0.28);
  box-shadow: var(--shadow);
}

.project-thumb {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 180px;
  aspect-ratio: 16 / 10;
  margin: 0;
  padding: 0 !important;
  border-radius: 14px 14px 0 0;
  background: #062014;
  color: var(--white);
}

.project-thumb::before,
.project-thumb::after {
  display: none !important;
}

.project-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none !important;
  opacity: 1 !important;
  transform: none !important;
  backdrop-filter: none !important;
}

.project-thumb-content {
  position: relative;
  z-index: 1;
}

.project-type {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  background: rgba(2, 8, 6, 0.72);
  padding: 7px 10px;
  color: var(--mint);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-type svg {
  width: 14px;
  height: 14px;
}

.project-thumb h3 {
  max-width: 240px;
  margin-top: 20px;
  font-size: 26px;
  line-height: 1;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}

.project-rating {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  background: rgba(2, 8, 6, 0.86);
  padding: 7px 9px;
  color: #ffd166;
  font-size: 12px;
  font-weight: 900;
}

.project-rating svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}

.project-body {
  padding: 18px;
}

.project-body h4 {
  display: -webkit-box;
  overflow: hidden;
  color: var(--text);
  font-size: 16px;
  line-height: 1.35;
  font-weight: 900;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.project-body p {
  display: -webkit-box;
  margin-top: 6px;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.project-card .project-content,
.project-card-body {
  border-radius: 0 0 14px 14px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.project-tags span {
  border: 1px solid rgba(46, 212, 122, 0.24);
  border-radius: 999px;
  background: rgba(46, 212, 122, 0.07);
  padding: 5px 8px;
  color: #22513b;
  font-size: 11px;
  font-weight: 900;
}

.project-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}

.project-price-row strong {
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  font-weight: 900;
}

.project-price-row small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.project-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 16px;
}

.project-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  min-width: 0;
  border: 0;
  border-radius: 13px;
  padding: 0 10px;
  color: inherit;
  font-family: inherit;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.project-action:hover {
  transform: translateY(-2px);
}

.project-action svg,
.project-action i,
.project-action .whatsapp-svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  stroke-width: 2;
}

.action-demo {
  background: #071811;
  color: var(--white);
}

.action-buy {
  background: linear-gradient(135deg, var(--green-2), var(--green));
  color: #03100a;
}

.action-contact {
  background: #1fc96c;
  color: #03100a;
}

.action-more {
  border: 1px solid var(--border);
  background: #f7fbf8;
  color: #243d33;
}

.whatsapp-svg {
  flex: 0 0 auto;
  fill: currentColor;
}

.projects-empty {
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--white);
  padding: 44px 24px;
  text-align: center;
  box-shadow: var(--shadow);
}

.projects-empty svg {
  width: 44px;
  height: 44px;
  margin: 0 auto 14px;
  color: var(--green);
}

.projects-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 14px;
}

.page-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--white);
  color: var(--text);
  padding: 0 18px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.page-btn:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.page-btn svg {
  width: 16px;
  height: 16px;
}

#pageStatus {
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
}

.projects-payment-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  border: 1px solid rgba(46, 212, 122, 0.26);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(115, 242, 173, 0.16), transparent),
    var(--white);
  padding: 22px 24px;
  box-shadow: 0 8px 24px rgba(4, 16, 11, 0.05);
}

.projects-payment-note strong {
  font-size: 18px;
  font-weight: 900;
}

.projects-payment-note p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}

.payment-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.payment-badges span {
  border: 1px solid rgba(46, 212, 122, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  padding: 8px 11px;
  color: #22513b;
  font-size: 12px;
  font-weight: 900;
}

.project-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: none;
}

.project-modal.is-open {
  display: block;
}

.project-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 8, 6, 0.72);
  backdrop-filter: blur(10px);
}

.project-modal-card {
  position: relative;
  z-index: 1;
  width: min(920px, calc(100% - 32px));
  max-height: calc(100vh - 40px);
  margin: 20px auto;
  overflow: auto;
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.35);
}

.project-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--dark);
  color: var(--white);
  cursor: pointer;
}

.project-modal-image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 280px;
  padding: 18px;
  overflow: hidden;
  background: #062014;
}

.project-modal-image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(70vh, 520px);
  object-fit: contain;
  object-position: center;
}

.project-modal-content {
  padding: 28px;
}

.project-modal-head span {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.project-modal-head h2 {
  margin-top: 8px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.project-modal-head p {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.7;
}

.project-modal-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 24px;
}

.project-modal-meta div {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #f7fbf8;
  padding: 14px;
}

.project-modal-meta strong {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.project-modal-meta span {
  display: block;
  margin-top: 4px;
  font-weight: 900;
}

.project-modal-section {
  margin-top: 24px;
}

.project-modal-section h3 {
  font-size: 18px;
}

.project-modal-section ul {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding-left: 20px;
  color: var(--muted);
}

.project-modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.project-modal-tags span {
  border: 1px solid rgba(46, 212, 122, 0.22);
  border-radius: 999px;
  background: rgba(46, 212, 122, 0.08);
  padding: 8px 12px;
  color: #145c39;
  font-size: 13px;
  font-weight: 800;
}

.project-modal-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 26px;
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 1120px) {
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 880px) {
  .projects-toolbar,
  .projects-controls {
    grid-template-columns: 1fr;
  }

  .projects-meta,
  .projects-payment-note {
    align-items: flex-start;
    flex-direction: column;
  }

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

@media (max-width: 720px) {
  .project-modal-card {
    width: calc(100% - 20px);
    margin: 10px auto;
    border-radius: 18px;
  }

  .project-modal-content {
    padding: 22px;
  }

  .project-modal-meta,
  .project-modal-actions {
    grid-template-columns: 1fr;
  }

  .project-modal-image {
    min-height: 220px;
    padding: 14px;
  }

  .project-modal-image img {
    max-height: 42vh;
  }
}

@media (max-width: 620px) {
  .projects-page {
    padding: 38px 0 68px;
  }

  .projects-hero {
    padding: var(--sticky-nav-offset) 0 72px;
  }

  .projects-hero h1 {
    font-size: 38px;
    letter-spacing: -0.05em;
  }

  .projects-hero p {
    font-size: 16px;
  }

  .projects-award {
    align-items: flex-start;
    text-align: left;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-actions {
    grid-template-columns: 1fr 1fr;
  }

  .projects-pagination {
    gap: 10px;
  }
}

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

  .project-action {
    width: 100%;
  }

  .projects-pagination {
    flex-direction: column;
  }

  .page-btn {
    justify-content: center;
  }

  #pageStatus {
    text-align: center;
  }
}

@media (max-width: 620px) {
  .projects-hero {
    padding-bottom: 96px;
  }
}
