/* ============================================================
   WILKY MATOS — css/portfolio.css
   Estilos específicos da página de portfólio/CV
   Depende de: css/style.css (tokens, reset, navbar, footer)
   ============================================================ */

/* ============================================================
   HERO DO PORTFÓLIO
   ============================================================ */
.pf-hero {
  position: relative;
  padding-top: calc(var(--sp-20) + 3rem);
  padding-bottom: var(--sp-12);
  padding-inline: var(--gutter);
  max-width: var(--container);
  margin-inline: auto;
  overflow: hidden;
}

.pf-hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-8);
  position: relative;
  z-index: 2;
}

.pf-hero__left {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.pf-hero__label {
  font-family: var(--f-mono);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-brand-hover);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}
.pf-hero__label::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--c-brand-hover);
}

.pf-hero__name {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(3.5rem, 2rem + 7vw, 7.5rem);
  line-height: 1.0;
  color: var(--c-accent);
  letter-spacing: -0.02em;
}
.pf-hero__name em {
  display: block;
  color: var(--c-brand-hover);
  font-style: italic;
}

.pf-hero__title {
  font-family: var(--f-mono);
  font-size: var(--text-sm);
  color: var(--c-text-muted);
  letter-spacing: 0.04em;
}
.pf-hero__title span {
  color: var(--c-border-strong);
  margin-inline: var(--sp-2);
}

.pf-hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: var(--sp-2);
}

.pf-hero__chip {
  font-family: var(--f-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--c-text-faint);
  border: 1px solid var(--c-border);
  padding: var(--sp-2) var(--sp-4);
}

/* Lado direito — decorativo */
.pf-hero__right {
  display: none;
  position: relative;
  align-items: flex-start;
  justify-content: flex-end;
}

.pf-hero__year {
  font-family: var(--f-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  color: var(--c-text-ghost);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  position: absolute;
  right: 0;
  top: 0;
}

.pf-hero__kanji {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(8rem, 18vw, 15rem);
  color: var(--c-accent);
  opacity: 0.06;
  line-height: 1;
  user-select: none;
  pointer-events: none;
}

/* Linha separadora que cresce */
.pf-hero__line {
  height: 1px;
  background: linear-gradient(90deg, var(--c-brand-hover), var(--c-border), transparent);
  margin-top: var(--sp-10);
  transform-origin: left;
}

/* ============================================================
   BLOCOS DE CONTEÚDO
   ============================================================ */
.pf-main {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.pf-block {
  position: relative;
  padding-block: var(--sp-16);
  border-top: 1px solid var(--c-border);
}

/* Kanji numerais decorativos por bloco */
.pf-block::before {
  content: attr(data-kanji);
  position: absolute;
  right: 0;
  top: var(--sp-8);
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(6rem, 15vw, 12rem);
  color: var(--c-accent);
  opacity: 0.03;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.pf-block__inner {
  position: relative;
  z-index: 2;
}

.pf-block-label {
  font-family: var(--f-mono);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-brand-hover);
  margin-bottom: var(--sp-5);
}

.pf-block h2 {
  font-size: var(--text-2xl);
  color: var(--c-accent);
  margin-bottom: var(--sp-8);
}

/* ============================================================
   SOBRE — TEXTO
   ============================================================ */
.pf-bio__text {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
  max-width: 680px;
  margin-bottom: var(--sp-10);
}
.pf-bio__text p { line-height: 1.75; }

/* ── STATS ── */
.pf-stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-8);
}

.pf-stat {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  padding-left: var(--sp-4);
  border-left: 1px solid var(--c-border-strong);
}

.pf-stat__num {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: var(--text-2xl);
  color: var(--c-accent);
  line-height: 1;
}
.pf-stat__num span {
  font-size: 0.55em;
  color: var(--c-brand-hover);
  vertical-align: top;
  margin-top: 0.3em;
}

.pf-stat__label {
  font-family: var(--f-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-text-faint);
}

/* ============================================================
   HABILIDADES
   ============================================================ */
.pf-skills-group {
  margin-bottom: var(--sp-8);
}
.pf-skills-group:last-child { margin-bottom: 0; }

.pf-skills-group__title {
  font-family: var(--f-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--c-text-faint);
  margin-bottom: var(--sp-4);
}

.pf-skills-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.pf-skill {
  position: relative;
  font-family: var(--f-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
  color: var(--c-text-muted);
  border: 1px solid var(--c-border);
  padding: var(--sp-2) var(--sp-4);
  overflow: hidden;
  transition:
    color        var(--speed-fast) var(--ease-out),
    border-color var(--speed-fast) var(--ease-out);
  cursor: default;
}

/* Fill de baixo pra cima no hover */
.pf-skill::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--c-brand-subtle);
  transform: translateY(100%);
  transition: transform var(--speed) var(--ease-out);
  z-index: 0;
}
.pf-skill:hover::before { transform: translateY(0); }
.pf-skill:hover {
  color: var(--c-accent);
  border-color: var(--c-brand);
}

/* Skill ativa (destaque) */
.pf-skill--active {
  color: var(--c-accent);
  border-color: var(--c-border-mid);
}
.pf-skill--active::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: var(--c-brand-hover);
}

/* ============================================================
   TIMELINE — Experiência e Formação
   ============================================================ */
.pf-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

