/* ==========================================================================
   PROJECTS & PORTFOLIO COMPONENT (Inspired by Wehouse.in)
   Architectural gallery, black photo placeholder slots, and project metadata
   ========================================================================== */

.projects-section {
  padding: 3rem 0 4.5rem;
}

.projects-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.2rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--line);
}

.projects-filter-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.project-filter-btn {
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.84rem;
  font-weight: 600;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.project-filter-btn:hover {
  background: var(--paper-2);
  color: var(--ink);
  border-color: var(--ink-faint);
}

.project-filter-btn.active {
  background: var(--navy);
  color: #ffffff;
  border-color: var(--navy);
  box-shadow: 0 4px 12px rgba(7, 39, 76, 0.2);
}

.projects-count-badge {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.82rem;
  color: var(--ink-faint);
}

/* Projects Cards Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.project-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 32px -16px rgba(7, 39, 76, 0.15);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 45px -18px rgba(7, 39, 76, 0.28);
  border-color: rgba(250, 99, 51, 0.45);
}

/* Luxury Black Photo Slot (Placeholder for user photos) */
.project-photo-slot {
  height: 270px;
  background: radial-gradient(circle at center, #112236 0%, #060e18 100%);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
  border-bottom: 2px solid rgba(229, 184, 105, 0.45);
  overflow: hidden;
  cursor: pointer;
}

/* High-Definition Site Photo Styles */
.project-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: high-quality;
  transform: translateZ(0);
  backface-visibility: hidden;
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1), filter 0.35s ease;
  z-index: 1;
}

.project-card:hover .project-img {
  transform: scale(1.06);
}

/* Architectural blueprint grid watermark overlay */
.project-photo-slot::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.35;
  pointer-events: none;
  z-index: 2;
}

/* Architectural blueprint grid and gradient overlays disabled to preserve pure HD photo clarity */
.project-photo-slot::before,
.project-photo-slot::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(6, 14, 24, 0.45) 0%, rgba(6, 14, 24, 0.05) 45%, rgba(6, 14, 24, 0.78) 100%);
  pointer-events: none;
  z-index: 2;
  transition: background 0.3s ease;
  display: none;
}

.project-card:hover .project-photo-slot::after {
  background: linear-gradient(180deg, rgba(6, 14, 24, 0.25) 0%, rgba(6, 14, 24, 0) 45%, rgba(6, 14, 24, 0.65) 100%);
}

/* Floating HD Quality Inspection Badge */
.project-hd-badge {
  position: absolute;
  bottom: 0.85rem;
  right: 0.85rem;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(10, 20, 35, 0.85);
  color: #f8fafc;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.28rem 0.6rem;
  border-radius: 4px;
  border: 1px solid rgba(229, 184, 105, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  transition: all 0.25s ease;
}

.project-card:hover .project-hd-badge {
  background: rgba(250, 99, 51, 0.95);
  border-color: #fa6333;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(250, 99, 51, 0.45);
}

.photo-placeholder-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px dashed rgba(250, 99, 51, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 0.8rem;
  position: relative;
  z-index: 2;
  transition: transform 0.25s ease;
}

.project-card:hover .photo-placeholder-icon {
  transform: scale(1.1);
  background: rgba(250, 99, 51, 0.15);
  border-style: solid;
}

.photo-placeholder-text {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #94a3b8;
  position: relative;
  z-index: 2;
  margin: 0;
}

.photo-placeholder-sub {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.72rem;
  color: #64748b;
  margin-top: 0.3rem;
  position: relative;
  z-index: 2;
}

/* Floating Status Badge over Photo */
.project-status-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.project-status-badge.ongoing {
  background: rgba(12, 54, 104, 0.88);
  color: #93c5fd;
  border: 1px solid rgba(147, 197, 253, 0.35);
}

.project-status-badge.delivered {
  background: rgba(20, 83, 45, 0.9);
  color: #86efac;
  border: 1px solid rgba(134, 239, 172, 0.35);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  animation: pulseDot 2s infinite;
}

.project-status-badge.ongoing .status-dot {
  background: #60a5fa;
}

.project-status-badge.delivered .status-dot {
  background: #4ade80;
}

@keyframes pulseDot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.4;
    transform: scale(0.85);
  }
}

