/* Portfolio design system — built on top of tokens defined in styles.css
   (--bg, --bg2, --bg3, --accent, --text, --text-dim, --border, --font-mono, --font-ui) */

/* ── HEADER / NAV ── */
.pf-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(7,7,15,0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.pf-header-inner {
  max-width: 1400px; margin: 0 auto;
  padding: 0 2rem;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
}
.pf-logo {
  font-family: var(--font-mono); font-size: 1.4rem; letter-spacing: 4px;
  text-decoration: none; flex-shrink: 0;
}
.pf-logo .logo-bracket { color: var(--text-dim); }
.pf-logo .logo-text { color: var(--text); }
.pf-logo .logo-accent { color: var(--accent); text-shadow: 0 0 12px var(--accent); }

.pf-nav {
  display: flex; align-items: center; gap: 1.75rem;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 2px;
}
.pf-nav a {
  color: var(--text-dim); text-decoration: none; text-transform: uppercase;
  padding: 0.3rem 0; position: relative; transition: color 0.2s;
  white-space: nowrap;
}
.pf-nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--accent); opacity: 0; transform: scaleX(0.4);
  transition: opacity 0.2s, transform 0.2s;
}
.pf-nav a:hover { color: var(--text); }
.pf-nav a.active { color: var(--accent); }
.pf-nav a.active::after { opacity: 1; transform: scaleX(1); }

.pf-nav-toggle {
  display: none;
  background: transparent; border: 1px solid var(--border); color: var(--text);
  width: 36px; height: 36px; border-radius: 3px; cursor: pointer; font-size: 1rem;
}

@media (max-width: 880px) {
  .pf-nav {
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--bg2); border-bottom: 1px solid var(--border);
    padding: 0.5rem 2rem 1rem;
    display: none;
  }
  .pf-nav.open { display: flex; }
  .pf-nav a { width: 100%; padding: 0.6rem 0; }
  .pf-nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
}

/* ── SECTIONS ── */
.pf-section { max-width: 1400px; margin: 0 auto; padding: 3rem 2rem; }
.pf-section-tight { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.pf-eyebrow {
  font-family: var(--font-mono); font-size: 0.78rem; color: var(--accent);
  letter-spacing: 4px; margin-bottom: 0.6rem; text-transform: uppercase;
}
.pf-h1 { font-size: clamp(1.8rem, 5vw, 3.2rem); font-weight: 700; letter-spacing: 2px; line-height: 1.15; }
.pf-h2 { font-size: clamp(1.3rem, 3vw, 1.8rem); font-weight: 700; letter-spacing: 2px; margin-bottom: 1.5rem; }
.pf-lede { font-family: var(--font-mono); color: var(--text-dim); font-size: 0.95rem; line-height: 1.7; max-width: 760px; }

/* ── HERO ── */
.pf-hero { padding: 4rem 2rem 2rem; max-width: 1400px; margin: 0 auto; }
.pf-hero-title { font-size: clamp(2.2rem, 7vw, 4.8rem); font-weight: 700; letter-spacing: 2px; line-height: 1.08; }
.pf-hero-title .accent { color: var(--accent); text-shadow: 0 0 30px rgba(0,212,255,0.5); }
.pf-hero-role {
  font-family: var(--font-mono); color: var(--text); font-size: 1.1rem;
  letter-spacing: 2px; margin-top: 0.75rem;
}
.pf-hero-tags {
  font-family: var(--font-mono); color: var(--text-dim); font-size: 0.85rem;
  letter-spacing: 1px; margin-top: 0.4rem;
}
.pf-hero-desc { font-family: var(--font-mono); color: var(--text-dim); line-height: 1.7; margin-top: 1.5rem; max-width: 640px; font-size: 0.9rem; }

.pf-cta-row { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }
.pf-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.65rem 1.4rem; border-radius: 3px;
  font-family: var(--font-ui); font-weight: 600; font-size: 0.85rem;
  letter-spacing: 1.5px; text-decoration: none; cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.pf-btn-primary { background: var(--accent); border: 1px solid var(--accent); color: var(--bg); }
.pf-btn-primary:hover { background: var(--accent2); box-shadow: 0 0 20px rgba(0,212,255,0.3); }
.pf-btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text); }
.pf-btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* ── PROFILE / EXPERTISE CARDS ── */
.pf-profile-list {
  list-style: none; margin-top: 1rem; display: flex; flex-direction: column; gap: 0.5rem;
}
.pf-profile-list li {
  font-family: var(--font-mono); font-size: 0.88rem; color: var(--text);
  padding-left: 1.25rem; position: relative;
}
.pf-profile-list li::before {
  content: '▹'; position: absolute; left: 0; color: var(--accent);
}

