/* projects.css — Section Proyek: card, mockup, panel info */

/* ---------- PROJECTS ---------- */

.view-all {
  transition: background .2s;
}

.view-all:hover {
  background: var(--line);
}

.project {
  background: var(--pill-bg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform .3s ease, box-shadow .3s;
}

.canvas {
  background: radial-gradient(circle at 15% 0, rgba(255, 255, 255, .35), transparent 55%),
    linear-gradient(135deg, var(--a), var(--b));
}

/* mockup UI sederhana (ganti dengan <img> screenshot proyek) */
.mock {
  position: relative;
  overflow: hidden;
  width: 76%;
  height: 50%;
  margin: 12% auto 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .4);
  transform: translateY(calc(var(--p, 0) * .08px));
  will-change: transform;
}

.mock::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 14px;
  background: rgba(0, 0, 0, .07);
}

.mock::after {
  content: "";
  position: absolute;
  inset: 26px 12px 12px;
  opacity: .9;
  background:
    linear-gradient(var(--a), var(--a)) 0 0 / 34% 10px no-repeat,
    linear-gradient(rgba(0, 0, 0, .1), rgba(0, 0, 0, .1)) 0 20px / 60% 6px no-repeat,
    linear-gradient(rgba(0, 0, 0, .1), rgba(0, 0, 0, .1)) 0 34px / 46% 6px no-repeat,
    linear-gradient(var(--b), var(--b)) 100% 0 / 26% 100% no-repeat;
}

.info {
  background: color-mix(in srgb, var(--bs-body-bg) 72%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line);
}

.info .cat {
  color: var(--muted);
}

.arrow {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  transition: background .25s, color .25s, border-color .25s;
}

.project:hover .arrow {
  background: var(--hl);
  border-color: var(--hl);
  color: #fff;
}

@media (prefers-reduced-motion: no-preference) {
  .project:hover {
    transform: translateY(-4px) scale(1.02);
  }

  .project:hover .mock {
    transform: translateY(calc(var(--p, 0) * .08px - 4px));
  }
}