/* ===========================
   1. FONTS
   =========================== */
@font-face {
  font-family: "RobertLight";
  src: url("../font/roobert-font-family-1739094187-0/RoobertMonoTRIAL-Light-BF67243fd27eae5.otf")
    format("opentype");
  font-weight: 200;
  font-style: normal;
}
@font-face {
  font-family: "Review";
  src: url("../font/review-font-family-1762405635-0/Review-Bold-Trial-BF63f6d0f63e8c8.otf")
    format("opentype");
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: "ReviewMedium";
  src: url("../font/review-font-family-1762405635-0/Review-Medium-Trial-BF63f6d1052cbb4.otf")
    format("opentype");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "ReviewLight";
  src: url("../font/review-font-family-1762405635-0/Review-Light-Trial-BF63f6d1043a304.otf")
    format("opentype");
  font-weight: 200;
  font-style: normal;
}

@font-face {
  font-family: "RoxboroughCF";
  src: url("../font/Rox/Roxborough CF.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

/* ===========================
       2. VARIABLES & RESET
       =========================== */

:root {
  --color-light: #f6f5ee;
  --color-grey-light: #cecece;
  --color-grey-dark: #8e8e8e;
  --color-dark: #141414;
  --color-primary: #383838;
  --color-green: #214231;
  --color-background: var(--color-light);
  --color-text: var(--color-dark);
  --color-text-link: var(--color-dark);
  --color-text-link-hover: var(--color-dark);
  --page-pad: clamp(16px, 4vw, 100px);
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
/* ===========================
       3. LAYOUT GLOBAL
       =========================== */

body {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  background: #f9f8f3;
  color: #383838;
  overflow-y: auto !important;
  overflow-x: hidden;
}
img,
svg,
video {
  max-width: 100%;
  height: auto;
  display: block;
}
iframe {
  max-width: 100%;
}

.container {
  width: 100%;
  margin: 100px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.content {
  width: 100%;
  padding-top: 100px;
}

/* ===========================
       4. NAV & HEADER
       =========================== */

#nav-menu {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 100%;
  justify-content: flex-end;
  z-index: 1000;
  padding: 20px;
  margin: 0;
  border-bottom: dotted 1px var(--color-grey-dark);
}

.btn-close {
  font-family: "RobertLight", sans-serif;
  font-size: 16px;
  font-weight: normal;
  color: var(--color-dark);
  text-decoration: none;
  cursor: pointer;
  border: none;
  background: none;
}

.header {
  font-family: "ReviewMedium", serif;
  font-size: 24px;
  font-weight: normal;
  color: var(--color-dark);
  text-decoration: none;
  margin: 40px;
}

/* ===========================
       5. BLOCS GÉNÉRIQUES
       =========================== */

.text-section {
  width: 100%;
  padding: var(--page-pad);
  display: flex;
  flex-direction: column;
}

.text-section h1 {
  font-size: 56px;
  font-family: "RoxboroughCF", serif;
  text-decoration: underline;
  text-underline-offset: 12px;
  text-decoration-thickness: 1px;
  color: var(--color-dark);
}

.text-section h2,
.text-section h3 {
  font-family: "RoxboroughCF", serif;
  margin-bottom: 20px;
}

.text-section p {
  font-family: "ReviewLight", serif;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.002em;
  margin-bottom: 20px;
  text-align: left;
  color: var(--color-grey-dark);
}

/* ===========================
       6. INTRO / HERO
       =========================== */

.section-header {
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.introduction {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 60px;
}

.intro-text {
  width: 100%;
  max-width: 800px;
  gap: 15px;
}

.image-section img {
  width: 100%;
  max-width: 1000px;
}

/* ===========================
       7. DÉTAILS (TIMELINE / RÔLE / OUTILS)
       =========================== */

.details {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  padding: 20px;
  gap: 40px;
  background-color: var(--color-green);
  color: var(--color-light);
}

.details h3 {
  font-size: 28px;
}

.section-1,
.section-3 {
  width: 100%;
  max-width: 200px;
}

.section-2 {
  width: 100%;
  max-width: 500px;
}

/* ===========================
       8. PROCESS / DOUBLE DIAMOND
       =========================== */

.process {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin: 0;
  color: var(--color-dark);
  border-bottom: #214231 dotted 1px;
}

.process-text {
  width: 100%;
  text-align: center;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: row;
  gap: 60px;
  box-sizing: content-box;
}

.process-text p {
  width: 100%;
  max-width: 500px;
  font-family: "ReviewLight", serif;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.002em;
  color: var(--color-grey-dark);
}

.process-image img {
  width: 100%;
  max-width: 1000px;
}

.step {
  width: 100%;
  display: flex;
  flex-wrap: nowrap; /* quan trọng */
  align-items: stretch; /* các card cao đều nhau (nếu muốn) */
  justify-content: center; /* đừng space-around, dễ tạo khoảng hở kỳ */
  gap: 20px;
  padding: 60px 20px 20px;
}

.step-1,
.step-2,
.step-3,
.step-4,
.step-5 {
  flex: 1 1 240px; /* min width ~240px rồi tự co giãn */
  max-width: 250px; /* giới hạn để không quá to trên desktop */
  width: auto;
  padding: 24px;
  border-radius: 4px;
  box-sizing: border-box;
  color: var(--color-light);
  height: auto; /* bỏ cố định */
  min-height: 250px; /* nếu bạn muốn giữ “cảm giác” cao tối thiểu */
}

.step-1 {
  background-color: #58b283;
}
.step-2 {
  background-color: #b29758;
}
.step-3 {
  background-color: #616ec0;
}
.step-4 {
  background-color: #c05e61;
}
.step-5 {
  background-color: #c05ea1;
}

.step h3 {
  font-family: "RoxboroughCF", serif;
  font-size: 24px;
  margin-bottom: 10px;
}

.step li {
  font-family: "ReviewLight", serif;
  font-size: 16px;
  line-height: 1.6;
}

/* ===========================
       9. RECHERCHE & KEY TAKEAWAYS
       =========================== */

.desk-research {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--color-dark);
  padding: 100px 0;
}

.desk-research img {
  width: 100%;
  max-width: 500px;
  height: auto;
}

.research-findings {
  width: 100%;
  max-width: 1800px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 40px;
  color: var(--color-dark);
}

.research-findings h3 {
  font-family: "RoxboroughCF", serif;
  font-size: 32px;
}

.research-findings ul {
  font-family: "ReviewLight", serif;
  font-size: 16px;
  line-height: 1.5;
}

.research ul li,
.key-takeaways ul li,
.text-header ul li {
  font-family: "ReviewLight", serif;
}

.key-takeaways,
.problem-statement {
  background-color: #58b283;
  width: 100%;
  padding: 60px 100px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  color: var(--color-light);
}
.problem-statement {
  background-color: #b29758;
}
.problem-statement p {
  color: var(--color-light);
  width: 100%;
  max-width: 1500px;
}

.key-takeaways h3,
.problem-statement h3 {
  font-family: "RoxboroughCF", serif;
  font-size: 32px;
  margin-bottom: 20px;
}

/* ===========================
       10. COMPETITIVE ANALYSIS & INTERVIEWS
       =========================== */

.competitive-analysis,
.user-interview-surveys,
.persona,
.empathy-map,
.user-journey,
.how-might-we,
.pain-to-gain,
.card-sorting,
.information-architecture,
.user-flows,
.wireframes,
.high-fidelity-mockups,
.interactive-prototype {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin: 0;
  color: var(--color-dark);
  padding: var(--page-pad);
}
.design-system {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 60px 100px;
}
.design-system img {
  width: 100%;
  max-width: 1000px;
}
.user-interview-surveys,
.pain-to-gain,
.user-flows {
  border-bottom: #214231 dotted 1px;
}
.text-header {
  width: 100%;
  max-width: 1600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
}

.competitive-analysis img,
.user-interview-surveys img {
  width: 100%;
  max-width: 1500px;
  padding: 40px 0; /* haut/bas seulement pour que l’image s’aligne avec le texte */
}
.high-fidelity-mockups img {
  width: 100%;
  max-width: 1000px;
}
.competitive-analysis p,
.user-interview-surveys p,
.persona p {
  margin-bottom: 40px;
  text-align: left;
  color: var(--color-grey-dark);
}

.text h3 {
  background-color: #214231;
  width: fit-content;
  color: var(--color-light);
  padding: 8px 12px;
  border-radius: 4px;
}
.survey-methodology {
  width: 100%;
  max-width: 1600px;
  align-items: flex-start;
}
.survey-statistics .text,
.interview-insights .text {
  width: 100%;
  max-width: 800px;
}

/* ===========================
       12. STAGES (Empathise / Define / etc.)
       =========================== */

.stage {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding-top: 60px;
}

.stage h2 {
  background-color: #58b283;
  padding: 10px 40px;
  border-radius: 9999px;
  color: var(--color-light);
  font-family: "RoxboroughCF", serif;
}
/* Footer Copyright */
.footer {
  margin-top: 20px;
  font-size: 14px;
  padding-top: 10px;
  padding: 20px 60px;
  width: 100%;
  text-align: center;
  display: flex;
  justify-content: center; /* Ensures spacing between text & button */
  align-items: center;
  width: 100%;
  position: relative;
}

/* Back-to-Top Button */
.back-to-top {
  position: absolute;
  right: 30px; /* Position it on the right side of the footer */
  bottom: 10px;
}

.back-to-top a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  cursor: pointer;
  gap: 5px; /* Space between icon and text */
  text-decoration: none;
}

/* Icon */
.back-to-top svg {
  width: 24px;
  height: 24px;
  fill: black; /* Default color */
  transition: fill 0.3s ease-in-out;
}

/* Text */
.back-to-top-text {
  font-size: 14px;
  font-weight: bold;
  color: black;
  transition: color 0.3s ease-in-out;
}

/* Hover Effect */
.back-to-top:hover svg {
  fill: #666; /* Change icon color on hover */
}

.back-to-top:hover .back-to-top-text {
  color: #666; /* Change text color on hover */
}
/* Base Styles for Links */
p a {
  position: relative;
  text-decoration: none;
  color: black; /* Default text color */
  font-weight: bold;
  transition: color 0.3s ease-in-out; /* Smooth color transition */
}

/* Underline Effect */
p a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px; /* Position the underline below text */
  width: 100%;
  height: 2px; /* Thickness of the underline */
  background-color: black; /* Color of the underline */
  transform: scaleX(0); /* Start with no width */
  transform-origin: left;
  transition: transform 0.3s ease-in-out; /* Smooth transition */
}

/* Hover Effect - Underline Appears */
p a:hover::after {
  transform: scaleX(1); /* Expand the underline */
}

/* Hover Effect - Change Text Color */
p a:hover {
  color: #666; /* Change text color on hover */
}
.divider {
  width: 100%;
  max-width: 1600px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
.divider img {
  width: 100%;
  max-width: 1000px;
}
.bloc-0,
.bloc-1,
.bloc-2,
.bloc-3 {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  border-bottom: #214231 dotted 1px;
}
.bloc-0 {
  gap: 100px;
  padding: 20px;
}
.bloc-1,
.bloc-2,
.bloc-3 {
  gap: 60px;
  padding: 60px 20px;
}
.bloc-0 img,
.bloc-1 img,
.bloc-2 img,
.bloc-3 img {
  width: 100%;
  max-width: 1000px;
}
.bloc-1,
.bloc-3 {
  flex-direction: column-reverse;
}
.bloc-3 {
  border-bottom: none;
}
.bloc-text-right,
.bloc-text-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 1000px;
  margin-top: 20px;
  box-sizing: border-box;
  font-family: "RobertLight", sans-serif;
  font-size: 16px;
  font-weight: 200;
  line-height: 1.4;
  color: var(--color-light);
  letter-spacing: -0.02em;
  background-color: #214231;
  padding: 40px;
  border-radius: 4px;
}
.bloc-text-right h3,
.bloc-text-left h3 {
  font-family: "ReviewMedium", serif;
  font-size: 24px;
}
.bloc-text-right p,
.bloc-text-left p {
  color: var(--color-light);
  font-family: 16px;
}
.interactive-prototype iframe {
  width: 100%;
  max-width: 1500px;
  height: 800px;
  border: none; /* Enlève la bordure par défaut */
  border-radius: 12px; /* Ajoute un léger arrondi aux coins */
}
.process {
  border-bottom: none;
}
@media (max-width: 768px) {
  html {
    width: 100%;
    overflow-x: hidden;
  }
  body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow: auto;
    cursor: pointmethodologyer;
  }
  .header h1 {
    width: 100%;
    max-width: 250px;
    font-size: 32px;
  }
  .container {
    margin: 50px 0;
  }
  .content {
    padding: 20px 20px;
    max-width: 400px;
  }
  .text-section {
    width: 100%;
    padding: 20px 0px;
  }
  .text-section h1 {
    font-size: 32px;
  }
  .text-section h3 {
    font-size: 24px;
  }

  .text-section p {
    font-size: 16px;
  }
  .introduction {
    flex-direction: column-reverse;
    gap: 20px;
  }
  .intro-text {
    padding: var(--page-pad);
  }
  .process-text,
  .step,
  .desk-research,
  .research-findings,
  .key-takeaways,
  .competitive-analysis,
  .user-interview-surveys,
  .persona,
  .empathy-map,
  .user-journey,
  .how-might-we,
  .pain-to-gain,
  .card-sorting,
  .information-architecture,
  .user-flows,
  .design-system,
  .wireframes,
  .high-fidelity-mockups,
  .divider,
  .interactive-prototype {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    justify-content: center;
    padding: 20px 20px;
  }
  .survey-statistics,
  .interview-insights {
    align-items: flex-start;
  }
  .introduction img,
  .competitive-analysis img,
  .survey-statistics img,
  .persona img,
  .empathy-map img,
  .user-journey img,
  .how-might-we img,
  .pain-to-gain img,
  .card-sorting img,
  .information-architecture img,
  .user-flows img,
  .design-system img,
  .wireframes img,
  .high-fidelity-mockups img {
    width: 100%;
    max-width: 380px;
  }
  .interactive-prototype {
    display: none;
  }
  .interactive-prototype iframe {
    width: 100%;
    max-width: 300px;
    height: 700px;
    object-fit: cover;
  }
  .process {
    border-bottom: none;
  }
  .details {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 20px 15px;
  }

  .step {
    padding: 0;
  }

  .step-1,
  .step-2,
  .step-3,
  .step-4,
  .step-5 {
    width: 100%;
    max-width: 350px;
    height: auto;
    padding-left: 40px;
  }

  .step ul li {
    font-size: 14px;
  }
  .section-header {
    flex-direction: column;
    align-items: center;
    margin: 0;
  }
  .section-header img {
    width: 100%;
    max-width: 400px;
  }
  .intro-text,
  .text-header,
  .text,
  .problem-statement p {
    padding: 20px 0px;
    width: 100%;
    max-width: 400px;
  }
  .text-header h1 {
    font-size: 32px;
  }
  .intro-text p {
    font-size: 16px;
  }
  .finding-1,
  .finding-2,
  .finding-3,
  .research {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    width: 100%;
    max-width: 380px;
  }
  .research ul,
  .key-takeaways ul,
  .finding-1 ul,
  .finding-2 ul,
  .finding-3 ul {
    width: 100%;
    max-width: 400px;
    padding: 0;
  }
  .problem-statement,
  .high-fidelity-mockups {
    margin: 0;
    padding: 20px 0;
    max-width: 450px;
  }
  .key-takeaways {
    padding: 20px;
  }
  .problem-statement p {
    max-width: 380px;
  }

  .survey-methodology {
    flex-direction: column; /* empile verticalement */
    gap: 20px;
    padding: 20px 16px; /* réduit le padding */
    width: 100%;
    max-width: 100%;
  }
  .text {
    max-width: 400px;
  }
  .bloc-0,
  .bloc-1,
  .bloc-2,
  .bloc-3 {
    flex-direction: column;
    gap: 40px;
    border-bottom: #214231 dotted 1px;
  }
  .bloc-3 {
    border-bottom: none;
  }
  .bloc-text-left,
  .bloc-text-right {
    max-width: 350px;
    padding: 20px;
  }
  .bloc-text-left h3,
  .bloc-text-right h3 {
    font-size: 20px;
  }
  .bloc-text-left p,
  .bloc-text-right p {
    font-size: 12px;
  }
  .stage h2 {
    font-size: 20px;
    padding: 8px 20px;
  }

  .empathiese-stage {
    display: flex;
    justify-content: center;
    flex-direction: column;
  }
  .process {
    border-bottom: none;
  }
}
