/* =============================================
   PROJETOS — Liquid Glass completo
   Mesma linguagem do dock
   ============================================= */

/* ── FUNDO ESCURO COM ORBS ── */
.projects-section {
  background: #0D0D0D;
  padding: 0;
  padding-bottom: 160px;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* orb roxo — canto superior esquerdo */
.projects-section::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -15%;
  width: 70vw;
  height: 70vw;
  background: radial-gradient(circle, rgba(131,104,248,0.13) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

/* orb teal — canto inferior direito */
.projects-section::after {
  content: '';
  position: absolute;
  bottom: -15%;
  right: -5%;
  width: 55vw;
  height: 55vw;
  background: radial-gradient(circle, rgba(7,201,172,0.09) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.pg-hero,
.pg-filters,
.pg-list { position: relative; z-index: 1; }

.pg-filters,
.pg-list {
  padding-left:  clamp(40px, 6vw, 140px);
  padding-right: clamp(40px, 6vw, 140px);
}

/* ── HERO — tela cheia ── */
.pg-hero {
  position: relative;
  width: 100%;
  min-height: 100svh;
  margin: 0;
  margin-bottom: clamp(40px, 5vw, 64px);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
}

/* vídeo — container maior que o hero para dar margem ao translateY */
.pg-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 120%; /* 20% a mais para o parallax não mostrar vazio */
  top: -10%;
  z-index: 0;
  will-change: transform;
}

/* degradê Geez — rosa, roxo e teal — move junto com o vídeo */
.pg-hero__video::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg,
      rgba(254, 70, 108, 0.88)  0%,
      rgba(131, 104, 248, 0.72) 40%,
      rgba(7,  201, 172, 0.45)  70%,
      transparent               100%
    ),
    radial-gradient(ellipse 75% 90% at 5% 75%,
      rgba(254, 70, 108, 0.65)  0%,
      rgba(131, 104, 248, 0.35) 50%,
      transparent               80%
    );
  pointer-events: none;
  z-index: 1;
}

.pg-hero__vid {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 75% center;
}

/* texto sobre o vídeo */
.pg-hero__text {
  position: relative;
  z-index: 3;
  width: 44%;
  margin-left: clamp(24px, 4vw, 64px);
  padding: clamp(28px, 3.5vw, 52px);
  display: flex;
  flex-direction: column;
  justify-content: center;

  background: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.pg-hero__label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: #FFFFFF;
  margin-bottom: 20px;
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
}

.pg-hero__label::before {
  content: '';
  width: 18px;
  height: 1px;
  background: #FFFFFF;
  opacity: 0.6;
}

.pg-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 3.2vw, 48px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.0;
  text-transform: uppercase;
  margin-bottom: 20px;

  /* animated shiny gradient */
  background: linear-gradient(
    90deg,
    #ffffff      0%,
    #ffffff     28%,
    #FE466C     46%,
    #8368F8     60%,
    #07C9AC     72%,
    #ffffff     88%,
    #ffffff    100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shiny-title 8s linear infinite;
}

@keyframes shiny-title {
  0%   { background-position: 0%   center; }
  100% { background-position: 200% center; }
}

.pg-hero__title em {
  font-style: normal;
  /* herda o gradiente animado do pai */
  background: inherit;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.pg-hero__count {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.25);
  text-transform: uppercase;
}

.pg-hero__count strong {
  color: var(--color-teal);
  font-weight: 700;
}

/* ═══════════════════════════════════════════
   FILTROS — pill idêntico ao dock
   ═══════════════════════════════════════════ */
.pg-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: clamp(32px, 4vw, 52px);
}