/* Linha vertical contínua */
.pf-timeline::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 12px;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, var(--c-brand-hover), var(--c-border), transparent);
  z-index: 0;
}

.pf-timeline-item {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: var(--sp-5);
  padding-bottom: var(--sp-10);
  position: relative;
}
.pf-timeline-item:last-child { padding-bottom: 0; }

/* Marcador losango */
.pf-timeline-item__marker {
  position: relative;
  z-index: 1;
  margin-top: 10px;
  flex-shrink: 0;
}
.pf-timeline-item__marker::before {
  content: '';
  display: block;
  width: 13px;
  height: 13px;
  background: var(--c-bg);
  border: 1px solid var(--c-brand-hover);
  transform: rotate(45deg);
  transition: background var(--speed-fast) var(--ease-out);
}
.pf-timeline-item:hover .pf-timeline-item__marker::before {
  background: var(--c-brand);
}

.pf-timeline-item__content { min-width: 0; }

.pf-timeline-item__header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--sp-3);
  margin-bottom: var(--sp-2);
}

.pf-timeline-item__role {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: var(--text-md);
  color: var(--c-accent);
  flex: 1;
  min-width: 0;
}

.pf-timeline-item__period {
  font-family: var(--f-mono);
  font-size: var(--text-xs);
  color: var(--c-brand-hover);
  letter-spacing: 0.04em;
  white-space: nowrap;
  flex-shrink: 0;
}

.pf-timeline-item__company {
  font-family: var(--f-mono);
  font-size: var(--text-xs);
  color: var(--c-text-faint);
  letter-spacing: 0.04em;
  margin-bottom: var(--sp-4);
}

.pf-timeline-item__desc {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.pf-timeline-item__desc li {
  font-size: var(--text-sm);
  color: var(--c-text-muted);
  padding-left: var(--sp-4);
  position: relative;
  line-height: 1.6;
}
.pf-timeline-item__desc li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--c-brand-hover);
  font-family: var(--f-mono);
  font-size: 0.8em;
}

.pf-timeline-item__tag {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-text-faint);
  border: 1px solid var(--c-border);
  padding: var(--sp-1) var(--sp-3);
  margin-top: var(--sp-3);
}
.pf-timeline-item__tag--active {
  color: var(--c-brand-hover);
  border-color: var(--c-brand);
}

/* ============================================================
   PROJETOS
   ============================================================ */
.pf-projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
}

.pf-project-card {
  display: grid;
  grid-template-columns: 1fr;
  border: 1px solid var(--c-border);
  background: var(--c-bg-panel);
  overflow: hidden;
  transition: border-color var(--speed-fast) var(--ease-out);
}
.pf-project-card:hover { border-color: var(--c-border-strong); }

.pf-project-card__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.pf-project-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(40%) contrast(1.05);
  transition: filter var(--speed-slow) var(--ease-out), transform var(--speed-slow) var(--ease-out);
  will-change: transform;
}
.pf-project-card:hover .pf-project-card__thumb img {
  filter: grayscale(0%) contrast(1.08);
  transform: scale(1.04);
}

/* Overlay "Ver projeto" aparece no hover */
.pf-project-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-mono);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--c-accent);
  background: rgba(11, 20, 20, 0.72);
  opacity: 0;
  transition: opacity var(--speed) var(--ease-out);
}
.pf-project-card:hover .pf-project-card__overlay { opacity: 1; }

.pf-project-card__body {
  padding: var(--sp-4) var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.pf-project-card__tag {
  font-family: var(--f-mono);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-brand-hover);
}

.pf-project-card__title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: var(--text-md);
  color: var(--c-accent);
}

.pf-project-card__link {
  font-family: var(--f-mono);
  font-size: var(--text-xs);
  color: var(--c-text-faint);
  letter-spacing: 0.04em;
}

/* ============================================================
   CTA FINAL
   ============================================================ */
.pf-cta {
  position: relative;
  border-top: 1px solid var(--c-border);
  padding-block: var(--sp-16);
  overflow: hidden;
}

.pf-cta::before {
  content: '次';
  position: absolute;
  right: -1rem;
  top: -2rem;
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(10rem, 25vw, 20rem);
  color: var(--c-accent);
  opacity: 0.028;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.pf-cta__inner {
  position: relative;
  z-index: 2;
}

.pf-cta__eyebrow {
  font-family: var(--f-mono);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-brand-hover);
  margin-bottom: var(--sp-4);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}
.pf-cta__eyebrow::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--c-brand-hover);
}

.pf-cta__title {
  font-size: var(--text-3xl);
  color: var(--c-accent);
  margin-bottom: var(--sp-4);
}

.pf-cta__sub {
  max-width: 46ch;
  font-size: var(--text-md);
  margin-bottom: var(--sp-8);
  line-height: 1.65;
}

.pf-cta__btns {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
}

/* ============================================================
   RESPONSIVO
   ============================================================ */
@media (min-width: 640px) {
  .pf-hero__right { display: flex; }
  .pf-hero__inner { grid-template-columns: 1fr auto; align-items: start; }
  .pf-projects-grid { grid-template-columns: repeat(2, 1fr); }
  .pf-bio__text { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
  .pf-projects-grid { grid-template-columns: repeat(3, 1fr); }
  .pf-block { padding-block: var(--sp-20); }
}