/* ── IFRAME PORTFOLIO ─────────────────────────────────── */
.pf-card {
  border-radius: 16px;
  overflow: hidden;
  background: #0f1526;
  border: 1px solid rgba(255,255,255,0.07);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
}
.pf-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(0,0,0,0.4); }

.pf-iframe-wrap {
  width: 100%;
  height: 220px;
  overflow: hidden;
  position: relative;
  background: #0a0e1a;
  cursor: pointer;
}
.pf-iframe-wrap iframe {
  width: 1280px;
  height: 760px;
  border: none;
  transform: scale(0.265);
  transform-origin: top left;
  pointer-events: none;
  display: block;
}

.pf-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(5,8,18,0.92) 0%, rgba(5,8,18,0.2) 60%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex; align-items: flex-end; justify-content: flex-end;
  padding: 12px;
  gap: 10px;
  cursor: pointer;
}
.pf-card:hover .pf-overlay { opacity: 1; }
.pf-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: none; cursor: pointer;
  font-size: 1rem; text-decoration: none;
  transition: transform 0.2s, background 0.2s;
}
.pf-btn:hover { transform: scale(1.15); }
.pf-btn-expand { background: rgba(255,255,255,0.15); color: #fff; backdrop-filter: blur(6px); }
.pf-btn-open   { background: var(--accent-color, #0066ff); color: #fff; }

.pf-meta {
  padding: 14px 16px;
  display: flex; justify-content: space-between; align-items: center;
}
.pf-title { font-weight: 700; font-size: 0.95rem; color: #fff; }
.pf-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.pf-tag {
  font-size: 0.7rem; padding: 3px 10px; border-radius: 50px;
  background: rgba(255,255,255,0.07); color: #aaa; border: 1px solid rgba(255,255,255,0.1);
}

/* ── MODAL ──────────────────────────────────────────────── */
#pf-modal {
  display: none; position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.88); backdrop-filter: blur(8px);
  align-items: center; justify-content: center;
}
#pf-modal.open { display: flex; }
.pf-modal-inner {
  width: 90vw; height: 88vh; max-width: 1200px;
  background: #0a0e1a; border-radius: 20px; overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 40px 100px rgba(0,0,0,0.7);
  border: 1px solid rgba(255,255,255,0.1);
}
.pf-modal-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.pf-modal-title { font-weight: 700; font-size: 0.95rem; color: #fff; }
.pf-modal-actions { display: flex; gap: 10px; }
.pf-modal-btn {
  padding: 7px 18px; border-radius: 50px; font-size: 0.82rem;
  font-weight: 600; cursor: pointer; border: none;
  text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
  transition: all 0.2s;
}
.pf-modal-btn-open  { background: #0066ff; color: #fff; }
.pf-modal-btn-open:hover  { background: #0052cc; }
.pf-modal-btn-close { background: rgba(255,255,255,0.08); color: #ccc; }
.pf-modal-btn-close:hover { background: rgba(255,255,255,0.15); color: #fff; }
#pf-modal iframe { flex: 1; border: none; width: 100%; height: 100%; }

/* ── CAROUSEL PAGINATION ────────────────────────────────── */
.pf-pagination {
  position: relative !important;
  margin-top: 32px !important;
  bottom: 0 !important;
}
.swiper-pagination-bullet {
  background: var(--accent-color, #0066ff);
  opacity: 0.5;
}
.swiper-pagination-bullet-active {
  opacity: 1;
}

/* ── CAROUSEL PAGINATION & NAVIGATION ────────────────────────────────── */
.pf-pagination {
  position: relative !important;
  margin-top: 32px !important;
  bottom: 0 !important;
}
.swiper-pagination-bullet {
  background: var(--accent-color, #0066ff);
  opacity: 0.5;
}
.swiper-pagination-bullet-active {
  opacity: 1;
}

/* Outer Navigation Arrows */
.custom-nav-next, .custom-nav-prev {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  backdrop-filter: blur(4px);
  transition: all 0.3s;
  display: flex !important;
  align-items: center;
  justify-content: center;
  z-index: 10;
  cursor: pointer;
}
.custom-nav-prev { left: -60px; }
.custom-nav-next { right: -60px; }

@media (max-width: 992px) {
  .custom-nav-prev { left: -10px; }
  .custom-nav-next { right: -10px; }
}

.custom-nav-next:hover, .custom-nav-prev:hover {
  background: var(--accent-color, #0066ff);
  transform: translateY(-50%) scale(1.1);
}
.custom-nav-next::after, .custom-nav-prev::after {
  font-family: 'bootstrap-icons';
  font-size: 1.2rem;
  font-weight: 900;
}
.custom-nav-next::after { content: "\f285"; } /* bi-chevron-right */
.custom-nav-prev::after { content: "\f284"; } /* bi-chevron-left */

