/* ==================================================
   PROJECT DETAIL PAGE
   ================================================== */

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

/* ================= HEADER ================= */

.detail-header {
  min-height: auto;
  height: auto;
}

/* ================= HAMBURGER BUTTON ================= */

.hamburger {
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

/* ================= PROJECT DETAIL WRAPPER ================= */

.project-detail {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 8rem 2rem 5rem;
}

/* ================= BACK LINK ================= */

.back-link {
  display: inline-block;
  margin-bottom: 2.25rem;
  font-weight: 600;
  text-decoration: none;
  color: inherit;
}

.back-link i {
  margin-right: 0.5rem;
}

/* ================= HERO ================= */

.project-hero {
  max-width: 100%;
  margin-bottom: 2.5rem;
}

.project-category {
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 0.7rem;
  opacity: 0.7;
}

.project-hero h1 {
  font-size: clamp(2.7rem, 7vw, 4.8rem);
  line-height: 0.95;
  margin-bottom: 1rem;
  letter-spacing: -0.04em;
}

.project-intro {
  max-width: 100%;
  margin-bottom: 0;
  font-size: 1.05rem;
  line-height: 1.7;
  opacity: 0.85;
}

/* 
  Project meta sengaja tidak ditampilkan.
  Karena untuk presentasi logo Muwazi, bagian Type/Year/Role/Tools
  terasa kurang penting dan membuat opening terlalu ramai.
*/

.project-meta {
  display: none;
}

/* ================= COVER IMAGE ================= */

.project-cover {
  margin-bottom: 2.5rem;
}

.project-cover img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
}

/* ================= STORY / TEXT SECTION ================= */

.project-story {
  width: 100%;
  max-width: 100%;;
  margin: 0;
  padding: 1.8rem 0 2rem;
}

.story-block {
  width: 100%;
  max-width: 100%;
  margin: 0;
}

.story-block + .story-block {
  margin-top: 1.5rem;
}

.story-block h2 {
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  line-height: 1.2;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.story-block p {
  font-size: 1rem;
  line-height: 1.75;
  margin: 0;
  opacity: 0.85;
}

/* ================= IMAGE GALLERY ================= */

.project-gallery {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0 0 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.project-gallery img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
}

/* ================= MOBILE ================= */

@media (max-width: 768px) {
  .project-detail {
    padding: 6.25rem 1.35rem 4rem;
  }

  .back-link {
    margin-bottom: 1.75rem;
    font-size: 0.95rem;
  }

  .project-hero {
    max-width: 100%;
    margin-bottom: 2rem;
  }

  .project-category {
    font-size: 0.8rem;
    margin-bottom: 0.55rem;
  }

  .project-hero h1 {
    font-size: 2.75rem;
    margin-bottom: 0.85rem;
  }

  .project-intro {
    max-width: 100%;
    font-size: 0.95rem;
    line-height: 1.65;
  }

  .project-cover {
    margin-bottom: 1.8rem;
  }

  .project-cover img {
    border-radius: 13px;
  }

  .project-story {
    max-width: 100%;
    padding: 1.4rem 0 1.6rem;
  }

  .story-block {
    max-width: 100%;
  }

  .story-block + .story-block {
    margin-top: 1.25rem;
  }

  .story-block h2 {
    font-size: 1.45rem;
    margin-bottom: 0.6rem;
  }

  .story-block p {
    font-size: 0.95rem;
    line-height: 1.65;
  }

  .project-gallery {
    max-width: 100%;
    padding-bottom: 1.8rem;
    gap: 1rem;
  }

  .project-gallery img {
    border-radius: 13px;
  }
}

/* ================= SMALL MOBILE ================= */

@media (max-width: 480px) {
  .project-detail {
    padding: 5.75rem 1.15rem 3.5rem;
  }

  .back-link {
    margin-bottom: 1.5rem;
  }

  .project-hero {
    margin-bottom: 1.75rem;
  }

  .project-hero h1 {
    font-size: 2.35rem;
  }

  .project-cover {
    margin-bottom: 1.6rem;
  }

  .project-story {
    padding: 1.2rem 0 1.4rem;
  }

  .story-block h2 {
    font-size: 1.35rem;
  }

  .project-gallery {
    gap: 0.9rem;
    padding-bottom: 1.6rem;
  }
}