.pg-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  border-radius: 999px;
  cursor: pointer;
  -webkit-font-smoothing: antialiased;
  transition: background 0.25s, border-color 0.25s, color 0.25s, box-shadow 0.25s, transform 0.2s;

  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.52);

  /* Liquid Glass — igual ao dock pill */
  background: linear-gradient(
    160deg,
    rgba(255,255,255,0.09) 0%,
    rgba(255,255,255,0.04) 50%,
    rgba(131,104,248,0.05) 100%
  );
  backdrop-filter: blur(32px) saturate(200%) brightness(1.08);
  -webkit-backdrop-filter: blur(32px) saturate(200%) brightness(1.08);
  border: 1px solid rgba(255,255,255,0.13);
  box-shadow:
    0 4px 16px rgba(0,0,0,0.25),
    inset 0 1px 0 rgba(255,255,255,0.18),
    inset 0 -1px 0 rgba(0,0,0,0.12);
}

.pg-filter-btn:hover {
  color: rgba(255,255,255,0.9);
  border-color: rgba(255,255,255,0.22);
  background: linear-gradient(
    160deg,
    rgba(255,255,255,0.14) 0%,
    rgba(255,255,255,0.07) 50%,
    rgba(131,104,248,0.08) 100%
  );
  box-shadow:
    0 6px 22px rgba(0,0,0,0.3),
    inset 0 1px 0 rgba(255,255,255,0.25);
  transform: translateY(-1px);
}

.pg-filter-btn.is-active {
  color: #fff;
  background: linear-gradient(
    135deg,
    rgba(131,104,248,0.28) 0%,
    rgba(131,104,248,0.14) 100%
  );
  border-color: rgba(131,104,248,0.5);
  box-shadow:
    0 6px 24px rgba(131,104,248,0.25),
    inset 0 1px 0 rgba(255,255,255,0.2),
    inset 0 -1px 0 rgba(0,0,0,0.1);
  transform: translateY(0);
}

.pg-filter-btn svg {
  width: 13px;
  height: 13px;
  opacity: 0.65;
  flex-shrink: 0;
}

.pg-filter-btn.is-active svg { opacity: 1; }

/* linha de luz no topo dos botões ativos */
.pg-filter-btn.is-active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  border-radius: 999px;
  pointer-events: none;
}

.pg-filter-btn { position: relative; }

/* ═══════════════════════════════════════════
   LISTA — glass cards
   ═══════════════════════════════════════════ */
.pg-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pg-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.5vw, 40px);
  padding: clamp(20px, 2.5vw, 32px) clamp(20px, 2.5vw, 32px);
  border-radius: 20px;
  cursor: pointer;
  text-decoration: none;
  opacity: 0;
  transform: translateY(28px);
  overflow: hidden;

  /* Liquid Glass — card */
  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.07) 0%,
    rgba(255,255,255,0.03) 100%
  );
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow:
    0 4px 24px rgba(0,0,0,0.22),
    inset 0 1px 0 rgba(255,255,255,0.13),
    inset 0 -1px 0 rgba(0,0,0,0.1);

  transition:
    background 0.3s var(--ease-out),
    border-color 0.3s,
    box-shadow 0.35s var(--ease-out),
    transform 0.35s var(--ease-out);
}

/* linha de luz no topo de cada card */
.pg-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  width: 80%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,0.22) 40%,
    rgba(255,255,255,0.22) 60%,
    transparent
  );
  pointer-events: none;
  border-radius: 999px;
}

/* shimmer no hover */
.pg-item::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255,255,255,0.03) 40%,
    rgba(255,255,255,0.07) 50%,
    rgba(255,255,255,0.03) 60%,
    transparent 100%
  );
  background-size: 200% 100%;
  background-position: -100% 0;
  transition: background-position 0.5s ease;
  pointer-events: none;
}

.pg-item:hover::after {
  background-position: 200% 0;
}

.pg-item:hover {
  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.11) 0%,
    rgba(255,255,255,0.06) 100%
  );
  border-color: rgba(131,104,248,0.35);
  box-shadow:
    0 8px 40px rgba(131,104,248,0.18),
    0 2px 12px rgba(0,0,0,0.3),
    inset 0 1px 0 rgba(255,255,255,0.2),
    inset 0 -1px 0 rgba(0,0,0,0.1);
  transform: translateY(-3px);
}

