/* ==========================================================================
   Nomad but Digital — Portfolio Case-Study HTML/CSS Mockups & Interactions
   ========================================================================== */

.nbd-project-card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--nbd-white);
}

.nbd-mock {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.nbd-mock__layer-a,
.nbd-mock__layer-b {
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

/* --- CARD 1: E-COMMERCE BRAND (Pink, Dark, White) --- */
.nbd-mock--ecom {
  background: linear-gradient(145deg, #1A1B17 0%, #2b1824 60%, #FF0587 140%);
}
.nbd-mock-ecom__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.nbd-mock-chip {
  font-size: 0.62rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}
.nbd-mock-chip--pink {
  background: #FF0587;
  color: #FFFEFE;
}
.nbd-mock-chip--dark {
  background: rgba(255, 254, 254, 0.14);
  color: #FFFEFE;
  border: 1px solid rgba(255, 254, 254, 0.2);
}
.nbd-mock-ecom__stage {
  display: grid;
  grid-template-columns: 1.45fr 0.55fr;
  gap: 10px;
  align-items: end;
  margin-top: 8px;
}
.nbd-mock-ecom__ad {
  background: #FFFEFE;
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.nbd-mock-ecom__product {
  height: 44px;
  border-radius: 7px;
  background: linear-gradient(135deg, rgba(255, 5, 135, 0.14), rgba(255, 187, 2, 0.18));
  display: flex;
  align-items: center;
  justify-content: center;
}
.nbd-mock-ecom__bag {
  width: 22px;
  height: 24px;
  border-radius: 4px 4px 6px 6px;
  background: #FF0587;
  position: relative;
}
.nbd-mock-ecom__bag::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 5px;
  width: 12px;
  height: 7px;
  border: 2px solid #1A1B17;
  border-bottom: none;
  border-radius: 6px 6px 0 0;
}
.nbd-mock-ecom__lines {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nbd-mock-ecom__lines span {
  display: block;
  height: 5px;
  border-radius: 4px;
  background: rgba(26, 27, 23, 0.14);
}
.nbd-mock-ecom__lines span:first-child { width: 82%; background: #1A1B17; }
.nbd-mock-ecom__lines span:last-child { width: 58%; }
.nbd-mock-ecom__tag {
  font-size: 0.6rem;
  font-weight: 800;
  color: #FF0587;
}
.nbd-mock-ecom__thumbs {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.nbd-mock-ecom__thumb {
  display: block;
  height: 42px;
  border-radius: 8px;
  border: 1px solid rgba(255, 254, 254, 0.25);
}
.nbd-mock-ecom__thumb--1 { background: linear-gradient(135deg, #FF0587, #ff6db8); }
.nbd-mock-ecom__thumb--2 { background: linear-gradient(135deg, #FFFEFE, #9DE8FF); }

/* --- CARD 2: REAL ESTATE (Sky Blue, White, Dark) --- */
.nbd-mock--realty {
  background: linear-gradient(150deg, #9DE8FF 0%, #dcf6ff 65%, #FFFEFE 100%);
  justify-content: center;
}
.nbd-mock-browser {
  background: #FFFEFE;
  border-radius: 10px;
  border: 1px solid rgba(26, 27, 23, 0.1);
  box-shadow: 0 10px 24px rgba(26, 27, 23, 0.08);
  overflow: hidden;
}
.nbd-mock-browser__bar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 9px;
  background: #f3f6f8;
  border-bottom: 1px solid rgba(26, 27, 23, 0.07);
}
.nbd-mock-browser__bar span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(26, 27, 23, 0.25);
}
.nbd-mock-realty__search {
  margin-left: 6px;
  flex: 1;
  background: #FFFEFE;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.6rem;
  font-weight: 700;
  color: #1A1B17;
  border: 1px solid rgba(26, 27, 23, 0.09);
}
.nbd-mock-realty__grid {
  padding: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-items: center;
}
.nbd-mock-realty__prop {
  height: 58px;
  border-radius: 8px;
  background: linear-gradient(180deg, #9DE8FF 0%, #e7f9ff 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}
.nbd-mock-realty__roof {
  width: 0;
  height: 0;
  border-left: 18px solid transparent;
  border-right: 18px solid transparent;
  border-bottom: 13px solid #1A1B17;
}
.nbd-mock-realty__house {
  width: 28px;
  height: 18px;
  background: #FFFEFE;
  border: 2px solid #1A1B17;
  border-top: none;
}
.nbd-mock-realty__meta {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.nbd-mock-realty__pill {
  align-self: flex-start;
  background: #1A1B17;
  color: #FFFEFE;
  font-size: 0.58rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
}
.nbd-mock-realty__bars {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nbd-mock-realty__bars span {
  display: block;
  height: 5px;
  border-radius: 4px;
  background: rgba(26, 27, 23, 0.16);
}
.nbd-mock-realty__bars span:first-child { width: 90%; }
.nbd-mock-realty__bars span:last-child { width: 65%; }
.nbd-mock-realty__pin {
  position: absolute;
  bottom: 10px;
  right: 12px;
  background: #1A1B17;
  color: #FFFEFE;
  border-radius: 999px;
  padding: 4px 9px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.6rem;
  font-weight: 800;
  box-shadow: 0 6px 14px rgba(26, 27, 23, 0.18);
}
.nbd-mock-realty__pin svg {
  width: 11px;
  height: 11px;
  color: #9DE8FF;
}

/* --- CARD 3: D2C LIFESTYLE BRAND (Yellow, White, Dark) --- */
.nbd-mock--ugc {
  background: linear-gradient(145deg, #FFBB02 0%, #ffe082 70%, #FFFEFE 100%);
  justify-content: center;
  align-items: center;
}
.nbd-mock-ugc__stack {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nbd-mock-ugc__frame {
  border-radius: 11px;
  border: 1.5px solid rgba(26, 27, 23, 0.12);
  box-shadow: 0 10px 22px rgba(26, 27, 23, 0.12);
}
.nbd-mock-ugc__frame--back {
  position: absolute;
  left: 14px;
  width: 78px;
  height: 98px;
  background: #FFFEFE;
  transform: rotate(-7deg);
  padding: 8px;
  font-size: 0.58rem;
  font-weight: 800;
  color: #1A1B17;
}
.nbd-mock-ugc__frame--side {
  position: absolute;
  right: 16px;
  width: 74px;
  height: 94px;
  background: #1A1B17;
  transform: rotate(7deg);
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 8px;
}
.nbd-mock-ugc__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #FFBB02;
}
.nbd-mock-ugc__frame--front {
  position: relative;
  z-index: 2;
  width: 112px;
  height: 122px;
  background: #1A1B17;
  color: #FFFEFE;
  padding: 9px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}
.nbd-mock-ugc__reel {
  align-self: flex-start;
  background: #FFBB02;
  color: #1A1B17;
  font-size: 0.56rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
}
.nbd-mock-ugc__play {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #FFFEFE;
  color: #1A1B17;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
}
.nbd-mock-ugc__play svg {
  width: 15px;
  height: 15px;
  margin-left: 2px;
}
.nbd-mock-ugc__timeline {
  width: 100%;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 254, 254, 0.22);
  overflow: hidden;
}
.nbd-mock-ugc__timeline span {
  display: block;
  width: 62%;
  height: 100%;
  background: #FFBB02;
}

/* --- CARD 4: SERVICE PLATFORM (Dark, Sky Blue, White) --- */
.nbd-mock--app {
  background: linear-gradient(145deg, #1A1B17 0%, #262922 100%);
  justify-content: center;
}
.nbd-mock-app__desktop {
  width: 84%;
  background: #FFFEFE;
  border-radius: 9px;
  overflow: hidden;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
}
.nbd-mock-app__head {
  display: flex;
  gap: 4px;
  padding: 6px 8px;
  background: #eef3f5;
}
.nbd-mock-app__head span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(26, 27, 23, 0.28);
}
.nbd-mock-app__layout {
  display: grid;
  grid-template-columns: 0.32fr 0.68fr;
  gap: 8px;
  padding: 9px;
}
.nbd-mock-app__sidebar {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.nbd-mock-app__sidebar span {
  height: 7px;
  border-radius: 4px;
  background: rgba(26, 27, 23, 0.14);
}
.nbd-mock-app__sidebar span:first-child { background: #1A1B17; }
.nbd-mock-app__panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.nbd-mock-app__card {
  height: 54px;
  border-radius: 6px;
  background: rgba(26, 27, 23, 0.08);
}
.nbd-mock-app__card--sky {
  background: #9DE8FF;
}
.nbd-mock-app__phone {
  position: absolute;
  right: 12px;
  bottom: 10px;
  width: 58px;
  height: 92px;
  border-radius: 10px;
  background: #1A1B17;
  border: 2px solid #9DE8FF;
  padding: 6px 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35);
}
.nbd-mock-app__notch {
  width: 20px;
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 254, 254, 0.35);
}
.nbd-mock-app__pcard {
  width: 100%;
  height: 36px;
  border-radius: 5px;
  background: #FFFEFE;
}
.nbd-mock-app__pbtn {
  width: 100%;
  text-align: center;
  background: #9DE8FF;
  color: #1A1B17;
  font-size: 0.54rem;
  font-weight: 800;
  padding: 2px 0;
  border-radius: 4px;
}

/* --- HOVER INTERACTIONS (Desktop Pointer Only) --- */
@media (hover: hover) and (pointer: fine) {
  .nbd-project-card {
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
  }
  .nbd-project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 40px rgba(26, 27, 23, 0.11);
  }
  .nbd-project-card:hover .nbd-mock__layer-a {
    transform: translateY(-3px) scale(1.03);
  }
  .nbd-project-card:hover .nbd-mock__layer-b {
    transform: translate(3px, -3px);
  }
  .nbd-project-card .nbd-circle-arrow svg {
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .nbd-project-card:hover .nbd-circle-arrow svg {
    transform: translateX(3px) rotate(-12deg);
  }
}

.nbd-project-card a:focus-visible {
  outline: 2px solid var(--nbd-pink);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .nbd-mock__layer-a,
  .nbd-mock__layer-b,
  .nbd-project-card,
  .nbd-project-card .nbd-circle-arrow svg {
    transition: none !important;
  }
}
