/* ========================================
   portfolio.css — Filtro Angola Portfólio
   ======================================== */

/* ── ACTIVE NAV ── */
.active-nav-link { color: var(--accent) !important; font-weight: 700; }

/* ═══════════════════════════════════════
   HERO
═══════════════════════════════════════ */
.pf-hero {
  position: relative;
  background: white;
  padding: 12rem 0 3rem;
  overflow: hidden;
  text-align: center;

}

.pf-hero__bg-shapes { position: absolute; inset: 0
}


.pf-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0,180,216,0.2);
  border: 1px solid rgba(0,180,216,0.35);
  color: #00D4FF;
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 1.25rem;
}

.pf-label--dark {
  background: rgba(0,26,51,0.08);
  border: 1px solid rgba(0,26,51,0.15);
  color: var(--accent);
}

.pf-hero__content h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: #001A33;
  line-height: 1.1;
  margin-bottom: 1rem;
  letter-spacing: -1px;
}

.pf-accent {
  background: linear-gradient(90deg, #00B4D8, #48CAE4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pf-hero__content p {
  font-size: 1.05rem;
  color: #555;
  max-width: 620px;
  margin: 0 auto 2.5rem;
  line-height: 1.75;
}

.pf-hero .btn--primary {
  background: #001A33;
  color: white;
  padding: 0.9rem 2rem;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.pf-hero .btn--primary:hover {
  background: #00B4D8;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,180,216,0.4);
}

/* ── Counters ── */
.pf-hero__counters {
  display: inline-flex;
  align-items: center;
  gap: 0;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 16px;
  padding: 1.5rem 2.5rem;
  backdrop-filter: blur(10px);
}

.pf-counter {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 2rem;
}
.pf-counter strong {
  font-size: 1.85rem;
  font-weight: 800;
  color: #00D4FF;
  font-family: 'Montserrat', sans-serif;
  line-height: 1;
}
.pf-counter span {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  margin-top: 0.25rem;
}
.pf-counter__sep {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.18);
}

.pf-hero__scroll {
  position: absolute;
  bottom: 90px; left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.4);
  font-size: 1.1rem;
  z-index: 2;
  animation: pfBounce 2s infinite;
  transition: opacity 0.4s;
}
@keyframes pfBounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(8px); }
}

/* ═══════════════════════════════════════
   MAIN / GRID
═══════════════════════════════════════ */
.pf-main {
  background: #f8fafc;
  padding: 3rem 0 5rem;
}

/* ── Filter pills ── */
.pf-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  justify-content: center;
}

.pf-filter {
  padding: 0.55rem 1.3rem;
  border-radius: 50px;
  border: 2px solid #e2e8f0;
  background: white;
  color: #64748b;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.pf-filter:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.pf-filter--active {
  background: #001A33;
  border-color: #001A33;
  color: white;
  box-shadow: 0 4px 15px rgba(0,26,51,0.25);
}

/* ── Masonry-style grid ── */
.pf-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 240px; /* Reduced slightly for better proportions */
  gap: 1.25rem;
  grid-auto-flow: dense;
}

/* ── Project card ── */
.pf-item {
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition: transform 0.4s ease, box-shadow 0.4s ease, opacity 0.4s ease;
}

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

/* Large card spans 2 columns + 2 rows */
.pf-item--large {
  grid-column: span 2;
  grid-row: span 2;
}

.pf-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

/* Image area (placeholder) */
.pf-item__img {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e0f0f8, #c8e4f0);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.pf-item__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.pf-item:hover .pf-item__img img { transform: scale(1.08); }



/* ── Overlay ── */
.pf-item__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,26,51,0.96) 0%, rgba(0,10,26,0.6) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.pf-item:hover .pf-item__overlay { opacity: 1; }

/* Always show partial overlay on large items for readability */
.pf-item--large .pf-item__overlay {
  background: linear-gradient(to top, rgba(0,26,51,0.92) 0%, rgba(0,10,26,0.5) 55%, transparent 100%);
  opacity: 1;
  justify-content: flex-end;
  padding: 2rem;
}

.pf-item__cat {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(0,180,216,0.85);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  margin-bottom: 0.6rem;
  width: fit-content;
  letter-spacing: 0.3px;
}

.pf-item__overlay h3 {
  font-size: 1rem;
  font-weight: 700;
  color: white;
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 0.4rem;
  line-height: 1.35;
}

.pf-item--large .pf-item__overlay h3 {
  font-size: 1.25rem;
}

.pf-item__overlay p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.55;
  margin-bottom: 0.75rem;
  /* hide on normal items, show on large */
  display: none;
}
.pf-item--large .pf-item__overlay p { display: block; }

