/* ============================================================
   BitStream — Portfólio (mesmo tema, foco em projetos + parallax)
   Depende de styles.css (tokens, header, botões, reveal)
   ============================================================ */

/* ---------- Portfolio hero ---------- */
.pf-hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 150px 0 90px;
  text-align: center;
}
.pf-hero-inner { display: flex; flex-direction: column; align-items: center; }
.pf-hero .badge { margin-bottom: 26px; }
.pf-hero-title { font-size: clamp(2.4rem, 6.5vw, 5rem); font-weight: 700; }
.pf-hero-title span { display: block; }
.pf-hero-sub {
  max-width: 620px; color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.18rem); margin: 24px 0 40px;
}
.pf-hero-stats { display: flex; gap: 52px; flex-wrap: wrap; justify-content: center; }
.pf-hero-stats .stat { display: flex; flex-direction: column; }
.pf-hero-stats .stat-num {
  font-family: 'Space Grotesk'; font-size: 2.4rem; font-weight: 700;
  color: var(--text); line-height: 1;
}
.pf-hero-stats .stat-label { font-size: 0.82rem; color: var(--muted); margin-top: 8px; }

/* ---------- Projects list ---------- */
.pf-projects { padding: 40px 0 40px; }
.pf-project {
  display: grid; grid-template-columns: 0.92fr 1.08fr;
  gap: 64px; align-items: center;
  padding: 70px 0;
  position: relative;
}
.pf-project.reverse { grid-template-columns: 1.08fr 0.92fr; }
.pf-project.reverse .pf-copy { order: 2; }
.pf-project.reverse .pf-media { order: 1; }
.pf-project + .pf-project { border-top: 1px solid var(--border); }

/* copy */
.pf-index {
  font-family: 'Space Grotesk'; font-size: 0.85rem; letter-spacing: 0.14em;
  color: var(--muted-2); margin-bottom: 14px; display: block;
}
.pf-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.pf-tags span {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--red); background: rgba(255, 45, 45, 0.1);
  border: 1px solid var(--border-strong); padding: 5px 12px; border-radius: 999px;
}
.pf-title { font-size: clamp(1.7rem, 3.4vw, 2.6rem); font-weight: 700; margin-bottom: 16px; }
.pf-desc { color: var(--muted); font-size: 1.04rem; margin-bottom: 24px; }
.pf-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.pf-chips span {
  font-size: 0.82rem; color: var(--text);
  background: var(--surface-2); border: 1px solid var(--border);
  padding: 7px 14px; border-radius: 999px;
}

/* ---------- Media / device frames (parallax targets) ---------- */
.pf-media { position: relative; perspective: 1400px; }
.pf-media::after {
  content: ""; position: absolute; inset: -8% -6% -14% -6%;
  background: radial-gradient(60% 60% at 50% 40%, rgba(255, 45, 45, 0.22), transparent 70%);
  z-index: -1; filter: blur(20px); pointer-events: none;
}

/* browser-style frame for web app screenshots */
.pf-frame {
  position: relative; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--border-strong);
  background: var(--bg-2);
  box-shadow: 0 40px 90px -34px rgba(255, 45, 45, 0.45), 0 20px 60px -30px rgba(0,0,0,0.8);
  transition: transform 0.6s var(--ease), box-shadow 0.5s var(--ease);
}
.pf-frame:hover { box-shadow: 0 50px 110px -30px rgba(255, 45, 45, 0.6); }
.pf-frame-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 11px 14px; background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
}
.pf-frame-bar i { width: 11px; height: 11px; border-radius: 50%; display: block; background: var(--muted-2); opacity: 0.6; }
.pf-frame-bar i:nth-child(1) { background: #ff5f57; opacity: 0.85; }
.pf-frame-bar i:nth-child(2) { background: #febc2e; opacity: 0.85; }
.pf-frame-bar i:nth-child(3) { background: #28c840; opacity: 0.85; }
.pf-frame-bar .pf-frame-url {
  margin-left: 12px; font-size: 0.74rem; color: var(--muted-2);
  font-family: 'Space Grotesk'; letter-spacing: 0.02em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pf-frame img { width: 100%; display: block; }

/* stacked secondary screenshot (extra parallax depth) */
.pf-media-stack { position: relative; }
.pf-media-float {
  position: absolute; width: 40%; z-index: 3;
  right: -6%; bottom: -12%;
  border-radius: 12px; overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: 0 30px 70px -26px rgba(0,0,0,0.85);
}
.pf-media-float img { width: 100%; display: block; }
.pf-project.reverse .pf-media-float { right: auto; left: -6%; }

/* full-bleed mockup (mobile collage already framed) */
.pf-mockup {
  width: 100%; border-radius: 16px; display: block;
  filter: drop-shadow(0 40px 70px rgba(0,0,0,0.65));
  transition: transform 0.6s var(--ease);
}

/* ---------- CTA band ---------- */
.pf-cta {
  margin: 60px 0 40px;
  text-align: center;
  background: linear-gradient(135deg, rgba(229,9,20,0.1), var(--surface));
  border: 1px solid var(--border-strong); border-radius: 24px;
  padding: 64px 40px;
}
.pf-cta h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); margin-bottom: 16px; }
.pf-cta p { color: var(--muted); max-width: 540px; margin: 0 auto 30px; font-size: 1.05rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .pf-project,
  .pf-project.reverse { grid-template-columns: 1fr; gap: 34px; }
  .pf-project.reverse .pf-copy { order: 1; }
  .pf-project.reverse .pf-media { order: 2; }
  .pf-media-float { width: 44%; bottom: -10%; }
}
@media (max-width: 640px) {
  .pf-hero { padding: 130px 0 70px; }
  .pf-hero-stats { gap: 30px; }
  .pf-project { padding: 50px 0; }
  .pf-media-float { position: static; width: 100%; margin-top: 16px; }
  .pf-media::after { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  [data-parallax] { transform: none !important; }
}
