/* Project gallery page - red, black, white theme */
:root {
  --pg-red: #e10600;
  --pg-dark: #0b0c10;
  --pg-mid: #151623;
  --pg-white: #ffffff;
  --pg-gray: #f6f6f6;
}

body {
  background: var(--pg-gray);
  color: var(--pg-dark);
  font-family: 'Montserrat', 'Poppins', sans-serif;
  line-height: 1.6;
}

.project-hero {
  position: relative;
  min-height: 420px;
  color: var(--pg-white);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.project-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('/assets/images/beautiful-view-construction-site-city-sunset_181624-9347.jpg');
  background-size: cover;
  background-position: center;
  filter: brightness(0.55);
  animation: hero-zoom 22s ease-in-out infinite alternate;
}

.project-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(225, 6, 0, 0.7), rgba(0, 0, 0, 0.8));
}

.project-hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  align-items: center;
}

.hero-content .badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  padding: 8px 18px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.hero-content h1 {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 800;
  margin: 18px 0 10px;
}

.hero-content p {
  font-size: clamp(16px, 2.3vw, 20px);
  max-width: 680px;
  color: rgba(255, 255, 255, 0.92);
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 18px;
}

.hero-cta {
  background: var(--pg-red);
  color: #fff;
  padding: 12px 28px;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 15px 35px rgba(225, 6, 0, 0.35);
  transition: transform 0.3s ease;
}

.hero-cta:hover {
  transform: translateY(-3px);
  color: #fff;
}

.hero-link {
  color: #fff;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-cards {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  padding: 24px;
  color: #fff;
  font-weight: 600;
  line-height: 1.5;
}

.hero-cards.simple {
  grid-column: span 1;
}
}

@keyframes hero-zoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.12); }
}

.gallery-body {
  padding: 70px 0 100px;
}

.gallery-section {
  background: var(--pg-white);
  border-radius: 32px;
  padding: 32px;
  margin-bottom: 40px;
  box-shadow: 0 25px 60px rgba(11, 12, 16, 0.08);
  position: relative;
  overflow: hidden;
}

.gallery-section::before {
  content: attr(data-service);
  position: absolute;
  top: 20px;
  right: 32px;
  font-size: 80px;
  font-weight: 800;
  text-transform: uppercase;
  color: rgba(230, 3, 0, 0.06);
  pointer-events: none;
}

.gallery-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.gallery-header h2 {
  font-size: 28px;
  margin: 0;
  color: var(--pg-dark);
}

.gallery-header p {
  margin: 0;
  color: #555;
  max-width: 520px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 20px;
}

.gallery-card {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 18px 40px rgba(11, 12, 16, 0.25);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  cursor: pointer;
}

.gallery-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  filter: brightness(0.92);
  transition: transform 0.4s ease;
}

.gallery-card figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 12px 16px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.85));
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.gallery-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 50px rgba(225, 6, 0, 0.2);
}

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

.gallery-card::after {
  content: "Tap to view";
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.4px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-card:hover::after {
  opacity: 1;
}

.gallery-cta {
  text-align: center;
  margin-top: 60px;
}

.gallery-cta a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--pg-red);
  color: #fff;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  box-shadow: 0 18px 30px rgba(225, 6, 0, 0.4);
  transition: transform 0.3s ease;
}

.gallery-cta a:hover {
  transform: translateY(-3px);
}

#galleryLightbox {
  position: fixed;
  inset: 0;
  background: rgba(11, 12, 16, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 9999;
}

#galleryLightbox.open {
  opacity: 1;
  pointer-events: auto;
}

#galleryLightbox .lightbox-inner {
  position: relative;
  max-width: min(90vw, 1000px);
  width: 100%;
  text-align: center;
}

#galleryLightbox img {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

#galleryLightbox figcaption {
  color: #fff;
  margin-top: 12px;
  font-weight: 600;
}

.lightbox-close {
  position: absolute;
  top: -10px;
  right: -10px;
  background: rgba(225, 6, 0, 0.9);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 22px;
  cursor: pointer;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 22px;
}

.lightbox-nav.prev { left: -20px; }
.lightbox-nav.next { right: -20px; }

@media (max-width: 768px) {
  .gallery-section {
    padding: 24px;
  }

  .gallery-section::before {
    font-size: 48px;
    right: 16px;
  }

  .hero-cards {
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  }

  .hero-links {
    flex-direction: column;
    align-items: flex-start;
  }

  .summary-metrics {
    flex-direction: column;
  }

  .lightbox-nav.prev { left: 10px; }
  .lightbox-nav.next { right: 10px; }
}

