/* ==========================================================================
   Damian Job Kahamba — Portfolio v2
   Dark, red-accent editorial design, matching reference layout:
   framed photo card, angled accent shape, right-edge icon dock.
   ========================================================================== */

:root{
  --bg:        #0d0d0d;
  --bg-soft:   #131313;
  --card:      #1a1a1a;
  --card-line: #262626;
  --white:     #F5F5F3;
  --muted:     #A0A0A0;
  --red:       #E8382C;
  --red-dark:  #B82418;
  --radius:    16px;
  --font-display: "Poppins", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --max: 1180px;
}

*{ box-sizing: border-box; margin: 0; padding: 0; }
html{ scroll-behavior: smooth; }
body{
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  padding-right: 78px; /* room for the icon dock */
}
img{ max-width: 100%; display: block; }
a{ color: inherit; }
:focus-visible{ outline: 2px solid var(--red); outline-offset: 3px; }

.wrap{ max-width: var(--max); margin: 0 auto; padding: 0 40px; }

/* ---- Icon dock ---- */
.dock{
  position: fixed; right: 0; top: 50%; transform: translateY(-50%);
  z-index: 200; display: flex; flex-direction: column; gap: 14px;
  padding: 18px 14px;
}
.dock a{
  width: 44px; height: 44px; border-radius: 50%; background: var(--card);
  border: 1px solid var(--card-line); display: flex; align-items: center; justify-content: center;
  text-decoration: none; transition: .18s;
}
.dock a svg{ width: 18px; height: 18px; fill: var(--muted); transition: .18s; }
.dock a:hover{ background: var(--red); border-color: var(--red); }
.dock a:hover svg{ fill: #fff; }
.dock a.active{ background: var(--red); border-color: var(--red); }
.dock a.active svg{ fill: #fff; }

/* ---- Sections ---- */
section{ padding: 110px 0; }
section.tight{ padding-top: 0; }

.eyebrow-row{ display: flex; align-items: center; gap: 12px; margin-bottom: 44px; }
.eyebrow-row .dash{ width: 30px; height: 2px; background: var(--red); }
.eyebrow-row span{
  font-family: var(--font-display); font-weight: 700; font-size: .8rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.eyebrow-row .num{ color: var(--red); }

/* ---- Hero ---- */
#home{ padding-top: 90px; }
.hero{
  display: grid; grid-template-columns: 420px 1fr; gap: 70px; align-items: center;
}

.photo-frame{ position: relative; }
.photo-frame::before{
  content: "";
  position: absolute; top: -22px; left: -22px; width: 100%; height: 100%;
  background: var(--red);
  clip-path: polygon(0 0, 78% 0, 100% 14%, 100% 100%, 22% 100%, 0 86%);
  z-index: 0;
}
.photo-card{
  position: relative; z-index: 1; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--card-line); aspect-ratio: 3/4;
}
.photo-card img{ width: 100%; height: 100%; object-fit: cover; }

.hero-dash{
  display: flex; align-items: flex-start; gap: 14px; margin-bottom: 6px;
}
.hero-dash .bar{ width: 34px; height: 3px; background: var(--red); margin-top: 20px; flex-shrink: 0; }
.hero-kicker{
  font-family: var(--font-display); font-weight: 800; font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  color: var(--red); text-transform: uppercase; line-height: 1.25; letter-spacing: .01em;
}
.hero-role{
  font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 3.6vw, 2.9rem);
  text-transform: uppercase; color: var(--white); margin: 6px 0 26px; line-height: 1.15;
}
.hero-lede{ color: var(--muted); font-size: 1.02rem; max-width: 56ch; margin-bottom: 34px; }

.btn-pill{
  display: inline-flex; align-items: center; gap: 12px; padding: 15px 26px 15px 28px;
  background: var(--red); color: #fff; border-radius: 999px; text-decoration: none;
  font-family: var(--font-display); font-weight: 700; font-size: .82rem;
  letter-spacing: .06em; text-transform: uppercase; transition: background .15s, transform .15s;
}
.btn-pill:hover{ background: var(--red-dark); transform: translateY(-1px); }
.btn-pill .arrow{
  width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.18);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.btn-pill svg{ width: 13px; height: 13px; fill: #fff; }

/* ---- Section heading ---- */
h2.section-h{
  font-family: var(--font-display); font-weight: 800; font-size: clamp(1.7rem, 3vw, 2.3rem);
  text-transform: uppercase; margin-bottom: 8px;
}
h2.section-h .accent{ color: var(--red); }
.section-sub{ color: var(--muted); max-width: 60ch; margin-bottom: 46px; }

/* ---- About / bio ---- */
.about-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.bio p{ color: var(--muted); margin-bottom: 18px; font-size: 1.02rem; }
.venture-line{
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 24px;
  padding: 16px 18px; background: var(--card); border: 1px solid var(--card-line);
  border-left: 3px solid var(--red); border-radius: 8px; font-size: .92rem; color: var(--muted);
}
.venture-line strong{ color: var(--white); }
.venture-line a{ color: var(--red); text-decoration: none; font-weight: 600; }
.venture-line a:hover{ text-decoration: underline; }
.venture-line .pending{ color: #6b6b6b; font-style: italic; }

.skill-tags{ display: flex; flex-wrap: wrap; gap: 10px; }
.skill-tag{
  padding: 9px 16px; background: var(--card); border: 1px solid var(--card-line);
  border-radius: 999px; font-size: .86rem; color: var(--white);
}

/* ---- Projects (cards) ---- */
.project-list{ display: flex; flex-direction: column; gap: 16px; }
.project-card{
  background: var(--card); border: 1px solid var(--card-line); border-radius: 10px;
  padding: 24px 26px; display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: start;
}
.project-card .pnum{ font-family: var(--font-display); font-weight: 800; color: var(--red); font-size: 1.1rem; }
.project-card h3{ font-size: 1.05rem; margin-bottom: 6px; }
.project-card .pmeta{ color: var(--muted); font-size: .88rem; margin-bottom: 8px; }
.project-card .pmethod{
  display: inline-block; font-size: .76rem; text-transform: uppercase; letter-spacing: .04em;
  color: var(--red); background: rgba(232,56,44,.12); padding: 4px 10px; border-radius: 4px;
}
.project-card .plink{ align-self: center; color: var(--red); font-size: .86rem; text-decoration: none; font-weight: 600; white-space: nowrap; }
.project-card .plink:hover{ text-decoration: underline; }

/* ---- Services ---- */
.services-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card{
  background: var(--card); border: 1px solid var(--card-line); border-radius: 12px;
  padding: 30px 26px; transition: border-color .15s, transform .15s;
}
.service-card:hover{ border-color: var(--red); transform: translateY(-3px); }
.service-card .sic{
  width: 46px; height: 46px; border-radius: 10px; background: rgba(232,56,44,.12);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.service-card .sic svg{ width: 22px; height: 22px; fill: var(--red); }
.service-card h3{ font-size: 1.05rem; margin-bottom: 10px; }
.service-card p{ color: var(--muted); font-size: .9rem; }

/* ---- Contact ---- */
.contact-grid{ display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.contact-card{
  background: var(--card); border: 1px solid var(--card-line); border-radius: 10px;
  padding: 26px 32px; text-decoration: none; color: var(--white);
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px;
  transition: border-color .15s, transform .15s;
}
.contact-card:hover{ border-color: var(--red); transform: translateY(-2px); }
.contact-card .cic{
  width: 52px; height: 52px; border-radius: 50%; background: rgba(232,56,44,.12);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-card .cic svg{ width: 22px; height: 22px; fill: var(--red); }
.contact-card .clabel{ font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.contact-card .cvalue{ font-weight: 600; font-size: 1.05rem; white-space: nowrap; }

/* ---- Footer ---- */
footer{ padding: 40px 0; border-top: 1px solid var(--card-line); }
.footer-row{
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px;
  font-size: .82rem; color: var(--muted);
}
.footer-row a{ color: var(--muted); text-decoration: none; }
.footer-row a:hover{ color: var(--red); }
.footer-links{ display: flex; gap: 18px; flex-wrap: wrap; }

/* ---- Responsive ---- */
@media (max-width: 980px){
  body{ padding-right: 0; padding-bottom: 74px; }
  .dock{
    top: auto; bottom: 0; left: 0; right: 0; transform: none; flex-direction: row;
    justify-content: center; background: var(--bg-soft); border-top: 1px solid var(--card-line);
    width: 100%; padding: 10px 14px;
  }
  .hero{ grid-template-columns: 1fr; }
  .photo-frame{ max-width: 340px; margin: 0 auto; }
  .about-grid{ grid-template-columns: 1fr; }
  .services-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px){
  .wrap{ padding: 0 22px; }
  section{ padding: 76px 0; }
  .services-grid{ grid-template-columns: 1fr; }
  .contact-grid{ grid-template-columns: 1fr; }
  .project-card{ grid-template-columns: 1fr; }
  .hero-role{ font-size: 1.9rem; }
}

/* ---- Motion ---- */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{ transition: none !important; }
}

/* ---- Privacy page ---- */
.doc-page{ max-width: 720px; margin: 0 auto; padding: 90px 28px 110px; }
.doc-page h1{ font-family: var(--font-display); font-weight: 800; font-size: 2rem; margin-bottom: 8px; text-transform: uppercase; }
.doc-page .updated{ font-size: .8rem; color: var(--muted); margin-bottom: 36px; }
.doc-page h2{ font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; margin: 32px 0 12px; }
.doc-page p, .doc-page li{ color: var(--muted); margin-bottom: 12px; }
.doc-page a{ color: var(--red); }
.back-link{ display:inline-block; margin-bottom: 30px; font-size: .84rem; color: var(--red); text-decoration:none; }
.back-link:hover{ text-decoration: underline; }
