/* =============================================
   PROJECT DETAILS PAGE SPECIFIC STYLES
   ============================================= */
.project-details-page {
  position: relative;
  min-height: 100vh;
  background-color: #000000;
  overflow-x: hidden;
}

/* =============================================
   STICKY/FIXED HERO SECTION
   ============================================= */
.project-details__hero-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px 0;
  background-color: #000000;
  background-image: url('../images/projects_bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
  box-sizing: border-box;
}

.project-details__back-wrapper {
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 0;
  color: var(--color-white);
  white-space: nowrap;
  padding: 10px 20px;
  min-height: 40px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  text-decoration: none;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 4px 20px rgba(0, 0, 0, 0.4);
}

.btn-back:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-back svg {
  stroke: var(--color-white);
  transition: transform 0.3s ease;
}

.btn-back:hover svg {
  transform: translateX(-3px);
}

.project-details__hero-mockup {
  width: 100%;
  max-width: 960px;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7);
  box-sizing: border-box;
  transform: translateY(20px);
}

.project-details__hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* =============================================
   BOTTOM SHEET SLIDE OVER
   ============================================= */
.project-details__bottom-sheet {
  position: relative;
  z-index: 2;
  margin-top: 100vh; /* Pushes it down by exactly one viewport height! */
  background-color: #000000; /* Pitch black */
  border-top-left-radius: 40px;
  border-top-right-radius: 40px;
  padding-top: 80px;
  box-shadow: 0 -30px 60px rgba(0, 0, 0, 0.95);
  box-sizing: border-box;
}

/* Header Row: Title & Visit button */
.project-details__header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.project-details__title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 600;
  line-height: 1.12;
  color: var(--color-white);
  letter-spacing: -0.02em;
  margin: 0;
}

.btn--green {
  background: var(--color-green);
  color: #04140a !important;
  padding: 13px 28px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  text-decoration: none;
  transition: background var(--transition);
  display: inline-block;
  text-align: center;
  box-shadow: 0 4px 15px rgba(74, 222, 128, 0.3);
}

.btn--green:hover {
  background: #3bb75e;
}

/* Metadata Grid: Two columns with dashed bottom borders */
.project-info-card__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 64px;
  margin-bottom: 40px;
}

.project-info-card__col {
  display: flex;
  flex-direction: column;
}

.project-info-card__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0 8px;
}

.project-info-card__label {
  font-size: 15px;
  color: var(--color-white);
  font-weight: 600;
}

.project-info-card__value {
  font-size: 15px;
  color: var(--color-gray-400);
}

/* Diagonal Slashed Divider Line */
.slashed-divider {
  height: 4px;
  width: 100%;
  background-image: repeating-linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.25),
    rgba(255, 255, 255, 0.25) 1.5px,
    transparent 1.5px,
    transparent 6px
  );
  border: none;
  margin: 0;
  opacity: 0.8;
}

/* Main Image */
.project-details__main-img-wrapper {
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  aspect-ratio: 16 / 9;
  margin-top: 16px;
  margin-bottom: 56px;
  border-radius: 24px;
}

.project-details__main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* =============================================
   DESCRIPTION SECTIONS
   ============================================= */
.project-details__description-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 48px;
  margin-bottom: 64px;
}

.details-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.details-section__title {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-white);
}

.details-section__text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-gray-400);
}

.details-section__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.details-section__list li {
  font-size: 15px;
  color: var(--color-gray-400);
  position: relative;
  padding-left: 20px;
}

.details-section__list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--color-green);
  font-size: 18px;
  line-height: 1;
  top: -2px;
}

/* =============================================
   GALLERY MOCKUPS V2: Full, Side-by-side, Full
   ============================================= */
.project-details__gallery-v2 {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 64px;
}

.gallery-card {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  width: 100%;
}

.gallery-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-card--full {
  aspect-ratio: 16 / 8;
}

.gallery-card__side-by-side {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.gallery-card__side-by-side .gallery-card {
  aspect-ratio: 16 / 10;
}

/* =============================================
   MORE PROJECTS SECTION (FULL WIDTH CAROUSEL SCROLL)
   ============================================= */
.project-details__more-section-wrapper {
  position: relative;
  padding: 48px 0;
  margin-top: 80px;
  overflow: visible;
}

.project-details__more {
  margin-bottom: 24px;
}

.project-details__more-title {
  font-size: clamp(26px, 2.6vw, 36px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--color-white);
  margin: 0;
}

/* More projects: a plain grid on the page grid */
#more-projects-scroll { /* aligned to the page grid: same edges as the title and the content above */
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px 24px;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 8px var(--gutter) 0;
  width: 100%;
  box-sizing: border-box;
}

/* Hide scrollbar for clean view */
#more-projects-scroll::-webkit-scrollbar {
  display: none;
}
#more-projects-scroll {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

#more-projects-scroll .portfolio-item-card {
  transform: none !important; /* Disables staggered vertical translation offsets */
  min-width: 0;
}
@media (max-width: 1024px) {
  #more-projects-scroll { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  #more-projects-scroll { grid-template-columns: 1fr; }
}

/* Section Frame overlay borders with L-shaped crop marks */
.project-details__section-frame {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  /* the content box plus a small, even overhang on both sides */
  --frame-out: clamp(12px, 2vw, 24px);
  width: calc(min(100%, var(--container-max)) - 2 * var(--gutter) + 2 * var(--frame-out));
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  pointer-events: none;
  z-index: 10;
}

.project-details__section-frame::before,
.project-details__section-frame::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 10px;
  left: 0;
}

.project-details__section-frame::before {
  top: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.35);
  border-right: 1px solid rgba(255, 255, 255, 0.35);
}

.project-details__section-frame::after {
  bottom: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.35);
  border-right: 1px solid rgba(255, 255, 255, 0.35);
}



/* =============================================
   MOBILE RESPONSIVENESS OVERRIDES
   ============================================= */
@media (max-width: 900px) {
  .project-details__hero-wrapper {
    height: auto;
    position: relative;
    padding-top: 96px;
    padding-bottom: 40px;
  }
  
  .project-details__bottom-sheet {
    margin-top: 0;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    padding-top: 40px;
  }

  .project-details__header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  
  .btn--green {
    width: 100%;
  }

  .project-info-card__grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .project-details__description-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .gallery-card__side-by-side {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .gallery-card--full {
    aspect-ratio: 16 / 10;
  }
  

}
