/* ═══════════════════════════════════════
   NESAM MEDIA — Portfolio Page Styles
   ═══════════════════════════════════════ */

/* ─── Portfolio Section ─────────────────── */
.portfolio-section { padding: 80px 0 100px; background: var(--off-white); }

/* ─── Filter Bar ────────────────────────── */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 50px;
}
.filter-btn {
  padding: 10px 22px;
  border-radius: 50px;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* ─── Portfolio Grid ────────────────────── */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.portfolio-item {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
}
.portfolio-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

/* ─── Visual Cell ───────────────────────── */
.pi-visual {
  position: relative;
  height: 200px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Browser mockup inside portfolio */
.piv-browser {
  width: 90%; border-radius: 8px;
  overflow: hidden; box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  background: var(--white); border: 1px solid var(--border);
}
.piv-bar {
  background: #F1F3F4; padding: 7px 10px;
  display: flex; gap: 5px; align-items: center;
  border-bottom: 1px solid var(--border);
}
.piv-bar span { width: 8px; height: 8px; border-radius: 50%; }
.piv-bar span:nth-child(1){background:#FF5F56;}
.piv-bar span:nth-child(2){background:#FFBD2E;}
.piv-bar span:nth-child(3){background:#27C93F;}
.piv-content { padding: 10px; }
.piv-nav { height: 12px; background: #E8EBF0; border-radius: 4px; margin-bottom: 8px; }
.piv-nav.shop { background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%); height: 16px; }
.piv-nav.edu  { background: linear-gradient(90deg, #8B5CF6, #6D28D9); height: 16px; }
.piv-hero-block { height: 50px; background: linear-gradient(135deg, var(--primary), var(--primary-light)); border-radius: 6px; margin-bottom: 8px; }
.piv-hero-block.edu { background: linear-gradient(135deg, #8B5CF6, #6D28D9); }
.piv-cards { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
.piv-card { height: 30px; background: #F4F7FC; border-radius: 4px; }
.piv-product-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 6px; margin-top: 8px; }
.piv-prod { height: 50px; background: #F4F7FC; border-radius: 6px; }

/* Phone mockup in portfolio */
.piv-phone {
  width: 110px; height: 180px;
  background: var(--primary); border-radius: 22px; padding: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.ph-notch { width: 36px; height: 10px; background: rgba(0,0,0,0.4); border-radius: 6px; margin: 0 auto 8px; }
.ph-body { background: #F4F7FC; border-radius: 14px; padding: 8px; height: calc(100% - 22px); }
.pha-header { height: 28px; background: linear-gradient(135deg, var(--primary), var(--primary-light)); border-radius: 6px; margin-bottom: 8px; }
.pha-header.news { background: linear-gradient(135deg, #FF6B2B, #FF9A56); }
.pha-card { height: 40px; background: var(--white); border-radius: 8px; margin-bottom: 6px; box-shadow: var(--shadow-sm); }
.pha-row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.pha-row > div { height: 28px; background: var(--white); border-radius: 6px; box-shadow: var(--shadow-sm); }
.pha-article { height: 32px; background: var(--white); border-radius: 6px; margin-bottom: 6px; box-shadow: var(--shadow-sm); }
.pha-article.sm { height: 20px; }

/* Book mockup in portfolio */
.piv-book-wrap { display: flex; justify-content: center; align-items: center; height: 100%; }
.pvb-book { display: flex; box-shadow: var(--shadow-md); border-radius: 2px 10px 10px 2px; }
.pvb-spine { width: 16px; background: #5B21B6; border-radius: 2px 0 0 2px; }
.pvb-spine.blue { background: #1D4ED8; }
.pvb-cover {
  width: 130px; height: 160px; padding: 16px 14px;
  display: flex; flex-direction: column; gap: 8px;
  border-radius: 0 10px 10px 0;
}
.pvb-cover.purple { background: linear-gradient(160deg, #7C3AED, #5B21B6); }
.pvb-cover.blue-cov { background: linear-gradient(160deg, #2563EB, #1D4ED8); }
.pvbc-title { height: 10px; background: rgba(255,255,255,0.8); border-radius: 3px; }
.pvbc-img { flex: 1; background: rgba(255,255,255,0.15); border-radius: 6px; }
.pvbc-author { height: 8px; background: rgba(255,255,255,0.5); border-radius: 3px; width: 70%; }

/* Audio visual in portfolio */
.piv-audio {
  display: flex; flex-direction: column; align-items: center;
  gap: 12px; width: 90%; padding: 16px;
  background: var(--primary); border-radius: 12px;
  box-shadow: var(--shadow-md);
}
.pva-cover { width: 60px; height: 60px; border-radius: 12px; background: var(--gradient-accent); box-shadow: var(--shadow-accent); }
.pva-waveform { display: flex; align-items: flex-end; gap: 4px; height: 40px; width: 100%; }
.pva-bar { flex: 1; background: rgba(255,107,43,0.6); border-radius: 2px; }

/* Video visual in portfolio */
.piv-video { width: 90%; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow-md); }
.pvv-screen {
  height: 120px; background: linear-gradient(135deg, #1a1a2e, #16213e);
  display: flex; align-items: center; justify-content: center; position: relative;
}
.pvv-screen.reel { background: linear-gradient(135deg, #4c0519, #881337); }
.pvv-play {
  width: 40px; height: 40px; background: rgba(255,107,43,0.9); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 0.9rem;
}
.pvv-bar { height: 8px; background: #1a1a1a; }

/* ─── Background colors for visuals ────── */
.web-proj   { background: linear-gradient(135deg, #EFF6FF, #DBEAFE); }
.web-proj2  { background: linear-gradient(135deg, #F0FFF4, #DCFCE7); }
.edu-proj   { background: linear-gradient(135deg, #F5F3FF, #EDE9FE); }
.app-proj   { background: linear-gradient(135deg, #ECFDF5, #D1FAE5); }
.app-proj2  { background: linear-gradient(135deg, #FFF7ED, #FFEDD5); }
.ebook-proj { background: linear-gradient(135deg, #F5F3FF, #EDE9FE); }
.ebook-proj2{ background: linear-gradient(135deg, #EFF6FF, #DBEAFE); }
.audio-proj { background: linear-gradient(135deg, #0A1F44, #1A3A6E); }
.video-proj { background: linear-gradient(135deg, #111, #1e293b); }
.video-proj2{ background: linear-gradient(135deg, #111, #4c0519); }

/* ─── Overlay on hover ──────────────────── */
.pi-overlay {
  position: absolute; inset: 0;
  background: rgba(10,31,68,0.8);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: var(--transition);
}
.portfolio-item:hover .pi-overlay { opacity: 1; }
.pio-actions { display: flex; gap: 12px; }
.pio-btn {
  width: 46px; height: 46px;
  background: var(--gradient-accent);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 1rem;
  transition: var(--transition);
  box-shadow: var(--shadow-accent);
}
.pio-btn:hover { transform: scale(1.1); }

/* ─── Info Cell ─────────────────────────── */
.pi-info { padding: 20px 22px; }
.pi-category {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.72rem; font-weight: 600;
  color: var(--accent); text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 8px;
}
.pi-info h4 { font-size: 1rem; color: var(--primary); margin-bottom: 6px; }
.pi-info p  { font-size: 0.83rem; line-height: 1.6; margin-bottom: 12px; }
.pi-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pi-tags span {
  background: var(--off-white); border: 1px solid var(--border);
  font-size: 0.72rem; font-weight: 500; color: var(--text-muted);
  padding: 3px 10px; border-radius: 50px;
}

/* ─── CTA Banner (reuse) ────────────────── */
.cta-banner { background: var(--white); padding: 70px 0; }
.cta-inner {
  background: var(--gradient-hero); border-radius: 24px;
  padding: 56px 60px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 40px; position: relative; overflow: hidden;
}
.cta-inner::before {
  content: ''; position: absolute; right: -80px; top: -80px;
  width: 280px; height: 280px; background: rgba(255,107,43,0.12); border-radius: 50%;
}
.cta-text h2 { color: var(--white); font-size: 2rem; margin-bottom: 8px; }
.cta-text h2 span { color: var(--accent-light); }
.cta-text p  { color: rgba(255,255,255,0.65); }
.cta-actions { display: flex; gap: 14px; flex-shrink: 0; flex-wrap: wrap; }

/* ─── Responsive ────────────────────────── */
@media (max-width: 1024px) {
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .portfolio-grid { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; text-align: center; padding: 40px 28px; }
  .cta-actions { justify-content: center; }
}
