/*
 * portfolio/style.css - the clean page supplement.
 * inherits EVERYTHING from ../style.css and ../navbar.css.
 * this file only adds portfolio-specific stuff and overrides
 * where the main site would be too chaotic for a recruiter.
 *
 * the page uses the same container nesting as every other page:
 *   body > nav.navbar > div.master-container > section.biggirl-container
 *   > section.bigboy-container > main.main-container > div.body-container
 *
 * so the background, shadows, gradients, and scrollbars all Just Work™.
 */

/* ── hero layout inside the first body-container ───────────────────── */

.portfolio-hero {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.portfolio-hero-pfp {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  border: 4px solid white;
  box-shadow: var(--win-shadow-raised);
  object-fit: cover;
  flex-shrink: 0;
}

.portfolio-hero-text {
  flex: 1;
  min-width: 220px;
}

.portfolio-hero-text h1 {
  font-family: var(--font-win98);
  font-size: 1.8rem;
  margin: 0 0 4px;
  letter-spacing: 0.5px;
}

.portfolio-tagline {
  font-family: var(--font-system);
  font-size: 0.95rem;
  color: #444;
  margin: 0 0 8px;
}

.portfolio-hero-text > p {
  margin: 0 0 6px;
  font-size: 1rem;
}

.portfolio-contact-line {
  font-family: var(--font-system);
  font-size: 0.85rem;
  color: #555;
  margin-top: 8px;
}

.portfolio-contact-line a {
  color: darkblue;
}

/* ── kill the min-height on the skills container so it doesn't leave
   a huge blank gap. fat-container sets 360px by default which looks
   terrible when the content is just a few tag rows ──────────────── */

#skills {
  min-height: 0;
}

/* ── skills grid ───────────────────────────────────────────────────── */

.portfolio-skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* strip the heavy .text-container border/shadow off the group boxes -
   the tags themselves carry all the visual weight here */
.portfolio-skill-group {
  flex: 1 1 200px;
  padding: 12px 16px;
  border: none;
  box-shadow: none;
}

.portfolio-skill-group h3 {
  margin: 0 0 8px;
  font-size: 0.95rem;
}

.portfolio-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* plain comma-separated label - no button chrome, just text */
.portfolio-skill-tag {
  font-family: var(--font-body);
  font-size: 0.95rem;
}

/* put a comma after every tag except the last one in its group */
.portfolio-skill-tag::after {
  content: ',';
}

.portfolio-skill-tag:last-child::after {
  content: '';
}

/* colored language tags - just bold, no color weirdness */
.portfolio-skill-tag.skill-lang-cpp,
.portfolio-skill-tag.skill-lang-asm,
.portfolio-skill-tag.skill-lang-html,
.portfolio-skill-tag.skill-lang-css,
.portfolio-skill-tag.skill-lang-js { font-weight: bold; }

/* ── experience / education entries ────────────────────────────────── */

.portfolio-entry {
  margin-bottom: 16px;
  padding-left: 14px;
  border-left: 3px solid var(--win-accent-dark);
}

.portfolio-entry h2 {
  font-size: 1.05rem;
  margin: 0 0 2px;
}

.portfolio-entry h3 {
  font-size: 1rem;
  margin: 0 0 2px;
}

.entry-meta {
  font-family: var(--font-win98);
  font-size: 0.78rem;
  color: #555;
  margin-bottom: 6px;
  letter-spacing: 0.3px;
}

.portfolio-entry p {
  margin: 4px 0 0;
  font-size: 0.95rem;
}

.portfolio-bullets {
  margin: 4px 0 0;
  padding-left: 20px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.6;
}

.portfolio-bullets li {
  margin-bottom: 4px;
}

/* ── project meta line ─────────────────────────────────────────────── */

.project-meta {
  font-family: var(--font-win98);
  font-size: 0.78rem;
  color: #555;
  margin-bottom: 6px;
  letter-spacing: 0.3px;
}

.project-meta a {
  color: darkblue;
}

/* ── mission box ───────────────────────────────────────────────────── */

.portfolio-mission-box {
  padding: 20px 24px;
}

.portfolio-mission-box p {
  line-height: 1.7;
  font-size: 1rem;
}

/* ── background: blur + darken so the hero image isn't distracting ──
   we can't filter body directly (it nukes all children), and
   backdrop-filter only blurs what's *behind* an element, not the
   body background itself. solution: a fixed ::before pseudo on html
   that sits below everything and applies filter to a copy of the bg. */

html::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url(../assets/hero-img.webp);
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  filter: blur(4px) brightness(0.45);
  z-index: -1;
  transform: scale(1.05); /* prevent blur edge fringing */
}

/* strip the body's own background so the pseudo shows through */
body {
  background-image: none;
}

/* tighten up the overlay gradient - the blur+brightness already darkens */
.master-container {
  background: linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.4) 0%,
    rgba(0, 0, 0, 0.1) 100%
  );
}

@media (max-width: 600px) {
  .portfolio-hero {
    flex-direction: column;
    text-align: center;
  }

  .portfolio-hero-pfp {
    width: 100px;
    height: 100px;
  }

  .portfolio-skill-group {
    flex-basis: 100%;
  }
}
