/* ========== PROJECT DETAIL PAGE — REUSABLE TEMPLATE ========== */
/* Used by every /Projects/*.html page (e.g. ZTT_Project.html, CRJ_Project.html).
   Only the content inside .project-detail-hero and .project-detail-section
   changes between projects — the structure and classes stay identical. */

/* ===== IMPORT/INHERIT INDEX CSS VARIABLES ===== */
/* If using standalone, uncomment the @import below */
/* @import url('Index.css'); */

/* ===== RESET & BASE FIXES ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  overflow-x: hidden;
  width: 100%;
  margin: 0;
  padding: 0;
}

/* ===== CUSTOM PROPERTIES (fallback) ===== */
:root {
  --grad-stripe: linear-gradient(90deg, #F9A01B 0%, #2D70BA 100%);
  --navy-deep: #0D2545;
  --amber: #F9A01B;
}

/* ----- Hero: static section label ----- */
#ProjectDetailHero {
  padding: 130px 2rem 70px 2rem;
  background: var(--grad-navy, linear-gradient(135deg, #0d2545 0%, #1a4a6f 50%, #0b2b40 100%));
  position: relative;
  overflow: hidden;
  width: 100%;
  margin: 0;
  box-sizing: border-box;
}

#ProjectDetailHero::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(249, 160, 27, 0.10) 0%, transparent 65%);
  pointer-events: none;
}

.project-detail-hero-content {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  text-align: center;
  width: 100%;
  padding: 0;
}

/* Static "Completed Projects" hero label — content never changes between projects */
.project-hero-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.15;
  position: relative;
  display: inline-block;
}

.project-hero-label::after {
  content: '';
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 3px;
  background: var(--grad-stripe);
  border-radius: 2px;
}

/* ----- Project header: the actual project title, moved below the hero ----- */
.project-detail-header {
  max-width: 1200px;
  margin: 0 auto 3rem auto;
  text-align: center;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid #e2e8f0;
  width: 100%;
  padding-left: 0;
  padding-right: 0;
}

.project-eyebrow {
  display: inline-block;
  background: #0d2545;
  color: #f9a01b;
  padding: 4px 14px;
  border-radius: 20px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
}

.project-detail-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #0b2b40;
  letter-spacing: -0.01em;
  line-height: 1.2;
  max-width: 900px;
  margin: 0 auto;
}

.project-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #0d2545 0%, #1a4a6f 50%, #0b2b40 100%);
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  padding: 12px 28px;
  border-radius: 40px;
  border: 1px solid rgba(45, 112, 186, 0.3);
  letter-spacing: 0.01em;
  transition: all 0.3s ease;
}

.project-back-link i {
  font-size: 0.95rem;
  transition: transform 0.25s ease;
}

.project-back-link:hover {
  background: linear-gradient(90deg, #ffcd7e, #f9a01b);
  color: #0b2b40;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(249, 160, 27, 0.28);
}

.project-back-link:hover i {
  transform: translateX(-4px);
}

.project-back-link:active {
  transform: translateY(0);
}

.project-back-link-wrap {
  max-width: 1200px;
  margin: 48px auto 0 auto;
  padding-top: 28px;
  border-top: 1px solid #e2e8f0;
  text-align: center;
  width: 100%;
  padding-left: 0;
  padding-right: 0;
}

/* ----- Content section ----- */
#ProjectDetailSection {
  padding: 80px 2rem 100px 2rem;
  background: #f8fafc;
  width: 100%;
  margin: 0;
  box-sizing: border-box;
}

.project-detail-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 4rem;
  align-items: start; /* FIXED: Changed from 'stretch' to prevent height forcing */
  width: 100%;
  padding: 0;
}

/* ----- Spec panel: engineering-nameplate styling ----- */
.project-spec-panel {
  background: #ffffff;
  border: 1px solid #e8edf2;
  border-left: 4px solid #f9a01b;
  border-radius: 8px;
  padding: 36px 34px;
  box-shadow: 0 4px 15px rgba(11, 43, 64, 0.05);
  width: 100%;
  height: fit-content; /* FIXED: Prevents unnecessary stretching */
}

.spec-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #eef2f6;
}

.spec-row:first-child {
  padding-top: 0;
}

.spec-row:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.spec-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #94a3b8;
  padding-top: 2px;
}

.spec-value {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #0b2b40;
  line-height: 1.5;
}

.project-scope {
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px dashed #dfe6ee;
}

