/* ==========================================================================
   3. UI COMPONENTS, CARDS, BROWSER FRAMES & CONTROLS (components.css)
   ========================================================================== */

/* Buttons */
.btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gold);
  background: var(--gold);
  color: var(--ink);
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(232, 168, 56, 0.25);
}

.btn.secondary {
  background: transparent;
  color: var(--gold2);
  border-color: var(--line-strong);
}

.btn.secondary:hover {
  background: rgba(232, 168, 56, 0.1);
}

/* Tags & Notes */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.tags li {
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: rgba(15, 32, 64, 0.6);
  color: #a8c5ef;
  font: 500 10px var(--font-mono);
}

.note {
  color: var(--faint);
  font: 500 10px/1.45 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.index {
  margin-bottom: 6px;
  color: var(--gold);
  font: 500 10px var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Top Progress Bar & Right Navigation Dots */
.progress {
  position: fixed;
  z-index: 80;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--line);
}

.progress span {
  display: block;
  width: 10%;
  height: 100%;
  background: var(--gold);
  transform-origin: left;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.navdots {
  position: fixed;
  z-index: 80;
  right: max(14px, env(safe-area-inset-right));
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.dots {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dot {
  width: 24px;
  height: 20px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.dot::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--faint);
  transition: 0.25s ease;
}

.dot[aria-current="true"]::before {
  width: 10px;
  height: 10px;
  background: var(--gold);
  box-shadow: 0 0 10px rgba(232, 168, 56, 0.6);
}

.counter {
  color: var(--muted);
  font: 500 9.5px var(--font-mono);
  writing-mode: vertical-rl;
  letter-spacing: 0.08em;
  margin-top: 4px;
}

.counter strong {
  color: var(--gold);
}

/* Browser Window Mockup Frame (Used in Slide 4 TUMBU & Slide 7 Landing Pages) */
.browser-mockup {
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: #0b1526;
  box-shadow: var(--shadow);
  overflow: hidden;
  cursor: zoom-in;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.browser-mockup:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
}

.browser-bar {
  height: 28px;
  padding: 0 12px;
  background: #0f203c;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 6px;
}

.browser-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.browser-dot.red { background: #ef4444; }
.browser-dot.amber { background: #f59e0b; }
.browser-dot.green { background: #22c55e; }

.browser-url {
  margin-left: 8px;
  padding: 2px 10px;
  border-radius: 4px;
  background: rgba(7, 17, 31, 0.7);
  color: var(--muted);
  font: 400 10px var(--font-mono);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.browser-screen {
  width: 100%;
  max-height: 54vh;
  overflow: hidden;
  background: #07111f;
}

.browser-screen img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* Evidence Stat Pills (TUMBU Slide 4) */
.evidence-pills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 16px;
}

.evidence-pill {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--panel);
}

.evidence-pill strong {
  display: block;
  font-size: 16px;
  color: var(--gold);
}

.evidence-pill span {
  display: block;
  margin-top: 2px;
  font: 500 9.5px var(--font-mono);
  color: var(--muted);
  text-transform: uppercase;
}

/* Slide 5: Work Cards */
.work {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow-sm);
}

.work-visual {
  height: 156px;
  overflow: hidden;
  background: #07111f;
  position: relative;
  cursor: zoom-in;
  border-bottom: 1px solid var(--line);
}

.work-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}

.work:hover .work-visual img {
  transform: scale(1.03);
}

.work-copy {
  padding: 13px 15px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.work-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.48;
}

.work-copy .tags {
  margin-top: auto;
  padding-top: 10px;
}

.work-copy .note {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

/* Slide 7: Landing Page Design Cards (Full 16:9 Width Without Cropping Text!) */
.design {
  margin: 0;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.design-preview-link {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 195px;
  overflow: hidden;
  background: #060e1a;
  border-bottom: 1px solid var(--line);
  position: relative;
  cursor: zoom-in;
}

.design-preview-link img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top center;
  background: #081221;
  display: block;
  transition: transform 0.4s ease;
}

.design:hover .design-preview-link img {
  transform: scale(1.02);
}

.design figcaption {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.design h3 {
  font-size: 16.5px;
  margin-bottom: 6px;
}

.design p {
  margin: 0;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.45;
}

.design .tags {
  margin-top: auto;
  padding-top: 10px;
}

/* Bottom PowerPoint Slow-Motion Presentation Toolbar */
.ppt-timer-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), #22c55e);
  width: 0%;
  z-index: 9999;
  transition: width 0.1s linear;
}

.ppt-toolbar {
  position: fixed;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(10, 22, 40, 0.88);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  padding: 5px 10px;
  border-radius: 999px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.ppt-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.ppt-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.ppt-btn.active {
  background: var(--gold);
  color: var(--ink);
}

/* Lightbox Modal for Inspecting Screenshots & Workflows */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(4, 10, 20, 0.92);
  backdrop-filter: blur(10px);
  display: none;
  place-items: center;
  padding: 28px;
}

.lightbox-modal.is-open {
  display: grid;
}

.lightbox-inner {
  max-width: min(1160px, 92vw);
  max-height: 88vh;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}

.lightbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: var(--bg2);
  border-bottom: 1px solid var(--line);
}

.lightbox-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--gold2);
}

.lightbox-close {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  width: 30px;
  height: 30px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  display: grid;
  place-items: center;
}

.lightbox-close:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.lightbox-body {
  overflow: auto;
  padding: 16px;
  text-align: center;
}

.lightbox-body img {
  max-width: 100%;
  max-height: 76vh;
  height: auto;
  border-radius: 6px;
}

