.projects-page {
  padding-bottom: 40px;
}

.projects-hero {
  padding: 96px 0 34px;
}

.projects-title {
  margin: 0;
  font-weight: 900;
  font-size: clamp(34px, 5.8vw, 64px);
  line-height: 1.08;
  background: linear-gradient(90deg, var(--gold), var(--gold2));
  color: #f7f7f7;
  -webkit-background-clip: text;
  background-clip: text;
}

.projects-sub {
  max-width: 720px;
  margin: 14px auto 0;
  line-height: 1.9;
  color: var(--muted);
  font-size: 16px;
}

.projects-filters {
  padding: 12px 0 20px;
}

.filter-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-btn {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(247, 247, 247, 0.84);
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 13px;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease,
    border-color 160ms ease;
}
.filter-btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.09);
}
.filter-btn.is-active {
  background: rgba(214, 178, 74, 0.2);
  border-color: rgba(214, 178, 74, 0.55);
  color: #fff;
}

.projects-grid-section {
  padding: 10px 0 10px;
}

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

.project-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #000;
  min-height: 360px;
  position: relative;
  transition: transform 220ms ease, border-color 220ms ease,
    box-shadow 220ms ease;
}
.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(214, 178, 74, 0.45);
  box-shadow: var(--shadow);
}

.project-open {
  all: unset;
  display: block;
  cursor: pointer;
  height: 100%;
  width: 100%;
  position: relative;
}

.project-open img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 700ms ease;
}
.project-card:hover .project-open img {
  transform: scale(1.1);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(2, 6, 23, 0.04),
    rgba(2, 6, 23, 0.58) 55%,
    rgba(2, 6, 23, 0.95)
  );
  opacity: 0.92;
}

.project-meta {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 18px;
  display: grid;
  gap: 6px;
  z-index: 2;
}

.project-tag {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1px;
  color: var(--gold);
}

.project-name {
  font-size: 18px;
  font-weight: 900;
  color: #fff;
}

.project-place {
  font-size: 14px;
  color: var(--muted2);
}

.projects-empty {
  text-align: center;
  margin: 18px 0 0;
  color: rgba(247, 247, 247, 0.7);
}

.projects-cta {
  padding: 70px 30px;
}

.cta-title {
  margin: 0 0 10px;
  font-size: clamp(22px, 3.2vw, 34px);
  font-weight: 900;
}

.cta-sub {
  margin: 0;
  color: rgba(247, 247, 247, 0.72);
  line-height: 1.85;
}

.cta-actions {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 900;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
}

.btn-primary {
  background: rgba(214, 178, 74, 0.18);
  border-color: rgba(214, 178, 74, 0.45);
}

.btn-ghost:hover,
.btn-primary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 4000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 160ms ease, visibility 160ms ease;
}
.lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.88);
  backdrop-filter: blur(10px);
}

.lightbox-panel {
  position: relative;
  width: min(980px, calc(100% - 24px));
  margin: 0 auto;
  top: 50%;
  transform: translateY(-50%);
  background: #020617;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
}

.lightbox-media {
  position: relative;
  background: #000;
}

.lightbox-img,
.lightbox-video {
  width: 100%;
  height: auto;
  display: block;
  max-height: min(72vh, 720px);
  object-fit: contain;
}

.lightbox-video {
  background: #000;
}

.lightbox-media .lightbox-video,
.lightbox-media .lightbox-img {
  border-radius: 0;
}

.lightbox-close {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
  z-index: 10;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
  z-index: 10;
}
.lightbox-nav.prev {
  right: 12px;
}
.lightbox-nav.next {
  left: 12px;
}

.lightbox-meta {
  padding: 14px 16px 16px;
  text-align: center;
}

.lightbox-title {
  margin: 0 0 4px;
  font-weight: 900;
}

.lightbox-location {
  margin: 0;
  color: rgba(247, 247, 247, 0.68);
}

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

@media (max-width: 860px) {
  .header-top {
    display: none;
  }

  .header-main {
    display: none;
  }

  .mobilebar {
    display: block;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(7, 23, 46, 0.9);
    backdrop-filter: blur(12px);
  }

  .mobilebar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 0;
  }

  .mob-logo img {
    width: 62px;
    height: 62px;
    object-fit: contain;
  }

  .mob-call {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
  }

  .mob-toggle {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    cursor: pointer;
    position: relative;
  }

  .burger,
  .burger::before,
  .burger::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 18px;
    height: 2px;
    background: rgba(247, 247, 247, 0.9);
    border-radius: 99px;
  }
  .burger {
    top: 50%;
  }
  .burger::before {
    top: -6px;
  }
  .burger::after {
    top: 6px;
  }

  .projects-hero {
    padding: 86px 0 26px;
  }
}

@media (max-width: 600px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .project-card {
    min-height: 320px;
  }
  .cta-actions {
    flex-direction: column;
  }
  .btn {
    width: 100%;
  }
}