.project-scope h3 {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f9a01b;
  margin-bottom: 12px;
}

/* FIXED: Improved scope paragraph styling for better readability */
.project-scope p {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: #475569;
  line-height: 1.75;
  margin-bottom: 0.75rem;
}

.project-scope p:last-child {
  margin-bottom: 0;
}

.project-scope p strong {
  color: #0b2b40;
  font-weight: 600;
}

/* FIXED: Added support for bullet points in scope */
.project-scope ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.project-scope ul li {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: #475569;
  line-height: 1.75;
  padding: 0.25rem 0 0.25rem 1.5rem;
  position: relative;
}

.project-scope ul li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: #f9a01b;
  font-weight: 700;
}

/* ----- Image side ----- */
.project-detail-image-wrap {
  height: 100%;
  width: 100%;
  display: flex; /* FIXED: Added flex for better image containment */
  align-items: stretch;
}

.project-detail-image-frame {
  height: 100%;
  min-height: 420px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 34px rgba(11, 43, 64, 0.14);
  border: 1px solid #e8edf2;
  width: 100%;
  display: flex; /* FIXED: Added flex for image centering */
  align-items: center;
  justify-content: center;
}

.project-detail-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .project-detail-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .project-detail-image-frame {
    min-height: 320px;
  }

  .project-hero-label {
    font-size: 2.25rem;
  }

  .project-detail-title {
    font-size: 2.2rem;
  }

  #ProjectDetailHero {
    padding: 110px 1.5rem 60px 1.5rem;
  }

  #ProjectDetailSection {
    padding: 60px 1.5rem 80px 1.5rem;
  }
}

@media (max-width: 768px) {
  #ProjectDetailHero {
    padding: 100px 1rem 50px 1rem;
  }

  .project-hero-label {
    font-size: 1.9rem;
  }

  .project-detail-header {
    margin-bottom: 2.25rem;
    padding-bottom: 1.75rem;
  }

  .project-detail-title {
    font-size: 1.75rem;
  }

  #ProjectDetailSection {
    padding: 40px 1rem 60px 1rem;
  }

  .project-detail-container {
    gap: 2rem;
  }

  .project-spec-panel {
    padding: 26px 22px;
  }

  .spec-row {
    grid-template-columns: 90px 1fr;
    gap: 10px;
    padding: 12px 0;
  }

  .project-detail-image-frame {
    min-height: 280px;
  }

  .project-back-link-wrap {
    margin-top: 36px;
    padding-top: 22px;
  }

  /* FIXED: Better scope readability on mobile */
  .project-scope ul li {
    padding: 0.25rem 0 0.25rem 1.2rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  #ProjectDetailHero {
    padding: 80px 0.75rem 40px 0.75rem;
  }

  .project-hero-label {
    font-size: 1.6rem;
  }

  .project-detail-title {
    font-size: 1.4rem;
  }

  #ProjectDetailSection {
    padding: 30px 0.75rem 50px 0.75rem;
  }

  .project-detail-container {
    gap: 1.5rem;
  }

  .project-spec-panel {
    padding: 20px 16px;
  }

  .spec-row {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 10px 0;
  }

  .spec-label {
    font-size: 0.65rem;
  }

  .spec-value {
    font-size: 0.9rem;
  }

  .project-detail-image-frame {
    min-height: 220px;
  }

  .project-back-link {
    padding: 10px 22px;
    font-size: 0.85rem;
    width: 100%;
    justify-content: center;
  }

  .project-back-link-wrap {
    margin-top: 28px;
    padding-top: 18px;
  }

  .project-scope p {
    font-size: 0.9rem;
  }

  .project-eyebrow {
    font-size: 0.65rem;
    padding: 3px 12px;
  }

  /* FIXED: Better scope readability on small screens */
  .project-scope ul li {
    padding: 0.2rem 0 0.2rem 1rem;
    font-size: 0.85rem;
  }

  .project-scope ul li::before {
    font-size: 0.7rem;
  }
}

/* Extra small devices */
@media (max-width: 360px) {
  #ProjectDetailHero {
    padding: 70px 0.5rem 30px 0.5rem;
  }

  .project-hero-label {
    font-size: 1.4rem;
  }

  .project-detail-title {
    font-size: 1.2rem;
  }

  #ProjectDetailSection {
    padding: 20px 0.5rem 40px 0.5rem;
  }

  .project-spec-panel {
    padding: 16px 12px;
  }

  .project-detail-image-frame {
    min-height: 180px;
  }
}