/* ============================================================
   SHARED STYLES FOR PROJECT SUB-PAGES
   ============================================================ */

/* ── BACK LINK ── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition), gap var(--transition);
  margin-bottom: 3rem;
  border-radius: var(--radius-sm);
}

.back-link:hover { color: var(--accent); gap: 0.7rem; }
.back-link:focus-visible {
  outline: 2.5px solid var(--accent);
  outline-offset: 3px;
}
.back-link svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ── PROJECT PAGE LAYOUT (Standard 2-column) ── */
.project-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: calc(var(--nav-h) + 3rem) 5vw 6rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
  min-height: 100vh;
}

/* ── PROJECT PAGE LAYOUT (Reading Flow) ── */
.project-page-flow {
  max-width: 800px;
  margin: 0 auto;
  padding: calc(var(--nav-h) + 3rem) 5vw 6rem;
}

.project-page-flow .project-meta {
  position: static; /* no sticky — full-page flow, not 2-col sidebar */
  margin-bottom: 4rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.content-block {
  margin-bottom: 5rem;
}

.content-block p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.content-block p strong {
  color: var(--text);
  font-weight: 600;
}

.content-block .phone-column {
  margin: 4rem auto;
  text-align: center;
}

/* ── PROMO SHOTS (Real Images) ── */
.promo-shot {
  max-width: 100%;
  height: auto;
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  display: block;
  margin: 0 auto;
}

/* ── TECH BADGES ── */
.tech-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.tech-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.04em;
}

.tech-badge svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* ── PROJECT META ── */
.project-meta {
  position: sticky;
  top: calc(var(--nav-h) + 1.5rem);
  background: var(--bg);
  padding: 1.5rem 0;
}

.project-category {
  display: block;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.2rem;
}

.project-page-date {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}