.pg-item.pg-item--exit {
  opacity: 0 !important;
  transform: translateX(-8px) translateY(0) !important;
  transition: opacity 0.16s ease, transform 0.16s ease !important;
}

/* ── Número ── */
.pg-item__num {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: rgba(255,255,255,0.18);
  min-width: 28px;
  transition: color 0.3s;
  position: relative;
  z-index: 1;
}

.pg-item:hover .pg-item__num { color: var(--color-teal); }

/* ── GIF / ícone ── */
.pg-item__gif {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
  z-index: 1;

  /* glass icon — igual ao dock__icon */
  background: linear-gradient(
    145deg,
    rgba(255,255,255,0.12) 0%,
    rgba(255,255,255,0.05) 100%
  );
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow:
    0 4px 12px rgba(0,0,0,0.25),
    inset 0 1px 0 rgba(255,255,255,0.22);

  transition: border-color 0.3s, box-shadow 0.35s, transform 0.4s var(--ease-out);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pg-item__gif img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pg-item:hover .pg-item__gif {
  border-color: rgba(131,104,248,0.5);
  box-shadow:
    0 6px 20px rgba(131,104,248,0.25),
    inset 0 1px 0 rgba(255,255,255,0.3);
  transform: scale(1.06);
}

/* ── Nome ── */
.pg-item__name {
  font-family: var(--font-heading);
  font-size: clamp(24px, 4vw, 68px);
  font-weight: 700;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.92);
  line-height: 1;
  flex: 1;
  position: relative;
  z-index: 1;
  transition: color 0.3s, transform 0.4s var(--ease-out);
}

.pg-item:hover .pg-item__name {
  color: #fff;
  transform: translateX(6px);
}

/* ── Tag ── */
.pg-item__tag {
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  padding: 6px 14px;
  border-radius: 999px;
  white-space: nowrap;
  position: relative;
  z-index: 1;

  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
  transition: color 0.3s, border-color 0.3s, background 0.3s;
}

.pg-item:hover .pg-item__tag {
  color: rgba(131,104,248,0.9);
  border-color: rgba(131,104,248,0.4);
  background: rgba(131,104,248,0.08);
}

/* ── Seta ── */
.pg-item__arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;

  background: linear-gradient(145deg, rgba(255,255,255,0.1), rgba(255,255,255,0.04));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.18);
  transition: background 0.3s, border-color 0.3s, transform 0.4s var(--ease-out), box-shadow 0.3s;
}

.pg-item__arrow svg {
  color: rgba(255,255,255,0.4);
  transition: color 0.3s;
}

.pg-item:hover .pg-item__arrow {
  background: var(--color-teal);
  border-color: var(--color-teal);
  transform: rotate(45deg);
  box-shadow: 0 6px 20px rgba(7,201,172,0.4), inset 0 1px 0 rgba(255,255,255,0.3);
}

.pg-item:hover .pg-item__arrow svg { color: #0D0D0D; }

/* ── PLACEHOLDERS ── */
.ph-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  gap: 5px;
  color: rgba(255,255,255,0.2);
}

.ph-icon svg { flex-shrink: 0; }

.ph-icon span {
  font-family: var(--font-body);
  font-size: 6px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.2);
}


/* ── RESPONSIVO ── */
@media (max-width: 768px) {
  .pg-hero {
    min-height: 100svh;
    align-items: flex-end;
    justify-content: center;
  }
  .pg-hero__text {
    width: calc(100% - 32px);
    margin: 0 16px 24px;
    padding: 24px 20px;
    border-radius: 18px;
  }
  .pg-hero__vid {
    object-position: center center;
  }
  .pg-filters, .pg-list { padding-left: 20px; padding-right: 20px; }
}

@media (max-width: 768px) {
  .pg-hero__title { font-size: clamp(40px, 12vw, 72px); }
  .pg-item__tag { display: none; }
  .pg-item__name { font-size: clamp(22px, 7vw, 40px); }
  .pg-filters { gap: 6px; }
  .pg-filter-btn { font-size: 10px; padding: 7px 14px; }
  .pg-item { padding: 16px 18px; }
}
