/* ─── PROJECT DETAIL PAGE ────────────────────────────── */

.project-detail {
  padding-top: 7rem;
  padding-bottom: 6rem;
}

/* ── Back link ──────────────────────────────────────── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
  transition: color .2s;
  cursor: pointer;
}
.back-link:hover { color: var(--accent); }

/* ── Header ─────────────────────────────────────────── */
.project-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}
.project-detail-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.05;
  margin: 1rem 0 .75rem;
}
.project-title-row {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.project-brand-logo {
  height: 36px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
.project-title-row .project-detail-title {
  margin: 0;
}
.project-tagline {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 540px;
}
.project-header-cta {
  display: flex;
  gap: .75rem;
  flex-shrink: 0;
  align-items: center;
  padding-top: 3.5rem;
}

/* ── Screenshot ─────────────────────────────────────── */
.project-screenshot {
  margin-bottom: 4rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface2);
  aspect-ratio: 16 / 9;
}
.screenshot-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Content grid ───────────────────────────────────── */
.project-content {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 4rem;
  align-items: start;
}

/* ── Body (left) ────────────────────────────────────── */
.project-body p {
  color: var(--muted);
  line-height: 1.9;
  font-size: .95rem;
  margin-bottom: 1.5rem;
}
.content-heading {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: .75rem;
  margin-top: 2rem;
  color: var(--text);
}
.content-heading:first-child { margin-top: 0; }
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  font-size: .9rem;
  color: var(--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: .55rem;
}

/* ── Sidebar (right) ────────────────────────────────── */
.project-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: sticky;
  top: 6rem;
}
.sidebar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.sidebar-label {
  font-family: var(--font-body);
  font-size: .65rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1rem;
}

/* Stack tiles in sidebar */
.stack-tiles {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}
.stack-tile {
  display: flex;
  align-items: center;
  gap: .4rem;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: .35rem .65rem;
  font-size: .75rem;
  color: var(--muted);
  font-family: var(--font-body);
}
.stack-tile i { font-size: 1rem; }

/* Info list in sidebar */
.info-list {
  display: flex;
  flex-direction: column;
  gap: .1rem;
}
.info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .55rem 0;
  border-bottom: 1px solid var(--border);
  font-size: .85rem;
}
.info-item:last-child { border-bottom: none; }
.info-key { color: var(--muted); font-family: var(--font-body); }
.info-val { color: var(--text); font-weight: 500; }
.info-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  font-size: .85rem;
  transition: color .2s;
}
.info-link:hover { color: var(--accent-h); }

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 768px) {
  .project-header { flex-direction: column; }
  .project-header-cta { padding-top: 0; }
  .project-content { grid-template-columns: 1fr; }
  .project-sidebar { position: static; }
  .project-brand-logo { height: 28px; }
}

/* ── SmartSchools carousel ──────────────────────────── */
.ss-carousel {
  position: relative;
  margin-bottom: 4rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface2);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  user-select: none;
}

.ss-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.ss-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .5s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ss-slide.active {
  opacity: 1;
}

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

/* Progress bar */
.ss-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--border);
  z-index: 10;
}

.ss-bar {
  height: 100%;
  width: 0%;
  background: var(--accent);
  animation: ss-progress 4.5s linear forwards;
}

@keyframes ss-progress {
  from { width: 0%; }
  to   { width: 100%; }
}

/* Dots */
.ss-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: .45rem;
  z-index: 10;
}

.ss-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,.65);
  cursor: pointer;
  transition: background .2s, transform .2s;
  border: none;
  padding: 0;
}

.ss-dot.active {
  background: var(--accent);
  transform: scale(1.3);
}

.ss-dot:hover {
  background: rgba(255,255,255,.85);
}

/* ── Platform section ───────────────────────────────── */
.platform-section {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}
.platform-heading {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.5rem;
}
.platform-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.platform-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color .2s ease;
  cursor: default;
}
.platform-card:hover {
  border-color: var(--accent);
}
.platform-icon {
  flex-shrink: 0;
  color: var(--accent);
  margin-top: .1rem;
}
.platform-name {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .2rem;
}
.platform-users {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .6rem;
}
.platform-desc {
  font-size: .875rem;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

@media (max-width: 640px) {
  .platform-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .ss-carousel { aspect-ratio: 4 / 3; }
}
