/* ========================================
   portfolio.css — Aqua Space Portfólio
   ======================================== */

/* ─── Hero ─── */
.pf-hero {
  position: relative;
  background: white;
  padding: 14rem 0 2rem;
  text-align: center;

}

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

.pf-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 115, 192, 0.08);
  border: 1px solid rgba(0, 115, 192, 0.2);
  color: #0073C0;
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.pf-hero__content h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  color: #1A1A1A;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.pf-accent {
  color: #0073C0;
  background: linear-gradient(90deg, #0073C0, #29A9E0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pf-hero__content p {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  color: #4A5568;
  max-width: 600px;
  margin: 0 auto 3rem;
  line-height: 1.8;
}

/* Contadores no hero */
.pf-hero__stats {
  display: inline-flex;
  gap: 0;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  overflow: hidden;
  margin-top: 1rem;
}

.pf-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.25rem 2.5rem;
  border-right: 1px solid #E2E8F0;
}

.pf-stat-item:last-child {
  border-right: none;
}

.pf-stat-item strong {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: #0073C0;
  line-height: 1;
}

.pf-stat-item span {
  font-size: 0.78rem;
  color: #64748B;
  margin-top: 0.3rem;
  font-weight: 500;
}

/* ─── Secção Principal ─── */
.pf-main {
  background: #ffffff;
  padding: 0rem 0 6rem;
}

/* Filtros */
.pf-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 3rem;
}

.pf-filter {
  padding: 0.7rem 1.4rem;
  border-radius: 8px;
  border: 1.5px solid #E2E8F0;
  background: #FFFFFF;
  color: #475569;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pf-filter:hover {
  border-color: #0073C0;
  color: #0073C0;
  background: #F0F9FF;
}

.pf-filter--active,
.pf-filter--active:hover {
  background: #0073C0 !important;
  border-color: #0073C0 !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 15px rgba(0, 115, 192, 0.25);
}

/* Grelha de Projetos */
.pf-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

/* Card de projeto */
.pf-card {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background: #FFFFFF;
  box-shadow: 0 6px 24px rgba(6, 23, 34, 0.07);
  border: 1px solid #E2E8F0;
  opacity: 0;
  transform: translateY(18px);
  transition: transform 0.35s ease, opacity 0.35s ease, box-shadow 0.25s ease;
  min-height: 250px;
}

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

.pf-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(6, 23, 34, 0.13);
}

/* Media (imagem) */
.pf-card__media {
  flex: 0 0 42%;
  width: 42%;
  min-height: 100%;
  overflow: hidden;
  background: #F1F5F9;
  position: relative;
}

.pf-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.5s ease;
}

.pf-card:hover .pf-card__media img {
  transform: scale(1.05);
}

/* Conteúdo */
.pf-card__content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
  gap: 0.75rem;
}

.pf-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.pf-card__cat {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(90deg, #0073C0, #29A9E0);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.32rem 0.75rem;
  border-radius: 999px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.pf-card__year {
  font-weight: 700;
  color: #0073C0;
  background: #EFF6FF;
  padding: 0.28rem 0.65rem;
  border-radius: 8px;
  font-size: 0.82rem;
}

.pf-card__title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0F172A;
  margin: 0.2rem 0;
  line-height: 1.35;
}

.pf-card__excerpt {
  color: #475569;
  font-size: 0.88rem;
  line-height: 1.55;
  margin: 0;
}

.pf-card__meta {
  font-size: 0.85rem;
  color: #64748B;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pf-card__actions {
  display: flex;
  margin-top: 0.25rem;
}

.pf-card__action {
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  color: #0073C0;
  font-weight: 700;
  padding: 0.55rem 1.1rem;
  border-radius: 8px;
  cursor: pointer;
  width: 100%;
  text-align: center;
  transition: all 0.2s ease;
}

.pf-card:hover .pf-card__action {
  background: #0073C0;
  border-color: #0073C0;
  color: #FFFFFF;
}
  transition: background 0.2s, transform 0.15s;
}

.pf-card__action:hover {
  background: rgba(2, 128, 204, 0.06);
  transform: translateY(-2px);
}

/* Empty state stays unchanged */

.pf-card__meta {
  display: flex;
  gap: 1rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
}

.pf-card__meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.pf-card__meta i {
  color: #29A9E0;
}

/* Zoom / view icon */
.pf-card__zoom {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.9rem;
  opacity: 0;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.pf-card:hover .pf-card__zoom {
  opacity: 1;
}

/* Estado Vazio */
.pf-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 5rem 2rem;
  gap: 0.75rem;
  color: #94A3B8;
  grid-column: 1 / -1;
}

.pf-empty i {
  font-size: 3.5rem;
  color: #E2E8F0;
}

