/* ==========================================================================
   SoftFYR Portfolio Styles (Cards, Grid, Filters, Project Detail View)
   Consistent with Plus Jakarta Sans & SoftFYR Brand Color System
   ========================================================================== */

/* Filters */
.pf-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 0 0 44px;
}
.pf-filters button {
  border: 1.5px solid #E4E0F5;
  background: #FFFFFF;
  color: #5F5B7A;
  padding: 10px 22px;
  border-radius: 999px;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.pf-filters button:hover {
  border-color: #B8A9F5;
  color: #14112B;
  background: #FAF9FF;
}
.pf-filters button.on {
  background: #6D4AE8;
  border-color: #6D4AE8;
  color: #FFFFFF;
  box-shadow: 0 4px 14px -3px rgba(109, 74, 232, 0.4);
}

/* Portfolio Grid */
.pf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

/* Project Card */
.pf-card {
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  border: 1px solid #E4E0F5;
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  color: #14112B;
  box-shadow: 0 4px 24px -14px rgba(15, 23, 42, 0.1);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s, border-color 0.25s;
  min-width: 0;
}
.pf-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 42px -16px rgba(109, 74, 232, 0.25);
  border-color: #B8A9F5;
}
.pf-thumb-wrap {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, rgba(109, 74, 232, 0.12), rgba(167, 139, 250, 0.2));
  border-bottom: 1px solid #F1EFFB;
}
.pf-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.pf-card:hover .pf-thumb {
  transform: scale(1.04);
}
.pf-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.pf-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pf-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(109, 74, 232, 0.08);
  border: 1px solid rgba(109, 74, 232, 0.18);
  color: #6D4AE8;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.pf-card h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #14112B;
  overflow-wrap: anywhere;
}
.pf-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: #5F5B7A;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pf-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #6D4AE8;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  padding-top: 14px;
  border-top: 1px solid #F1EFFB;
  margin-top: auto;
  transition: gap 0.2s;
}
.pf-card:hover .pf-more {
  gap: 10px;
}
.pf-more svg {
  transition: transform 0.2s;
}
.pf-card:hover .pf-more svg {
  transform: translateX(3px);
}
.pf-empty {
  text-align: center;
  color: #5F5B7A;
  padding: 48px 20px;
}
.pf-allbtn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  padding: 13px 28px;
  border: 1.5px solid #6D4AE8;
  border-radius: 12px;
  background: #FFFFFF;
  color: #6D4AE8;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.pf-allbtn:hover {
  background: #6D4AE8;
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -4px rgba(109, 74, 232, 0.4);
}

/* ==========================================================================
   Project Detail View
   ========================================================================== */
.pf-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}
.pf-main {
  display: grid;
  gap: 32px;
  min-width: 0;
}
.pf-hero {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 18px;
  display: block;
  background: linear-gradient(135deg, rgba(109, 74, 232, 0.15), rgba(167, 139, 250, 0.25));
  border: 1px solid #E4E0F5;
  box-shadow: 0 10px 32px -12px rgba(15, 23, 42, 0.12);
}
.pf-main h2 {
  margin: 0 0 16px;
  font-size: clamp(22px, 2.8vw, 28px);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #14112B;
}
.pf-text p {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.75;
  color: #5F5B7A;
}
.pf-side {
  display: grid;
  gap: 20px;
  position: sticky;
  top: 96px;
  min-width: 0;
}
.pf-box {
  background: #FFFFFF;
  border: 1px solid #E4E0F5;
  border-radius: 18px;
  padding: 26px;
  box-shadow: 0 4px 20px -10px rgba(15, 23, 42, 0.08);
}
.pf-box h3 {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 700;
  color: #14112B;
  letter-spacing: -0.015em;
}
.pf-facts {
  display: grid;
  gap: 14px;
  margin: 0;
}
.pf-facts div {
  display: grid;
  gap: 3px;
  padding-bottom: 10px;
  border-bottom: 1px solid #F1EFFB;
}
.pf-facts div:last-child {
  padding-bottom: 0;
  border-bottom: none;
}
.pf-facts dt {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9B97B5;
  font-weight: 700;
}
.pf-facts dd {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #14112B;
  overflow-wrap: anywhere;
}
.pf-links {
  display: grid;
  gap: 12px;
}
.pf-link {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 13px 20px;
  border-radius: 12px;
  background: #6D4AE8;
  color: #FFFFFF;
  text-decoration: none;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  font-weight: 600;
  font-size: 15px;
  text-align: center;
  box-shadow: 0 4px 14px -3px rgba(109, 74, 232, 0.4);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.pf-link:hover {
  background: #5B3DD1;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -4px rgba(109, 74, 232, 0.5);
  color: #FFFFFF;
}
.pf-link.alt {
  background: #FFFFFF;
  color: #6D4AE8;
  border: 1.5px solid #6D4AE8;
  box-shadow: none;
}
.pf-link.alt:hover {
  background: #F5F3FF;
  transform: translateY(-2px);
  color: #5B3DD1;
}
.pf-shots {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 4px 2px 16px;
  scroll-snap-type: x mandatory;
}
.pf-shots button {
  flex: 0 0 auto;
  border: 1px solid #E4E0F5;
  padding: 0;
  background: none;
  cursor: zoom-in;
  scroll-snap-align: start;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 18px -8px rgba(15, 23, 42, 0.15);
  transition: transform 0.2s, box-shadow 0.2s;
}
.pf-shots button:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 24px -8px rgba(109, 74, 232, 0.25);
  border-color: #B8A9F5;
}
.pf-shots img {
  height: 360px;
  width: auto;
  max-width: 78vw;
  display: block;
}
.pf-videos {
  display: grid;
  gap: 20px;
}
.pf-vid {
  aspect-ratio: 16/9;
  width: 100%;
  border: 1px solid #E4E0F5;
  border-radius: 16px;
  background: #000;
  display: block;
  box-shadow: 0 4px 20px -8px rgba(15, 23, 42, 0.12);
}
.pf-vt {
  margin: 0 0 8px;
  font-weight: 700;
  color: #14112B;
  font-size: 15px;
}
.pf-back {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 24px;
  color: #6D4AE8;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  padding: 9px 18px;
  background: #FFFFFF;
  border: 1px solid #E4E0F5;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
  transition: all 0.2s;
}
.pf-back:hover {
  background: #F5F3FF;
  border-color: #B8A9F5;
  transform: translateX(-3px);
  color: #5B3DD1;
}
.pf-lb {
  position: fixed;
  inset: 0;
  background: rgba(20, 17, 43, 0.88);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 24px;
  cursor: zoom-out;
}
.pf-lb img {
  max-width: 96vw;
  max-height: 92vh;
  border-radius: 12px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.5);
}

@media (max-width: 900px) {
  .pf-detail { grid-template-columns: minmax(0, 1fr); }
  .pf-side { position: static; }
  .pf-shots img { height: 280px; }
  .pf-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
}
@media (max-width: 600px) {
  .pf-grid { grid-template-columns: 1fr; }
  .pf-filters { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 6px; }
  .pf-filters button { flex: none; }
}
