/* ─── Project sub-page styles ────────────────────────────── */

/* ─── Nav bar ─── */
.proj-nav {
  padding: 1.5rem 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.proj-nav__back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--color-accent);
  font-size: 0.88rem;
  font-weight: 500;
  transition: color var(--transition-base), border-color var(--transition-base), background var(--transition-base);
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  border: 1px solid rgba(108, 99, 255, 0.4);
  background: rgba(108, 99, 255, 0.18);
}

.proj-nav__back:hover {
  color: #fff;
  background: var(--color-accent);
  border-color: transparent;
}

/* ─── Main wrapper ─── */
.proj-main {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem 7rem;
}

/* ─── Header ─── */
.proj-header {
  text-align: center;
  padding: 2.5rem 0 2.25rem;
  animation: fadeUp 0.6s ease both;
}

.proj-header .card__tag {
  display: inline-block;
  margin-bottom: 1rem;
}

.proj-header__title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.1;
  background: linear-gradient(135deg, #ffffff 30%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.proj-header__tagline {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  line-height: 1.75;
  max-width: 560px;
  margin: 0 auto;
}

/* ─── Screenshot ─── */
.proj-screenshot {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  margin-bottom: 3rem;
  animation: fadeUp 0.6s ease 0.1s both;
  position: relative;
  cursor: zoom-in;
}

.proj-screenshot img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.proj-screenshot:hover img {
  transform: scale(1.02);
}

.proj-screenshot__zoom {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  transition: opacity 0.25s ease;
  border-radius: 16px;
}

.proj-screenshot:hover .proj-screenshot__zoom {
  opacity: 1;
}

.proj-screenshot__zoom svg {
  width: 48px;
  height: 48px;
  color: #fff;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.6));
}

/* ─── Lightbox ─── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  cursor: zoom-out;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.lightbox.is-open {
  display: flex;
}

.lightbox.is-visible {
  opacity: 1;
}

.lightbox img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.8);
  transform: scale(0.95);
  transition: transform 0.25s ease;
}

.lightbox.is-visible img {
  transform: scale(1);
}

.lightbox__close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: 50%;
  width: 2.5rem;
  height: 2.5rem;
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* ─── Body ─── */
.proj-body {
  animation: fadeUp 0.6s ease 0.2s both;
}

.proj-desc {
  font-size: 0.97rem;
  color: var(--color-text-muted);
  line-height: 1.85;
  margin-bottom: 2.25rem;
}

.proj-desc p + p {
  margin-top: 1rem;
}

/* ─── Features ─── */
.proj-features-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.proj-features {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 0.6rem;
  margin-bottom: 2.75rem;
}

.proj-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 0.65rem 0.9rem;
  line-height: 1.4;
}

.proj-features li::before {
  content: '✦';
  color: var(--color-accent);
  flex-shrink: 0;
  font-size: 0.7rem;
  margin-top: 0.2rem;
}

/* ─── Demo credentials ─── */
.proj-demo-credentials {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-accent);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-bottom: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.proj-demo-credentials__title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.25rem;
}

.proj-demo-credentials__row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
}

.proj-demo-credentials__label {
  color: var(--color-text-muted);
  min-width: 90px;
}

.proj-demo-credentials__value {
  background: rgba(108, 99, 255, 0.12);
  color: #fff;
  border-radius: 6px;
  padding: 0.2rem 0.6rem;
  font-family: monospace;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
}

/* ─── CTA button ─── */
.proj-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
}

/* ─── Responsive ─── */
@media (max-width: 600px) {
  .proj-nav {
    padding: 1rem 1.25rem;
  }

  .proj-main {
    padding: 0 1.25rem 5rem;
  }

  .proj-header {
    padding: 1.75rem 0 1.75rem;
  }

  .proj-features {
    grid-template-columns: 1fr;
  }
}
