/* MARKEYTERS PORTFOLIO SYSTEM */

.active-nav { color: #d71920 !important; }

.portfolio-hero,
.category-page-hero,
.project-detail-hero {
  padding: 90px 80px 70px;
  background: linear-gradient(135deg, #111111 0%, #1c1c1c 100%);
}

.portfolio-hero {
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.portfolio-hero h1,
.category-page-hero h1,
.project-detail-hero h1 {
  margin: 0 0 20px;
  font-size: clamp(46px, 6vw, 76px);
  line-height: 1.05;
  color: #ffffff;
}

.portfolio-hero h1 span,
.project-gallery-section h2 span { color: #d71920; }

.portfolio-hero > p:last-child,
.category-page-hero > p:last-child {
  max-width: 720px;
  margin: 0;
  color: #bdbdbd;
  font-size: 18px;
  line-height: 1.7;
}

.portfolio-categories {
  padding: 80px;
  background: #f4f4f4;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
}

.category-card {
  min-height: 320px;
  padding: 45px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 50px;
  background: #ffffff;
  color: #111111;
  text-decoration: none;
  border: 1px solid #dddddd;
  transition: 0.3s ease;
}

.category-card:hover {
  transform: translateY(-6px);
  border-color: #d71920;
  box-shadow: 0 20px 50px rgba(0,0,0,.10);
}

.category-number {
  color: #d71920;
  font-weight: 800;
  letter-spacing: 2px;
}

.category-card h2 { margin: 0 0 14px; font-size: 36px; }
.category-card p { max-width: 520px; margin: 0 0 25px; color: #666666; line-height: 1.7; }
.category-card span { color: #d71920; font-weight: 800; }

.back-link {
  display: inline-block;
  margin-bottom: 38px;
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
}
.back-link:hover { color: #d71920; }

.category-projects {
  padding: 80px;
  background: #f4f4f4;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.dynamic-project-card {
  display: block;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #dddddd;
  color: #111111;
  text-decoration: none;
  transition: .3s ease;
}

.dynamic-project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(0,0,0,.10);
}

.dynamic-project-thumb {
  height: 250px;
  padding: 20px;
  display: flex;
  align-items: flex-end;
  background-color: #1a1a1a;
  background-size: cover;
  background-position: center;
  position: relative;
}

.dynamic-project-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.72), rgba(0,0,0,.05));
}

.dynamic-project-tag {
  position: relative;
  z-index: 2;
  padding: 8px 11px;
  background: #d71920;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.2px;
}

.dynamic-project-content { padding: 26px; }
.dynamic-project-meta {
  margin: 0 0 10px;
  color: #d71920;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.dynamic-project-content h2 { margin: 0 0 12px; font-size: 26px; }
.dynamic-project-content > p:last-child { margin: 0; color: #666666; line-height: 1.65; font-size: 14px; }

.project-detail-summary {
  max-width: 850px;
  margin: 0 0 35px;
  color: #c7c7c7;
  font-size: 20px;
  line-height: 1.7;
}

.project-meta { display: flex; flex-wrap: wrap; gap: 12px; }
.meta-pill { padding: 10px 14px; border: 1px solid #3b3b3b; color: #dddddd; font-size: 12px; }

.project-detail-body {
  padding: 90px 80px;
  background: #f4f4f4;
  color: #111111;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 90px;
}

.project-description h2,
.project-gallery-section h2 { margin: 0 0 24px; font-size: 48px; }

.project-description > p:last-child { margin: 0; color: #5f5f5f; font-size: 18px; line-height: 1.8; }

.project-scope { padding: 35px; background: #ffffff; border: 1px solid #dddddd; }

.scope-item {
  padding: 17px 0;
  border-bottom: 1px solid #e1e1e1;
  display: flex;
  gap: 15px;
  align-items: flex-start;
}
.scope-item:last-child { border-bottom: none; }
.scope-number { color: #d71920; font-size: 12px; font-weight: 800; }
.scope-text { color: #222222; font-weight: 700; }

.project-gallery-section { padding: 90px 80px 110px; background: #0c0c0c; }
.gallery-heading { max-width: 850px; margin-bottom: 50px; }
.gallery-heading > p:last-child { color: #a9a9a9; line-height: 1.7; }

.project-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }

.gallery-photo {
  min-height: 420px;
  position: relative;
  background-color: #181818;
  background-size: cover;
  background-position: center;
  border: 1px solid #292929;
  cursor: zoom-in;
}

.gallery-photo-label {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 8px 10px;
  background: rgba(0,0,0,.72);
  color: #ffffff;
  font-size: 11px;
}

.portfolio-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 30px;
  background: rgba(0,0,0,.94);
}
.portfolio-lightbox.open { display: flex; }
.portfolio-lightbox-image { max-width: 92vw; max-height: 88vh; }
.portfolio-lightbox-close {
  position: absolute;
  top: 20px;
  right: 28px;
  border: 0;
  background: transparent;
  color: #ffffff;
  font-size: 38px;
  cursor: pointer;
}

@media (max-width: 1050px) {
  .category-projects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-detail-body { grid-template-columns: 1fr; gap: 50px; }
}

@media (max-width: 768px) {
  .portfolio-hero,
  .category-page-hero,
  .project-detail-hero,
  .portfolio-categories,
  .category-projects,
  .project-detail-body,
  .project-gallery-section {
    padding-left: 25px;
    padding-right: 25px;
  }

  .portfolio-categories,
  .category-projects,
  .project-gallery { grid-template-columns: 1fr; }

  .category-card { min-height: 260px; padding: 30px; }
  .dynamic-project-thumb { height: 220px; }
  .gallery-photo { min-height: 300px; }
}

.gallery-photo:only-child { grid-column: 1 / -1; }
