/* ================================================================
   portfolio.  Portfolio pagecss  
   ================================================================ */

body.portfolio-page {
  font-family: 'Exo 2', sans-serif;
  background: #f0f2f5;
  color: #1a2332;
  margin: 0;
}

body.portfolio-page h1,
body.portfolio-page h2,
body.portfolio-page h3,
body.portfolio-page h4,
body.portfolio-page h5,
body.portfolio-page h6 {
  font-family: 'Exo 2', sans-serif;
}

/* Keep site header consistent with other pages */
body.portfolio-page header h1,
body.portfolio-page header h2 {
  font-family: "IBM Plex Mono", "Courier New", monospace;
}

body.portfolio-page header nav ul li a {
  font-family: "IBM Plex Mono", "Courier New", monospace;
}

/* ---- HERO ---- */
.pf-hero {
  background: linear-gradient(135deg, #1a2535 0%, #323b4c 55%, #3c4e66 100%);
  color: #fff;
  padding: 80px 6% 88px;
  position: relative;
  overflow: hidden;
}

.pf-hero::before {
  content: '';
  position: absolute;
  top: -90px;
  right: -90px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  border: 70px solid rgba(78, 205, 196, .12);
  pointer-events: none;
}

.pf-hero::after {
  content: '';
  position: absolute;
  bottom: -70px;
  left: -60px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 52px solid rgba(78, 205, 196, .07);
  pointer-events: none;
}

.pf-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.pf-hero-eyebrow {
  display: inline-block;
  background: rgba(78, 205, 196, .15);
  color: #4ecdc4;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  border: 1px solid rgba(78, 205, 196, .3);
  margin-bottom: 20px;
}

.pf-hero h1 {
  font-size: clamp(2.6rem, 5.5vw, 4.5rem);
  font-weight: 700;
  margin: 0 0 16px;
  line-height: 1.08;
  letter-spacing: -.025em;
  color: #fff;
}

.pf-hero-sub {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, .6);
  font-weight: 300;
  margin: 0;
  line-height: 1.65;
  max-width: 520px;
}

/* ---- ABOUT ---- */
.pf-about {
  background: #fff;
  display: flex;
  align-items: stretch;
}

.pf-about-left {
  background: #323b4c;
  color: #fff;
  width: 260px;
  flex-shrink: 0;
  padding: 50px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}

.pf-profile-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #4ecdc4;
  display: block;
}

.pf-about-name {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
}

.pf-about-role {
  font-size: 0.82rem;
  color: #4ecdc4;
  margin: 0;
  font-weight: 400;
  line-height: 1.5;
}

.pf-about-right {
  flex: 1;
  padding: 50px 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-content: start;
}

.pf-info-block h3 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #4ecdc4;
  margin: 0 0 12px;
}

.pf-info-block ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pf-info-block li {
  font-size: 0.88rem;
  color: #444;
  padding: 5px 0;
  border-bottom: 1px solid #f2f2f2;
  line-height: 1.5;
}

.pf-info-block li:last-child {
  border-bottom: none;
}

/* ---- SKILLS ---- */
.pf-skills {
  background: #323b4c;
  padding: 56px 6%;
}

.pf-skills h2 {
  color: #fff;
  font-size: 1.55rem;
  font-weight: 700;
  margin: 0 0 24px;
}

.pf-skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pf-tag {
  background: rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .8);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 0.83rem;
  font-weight: 400;
  letter-spacing: .01em;
  transition: background .15s, color .15s, border-color .15s;
  cursor: default;
}

.pf-tag:hover {
  background: rgba(78, 205, 196, .2);
  border-color: #4ecdc4;
  color: #4ecdc4;
}

.pf-tag-hi {
  background: rgba(78, 205, 196, .14);
  border-color: rgba(78, 205, 196, .4);
  color: #4ecdc4;
}

/* ---- PROJECTS ---- */
.pf-projects {
  padding: 70px 6%;
  background: #f0f2f5;
}

.pf-projects-header {
  margin-bottom: 40px;
}

.pf-projects-header h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #1a2332;
  margin: 0 0 6px;
}

.pf-projects-header p {
  color: #888;
  font-size: 0.92rem;
  margin: 0;
}

.pf-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.pf-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(0, 0, 0, .07);
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
  border-top: 4px solid transparent;
}

.pf-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, .13);
}

.pf-card.co-samsung {
  border-top-color: #1428a0;
}

.pf-card.co-mera {
  border-top-color: #4ecdc4;
}

.pf-card.co-kodos {
  border-top-color: #6c757d;
}

.pf-card.co-stlth {
  border-top-color: #7c3aed;
}

.pf-card.co-rzd {
  border-top-color: #c0392b;
}

/*  full slide visible, no crop */
Thumbnail .pf-card-thumb {
  background: #0d1117;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.pf-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* show entire image, dark bg fills gaps */
  display: block;
}

.pf-card-body {
  padding: 22px 22px 26px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.pf-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 6px;
}

.pf-badge {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: 100px;
  white-space: nowrap;
}

.pf-badge-samsung {
  background: #eaedff;
  color: #1428a0;
}

.pf-badge-mera {
  background: #dff8f6;
  color: #1a7a74;
}

.pf-badge-kodos {
  background: #efefef;
  color: #555;
}

.pf-badge-stlth {
  background: #f2ecff;
  color: #6d28d9;
}

.pf-badge-rzd {
  background: #fcecea;
  color: #c0392b;
}

.pf-card-year {
  font-size: 0.8rem;
  font-weight: 600;
  color: #aaa;
  letter-spacing: .03em;
}

.pf-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a2332;
  margin: 0 0 10px;
  line-height: 1.3;
}

.pf-card-desc {
  font-size: 0.86rem;
  color: #555;
  line-height: 1.7;
  margin: 0;
  flex: 1;
}

.pf-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 16px;
}

.pf-tech {
  background: #eef2f7;
  color: #3a5068;
  font-size: 0.73rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 4px;
  letter-spacing: .02em;
}

/* ---- CONTACT ---- */
.pf-contact {
  display: flex;
  height: 280px;
}

.pf-contact-left {
  background: #1e2d3d;
  color: #fff;
  flex: 0 0 57%;
  padding: 32px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
}

.pf-contact-left h2 {
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
}

.pf-contact-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pf-contact-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.93rem;
}

.pf-contact-row .lbl {
  color: rgba(255, 255, 255, .4);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  min-width: 54px;
}

.pf-contact-left a {
  color: #4ecdc4;
  text-decoration: none;
}

.pf-contact-left a:hover {
  text-decoration: underline;
}

.pf-contact-right {
  flex: 1;
  overflow: hidden;
}

.pf-contact-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .pf-grid {
    grid-template-columns: 1fr;
  }

  .pf-about {
    flex-direction: column;
  }

  .pf-about-left {
    width: auto;
    flex-direction: row;
    text-align: left;
    gap: 20px;
    align-items: center;
    padding: 32px 28px;
  }

  .pf-about-right {
    padding: 32px 28px;
  }

  .pf-contact {
    flex-direction: column;
  }

  .pf-contact-left {
    flex: none;
    padding: 40px 28px;
  }

  .pf-contact-right {
    height: 240px;
  }
}

@media (max-width: 600px) {
  .pf-hero {
    padding: 52px 5% 60px;
  }

  .pf-about-right {
    grid-template-columns: 1fr;
    padding: 28px 20px;
  }

  .pf-about-left {
    padding: 28px 20px;
  }

  .pf-projects {
    padding: 48px 5%;
  }

  .pf-skills {
    padding: 44px 5%;
  }

  .pf-card-thumb {
    height: 180px;
  }
}