body {
  min-height: 100vh;
}

.project-detail-main {
  padding: 132px 24px 64px;
}

.project-detail {
  max-width: var(--content-max);
  margin: 0 auto;
}

.project-detail__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 34px;
  color: var(--text-muted);
  font-size: 16px;
  font-weight: 600;
  transition: color 0.2s ease, transform 0.2s ease;
}

.project-detail__back:hover {
  color: var(--text);
  transform: translateX(-3px);
}

.project-detail__hero {
  display: grid;
  gap: 20px;
  margin-bottom: 34px;
}

.project-detail__eyebrow {
  color: var(--accent-600);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
}

.project-detail__title {
  max-width: 900px;
  color: var(--text);
  font-size: clamp(42px, 8vw, 86px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -2px;
}

.project-detail__summary {
  max-width: 820px;
  color: var(--text-body);
  font-size: clamp(21px, 3vw, 28px);
  font-weight: 400;
  line-height: 1.32;
}

.project-detail__image-section {
  margin: 48px 0;
  border-radius: 34px;
  padding: clamp(14px, 2.5vw, 26px);
  background: rgba(239, 246, 255, 0.88);
  overflow: hidden;
}

.project-detail__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 28px 70px -42px rgba(0, 46, 113, 0.55);
  animation: smooth-float 6s ease-in-out infinite;
  transition: transform 0.4s ease-out, box-shadow 0.4s ease-out;
}

.project-detail__image:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 36px 80px -42px rgba(0, 46, 113, 0.65);
  animation-play-state: paused;
}

@keyframes smooth-float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
  100% { transform: translateY(0); }
}

.project-detail__section-title {
  margin-bottom: 18px;
  color: var(--text);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -1px;
}

.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 3rem;
}

.tech-list span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 222, 224, 0.56);
  color: #762133;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
}

.project-detail__description {
  display: grid;
  gap: 18px;
  color: var(--text-body);
  font-size: 21px;
  font-weight: 400;
  line-height: 1.55;
}

.project-detail__highlights {
  display: grid;
  gap: 12px;
  margin-top: 8px;
  list-style: none;
}

.project-detail__highlights li {
  position: relative;
  padding-left: 24px;
}

.project-detail__highlights li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-500);
}

@media (min-width: 800px) {
  .project-detail-main {
    padding-inline: 40px;
  }
}

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

@media (max-width: 799px) {
  .project-detail-main {
    padding-top: 110px;
  }

  .mobile-header__nav {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    margin-left: 18px;
    padding-bottom: 2px;
  }

  .mobile-header__link {
    white-space: nowrap;
    font-size: 15px;
  }

  .menu-toggle {
    display: none;
  }
}

@media (max-width: 560px) {
  .mobile-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .mobile-header__nav {
    width: 100%;
    margin-left: 0;
  }

  .project-detail-main {
    padding-top: 142px;
  }

  .project-detail__image-section {
    border-radius: 24px;
  }

  .project-detail__image {
    border-radius: 18px;
  }
}
