/* =========================================================
   PORTFOLIO PAGE STYLES (Sharp Corners & Wide Comparison Fit)
   ========================================================= */

/* UTILITY CLASSES FOR CLEAN HTML */
.section-padded-top { padding-top: 50px; }
.portfolio-main-title { font-size: clamp(32px, 4.5vw, 48px); margin-bottom: 0; letter-spacing: -0.04em; }
.portfolio-intro { max-width: 420px; text-align: right; margin: 0; }
.portfolio-cta-eyebrow { margin-bottom: 8px !important; }
.active-nav { color: var(--lime) !important; }

.portfolio-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: flex-end !important;
  flex-wrap: wrap !important;
  gap: 20px !important;
  margin-bottom: 30px !important;
  padding-bottom: 20px !important;
  border-bottom: 1px solid #2a3028;
  width: 100% !important;
}

/* Filter Tabs */
.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.filter-btn {
  background: #111511;
  color: #c0c6bc;
  border: 1px solid #2a3028;
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  border-radius: 0 !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.filter-btn span {
  font: 10px 'DM Mono', monospace;
  background: #080a09;
  color: var(--lime);
  padding: 2px 6px;
  border: 1px solid #2a3028;
}

.filter-btn:hover {
  border-color: var(--lime);
  color: var(--white);
}

.filter-btn.active {
  background: var(--lime);
  color: #080a09;
  border-color: var(--lime);
}

.filter-btn.active span {
  background: #080a09;
  color: var(--lime);
  border-color: #080a09;
}

/* Portfolio 3-Column Grid */
.portfolio-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 22px !important;
  width: 100% !important;
}

.portfolio-card {
  background: #111511;
  border: 1px solid #2a3028;
  border-radius: 0 !important;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease, border-color 0.3s ease;
  overflow: hidden;
  width: 100%;
}

.portfolio-card:hover {
  transform: translateY(-4px);
  border-color: var(--lime);
}

/* Wide Comparison Image Box (No Cropping) */
.portfolio-visual {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #050706;
  border-bottom: 1px solid #2a3028;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portfolio-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Wide before/after boards bina kate poore dikhenge */
  display: block;
  border-radius: 0 !important;
  transition: transform 0.35s ease;
}

.portfolio-card:hover .portfolio-visual img {
  transform: scale(1.03);
}

/* Top Left Neon Tag */
.portfolio-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(8, 10, 9, 0.92);
  color: var(--lime);
  border: 1px solid var(--lime);
  font: 9px 'DM Mono', monospace;
  letter-spacing: 0.1em;
  padding: 4px 8px;
  z-index: 2;
  border-radius: 0 !important;
}

/* Hover Zoom Button */
.zoom-btn {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: var(--lime);
  color: #080a09;
  border: none;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  opacity: 0;
  transform: translateY(6px);
  transition: all 0.25s ease;
  border-radius: 0 !important;
}

.portfolio-card:hover .zoom-btn {
  opacity: 1;
  transform: translateY(0);
}

/* Compact Card Content */
.portfolio-content {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.portfolio-meta {
  font: 9.5px 'DM Mono', monospace;
  color: var(--lime);
  letter-spacing: 0.12em;
  margin-bottom: 4px;
}

.portfolio-content h3 {
  font-size: 16px;
  color: var(--white);
  margin: 0 0 6px;
  line-height: 1.3;
}

.portfolio-content p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

/* Bottom Call-To-Action Banner */
.portfolio-cta-box {
  margin-top: 45px;
  background: #111511;
  border: 1px solid var(--lime);
  padding: 30px 35px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  border-radius: 0 !important;
}

.portfolio-cta-box h3 {
  font-size: 22px;
  margin: 0 0 5px;
  color: var(--white);
}

.portfolio-cta-box p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

.cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cta-actions .button {
  border-radius: 0 !important;
}

/* Lightbox Modal */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(5, 7, 6, 0.94);
  backdrop-filter: blur(8px);
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 25px;
}

.lightbox.is-active {
  display: flex;
}

.lightbox-img {
  max-width: 94%;
  max-height: 88vh;
  border: 1px solid var(--lime);
  background: #080a09;
  border-radius: 0 !important;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 25px;
  width: 42px;
  height: 42px;
  background: var(--lime);
  color: #080a09;
  border: none;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  border-radius: 0 !important;
}

/* =========================================================
   MOBILE & TABLET RESPONSIVENESS
   ========================================================= */
@media(max-width: 900px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media(max-width: 680px) {
  .portfolio-header {
    display: block !important;
  }
  
  /* Updated to match the new clean class */
  .portfolio-header .portfolio-intro {
    text-align: left !important;
    margin-top: 12px !important;
    max-width: 100% !important;
  }
  
  .portfolio-filters {
    gap: 8px;
  }
  .filter-btn {
    padding: 8px 12px;
    font-size: 11px;
  }
  .portfolio-grid {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }
  .zoom-btn {
    opacity: 1;
    transform: none;
  }
  .portfolio-cta-box {
    padding: 22px 18px;
    flex-direction: column;
    align-items: flex-start;
  }
}