/* Styles only used on modelling.html (shared styles live in style.css) */

/* ---------- WORKFLOW OVERVIEW ---------- */
.workflow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 14px; align-items: stretch; }
.flow-step {
  border: 1.5px solid var(--line); border-radius: 20px; padding: 22px;
  background: rgba(60, 44, 96, .55);
}
.flow-step .num, .node .num { font-family: "Caveat", cursive; font-size: 1.6rem; color: var(--pink); line-height: 1; }
.flow-step h3 { font-size: 1.25rem; margin-top: 4px; }
.flow-step .what { color: var(--pink-soft); font-weight: 600; margin-top: 2px; }
.flow-step .desc { color: var(--muted); font-size: .92rem; line-height: 1.6; margin-top: 10px; }
.flow-arrow { align-self: center; font-size: 2rem; }

/* ---------- PROJECTS ---------- */
.projects-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.projects-head h2 { font-size: 1.6rem; }
.projects-head p { color: var(--muted); font-size: .9rem; }
#projects { display: flex; flex-direction: column; gap: 24px; }
.project .card-head h3 { font-size: 1.4rem; }

/* Pipeline: Blender → Substance → Unity buttons */
.pipeline { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 10px; align-items: center; margin-bottom: 16px; }
.node {
  display: flex; align-items: baseline; gap: 10px; justify-content: center; flex-wrap: wrap;
  padding: 12px 16px; border-radius: 999px; cursor: pointer;
  font: inherit; font-weight: 700; color: var(--text);
  background: rgba(46, 33, 73, .5); border: 1.5px solid var(--line);
  transition: background .2s, transform .15s;
}
.node:hover { background: rgba(240, 171, 252, .18); transform: translateY(-2px); }
.node .what { font-weight: 500; font-size: .85rem; color: var(--muted); }
.node.active { background: var(--pink); border-color: var(--pink); color: #3b1a55; }
.node.active .num, .node.active .what { color: #5b2a7a; }
.pipe-arrow { color: var(--pink); font-size: 1.4rem; text-shadow: 0 0 10px var(--pink); }

/* Big picture area */
.stage {
  position: relative; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden;
  background: #140d24; border: 1.5px solid var(--line);
}
.stage img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
  opacity: 0; transition: opacity .45s ease; cursor: zoom-in; pointer-events: none;
}
.stage img.active { opacity: 1; pointer-events: auto; }
.stage-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  font-size: 1.8rem; line-height: 1; color: var(--text);
  background: rgba(29, 21, 48, .7); border: 1.5px solid var(--line);
  transition: background .2s;
}
.stage-btn:hover { background: var(--pink); color: #3b1a55; }
.stage-btn.prev { left: 12px; }
.stage-btn.next { right: 12px; }
.caption { margin-top: 14px; color: var(--muted); line-height: 1.6; }

/* Full-size viewer */
.lightbox { margin: auto; padding: 0; border: none; background: transparent; max-width: 95vw; max-height: 92vh; cursor: zoom-out; }
.lightbox::backdrop { background: rgba(10, 6, 20, .88); }
.lightbox img { display: block; max-width: 95vw; max-height: 92vh; border-radius: 12px; }

/* ---------- MOBILE ---------- */
@media (max-width: 900px) {
  .workflow { grid-template-columns: 1fr; }
  .flow-arrow { transform: rotate(90deg); justify-self: center; }
  .pipeline { gap: 6px; }
  .node { padding: 10px; }
  .node .what { display: none; }
}

.project-links { display: flex; gap: 18px; }
