/* ============================================================
   PROJECT-DETAIL.CSS — Individual Project Pages
   ============================================================ */

/* ── HERO ──────────────────────────────────────────────────── */
.pd-hero {
  position: relative;
  min-height: 65vh;
  display: flex;
  align-items: flex-end;
  background: #06101E;
  overflow: hidden;
  padding-top: var(--nav-h, 90px);
}

.pd-hero-bg {
  position: absolute;
  inset: 0;
}

.pd-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.50) saturate(.70);
  transform: scale(1.06);
  transition: transform 12s ease;
}

.pd-hero-bg img.loaded {
  transform: scale(1);
}

.pd-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(6, 16, 30, .96) 20%,
    rgba(6, 16, 30, .60) 60%,
    rgba(6, 16, 30, .30) 100%
  );
}

.pd-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 72px;
  width: 100%;
}

/* ── BREADCRUMB ─────────────────────────────────────────────── */
.pd-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .30);
  margin-bottom: 24px;
  text-decoration: none;
}

.pd-breadcrumb a {
  color: rgba(255, 255, 255, .30);
  text-decoration: none;
  transition: color .2s;
}

.pd-breadcrumb a:hover { color: #C8860A; }

.pd-breadcrumb i {
  font-size: 8px;
  opacity: .4;
}

.pd-breadcrumb span {
  color: rgba(255, 255, 255, .55);
}

/* ── CATEGORY TAG ───────────────────────────────────────────── */
.pd-tag {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #C8860A;
  background: rgba(200, 134, 10, .15);
  border: 1px solid rgba(200, 134, 10, .25);
  padding: 5px 12px;
  margin-bottom: 18px;
}

/* ── HERO TITLE ─────────────────────────────────────────────── */
.pd-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(28px, 4.5vw, 58px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -1.5px;
  text-transform: uppercase;
  color: #fff;
  margin: 0;
  max-width: 900px;
}

/* ── INFO BAR ───────────────────────────────────────────────── */
.pd-infobar {
  background: #0C1929;
  border-top: 2px solid #C8860A;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.pd-infobar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: stretch;
}

.pd-info-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 22px 28px;
  border-right: 1px solid rgba(255, 255, 255, .07);
}

.pd-info-item:last-child {
  border-right: none;
}

.pd-info-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #C8860A;
  opacity: .85;
}

.pd-info-val {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  letter-spacing: .1px;
}

/* ── BODY ───────────────────────────────────────────────────── */
.pd-body {
  background: #06101E;
  padding: 80px 0;
}

.pd-body-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}

.pd-body-inner p {
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  line-height: 1.9;
  color: rgba(255, 255, 255, .75);
  margin: 0 0 32px;
}

/* ── BACK LINK ──────────────────────────────────────────────── */
.pd-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #C8860A;
  text-decoration: none;
  margin-top: 16px;
  transition: gap .2s, opacity .2s;
}

.pd-back:hover {
  opacity: .75;
  gap: 4px;
}

.pd-back i {
  font-size: 13px;
  transition: transform .2s;
}

.pd-back:hover i {
  transform: translateX(-3px);
}

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 991px) {
  .pd-infobar-inner {
    flex-wrap: wrap;
  }

  .pd-info-item {
    flex: 0 0 50%;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    padding: 18px 24px;
  }

  .pd-info-item:nth-child(odd) {
    border-right: 1px solid rgba(255, 255, 255, .07);
  }

  .pd-info-item:nth-last-child(-n+2) {
    border-bottom: none;
  }
}

@media (max-width: 600px) {
  .pd-hero-inner {
    padding: 0 16px 56px;
  }

  .pd-title {
    letter-spacing: -.5px;
  }

  .pd-infobar-inner {
    flex-direction: column;
  }

  .pd-info-item {
    flex: 1;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
  }

  .pd-info-item:nth-child(odd) {
    border-right: none;
  }

  .pd-info-item:last-child {
    border-bottom: none;
  }

  .pd-body {
    padding: 56px 0;
  }

  .pd-body-inner p {
    font-size: 15px;
  }
}