.pf-item__meta {
  display: flex;
  gap: 1rem;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.55);
}
.pf-item__meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.pf-item__meta i { color: #00B4D8; }

/* Empty state */
.pf-empty {
  flex-direction: column;
  align-items: center;
  padding: 5rem 2rem;
  text-align: center;
  gap: 0.75rem;
  color: #94a3b8;
}
.pf-empty i { font-size: 3.5rem; color: #cbd5e1; }
.pf-empty h3 { color: #334155; font-family: 'Montserrat', sans-serif; }

/* More hint */
.pf-more-hint {
  text-align: center;
  margin-top: 2.5rem;
}
.pf-more-hint__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #475569;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px dashed #cbd5e1;
  padding-bottom: 0.2rem;
  transition: color 0.25s, border-color 0.25s;
}
.pf-more-hint__link:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.pf-more-hint__link i { color: var(--accent); }

/* ═══════════════════════════════════════
   STATS STRIP
═══════════════════════════════════════ */
.pf-stats-strip {
  background: linear-gradient(135deg, #001A33, #0A2463);
  padding: 3.5rem 0;
}

.pf-stats-row {
  display: flex;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.pf-stat {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 3rem;
  border-right: 1px solid rgba(255,255,255,0.12);
  color: white;
}
.pf-stat:last-child { border-right: none; }

.pf-stat > i {
  font-size: 2rem;
  color: #00B4D8;
  width: 48px;
  height: 48px;
  background: rgba(0,180,216,0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pf-stat div {
  display: flex;
  flex-direction: column;
}

.pf-stat strong {
  font-size: 1.75rem;
  font-weight: 800;
  color: #00D4FF;
  font-family: 'Montserrat', sans-serif;
  line-height: 1;
}

.pf-stat span {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  margin-top: 0.2rem;
}

/* ═══════════════════════════════════════
   CLIENTS
═══════════════════════════════════════ */
.pf-clients {
  padding: 5rem 0;
  background: white;
}

.pf-clients__header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 3rem;
}
.pf-clients__header h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: #001A33;
  margin: 0.75rem 0 0.75rem;
}
.pf-clients__header p {
  font-size: 0.97rem;
  color: #64748b;
  line-height: 1.7;
}

.pf-clients__logos {
  display: flex;
  justify-content: center;
  align-items: center;
}
.pf-clients__logos img {
  max-width: 80%;
  height: auto;
  filter: grayscale(20%);
  transition: filter 0.3s;
}
.pf-clients__logos img:hover { filter: none; }

/* ═══════════════════════════════════════
   CTA FINAL
═══════════════════════════════════════ */
.pf-cta {
  background: #f8fafc;
  padding: 4rem 0 5rem;
}

.pf-cta__inner {
  background: linear-gradient(135deg, #001A33 0%, #0A2463 100%);
  border-radius: 24px;
  padding: 4rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.pf-cta__icon {
  font-size: 2.5rem;
  color: #00B4D8;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.pf-cta__inner h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  color: white;
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 1;
}

.pf-cta__inner p {
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
  max-width: 520px;
  margin: 0 auto 2rem;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

.pf-cta__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.pf-cta__actions .btn--primary {
  background: #00B4D8;
  color: white;
  padding: 0.9rem 2rem;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.pf-cta__actions .btn--primary:hover {
  background: #0096C7;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,180,216,0.4);
}

.pf-cta__sec {
  color: rgba(255,255,255,0.75);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.25s;
}
.pf-cta__sec:hover { color: #00B4D8; }
.pf-cta__sec i { transition: transform 0.25s; }
.pf-cta__sec:hover i { transform: translateX(4px); }

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */
@media (max-width: 1024px) {
  .pf-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pf-item--large {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .pf-hero__counters {
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
  }
  .pf-counter__sep {
    width: 50px; height: 1px;
  }
  .pf-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 220px;
  }
  .pf-item--large {
    grid-column: span 1;
  }
  .pf-stats-row {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }
  .pf-stat {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    width: 100%;
    justify-content: center;
    padding: 1.25rem 1rem;
  }
  .pf-stat:last-child { border-bottom: none; }
  .pf-cta__inner { padding: 3rem 1.5rem; }
}

@media (max-width: 480px) {
  .pf-filters { gap: 0.35rem; }
  .pf-filter   { font-size: 0.8rem; padding: 0.45rem 0.9rem; }
  .pf-hero { padding: 11rem 0 5rem; }
}

/* ═══════════════════════════════════════
   LIGHTBOX (ZOOM)
═══════════════════════════════════════ */
.pf-lightbox {
  display: none;
  position: fixed;
  z-index: 100000;
  inset: 0;
  background: rgba(0, 10, 25, 0.98);
  backdrop-filter: blur(15px);
  padding: 40px;
  cursor: zoom-out;
}

.pf-lightbox--active {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.pf-lightbox__content {
  max-width: 90%;
  max-height: 80vh;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 30px 100px rgba(0,0,0,0.8);
  animation: zoomScale 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  border: 1px solid rgba(255,255,255,0.1);
  cursor: default;
}

@keyframes zoomScale {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.pf-lightbox__close {
  position: absolute;
  top: 30px;
  right: 40px;
  color: white;
  font-size: 44px;
  font-weight: 200;
  transition: all 0.3s ease;
  cursor: pointer;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  z-index: 100001;
}

.pf-lightbox__close:hover {
  background: #00B4D8;
  color: white;
  transform: scale(1.1) rotate(90deg);
}

.pf-lightbox__caption {
  margin-top: 2rem;
  color: white;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.6);
  text-align: center;
}

@media (max-width: 768px) {
  .pf-lightbox { padding: 20px; }
  .pf-lightbox__close { top: 15px; right: 15px; width: 50px; height: 50px; font-size: 32px; }
  .pf-lightbox__caption { font-size: 1.1rem; }
}