.project-page-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.project-page-desc {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.project-page-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

/* ── PHONE COLUMN ── */
.phone-column {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 2rem;
  perspective: 1400px;
}

/* ── PIXEL 10 FRAME ── */
.pixel-phone {
  position: relative;
  width: 290px;
  height: 610px;
  border-radius: 44px;
  background: linear-gradient(160deg, #2a2520 0%, #1a1510 50%, #120f0a 100%);
  box-shadow:
    0 0 0 1.5px rgba(255,255,255,0.08),
    0 0 0 3px rgba(15,12,8,0.9),
    0 40px 100px rgba(0,0,0,0.55),
    0 8px 32px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(255,255,255,0.12),
    inset 0 -1px 0 rgba(0,0,0,0.5);
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.1s ease-out;
}

body.dark-mode .pixel-phone {
  background: linear-gradient(160deg, #f8f9fa 0%, #e2e4e8 50%, #ced1d6 100%);
  box-shadow:
    0 0 0 1.5px rgba(255,255,255,0.8),
    0 0 0 3px rgba(180,185,190,0.9),
    0 40px 100px rgba(0,0,0,0.4),
    0 8px 32px rgba(0,0,0,0.2),
    inset 0 1px 0 rgba(255,255,255,0.7),
    inset 0 -1px 0 rgba(0,0,0,0.2);
}

/* Left side: volume buttons */
.pixel-phone::before {
  content: '';
  position: absolute;
  left: -4px;
  top: 120px;
  width: 3.5px;
  height: 70px;
  background: linear-gradient(180deg, #2a2520, #1a1510, #2a2520);
  border-radius: 2px 0 0 2px;
  box-shadow: inset -1px 0 2px rgba(0,0,0,0.5);
}
body.dark-mode .pixel-phone::before {
  background: linear-gradient(180deg, #e2e4e8, #c0c2c6, #e2e4e8);
  box-shadow: inset -1px 0 2px rgba(255,255,255,0.6), 1px 0 1px rgba(0,0,0,0.1);
}

/* Right side: power button */
.pixel-phone::after {
  content: '';
  position: absolute;
  right: -4px;
  top: 150px;
  width: 3.5px;
  height: 44px;
  background: linear-gradient(180deg, #2a2520, #1a1510, #2a2520);
  border-radius: 0 2px 2px 0;
  box-shadow: inset 1px 0 2px rgba(0,0,0,0.5);
}
body.dark-mode .pixel-phone::after {
  background: linear-gradient(180deg, #e2e4e8, #c0c2c6, #e2e4e8);
  box-shadow: inset 1px 0 2px rgba(255,255,255,0.6), -1px 0 1px rgba(0,0,0,0.1);
}

/* Screen area */
.pixel-screen {
  position: absolute;
  top: 12px; left: 9px; right: 9px; bottom: 12px;
  border-radius: 36px;
  background: #000;
  overflow: hidden;
  isolation: isolate;
}

/* Status-bar area */
.pixel-statusbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

/* Punch-hole camera */
.pixel-camera {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: #000;
  box-shadow: 0 0 0 1.5px rgba(255,255,255,0.06), inset 0 0 4px rgba(0,100,200,0.4);
}

/* Screenshot fill */
.pixel-app {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* Real screenshot inside phone */
.phone-screenshot-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* ── APP SCREEN DESIGNS ── */

/* ParkEase — map + bottom card */
.app-parkease {
  background: #f0ede8;
  display: flex;
  flex-direction: column;
}
.app-parkease .map-area {
  flex: 1;
  background: linear-gradient(145deg, #d4ecd4 0%, #c8e6c8 30%, #b8dbb8 60%, #a8d0a8 100%);
  position: relative;
  overflow: hidden;
}
.app-parkease .map-area::before { /* road grid */
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(0deg, rgba(255,255,255,0.6) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.6) 1px, transparent 1px);
  background-size: 42px 42px;
}
.app-parkease .map-area::after { /* pin */
  content: '📍';
  position: absolute;
  top: 48%;
  left: 48%;
  font-size: 24px;
}
.app-parkease .bottom-card {
  background: #fff;
  border-radius: 20px 20px 0 0;
  padding: 18px 20px;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.10);
}
.app-parkease .card-title {
  font-weight: 700;
  font-size: 13px;
  color: #1a1612;
  margin-bottom: 4px;
}
.app-parkease .card-sub {
  font-size: 11px;
  color: #7a6f62;
  margin-bottom: 14px;
}
.app-parkease .card-btn {
  background: #C67C3A;
  color: #fff;
  border-radius: 12px;
  padding: 10px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

/* ParkMobile — purple header + search card */
.app-parkmobile {
  background: #f8f6f9;
  display: flex;
  flex-direction: column;
}
.app-parkmobile .pm-header {
  background: #502e75;
  padding: 50px 20px 24px;
  color: #fff;
  border-radius: 0 0 24px 24px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(80,46,117,0.2);
}
.app-parkmobile .pm-title {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.app-parkmobile .pm-sub {
  font-size: 11px;
  opacity: 0.8;
}
.app-parkmobile .pm-body {
  flex: 1;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.app-parkmobile .pm-card {
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  gap: 12px;
}
.app-parkmobile .pm-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(80,46,117,0.1);
  color: #502e75;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}
.app-parkmobile .pm-text-line1 {
  width: 120px; height: 8px;
  background: #eaeaea;
  border-radius: 4px;
  margin-bottom: 6px;
}
.app-parkmobile .pm-text-line2 {
  width: 80px; height: 6px;
  background: #f0f0f0;
  border-radius: 4px;
}

/* Glacier — dark vault */
.app-glacier {
  background: #0d0d12;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px 24px;
  gap: 12px;
}
.app-glacier::before { /* bg glow */
  content: '';
  position: absolute;
  top: 40px; left: 50%; transform: translateX(-50%);
  width: 160px; height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(100,160,255,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.app-glacier .vault-icon {
  font-size: 52px;
  margin-bottom: 6px;
  filter: drop-shadow(0 0 16px rgba(100,160,255,0.5));
}
.app-glacier .vault-label {
  font-size: 15px;
  font-weight: 700;
  color: #e0eaff;
  letter-spacing: 0.08em;
}
.app-glacier .vault-sub {
  font-size: 10px;
  color: rgba(200,220,255,0.45);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.app-glacier .secret-row {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.app-glacier .secret-row .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
}
.app-glacier .secret-row .secret-name {
  font-size: 10px;
  color: rgba(200,220,255,0.7);
  flex: 1;
}
.app-glacier .secret-row .lock {
  font-size: 11px;
}

/* Compose Lab — colorful animations */
.app-compose {
  background: #0f001a;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px 20px;
}
.app-compose .compose-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 4px;
}
.app-compose .compose-orb {
  border-radius: 50%;
  animation: orbPulse 3s ease-in-out infinite;
}
@keyframes orbPulse {
  0%,100% { transform: scale(1);  opacity: 0.9; }
  50%      { transform: scale(1.08); opacity: 1; }
}
.app-compose .orb-1 {
  width: 110px; height: 110px;
  background: radial-gradient(circle at 35% 35%, #ff6eb4, #9b4dff, #4d79ff);
  box-shadow: 0 0 60px rgba(155,77,255,0.7), 0 0 120px rgba(77,121,255,0.4);
}
.app-compose .orb-2 {
  width: 70px; height: 70px;
  background: radial-gradient(circle at 40% 30%, #ffb347, #ff6eb4, #9b4dff);
  box-shadow: 0 0 40px rgba(255,110,180,0.6);
  animation-delay: -1.2s;
}
.app-compose .orb-3 {
  width: 46px; height: 46px;
  background: radial-gradient(circle at 40% 30%, #4dffb4, #4d79ff);
  box-shadow: 0 0 30px rgba(77,255,180,0.5);
  animation-delay: -2.1s;
}
.app-compose .compose-title {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}
.app-compose .compose-sub {
  font-size: 10px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.1em;
}

/* ── FEATURES LIST ── */
.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feature-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.feature-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 0.5rem;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .project-page {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .project-meta { position: static; }
  .phone-column  { padding-top: 0; }
}

@media (max-width: 480px) {
  .pixel-phone {
    width: 240px;
    height: 500px;
    border-radius: 36px;
  }
}