.pf-empty h3 {
  color: #475569;
  font-family: 'Montserrat', sans-serif;
}

/* Removed previous 'stats' and 'clients' styles to avoid legacy remnants */

/* ─── CTA Final ─── */
.pf-cta {
  background: #ffffff;
  padding: 4rem 0 6rem;
}

.pf-cta__inner {
  background: linear-gradient(135deg, #0073C0 0%, #004D80 100%);
  border-radius: 20px;
  padding: 4rem 3rem;
  text-align: center;
}

.pf-cta__inner h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  color: white;
  margin-bottom: 0.75rem;
}

.pf-cta__inner p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  max-width: 520px;
  margin: 0 auto 2.5rem;
  line-height: 1.75;
}

.pf-cta__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.pf-cta__btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 2.25rem;
  background: white;
  color: #0073C0;
  border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.pf-cta__btn-primary:hover {
  background: #F1F5F9;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.pf-cta__btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.85);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  transition: color 0.25s;
}

.pf-cta__btn-secondary i {
  transition: transform 0.25s;
}

.pf-cta__btn-secondary:hover {
  color: #ABE1FA;
}

.pf-cta__btn-secondary:hover i {
  transform: translateX(4px);
}

/* ─── Lightbox ─── */
/* Modal de detalhes do projeto (substitui lightbox) */
.pf-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(6, 12, 20, 0.8);
  backdrop-filter: blur(8px);
  padding: 40px 20px;
  align-items: center;
  justify-content: center;
}

.pf-modal--active {
  display: flex !important;
}

.pf-modal__card {
  width: 100%;
  max-width: 1100px;
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  position: relative;
}

.pf-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
  background: #0B2230;
  border: 1px solid rgba(255, 255, 255, 0.35);
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  min-width: 94px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.25);
}

.pf-modal__close:hover {
  background: #0073C0;
}

.pf-modal__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.pf-modal__media {
  position: relative;
  background: #0f1720;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 360px;
  overflow: visible;
}

.pf-modal__media img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
}

.pf-carousel__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(6, 23, 34, 0.72);
  border: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  cursor: pointer;
  border-radius: 10px;
  z-index: 12;
  box-shadow: 0 6px 18px rgba(2, 10, 20, 0.45);
}

.pf-carousel__prev {
  left: 16px;
}

.pf-carousel__next {
  right: 16px;
}

.pf-carousel__dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.pf-carousel__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  border: 0;
  cursor: pointer;
}

.pf-carousel__dot.active {
  background: #fff;
}

.pf-modal__content {
  padding: 28px 32px;
}

.pf-modal__content h3 {
  margin-top: 0;
  font-size: 1.25rem;
}

.pf-modal__meta {
  color: #6b7280;
  margin-bottom: 12px;
  display: flex;
  gap: 12px;
}

.pf-modal__actions {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

.pf-modal__actions .pf-cta__btn-primary {
  background: #25D366;
  color: #FFFFFF;
  border: 1.5px solid #25D366;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.25);
  padding: 0.75rem 1.4rem;
  font-size: 0.9rem;
  border-radius: 8px;
}

.pf-modal__actions .pf-cta__btn-primary:hover {
  background: #1EBE57;
  border-color: #1EBE57;
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
}

.pf-modal__actions .pf-cta__btn-secondary {
  background: #F1F5F9;
  color: #0073C0;
  border: 1.5px solid #CBD5E1;
  padding: 0.75rem 1.4rem;
  border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.pf-modal__actions .pf-cta__btn-secondary:hover {
  background: #0073C0;
  border-color: #0073C0;
  color: #FFFFFF;
  transform: translateY(-2px);
}

@media (max-width: 900px) {
  .pf-modal__inner {
    grid-template-columns: 1fr;
  }

  .pf-modal__media {
    min-height: 260px;
  }
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .pf-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .pf-hero__stats {
    flex-direction: column;
  }

  .pf-stat-item {
    border-right: none;
    border-bottom: 1px solid #E2E8F0;
    padding: 1rem;
    width: 100%;
  }

  .pf-stat-item:last-child {
    border-bottom: none;
  }

  .pf-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .pf-card {
    flex-direction: column;
    min-height: auto;
  }

  .pf-card__media {
    width: 100%;
    flex: 0 0 auto;
    height: 200px;
  }

  .pf-card__content {
    padding: 1.25rem;
  }

  /* Removed responsive rules for previous stats/clients strips */

  .pf-cta__inner {
    padding: 3rem 1.5rem;
  }

  /* lightbox removed */
}

@media (max-width: 480px) {
  .pf-hero {
    padding: 14rem 0 3rem;
  }

  .pf-filters {
    gap: 0.5rem;
  }

  .pf-filter {
    font-size: 0.8rem;
    padding: 0.55rem 1rem;
  }
}