.pf-expertise-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem; margin-top: 1.5rem;
}
.pf-expertise-card {
  background: var(--bg2); border: 1px solid var(--border); border-radius: 4px;
  padding: 1.5rem; position: relative; overflow: hidden;
}
.pf-expertise-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--ex-color, var(--accent));
}
.pf-expertise-card h3 {
  font-size: 0.95rem; letter-spacing: 2px; text-transform: uppercase;
  color: var(--ex-color, var(--accent)); margin-bottom: 0.9rem;
}
.pf-expertise-card ul { list-style: none; display: flex; flex-direction: column; gap: 0.45rem; }
.pf-expertise-card li {
  font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-dim);
  padding-left: 1rem; position: relative;
}
.pf-expertise-card li::before { content: '—'; position: absolute; left: 0; color: var(--text-dim); }

/* ── TIMELINE ── */
.pf-timeline { position: relative; margin-top: 2rem; padding-left: 2rem; }
.pf-timeline::before {
  content: ''; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--border));
}
.pf-timeline-item { position: relative; padding-bottom: 2rem; }
.pf-timeline-item:last-child { padding-bottom: 0; }
.pf-timeline-item::before {
  content: ''; position: absolute; left: -2rem; top: 4px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--accent);
}
.pf-timeline-item.future::before { border-color: var(--text-dim); background: var(--bg); }
.pf-timeline-year {
  font-family: var(--font-mono); color: var(--accent); font-size: 0.85rem;
  letter-spacing: 2px; margin-bottom: 0.2rem;
}
.pf-timeline-item.future .pf-timeline-year { color: var(--text-dim); }
.pf-timeline-title { font-weight: 700; font-size: 1.05rem; letter-spacing: 1px; }
.pf-timeline-sub { font-family: var(--font-mono); color: var(--text-dim); font-size: 0.82rem; margin-top: 0.2rem; }

/* ── TAG / BADGE PILLS ── */
.pf-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.pf-tag {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 1px;
  padding: 0.3rem 0.7rem; border-radius: 3px;
  background: rgba(0,212,255,0.08); border: 1px solid var(--border); color: var(--text-dim);
}
.pf-badge {
  display: inline-block; font-family: var(--font-mono); font-size: 0.68rem;
  letter-spacing: 1.5px; padding: 0.2rem 0.6rem; border-radius: 2px; text-transform: uppercase;
}
.pf-badge-done { background: rgba(0,255,136,0.1); color: var(--green); border: 1px solid rgba(0,255,136,0.3); }
.pf-badge-progress { background: rgba(0,212,255,0.1); color: var(--accent); border: 1px solid rgba(0,212,255,0.3); }
.pf-badge-future { background: rgba(90,122,138,0.12); color: var(--text-dim); border: 1px solid var(--border); }

/* ── PROJECT GRID / CARDS ── */
.pf-project-group { margin-top: 2.5rem; }
.pf-project-group:first-child { margin-top: 1.5rem; }
.pf-group-label {
  font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-dim);
  letter-spacing: 3px; text-transform: uppercase; border-bottom: 1px solid var(--border);
  padding-bottom: 0.6rem; margin-bottom: 1.25rem;
}
.pf-project-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.25rem;
}
.pf-project-card {
  display: block; text-decoration: none; color: inherit;
  background: var(--bg2); border: 1px solid var(--border); border-radius: 4px;
  padding: 1.5rem; position: relative; overflow: hidden;
  transition: border-color 0.25s, transform 0.2s;
}
.pf-project-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--pc-color, var(--accent)); opacity: 0; transition: opacity 0.25s;
}
.pf-project-card:hover { border-color: var(--pc-color, var(--accent)); transform: translateY(-2px); }
.pf-project-card:hover::before { opacity: 1; }
.pf-project-card .pf-card-cat {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 2px;
  color: var(--pc-color, var(--accent)); text-transform: uppercase; margin-bottom: 0.5rem;
}
.pf-project-card h3 { font-size: 1.05rem; letter-spacing: 1px; margin-bottom: 0.5rem; }
.pf-project-card p { font-family: var(--font-mono); font-size: 0.82rem; color: var(--text-dim); line-height: 1.5; }
.pf-card-live {
  display: inline-flex; align-items: center; gap: 0.35rem; margin-top: 1rem;
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 1px; color: var(--green);
}

