/* =============================================================
   pages/project-detail.css — Individual project case study pages
   ============================================================= */

/* ── Page wrapper ──────────────────────────────────────────── */
.project-detail {
  padding: 64px 235px 100px;
}

/* ── Back link ─────────────────────────────────────────────── */
.project-detail__back {
  display:        inline-flex;
  align-items:    center;
  gap:            8px;
  font-family:    var(--font-mono);
  font-size:      var(--fs-13);
  font-weight:    var(--mono-fw-lte20);
  letter-spacing: var(--mono-ls-lte20);
  color:          var(--gray-900);
  text-decoration: none;
  margin-bottom:  40px;
  transition:     color 0.2s;
}
.project-detail__back:hover { color: var(--white); }
.project-detail__back i { font-size: 16px; }

/* ── Hero section ──────────────────────────────────────────── */
.project-detail__hero {
  margin-bottom: 64px;
}

.project-detail__meta-row {
  display:        flex;
  align-items:    center;
  flex-wrap:      wrap;
  gap:            8px;
  margin-bottom:  20px;
}

.project-detail__title {
  font-family:    var(--font-headings);
  font-size:      var(--fs-48);
  font-weight:    var(--fw-display);
  letter-spacing: var(--ls-display);
  line-height:    1.15;
  color:          var(--white);
  margin-bottom:  16px;
}

.project-detail__tagline {
  font-family:    var(--font-mono);
  font-size:      var(--fs-16);
  font-weight:    var(--mono-fw-lte20);
  letter-spacing: var(--mono-ls-lte20);
  color:          var(--gray-900);
  margin-bottom:  32px;
  max-width:      640px;
}

/* Info chips row */
.project-detail__info-row {
  display:     flex;
  flex-wrap:   wrap;
  gap:         16px;
  margin-bottom: 40px;
}

.project-detail__info-chip {
  display:        flex;
  flex-direction: column;
  gap:            4px;
}

.project-detail__info-chip-label {
  font-family:    var(--font-mono);
  font-size:      var(--fs-11);
  font-weight:    var(--mono-fw-lte20);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color:          var(--purple-900);
}

.project-detail__info-chip-value {
  font-family:    var(--font-text);
  font-size:      var(--fs-14);
  font-weight:    var(--fw-body);
  color:          var(--white);
}

/* ── Cover image / carousel area ───────────────────────────── */
.project-detail__cover {
  width:         100%;
  aspect-ratio:  16/9;
  background:    rgba(143, 0, 216, 0.06);
  border:        1px solid var(--purple-card-border);
  border-radius: 16px;
  overflow:      hidden;
  position:      relative;
  margin-bottom: 64px;
}

.project-detail__cover img {
  width: 100%; height: 100%; object-fit: cover;
}

/* ── Image carousel ────────────────────────────────────────── */
.project-carousel {
  width:     100%;
  height:    100%;
  position:  relative;
  overflow:  hidden;
  cursor:    grab;
  user-select: none;
}
.project-carousel:active { cursor: grabbing; }

