/* ── PROJECT DETAIL PAGE SPECIFIC STYLES ── */

:root {
  --navy: #003366;
  --navy-deep: #0f2a4a;
  --teal: #1a7a6e;
  --gold: #c8a84b;
  --green: #4caf50;
  --orange: #f05423;
  --blue-accent: #3498db;
  --light-blue: #eef4ff;
  --white: #ffffff;
  --text: #2c3e35;
  --muted: #6b7c75;
  --bg-gray: #f8fafd;
  --border: #eef2f5;
}

/* ── SECTION 1: HERO ────────────────────────── */
.hero {
  position: relative;
  background: url('https://images.unsplash.com/photo-1541888946425-d81bb19480c5?w=1600&q=80') center/cover no-repeat;
  padding: 120px 80px;
  color: #fff;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0, 51, 102, 0.85) 0%, rgba(0, 51, 102, 0.4) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(76, 175, 80, 0.9);
  color: #fff;
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 25px;
}

.hero-tag::before {
  content: '';
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 10px #fff;
}

.hero-title {
  font-family: 'Merriweather', serif;
  font-size: 4rem;
  font-weight: 950;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero-desc {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 700px;
}

/* ── SECTION 2: NARRATIVE — Description + Video ── */
.narrative-section {
  padding: 80px 80px;
  max-width: 1400px;
  margin: 0 auto;
}

.narrative-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.narrative-left h2 {
  font-family: 'Merriweather', serif;
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--navy-deep);
  margin-bottom: 30px;
  position: relative;
}

.narrative-left h2::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--gold);
  border-radius: 3px;
}

.narrative-left p {
  color: #444;
  font-size: 1.05rem;
  line-height: 1.9;
  margin-bottom: 20px;
}

/* Video Container */
.video-container {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
  background: #000;
}

.video-placeholder {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.video-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.video-container:hover .video-placeholder img {
  transform: scale(1.03);
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(0, 51, 102, 0.7);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  border: 3px solid rgba(255, 255, 255, 0.3);
}

.video-play-btn:hover {
  background: rgba(200, 168, 75, 0.85);
  transform: translate(-50%, -50%) scale(1.08);
  border-color: rgba(255, 255, 255, 0.6);
}

.video-play-btn svg {
  margin-left: 4px;
}

.video-caption {
  padding: 14px 20px;
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* ── SECTION 3: DATA — Tech Features + Progress ── */
.data-section {
  padding: 80px 80px;
  background: var(--bg-gray);
}

.data-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 60px;
  max-width: 1400px;
  margin: 0 auto;
}

.data-left .specs-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
  color: var(--navy-deep);
}

.data-left .specs-header h3 {
  font-family: 'Merriweather', serif;
  font-size: 1.4rem;
  font-weight: 900;
}

.specs-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  margin-bottom: 40px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.specs-table {
  width: 100%;
  min-width: 500px;
  border-collapse: collapse;
  overflow: hidden;
}

.specs-table th {
  background: #fff;
  text-align: left;
  padding: 18px 25px;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}

.specs-table td {
  padding: 18px 25px;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
  color: #333;
  background: #fff;
}

.specs-table tr:last-child td {
  border-bottom: none;
}

.specs-table td:first-child {
  font-weight: 700;
  color: var(--navy-deep);
  width: 40%;
}

/* Progress Card (Right Side) */
.data-right {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.progress-card {
  background: var(--navy-deep);
  color: #fff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.card-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 25px;
}

.progress-item {
  margin-bottom: 25px;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.9);
}

.progress-bar-wrap {
  height: 8px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 1s ease;
}

.progress-bar-fill.green {
  background: var(--green);
}

.progress-bar-fill.orange {
  background: var(--orange);
}

.side-info-list {
  list-style: none;
  margin-top: 10px;
}

.side-info-list li {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
}

.side-info-list li span:first-child {
  color: rgba(255, 255, 255, 0.6);
  font-weight: 600;
}

.side-info-list li span:last-child {
  font-weight: 700;
  text-align: right;
}

.location-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
  border: 1px solid #f0f0f0;
}

.map-placeholder {
  height: 200px;
  background: #e0e0e0;
  position: relative;
}

.map-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
}

.loc-details {
  padding: 20px 25px;
}

.loc-label {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 5px;
}

.loc-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy-deep);
}

/* ── SECTION 4: DETAILED PROGRESS ──────────── */
.detailed-progress {
  background: #fff;
  padding: 100px 80px;
}

.dp-container {
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
}

.dp-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
}

.dp-header h2 {
  font-family: 'Merriweather', serif;
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--navy-deep);
}

.last-update {
  background: var(--bg-gray);
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--navy-deep);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid #eee;
}

.dp-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.dp-table {
  width: 100%;
  min-width: 800px;
  border-collapse: collapse;
  background: var(--bg-gray);
  overflow: hidden;
}

.dp-table th {
  padding: 20px 30px;
  text-align: left;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--muted);
  background: #f0f2f5;
  border-bottom: 1px solid #eee;
}

.dp-table td {
  padding: 20px 30px;
  border-bottom: 1px solid #eee;
  font-size: 0.95rem;
}

.dp-table tr:hover {
  background: #f0f2f5;
}

.item-name {
  font-weight: 700;
  color: var(--navy-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.perc-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 800;
}

.perc-badge.green {
  background: #e8f5e9;
  color: #2e7d32;
}

.perc-badge.blue {
  background: #e3f2fd;
  color: #1565c0;
}

.perc-badge.orange {
  background: #fff3e0;
  color: #e65100;
}

/* ── SECTION 5: VISUAL DOCS / GALLERY ──────── */
.visual-docs {
  padding: 100px 80px;
  text-align: center;
  background: var(--bg-gray);
}

.visual-docs h2 {
  font-size: 1rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--navy-deep);
  margin-bottom: 60px;
}

.gallery-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1400px;
  margin: 0 auto;
}

.gallery-img {
  height: 350px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.gallery-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s;
}

.gallery-img:hover img {
  transform: scale(1.05);
}

/* ── RESPONSIVE ─────────────────────────────── */
@media (max-width: 1100px) {
  .narrative-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

  .data-right {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

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

@media (max-width: 1024px) {
  .hero { padding: 100px 40px; }
  .narrative-section { padding: 60px 40px; }
  .data-section { padding: 60px 40px; }
  .detailed-progress { padding: 60px 40px; }
  .visual-docs { padding: 60px 40px; }
}

@media (max-width: 768px) {
  .hero {
    padding: 60px 20px;
  }

  .hero-title {
    font-size: 2rem;
    word-wrap: break-word;
  }

  .hero-desc {
    font-size: 0.95rem;
  }

  .narrative-section {
    padding: 40px 20px;
  }

  .narrative-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .narrative-left h2 {
    font-size: 1.6rem;
  }

  .data-section {
    padding: 40px 20px;
  }

  .data-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .data-right {
    grid-template-columns: 1fr;
  }

  .specs-table-wrap,
  .dp-table-wrap {
    max-width: calc(100vw - 40px);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .detailed-progress {
    padding: 60px 20px;
  }

  .dp-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .dp-header h2 {
    font-size: 1.6rem;
  }

  .visual-docs {
    padding: 60px 20px;
  }

  .gallery-row {
    grid-template-columns: 1fr;
  }

  .gallery-img {
    height: 250px;
  }
}
