/* Project details page styles */
.project-details-page {
  min-height: 100vh;
  padding: 0;
  color: #E9E5DF;
  background:
    radial-gradient(circle at top left, rgba(241, 233, 225, 0.16), transparent 32%),
    linear-gradient(135deg, #06151E 0%, #0f2533 50%, #06151E 100%);
  position: relative;
  overflow: hidden;
}

.project-details-page::before,
.project-details-page::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.25;
  pointer-events: none;
}

.project-details-page::before {
  width: 420px;
  height: 420px;
  background: #8DA0A8;
  top: -120px;
  left: -140px;
}

.project-details-page::after {
  width: 480px;
  height: 480px;
  background: #F1E9E1;
  bottom: -180px;
  right: -140px;
}

.project-detail-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  max-width: 1240px;
  margin: 0 auto;
  padding: 56px 24px 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-detail-stage {
  width: 100%;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 28px;
  align-items: center;
  opacity: 0;
  transform: translateY(32px);
  animation: detailFadeIn 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.project-detail-visual {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
  background: rgba(7, 21, 31, 0.7);
  backdrop-filter: blur(14px);
  transform: translateX(-25px);
  animation: detailSlideInLeft 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.project-detail-visual img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  background: #0e1b26;
}

.project-detail-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 21, 30, 0.06) 0%, rgba(6, 21, 30, 0.35) 100%);
  pointer-events: none;
}

.project-detail-content {
  padding: 8px 4px;
  transform: translateX(25px);
  animation: detailSlideInRight 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.project-detail-badge {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(241, 233, 225, 0.12);
  color: #D9D4CC;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.project-detail-title {
  margin: 0 0 14px;
  font-size: clamp(2rem, 3.3vw, 3.2rem);
  color: #F1E9E1;
  line-height: 1.1;
}

.project-detail-description {
  margin: 0 0 18px;
  color: #D7D2CA;
  font-size: 1.05rem;
  line-height: 1.8;
  white-space: pre-wrap;
}

.project-detail-description p {
  margin: 0 0 12px;
}

.project-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.project-detail-chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #B8C1C7;
  font-size: 0.92rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

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

.project-detail-link,
.project-detail-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.project-detail-link {
  color: #06151E;
  background: #F1E9E1;
  box-shadow: 0 10px 30px rgba(241, 233, 225, 0.2);
}

.project-detail-back {
  color: #F1E9E1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-detail-link:hover,
.project-detail-back:hover {
  transform: translateY(-2px);
}

.project-detail-empty {
  max-width: 640px;
  padding: 32px;
  border-radius: 24px;
  background: rgba(7, 21, 31, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
  color: #D7D2CA;
}

@keyframes detailFadeIn {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes detailSlideInLeft {
  from { transform: translateX(-25px); }
  to { transform: translateX(0); }
}

@keyframes detailSlideInRight {
  from { transform: translateX(25px); }
  to { transform: translateX(0); }
}

@media (max-width: 900px) {
  .project-detail-stage {
    grid-template-columns: 1fr;
  }

  .project-detail-visual img {
    height: 320px;
  }
}

@media (max-width: 600px) {
  .project-detail-shell {
    padding: 36px 12px 40px;
  }

  .project-detail-actions {
    flex-direction: column;
  }
}
