/* ==========================================================================
   HOMIE — PROJECT ONE DEDICATED CASE STUDY STYLES
   Scope: Exclusively applied to .project-one-page & .homie-case-study
   ========================================================================== */

/* Base Page Styling */
body.project-one-page {
  background-color: #ffffff !important;
  color: #111111 !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

/* Ensure Persistent Navbar floats cleanly above content with homepage offset */
.project-one-page .navbar-header {
  position: fixed !important;
  top: 16px !important;
  left: 0;
  width: 100%;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  padding: 0 24px;
}

@media (max-width: 768px) {
  .project-one-page .navbar-header {
    top: 0 !important;
    padding: 0 !important;
  }
}

/* Fix desktop nav styling on light page */
.project-one-page .navbar-container.desktop-nav {
  background: rgba(10, 10, 10, 0.75) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

/* Hero Section */
.homie-hero-section {
  background-color: #000000;
  width: 100%;
  padding-top: 100px; /* offset navbar */
  padding-bottom: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.homie-hero-container {
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 24px 0;
}

.homie-hero-img {
  width: 100%;
  max-height: 85vh;
  object-fit: contain;
  display: block;
}

/* Project Information Section */
.homie-info-section {
  background-color: #ffffff;
  border-bottom: 1px solid #e5e5e5;
  padding: 56px 48px;
}

.homie-info-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 50px;
}

.homie-info-left {
  flex: 0 0 380px;
  max-width: 380px;
}

.homie-project-title {
  font-size: 56px;
  font-weight: 800;
  color: #111111;
  margin: 0 0 16px 0;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.homie-project-desc {
  font-size: 17px;
  line-height: 1.6;
  color: #333333;
  margin: 0;
  font-weight: 400;
}

.homie-info-divider {
  width: 1px;
  background-color: #e5e5e5;
  align-self: stretch;
  min-height: 140px;
}

.homie-info-right {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 36px;
  padding-top: 6px;
}

.meta-group {
  margin-bottom: 24px;
}

.meta-group:last-child {
  margin-bottom: 0;
}

.meta-label {
  font-size: 15px;
  font-weight: 700;
  color: #111111;
  margin: 0 0 8px 0;
  letter-spacing: -0.01em;
}

.meta-text {
  font-size: 14px;
  line-height: 1.6;
  color: #444444;
  margin: 0;
  font-weight: 400;
}

/* Core Case Study Layout */
.homie-content-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 70px 48px 120px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 70px;
  position: relative;
  align-items: start;
}

/* Sticky Left Section Navigation */
.homie-sticky-sidebar {
  position: sticky;
  top: 110px;
  align-self: start;
  z-index: 100;
}

.homie-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sidebar-nav-item {
  font-size: 19px;
  font-weight: 700;
  color: #a8a8a8;
  text-decoration: none;
  letter-spacing: -0.01em;
  line-height: 1.25;
  transition: color 0.2s ease, transform 0.2s ease;
  cursor: pointer;
  display: block;
}

.sidebar-nav-item:hover {
  color: #333333;
}

.sidebar-nav-item.active {
  color: #111111;
  font-weight: 800;
}

/* Main Sections Column */
.homie-sections-column {
  display: flex;
  flex-direction: column;
  gap: 110px;
}

.homie-section {
  scroll-margin-top: 110px;
}

.section-header {
  margin-bottom: 36px;
}

.section-tag {
  font-size: 24px;
  font-weight: 700;
  color: #a0a0a0;
  display: block;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.section-title {
  font-size: 38px;
  font-weight: 800;
  color: #111111;
  margin: 0 0 20px 0;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.section-divider {
  border: none;
  border-top: 1px solid #e5e5e5;
  margin: 0;
  width: 100%;
}

/* Common Image Utilities */
.homie-img {
  width: 100%;
  height: auto;
  display: block;
}

.rounded-corner {
  border-radius: 18px;
}

/* SECTION 01: Context */
.section-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.context-text-col p {
  font-size: 18px;
  line-height: 1.7;
  color: #222222;
  margin: 0;
}

/* SECTION 02: Problem Discovery */
.section-intro-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.section-intro-2col p {
  font-size: 17px;
  line-height: 1.7;
  color: #222222;
  margin: 0;
}

.quotes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.quote-card {
  background-color: #5be39d;
  border-radius: 18px;
  padding: 28px 24px;
  box-shadow: 0 8px 20px rgba(91, 227, 157, 0.28);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 175px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.quote-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(91, 227, 157, 0.36);
}

.quote-text {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  color: #111111;
  margin: 0 0 20px 0;
}

.quote-author {
  font-size: 14px;
  font-weight: 700;
  color: #111111;
  margin: 0;
}

/* SECTION 03: Brainstorming */
.brainstorm-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.round-title {
  font-size: 19px;
  font-weight: 700;
  color: #111111;
  margin: 0 0 18px 0;
  letter-spacing: -0.01em;
}

.round-img-wrap {
  width: 100%;
  height: 520px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.round-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* SECTION 04: Prioritization Map */
.prioritization-matrix-card {
  background-color: #9df5c8;
  border-radius: 20px;
  padding: 36px 44px;
  box-shadow: 0 8px 24px rgba(91, 227, 157, 0.2);
}

.matrix-top-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  text-align: center;
  margin-bottom: 24px;
  padding-left: 50px;
}

.effort-label {
  font-size: 18px;
  font-weight: 600;
  color: #2e5942;
}

.matrix-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid rgba(46, 89, 66, 0.25);
  position: relative;
}

.matrix-quadrant {
  padding: 36px 40px;
  position: relative;
  min-height: 170px;
}

.quad-top-left {
  border-right: 1px solid rgba(46, 89, 66, 0.25);
  border-bottom: 1px solid rgba(46, 89, 66, 0.25);
}

.quad-top-right {
  border-bottom: 1px solid rgba(46, 89, 66, 0.25);
}

.quad-bottom-left {
  border-right: 1px solid rgba(46, 89, 66, 0.25);
}

.quad-bottom-right {
  /* clean */
}

.impact-side-label {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: center center;
  font-size: 17px;
  font-weight: 600;
  color: #2e5942;
  white-space: nowrap;
}

.quadrant-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-left: 24px;
}

.map-item {
  font-size: 20px;
  font-weight: 700;
  color: #111111;
  letter-spacing: -0.01em;
}

/* SECTION 05: Low Fidelity */
.low-fidelity-text {
  margin-bottom: 36px;
}

.low-fidelity-text p {
  font-size: 18px;
  line-height: 1.7;
  color: #222222;
  margin: 0;
  max-width: 900px;
}

.low-fidelity-media {
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* SECTION 06: User Feedback */
.feedback-board-container {
  background-color: #e8e8e8;
  border-radius: 24px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.feedback-row img {
  border-radius: 16px;
}

/* SECTION 07: Features */
.features-mint-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 70px;
}

.feature-mint-box {
  background-color: #5be39d;
  border-radius: 24px;
  padding: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 24px;
  box-shadow: 0 8px 24px rgba(91, 227, 157, 0.2);
}

.feature-card-img {
  width: 100%;
  height: auto;
  border-radius: 18px;
  display: block;
}

.feature-subheading {
  font-size: 22px;
  font-weight: 800;
  color: #111111;
  margin: 0 0 10px 0;
  letter-spacing: -0.01em;
}

.feature-text-block p {
  font-size: 16px;
  line-height: 1.65;
  color: #333333;
  margin: 0;
}

.feature-block-group {
  margin-bottom: 70px;
}

.feature-header-row {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  margin-bottom: 28px;
  align-items: baseline;
}

.feature-block-title {
  font-size: 24px;
  font-weight: 800;
  color: #111111;
  margin: 0;
  letter-spacing: -0.01em;
}

.feature-block-desc {
  font-size: 16px;
  line-height: 1.65;
  color: #333333;
  margin: 0;
}

.features-black-card {
  background-color: #000000;
  border-radius: 24px;
  padding: 16px;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.15);
}

.features-black-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
}

.notif-footer-row {
  margin-top: 28px;
  margin-bottom: 0;
}

/* SECTION 08: What I learnt */
.learnings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.learning-heading {
  font-size: 20px;
  font-weight: 800;
  color: #111111;
  margin: 0 0 12px 0;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.learning-desc {
  font-size: 17px;
  line-height: 1.7;
  color: #333333;
  margin: 0;
}

/* SECTION 09: Next Steps */
.next-steps-grid {
  align-items: center;
}

.next-steps-text-col p {
  font-size: 18px;
  line-height: 1.75;
  color: #222222;
  margin: 0;
}

.next-steps-showcase-img {
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
}

/* Global Footer Adjustments */
.project-global-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.project-global-footer .footer-top-nav {
  justify-content: flex-end;
}

/* Responsive Adaptations */
@media (max-width: 1200px) {
  .homie-content-wrapper {
    grid-template-columns: 200px 1fr;
    gap: 40px;
    padding: 50px 32px 100px;
  }
  .homie-info-container {
    flex-direction: column;
    gap: 32px;
  }
  .homie-info-left {
    max-width: 100%;
    flex: none;
  }
  .homie-info-divider {
    display: none;
  }
  .quotes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .brainstorm-grid {
    grid-template-columns: 1fr;
  }
  .round-img-wrap {
    height: 420px;
  }
}

@media (max-width: 860px) {
  .homie-content-wrapper {
    display: flex;
    flex-direction: column;
    padding: 30px 20px 80px;
  }
  
  /* Horizontal compact sticky nav on mobile */
  .homie-sticky-sidebar {
    position: sticky;
    top: 70px;
    width: 100%;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 12px 0;
    margin-bottom: 30px;
    border-bottom: 1px solid #e5e5e5;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }
  .homie-sidebar-nav {
    flex-direction: row;
    gap: 20px;
    padding: 0 10px;
  }
  .sidebar-nav-item {
    font-size: 16px;
  }

  .homie-info-right {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .section-grid-2col,
  .section-intro-2col,
  .features-mint-pair,
  .feature-header-row,
  .learnings-grid,
  .next-steps-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .quotes-grid {
    grid-template-columns: 1fr;
  }
  }
}