.project-tier-pill {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 3;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  font-weight: 700;
  color: #ffffff;
  background: rgba(250, 99, 51, 0.9);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}

/* Card Content Body */
.project-card-body {
  padding: 1.2rem 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #ffffff;
}

.project-location {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.project-title {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
  line-height: 1.35;
}

/* Specs Strip */
.project-specs-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
  padding: 0.75rem;
  background: var(--paper);
  border-radius: 6px;
  margin-bottom: 1rem;
  font-size: 0.82rem;
}

.project-spec-item {
  display: flex;
  flex-direction: column;
}

.project-spec-label {
  font-size: 0.68rem;
  font-family: 'IBM Plex Mono', monospace;
  color: var(--ink-faint);
  text-transform: uppercase;
}

.project-spec-val {
  font-weight: 600;
  color: var(--ink);
}

.project-feature-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.82rem;
  color: var(--ink-soft);
  flex-grow: 1;
}

.project-feature-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
}

.project-feature-bullets svg {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.project-visit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  padding: 0.65rem 1rem;
  background: var(--paper-2);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.84rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.project-visit-btn:hover {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

/* VIP Guided Site Visit Banner */
.site-visit-banner {
  background: linear-gradient(135deg, #07274c, #0c3668);
  border: 1px solid rgba(250, 99, 51, 0.3);
  border-radius: 12px;
  padding: 2.2rem;
  margin-top: 3.5rem;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.site-visit-info h3 {
  font-family: 'Big Shoulders Display', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  text-transform: uppercase;
  margin: 0 0 0.5rem;
  color: #ffffff;
}

.site-visit-info p {
  color: var(--on-navy-soft);
  font-size: 0.94rem;
  margin: 0;
  max-width: 650px;
  line-height: 1.5;
}

.site-visit-btn {
  background: linear-gradient(135deg, #ff7547, #fa6333);
  color: #ffffff;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  padding: 0.85rem 1.4rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(250, 99, 51, 0.4);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.site-visit-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

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

@media (max-width: 680px) {
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .site-visit-banner {
    flex-direction: column;
    text-align: center;
    padding: 1.7rem 1.25rem;
  }

  .site-visit-btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .project-photo-slot {
    height: 230px;
  }

  .projects-toolbar {
    margin-bottom: 1.3rem;
  }

  .project-title {
    font-size: 1.2rem;
  }
}

/* HD Construction Site Lightbox Modal */
.hd-lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(4, 9, 18, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 1.5rem;
  box-sizing: border-box;
}

.hd-lightbox-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.hd-lightbox-dialog {
  position: relative;
  max-width: 94vw;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: zoomLightbox 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes zoomLightbox {
  from {
    transform: scale(0.93);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.hd-lightbox-image-wrap {
  position: relative;
  display: inline-block;
  max-width: 100%;
  max-height: 78vh;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(229, 184, 105, 0.4);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85);
  background: #000;
}

.hd-lightbox-img {
  display: block;
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: high-quality;
}

.hd-lightbox-meta {
  margin-top: 1rem;
  text-align: center;
  color: #f1f5f9;
}

.hd-lightbox-title {
  font-family: 'Big Shoulders Display', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #ffffff;
  margin: 0 0 0.25rem;
}

.hd-lightbox-loc {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.82rem;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.hd-lightbox-close-btn {
  position: absolute;
  top: -46px;
  right: 0;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  line-height: 1;
  transition: all 0.2s ease;
}

.hd-lightbox-close-btn:hover {
  background: #fa6333;
  border-color: #fa6333;
  transform: rotate(90deg) scale(1.08);
}

@media (max-width: 600px) {
  .hd-lightbox-modal {
    padding: 0.75rem;
  }

  .hd-lightbox-dialog {
    max-width: 98vw;
    max-height: 94vh;
  }

  .hd-lightbox-image-wrap,
  .hd-lightbox-img {
    max-height: 72vh;
  }

  .hd-lightbox-close-btn {
    position: fixed;
    top: 0.85rem;
    right: 0.85rem;
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.35);
    z-index: 100000;
  }

  .hd-lightbox-title {
    font-size: 1.25rem;
  }

  .hd-lightbox-meta {
    margin-top: 0.65rem;
  }
}