/* ── PROJECT HERO ── */
.project-hero {
  padding: calc(64px + 3.5rem) clamp(1.25rem, 5vw, 3rem) 3rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: var(--muted);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  transition: color .2s;
}

.back-link:hover { color: var(--accent1); }

.project-hero-meta {
  margin-bottom: .8rem;
}

.project-hero-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: .8rem;
  letter-spacing: -.02em;
}

.project-hero-sub {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 620px;
  margin-bottom: 1.5rem;
}

/* ── CAROUSEL ── */
.carousel-section {
  padding: 0 clamp(1.25rem, 5vw, 3rem) 4rem;
}

.carousel {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.carousel-track-wrapper {
  flex: 1;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  background: var(--surface);
  transition: height .35s ease;
}

.carousel-track {
  display: flex;
  align-items: flex-start;
  transition: transform .4s ease;
}

.carousel-slide {
  flex: 0 0 100%;
  position: relative;
}

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

.slide-placeholder {
  display: none;
  width: 100%;
  min-height: 300px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  background: linear-gradient(135deg, var(--surface), var(--surface2));
  color: var(--muted);
  font-size: .9rem;
  font-weight: 600;
}

.slide-placeholder span { font-size: 3rem; opacity: .25; }

.carousel-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color .2s, background .2s;
}

.carousel-btn:hover {
  border-color: var(--accent1);
  background: var(--surface2);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: .5rem;
  margin-top: 1.2rem;
}

.carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background .2s, transform .2s;
}

.carousel-dot.active {
  background: var(--accent1);
  transform: scale(1.35);
}

/* ── DESCRIPTION ── */
.project-content {
  padding: 0 clamp(1.25rem, 5vw, 3rem) clamp(3rem, 6vw, 5rem);
}

.project-content-grid {
  display: grid;
  gap: 3rem;
}

.content-block { max-width: 740px; }

.content-title {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 800;
  margin-bottom: .5rem;
}

.content-block p {
  color: var(--muted);
  line-height: 1.8;
}

.challenges-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0;
}

.challenges-list li {
  color: var(--muted);
  line-height: 1.7;
  padding-left: 1.2rem;
  position: relative;
}

.challenges-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent1);
}

.challenges-list strong {
  color: var(--text);
  font-weight: 700;
}

/* ── TECH STACK ── */
.project-stack-section {
  padding: 0 clamp(1.25rem, 5vw, 3rem) clamp(3rem, 6vw, 5rem);
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
  margin-top: 1.5rem;
}

.stack-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  transition: border-color .25s, transform .25s;
}

.stack-item:hover {
  border-color: var(--accent1);
  transform: translateY(-2px);
}

.stack-icon { font-size: 1.6rem; flex-shrink: 0; }

.stack-name {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .3rem;
}

.stack-desc {
  color: var(--muted);
  font-size: .85rem;
  line-height: 1.5;
}

/* ── SOURCE CODE ── */
.project-source-section {
  padding: 0 clamp(1.25rem, 5vw, 3rem) clamp(3rem, 6vw, 5rem);
}

.source-desc {
  color: var(--muted);
  line-height: 1.8;
  max-width: 600px;
  margin-bottom: 1.5rem;
}

.source-btn {
  display: inline-flex !important;
}

/* ── BACK FOOTER ── */
.back-footer {
  padding: 0 clamp(1.25rem, 5vw, 3rem) 4rem;
}

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .carousel-btn { display: none; }
}
