/* ================================================================
   ASCENSION WHARF   portfolio.css
   Portfolio listing + detail page shared styles
   ================================================================ */

/* ---- Portfolio Hero ---- */
.port-hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.port-hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 120px 32px 60px;
  max-width: 900px;
  width: 100%;
}
.port-hero-title {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(36px, 6vw, 88px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.port-hero-title em {
  font-style: normal;
  color: rgba(255,255,255,0.45);
}
.port-hero-sub {
  font-size: clamp(15px, 1.6vw, 18px);
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  margin-bottom: 32px;
}

/* ---- Portfolio Grid ---- */
.port-grid-section {
  background: var(--black);
  padding: 60px 64px 80px;
}
.port-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.port-item {
  display: block;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  background: #0d0d0d;
  border: 1px solid rgba(255,255,255,0.06);
  transition: transform 0.3s ease, border-color 0.2s;
  cursor: pointer;
}
.port-item:hover { transform: translateY(-4px); border-color: rgba(255,255,255,0.14); }
.port-item-wide { grid-column: 1; }

.port-img-wrap {
  position: relative;
  height: 420px;
  overflow: hidden;
}
.port-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.4s ease;
  filter: brightness(0.85);
}
.port-item:hover .port-img { transform: scale(1.04); filter: brightness(0.95); }
.port-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.7) 100%);
}

.port-info {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 18px 20px 12px;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
}
.port-info-left h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
  line-height: 1.2;
}
.port-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.port-tags span {
  font-size: 11px;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 100px;
  padding: 3px 10px;
}
.port-year {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.35);
  flex-shrink: 0;
}
.port-bar {
  height: 3px;
  background: linear-gradient(90deg, var(--green) 0%, rgba(1,47,29,0.3) 100%);
}

@media (max-width: 768px) {
  .port-grid { grid-template-columns: 1fr; }
  .port-item-wide { grid-column: auto; }
  .port-grid-section { padding: 40px 24px 60px; }
}

/* ================================================================
   PORTFOLIO DETAIL PAGE
   ================================================================ */

.detail-hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: flex-start;
  padding-top: 100px;
  overflow: hidden;
}
.detail-hero-bg {
  position: absolute;
  inset: 0;
  /* Matches the original Framer site's dark cinematic red background */
  background: linear-gradient(160deg, #2a0505 0%, #180303 30%, #0a0606 55%, #000 100%);
  z-index: 0;
}
.detail-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 45% at 20% 35%, rgba(160,20,20,0.55) 0%, transparent 55%),
    radial-gradient(ellipse 40% 30% at 80% 70%, rgba(60,10,5,0.3) 0%, transparent 50%);
}
.detail-hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px 64px 80px;
  width: 100%;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: start;
}
.detail-badge {
  display: inline-block;
  padding: 7px 16px;
  background: rgba(28,101,27,0.4);
  border: 1px solid rgba(28,101,27,0.6);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  margin-bottom: 24px;
}
.detail-desc {
  font-size: clamp(16px, 1.8vw, 20px);
  color: rgba(255,255,255,0.8);
  line-height: 1.72;
  margin-bottom: 28px;
  font-weight: 400;
}
.detail-client-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.detail-tag {
  padding: 9px 20px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.04);
  transition: border-color 0.2s, color 0.2s;
}
.detail-tag:hover { border-color: var(--green); color: var(--white); }

/* Info card */
.detail-info-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  overflow: hidden;
}
.detail-info-row {
  padding: 24px 28px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.detail-info-row:last-child { border-bottom: none; }
.detail-info-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 8px;
}
.detail-info-value {
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
  line-height: 1.3;
}

/* Hero photo */
.detail-photo-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 64px 80px;
}
.detail-photo {
  width: 100%;
  border-radius: 20px;
  display: block;
  max-height: 600px;
  object-fit: cover;
  object-position: center top;
  filter: brightness(0.9);
}

/* Services section */
.detail-services {
  background: var(--black);
  padding: 80px 0;
}
.detail-services .container { max-width: var(--max-w); margin: 0 auto; padding: 0 64px; }
.detail-services-title {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
  line-height: 1.2;
}
.detail-services-divider {
  width: 48px;
  height: 2px;
  background: var(--green);
  margin: 16px 0 24px;
  border-radius: 2px;
}
.detail-services-intro {
  font-size: 16px;
  color: var(--grey);
  line-height: 1.75;
  max-width: 760px;
  margin-bottom: 32px;
}
.detail-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 48px;
}
.detail-bullets li {
  font-size: 15px;
  color: rgba(255,255,255,0.75);
  line-height: 1.65;
  padding-left: 20px;
  position: relative;
}
.detail-bullets li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--green);
  font-size: 18px;
  line-height: 1.4;
}
.detail-bullets li strong { color: var(--white); font-weight: 700; }

/* Performance highlights */
.detail-highlights-title {
  font-family: "Poppins Bold", 'DM Sans', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 24px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.detail-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}
.detail-stat-card {
  background: rgba(1,47,29,0.2);
  border: 1px solid rgba(1,47,29,0.5);
  border-radius: 14px;
  padding: 24px 20px;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}
.detail-stat-card:hover { border-color: rgba(28,101,27,0.8); transform: translateY(-3px); }
.detail-stat-num {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 900;
  color: var(--white);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.detail-stat-label {
  font-size: 12px;
  color: var(--grey);
  font-weight: 500;
  letter-spacing: 0.04em;
}

/* Back link */
.detail-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--grey);
  padding: 0 64px 32px;
  max-width: var(--max-w);
  margin: 0 auto;
  display: block;
  transition: color 0.2s;
}
.detail-back:hover { color: var(--white); }

@media (max-width: 900px) {
  .detail-hero-inner { grid-template-columns: 1fr; gap: 40px; padding: 32px 24px 60px; }
  .detail-photo-wrap { padding: 0 24px 60px; }
  .detail-services .container { padding: 0 24px; }
  .detail-back { padding: 0 24px 24px; }
  .detail-stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .detail-stats { grid-template-columns: 1fr; }
}
