:root {
  --bg: #0a0b0f;
  --panel: #101218;
  --panel-2: #12141c;
  --chip: #181b24;
  --border: rgba(255, 255, 255, 0.08);
  --text: #e8eaf0;
  --text-muted: #8b93a7;
  --accent: #3b6df6;
  --accent-soft: rgba(59, 109, 246, 0.14);
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
  overflow: hidden;
}

.page {
  display: flex;
  height: 100vh;
}

/* ---------------- Left column ---------------- */

.left-col {
  width: 25%;
  min-width: 300px;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  padding: 2rem;
  background: var(--panel);
  border-right: 1px solid var(--border);
}

.photo-frame {
  flex: 0 0 auto;
  height: 52%;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
  background: #000;
}

.photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.stack-block {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.stack-title {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
  font-weight: 600;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  background: var(--chip);
  border: 1px solid var(--border);
  color: #c7cbd9;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  white-space: nowrap;
}

.left-footer {
  margin-top: 1.5rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border);
}

.footer-name {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
}

.footer-role {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 0.2rem;
}

/* ---------------- Right column ---------------- */

.right-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 2rem 2.5rem;
  overflow: hidden;
}

.right-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-shrink: 0;
}

.slide-nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.nav-arrow {
  background: var(--chip);
  border: 1px solid var(--border);
  color: var(--text);
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  font-size: 1rem;
}

.nav-arrow:hover {
  background: #1f2330;
  border-color: var(--accent);
}

.slide-title {
  font-size: 1.5rem;
  font-weight: 700;
  min-width: 220px;
  text-align: center;
  margin: 0;
}

.lang-toggle {
  background: var(--chip);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  cursor: pointer;
  font-size: 0.82rem;
  display: flex;
  gap: 0.35rem;
  align-items: center;
}

.lang-opt {
  color: var(--text-muted);
  transition: color 0.15s;
}

.lang-opt.active {
  color: #fff;
  font-weight: 700;
}

.lang-sep {
  color: var(--text-muted);
}

/* ---------------- Outer slider ---------------- */

.outer-viewport {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  position: relative;
  border-radius: 20px;
}

.outer-track {
  display: flex;
  height: 100%;
  width: 400%;
  transition: transform 0.55s cubic-bezier(0.65, 0, 0.35, 1);
}

.slide {
  width: 25%;
  height: 100%;
  flex-shrink: 0;
  padding: 0 4px;
}

.dashboard-slide {
  display: flex;
  align-items: center;
  justify-content: center;
}

.dash-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 1.5rem;
  width: 100%;
  max-width: 620px;
}

.dash-card {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.9rem 1.5rem;
  text-align: center;
}

.dash-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 14px;
  background: var(--accent-soft);
  color: #6f97ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin: 0 auto 1rem;
}

.dash-value {
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.dash-label {
  margin-top: 0.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ---------------- Project slide ---------------- */

.project-slide {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.75rem;
  flex-shrink: 0;
}

.project-name {
  font-weight: 700;
  font-size: 1.05rem;
  color: #c7cbd9;
}

.screen-label {
  color: #6f97ff;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.screen-viewer {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.screen-frame {
  flex: 1;
  height: 100%;
  background: #0d0f14;
  border: 1px solid var(--border);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: zoom-in;
}

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

.screen-arrow {
  flex-shrink: 0;
  background: var(--chip);
  border: 1px solid var(--border);
  color: var(--text);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.screen-arrow:hover {
  background: #1f2330;
  border-color: var(--accent);
}

.screen-counter {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: 0.6rem;
  flex-shrink: 0;
}

/* ---------------- Dots ---------------- */

.outer-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.1rem;
  flex-shrink: 0;
}

.outer-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.2s;
}

.outer-dot.active {
  background: var(--accent);
  width: 1.5rem;
}

/* ---------------- Lightbox ---------------- */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(4, 5, 8, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 1000;
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-img {
  max-width: 92vw;
  max-height: 92vh;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--text);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--text);
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
}

.lightbox-arrow.left { left: 1.5rem; }
.lightbox-arrow.right { right: 1.5rem; }
.lightbox-close:hover,
.lightbox-arrow:hover { background: rgba(255, 255, 255, 0.14); }

body.lightbox-locked { overflow: hidden; }

/* ---------------- Responsive fallback ---------------- */

@media (max-width: 900px) {
  html, body { overflow: auto; }
  .page { flex-direction: column; height: auto; min-height: 100vh; }
  .left-col { width: 100%; max-width: none; flex-direction: row; flex-wrap: wrap; }
  .photo-frame { width: 140px; height: 140px; flex: 0 0 140px; margin-bottom: 0; margin-right: 1.2rem; }
  .stack-block { flex: 1 1 260px; }
  .left-footer { width: 100%; margin-top: 1rem; }
  .right-col { padding: 1.25rem; }
  .outer-viewport { min-height: 420px; }
  .dash-grid { grid-template-columns: 1fr 1fr; }
}