/* ── TEAM TABS (projects.alejo99.com) ── */
.pf-team-tabs { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.pf-team-tab {
  display: flex; align-items: center; gap: 0.6rem;
  background: var(--bg2); border: 1px solid var(--border); border-radius: 4px;
  padding: 0.75rem 1.5rem; cursor: pointer;
  font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 2px;
  text-transform: uppercase; color: var(--text-dim);
  transition: border-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.pf-team-tab i { font-size: 1rem; }
.pf-team-tab:hover { border-color: var(--tab-color, var(--accent)); color: var(--text); }
.pf-team-tab.active {
  border-color: var(--tab-color, var(--accent)); color: var(--tab-color, var(--accent));
  box-shadow: 0 0 20px var(--tab-glow, rgba(0,212,255,0.2));
}
.pf-team-tagline {
  font-family: var(--font-mono); font-size: 0.85rem; color: var(--text-dim);
  margin-top: 1rem; letter-spacing: 0.5px;
}
.pf-lab-card { position: relative; }

/* ── CASE STUDY ── */
.pf-case-hero {
  padding: 1rem 0 2rem; border-bottom: 1px solid var(--border); margin-bottom: 2rem;
}
.pf-case-diagram {
  background: var(--bg2); border: 1px solid var(--border); border-radius: 4px;
  padding: 2rem; font-family: var(--font-mono); font-size: 0.85rem; color: var(--text);
  text-align: center; line-height: 2.1; letter-spacing: 1px; white-space: pre-wrap;
  margin-top: 1.5rem; overflow-x: auto;
}
.pf-case-diagram .node { color: var(--accent); }
.pf-case-diagram .arrow { color: var(--text-dim); }
.pf-columns {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem; margin-top: 1.5rem;
}
.pf-columns h4 { font-size: 0.9rem; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); margin-bottom: 0.75rem; }
.pf-columns ul { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; }
.pf-columns li {
  font-family: var(--font-mono); font-size: 0.82rem; color: var(--text-dim);
  padding-left: 1rem; position: relative;
}
.pf-columns li::before { content: '—'; position: absolute; left: 0; }

/* ── RESUME ── */
.pf-resume-block { margin-bottom: 2.5rem; }
.pf-resume-block h2 {
  font-family: var(--font-mono); font-size: 0.85rem; letter-spacing: 4px; color: var(--text-dim);
  border-bottom: 1px solid var(--border); padding-bottom: 0.6rem; margin-bottom: 1.25rem;
  text-transform: uppercase;
}
.pf-skill-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* ── CONTACT ── */
.pf-contact-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem; margin-top: 2rem;
}
.pf-contact-card {
  background: var(--bg2); border: 1px solid var(--border); border-radius: 4px;
  padding: 1.5rem; display: flex; align-items: center; gap: 1rem;
  text-decoration: none; color: var(--text); transition: border-color 0.2s;
}
.pf-contact-card:hover { border-color: var(--accent); }
.pf-contact-card i { font-size: 1.4rem; color: var(--accent); width: 32px; text-align: center; }
.pf-contact-card .label { font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-dim); letter-spacing: 1px; }
.pf-contact-card .value { font-weight: 600; margin-top: 0.15rem; }
.pf-contact-placeholder { color: var(--orange); }
.pf-edit-note {
  font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-dim);
  background: var(--bg2); border: 1px dashed var(--border); border-radius: 4px;
  padding: 1rem 1.25rem; margin-top: 2rem; line-height: 1.6;
}

/* ── FOOTER ── */
.pf-footer { border-top: 1px solid var(--border); margin-top: 4rem; background: var(--bg2); }
.pf-footer-inner {
  max-width: 1400px; margin: 0 auto; padding: 2.5rem 2rem 1.5rem;
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem;
}
.pf-footer-col { display: flex; flex-direction: column; gap: 0.5rem; }
.pf-footer-col p { font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-dim); margin-top: 0.5rem; }
.pf-footer-label { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 2px; color: var(--text-dim); text-transform: uppercase; margin-bottom: 0.3rem; }
.pf-footer-col a { color: var(--text); text-decoration: none; font-family: var(--font-mono); font-size: 0.82rem; transition: color 0.2s; }
.pf-footer-col a:hover { color: var(--accent); }
.pf-footer-bottom {
  max-width: 1400px; margin: 0 auto; padding: 1rem 2rem 2rem;
  font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-dim); letter-spacing: 1px;
}
@media (max-width: 700px) {
  .pf-footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .pf-section { padding: 2rem 1rem; }
  .pf-hero { padding: 2.5rem 1rem 1rem; }
}