.project-carousel__track {
  display:    flex;
  height:     100%;
  gap:        24px;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-carousel__slide {
  flex:           0 0 100%;
  height:         100%;
  display:        flex;
  align-items:    center;
  justify-content: center;
  background:     rgba(143, 0, 216, 0.06);
}

.project-carousel__slide img {
  width: 100%; height: 100%; object-fit: cover;
}

.project-carousel__placeholder {
  font-family:    var(--font-mono);
  font-size:      var(--fs-13);
  font-weight:    var(--mono-fw-lte20);
  color:          var(--gray-900);
  text-align:     center;
  padding:        24px;
}

.project-carousel__dots {
  position:       absolute;
  bottom:         16px;
  left:           50%;
  transform:      translateX(-50%);
  display:        flex;
  gap:            8px;
  z-index:        2;
}

.project-carousel__dot {
  width:         6px;
  height:        6px;
  border-radius: 50%;
  background:    rgba(250, 250, 250, 0.3);
  transition:    background 0.2s, width 0.2s;
  cursor:        pointer;
  border:        none;
}

.project-carousel__dot--active {
  width:      18px;
  border-radius: 3px;
  background: var(--white);
}

/* Carousel nav arrows */
.project-carousel__arrow {
  position:       absolute;
  top:            50%;
  transform:      translateY(-50%);
  width:          36px;
  height:         36px;
  border-radius:  50%;
  background:     rgba(14, 9, 17, 0.6);
  border:         1px solid var(--purple-card-border);
  display:        flex;
  align-items:    center;
  justify-content: center;
  cursor:         pointer;
  z-index:        2;
  transition:     background 0.2s, border-color 0.2s;
}
.project-carousel__arrow:hover {
  background:    rgba(143, 0, 216, 0.2);
  border-color:  var(--purple-border);
}
.project-carousel__arrow--prev { left: 16px; }
.project-carousel__arrow--next { right: 16px; }

/* ── Content sections ──────────────────────────────────────── */
.project-section {
  margin-bottom: 64px;
}

.project-section__label {
  font-family:    var(--font-mono);
  font-size:      var(--fs-11);
  font-weight:    500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color:          var(--purple-900);
  margin-bottom:  16px;
}

.project-section__title {
  font-family:    var(--font-headings);
  font-size:      var(--fs-28);
  font-weight:    var(--fw-display);
  letter-spacing: var(--ls-display);
  color:          var(--white);
  margin-bottom:  20px;
  line-height:    1.25;
}

.project-section__body {
  font-family:    var(--font-text);
  font-size:      var(--fs-16);
  font-weight:    var(--fw-body);
  letter-spacing: var(--ls-body);
  line-height:    26px;
  color:          var(--gray-900);
}

.project-section__body p {
  margin-bottom: 16px;
}
.project-section__body p:last-child { margin-bottom: 0; }

/* ── Problem statement highlight ──────────────────────────── */
.problem-highlight {
  background:    rgba(143, 0, 216, 0.08);
  border:        1px solid var(--purple-border);
  border-left:   3px solid var(--purple-500);
  border-radius: 8px;
  padding:       24px 28px;
  margin-bottom: 32px;
}

.problem-highlight p {
  font-family:    var(--font-text);
  font-size:      var(--fs-16);
  font-weight:    var(--fw-body);
  line-height:    26px;
  color:          var(--white);
  font-style:     italic;
  margin:         0;
}

/* ── Findings / findings list ──────────────────────────────── */
.findings-list {
  list-style:     none;
  display:        flex;
  flex-direction: column;
  gap:            12px;
  margin-top:     20px;
}

.findings-list__item {
  display:     flex;
  gap:         12px;
  align-items: flex-start;
  font-family: var(--font-text);
  font-size:   var(--fs-15);
  line-height: 24px;
  color:       var(--gray-900);
}

.findings-list__item::before {
  content:      '';
  flex-shrink:  0;
  width:        6px;
  height:       6px;
  border-radius: 50%;
  background:   var(--purple-500);
  margin-top:   9px;
}

.findings-list__item strong {
  color: var(--white);
  font-weight: var(--fw-body);
}

/* ── Solution features grid ────────────────────────────────── */
.features-grid {
  display:               grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap:                   16px;
  margin-top:            24px;
}

.feature-card {
  background:    var(--purple-card);
  border:        1px solid var(--purple-card-border);
  border-radius: 12px;
  padding:       24px;
  transition:    border-color 0.2s;
}
.feature-card:hover { border-color: var(--purple-border); }

.feature-card__title {
  font-family:    var(--font-headings);
  font-size:      var(--fs-16);
  font-weight:    var(--fw-heading);
  letter-spacing: var(--ls-heading);
  color:          var(--white);
  margin-bottom:  8px;
}

.feature-card__desc {
  font-family:   var(--font-text);
  font-size:     var(--fs-14);
  line-height:   22px;
  color:         var(--gray-900);
}

/* ── Typewriter animation ──────────────────────────────────── */
.typewriter-demo {
  background:    rgba(14, 9, 17, 0.6);
  border:        1px solid var(--purple-card-border);
  border-radius: 12px;
  padding:       32px;
  text-align:    center;
  margin-top:    24px;
}

.typewriter-text {
  font-family:    var(--font-mono);
  font-size:      var(--fs-20);
  font-weight:    var(--mono-fw-gt20);
  letter-spacing: var(--mono-ls-gt20);
  color:          var(--white);
  min-height:     32px;
}

.typewriter-text::after {
  content:   '|';
  animation: blink 1s step-end infinite;
  color:     var(--purple-500);
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ── Spline 3D state demo ─────────────────────────────────── */
.spline-states {
  display:   grid;
  grid-template-columns: 1fr 1fr;
  gap:       16px;
  margin-top: 24px;
}

.spline-state-card {
  background:    var(--purple-card);
  border:        1px solid var(--purple-card-border);
  border-radius: 12px;
  padding:       24px;
  text-align:    center;
}

.spline-state-card__dot {
  width:         32px;
  height:        32px;
  border-radius: 50%;
  margin:        0 auto 12px;
}

.spline-state-card__dot--orange { background: #FF6B35; box-shadow: 0 0 20px rgba(255,107,53,0.4); }
.spline-state-card__dot--blue   { background: #4ECDC4; box-shadow: 0 0 20px rgba(78,205,196,0.4); }

.spline-state-card__title {
  font-family:    var(--font-headings);
  font-size:      var(--fs-14);
  font-weight:    var(--fw-heading);
  color:          var(--white);
  margin-bottom:  8px;
}

.spline-state-card__desc {
  font-family:   var(--font-text);
  font-size:     var(--fs-13);
  line-height:   20px;
  color:         var(--gray-900);
}

/* ── Tools / tech stack tags row ──────────────────────────── */
.tools-row {
  display:   flex;
  flex-wrap: wrap;
  gap:       8px;
  margin-top: 16px;
}

/* ── CTA section ───────────────────────────────────────────── */
.project-cta {
  border-top:  1px solid var(--purple-card-border);
  padding-top: 64px;
  display:     flex;
  align-items: center;
  gap:         24px;
  flex-wrap:   wrap;
}

.project-cta__text {
  flex:          1;
  min-width:     200px;
}

.project-cta__title {
  font-family:    var(--font-headings);
  font-size:      var(--fs-24);
  font-weight:    var(--fw-display);
  letter-spacing: var(--ls-display);
  color:          var(--white);
  margin-bottom:  8px;
}

.project-cta__sub {
  font-family:    var(--font-text);
  font-size:      var(--fs-15);
  color:          var(--gray-900);
}

.project-cta__actions {
  display: flex;
  gap:     12px;
  flex-wrap: wrap;
}

.btn-primary {
  display:        inline-flex;
  align-items:    center;
  gap:            8px;
  height:         44px;
  padding:        0 20px;
  background:     var(--purple-500);
  border-radius:  8px;
  font-family:    var(--font-headings);
  font-size:      var(--fs-14);
  font-weight:    var(--fw-heading);
  color:          var(--white);
  text-decoration: none;
  transition:     background 0.2s, transform 0.15s;
}
.btn-primary:hover {
  background: #7A00B8;
  transform:  translateY(-1px);
}

.btn-secondary {
  display:        inline-flex;
  align-items:    center;
  gap:            8px;
  height:         44px;
  padding:        0 20px;
  background:     transparent;
  border:         1px solid var(--purple-border);
  border-radius:  8px;
  font-family:    var(--font-headings);
  font-size:      var(--fs-14);
  font-weight:    var(--fw-heading);
  color:          var(--white);
  text-decoration: none;
  transition:     border-color 0.2s, background 0.2s, transform 0.15s;
}
.btn-secondary:hover {
  background:   rgba(143, 0, 216, 0.1);
  border-color: var(--purple-500);
  transform:    translateY(-1px);
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1200px) {
  .project-detail { padding-left: 100px; padding-right: 100px; }
}

@media (max-width: 900px) {
  .project-detail { padding: 40px; }
  .project-detail__title { font-size: var(--fs-36); }
  .features-grid { grid-template-columns: 1fr; }
  .spline-states { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .project-detail { padding: 24px 20px; }
  .project-detail__title { font-size: var(--fs-28); line-height: 1.2; }
  .project-cta { flex-direction: column; align-items: flex-start; }
  .project-carousel__arrow { display: none; }
}
