/* ══════════════════════════════════════════════
   MANINHO CRIATIVOS — Portfolio Page
   Mesma identidade visual da página principal
   ══════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cyan:   #00d4ff;
  --blue:   #0055ff;
  --dark:   #000000;
  --dark2:  #060a12;
  --dark3:  #0a1020;
  --border: rgba(0,212,255,0.15);
  --text:   #ffffff;
  --text2:  rgba(255,255,255,0.58);
  --text3:  rgba(255,255,255,0.28);
  --ease:   cubic-bezier(0.4,0,0.2,1);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--dark);
  color: var(--text);
  overflow-x: hidden;
  min-height: 100dvh;
}

.gtext {
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ══ NAVBAR ══ */
.pf-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.pf-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.pf-nav-back {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text2);
  text-decoration: none;
  transition: color 0.2s;
}
.pf-nav-back:hover { color: var(--cyan); }

.pf-nav-logo { display: flex; align-items: center; }
.pf-logo-img { height: 30px; width: auto; object-fit: contain; }
.pf-logo-text { font-size: 0.95rem; font-weight: 800; color: var(--cyan); }

.pf-nav-cta {
  padding: 9px 20px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: #fff;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 0 20px rgba(0,212,255,0.25);
  transition: all 0.22s var(--ease);
}
.pf-nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 32px rgba(0,212,255,0.45);
}

/* ══ HERO ══ */
.pf-hero {
  position: relative;
  padding: 140px 24px 80px;
  text-align: center;
  overflow: hidden;
}

.pf-hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
  animation: orb-drift 18s ease-in-out infinite alternate;
}
.orb-a { width: 500px; height: 500px; background: var(--cyan); top: -100px; left: -100px; }
.orb-b { width: 400px; height: 400px; background: var(--blue); bottom: -100px; right: -80px; animation-delay: -9s; }
@keyframes orb-drift {
  from { transform: translate(0,0); }
  to   { transform: translate(30px,-40px); }
}

.pf-hero-content { position: relative; z-index: 1; }

.pf-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 12px;
}

.pf-hero-title {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 900;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 16px;
}

.pf-hero-sub {
  font-size: 1rem;
  color: var(--text2);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ══ FILTROS ══ */
.pf-filters {
  position: sticky;
  top: 62px;
  z-index: 90;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding: 12px 0;
}

.pf-filters-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.pf-filters-inner::-webkit-scrollbar { display: none; }

.pf-filter {
  flex-shrink: 0;
  padding: 8px 18px;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: var(--text2);
  font-size: 0.82rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.22s var(--ease);
  white-space: nowrap;
}
.pf-filter:hover { background: rgba(255,255,255,0.08); color: var(--text); }
.pf-filter.active {
  background: linear-gradient(135deg, rgba(0,212,255,0.15), rgba(0,85,255,0.15));
  border-color: rgba(0,212,255,0.35);
  color: var(--cyan);
}

/* ══ GRID MASONRY ══ */
.pf-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.pf-grid {
  columns: 4 220px;
  gap: 14px;
}

/* ── Card ── */
.pf-card {
  break-inside: avoid;
  margin-bottom: 14px;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  cursor: zoom-in;
  border: 1px solid rgba(255,255,255,0.06);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease), box-shadow 0.3s;
}

.pf-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.pf-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 16px 48px rgba(0,0,0,0.6), 0 0 0 1px rgba(0,212,255,0.25);
}

.pf-card img {
  width: 100%;
  display: block;
  object-fit: cover;
  background: var(--dark3);
}

/* Overlay hover */
.pf-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: flex-end;
  padding: 16px;
}
.pf-card:hover .pf-card-overlay { opacity: 1; }

.pf-card-info { display: flex; flex-direction: column; gap: 3px; }
.pf-card-title { font-size: 0.85rem; font-weight: 700; line-height: 1.2; }
.pf-card-cat {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--cyan);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Skeleton */
.pf-skeleton {
  break-inside: avoid;
  margin-bottom: 14px;
  border-radius: 14px;
  background: linear-gradient(90deg, #0a1020 25%, #111928 50%, #0a1020 75%);
  background-size: 200% 100%;
  animation: shimmer 1.6s infinite;
  height: 260px;
}
.pf-skeleton.tall { height: 380px; }
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}

.pf-empty {
  text-align: center;
  color: var(--text3);
  padding: 60px 0;
  font-size: 0.95rem;
}

/* ══ CTA SECTION ══ */
.pf-cta-section {
  position: relative;
  background: var(--dark2);
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 100px 24px;
  text-align: center;
  overflow: hidden;
}

.pf-cta-orb {
  position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0,85,255,0.18), transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  filter: blur(60px);
  border-radius: 50%;
}

.pf-cta-inner { position: relative; z-index: 1; max-width: 560px; margin: 0 auto; }

.pf-cta-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 900;
  letter-spacing: -1px;
  margin-bottom: 12px;
}

.pf-cta-sub {
  font-size: 1rem;
  color: var(--text2);
  margin-bottom: 32px;
  line-height: 1.7;
}

.pf-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #fff;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 0 32px rgba(37,211,102,0.3);
  transition: all 0.25s var(--ease);
}
.pf-cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 48px rgba(37,211,102,0.5);
}

/* ══ LIGHTBOX ══ */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(12px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
.lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.lb-close {
  position: absolute;
  top: 20px; right: 20px;
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text2);
  transition: all 0.2s;
  z-index: 10;
}
.lb-close:hover { background: rgba(255,255,255,0.16); color: #fff; }

.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text2);
  transition: all 0.2s;
  z-index: 10;
}
.lb-nav:hover { background: rgba(0,212,255,0.15); border-color: var(--cyan); color: var(--cyan); }
.lb-prev { left: 20px; }
.lb-next { right: 20px; }

.lb-img-wrap {
  max-width: 90vw;
  max-height: 88dvh;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.lb-img-wrap img {
  max-width: 90vw;
  max-height: 80dvh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 40px 100px rgba(0,0,0,0.8);
  transform: scale(0.96);
  transition: transform 0.35s var(--ease), opacity 0.35s;
}
.lightbox.open .lb-img-wrap img { transform: scale(1); }

.lb-info {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text2);
}
.lb-title { font-size: 0.9rem; font-weight: 700; color: var(--text); }
.lb-cat   { font-size: 0.75rem; font-weight: 600; color: var(--cyan); }

.lb-counter {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.78rem;
  color: var(--text3);
  font-weight: 600;
  background: rgba(255,255,255,0.06);
  padding: 5px 12px;
  border-radius: 20px;
}

/* ══ RESPONSIVE ══ */
@media (max-width: 900px) {
  .pf-grid { columns: 3 180px; }
}

@media (max-width: 600px) {
  .pf-hero { padding: 110px 20px 60px; }
  .pf-main { padding: 28px 16px 60px; }
  .pf-grid { columns: 2 150px; gap: 10px; }
  .pf-card { margin-bottom: 10px; }
  .pf-skeleton { height: 200px; }
  .pf-skeleton.tall { height: 290px; }
  .lb-nav { width: 38px; height: 38px; }
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
  .pf-nav-inner { padding: 14px 16px; }
}
