/* ============================================================
   THEME: SPECTRA — Amber accent, vertical timeline, warm dark
   ============================================================ */
@keyframes fadeIn  { from{opacity:0} to{opacity:1} }
@keyframes fadeUp  { from{opacity:0;transform:translateY(16px)} to{opacity:1;transform:translateY(0)} }

.sp-wrap {
  font-family: 'DM Sans', sans-serif;
  background: #0c0a07;
  color: #d4cbb8;
  min-height: 100vh;
  animation: fadeIn .5s ease;
}

/* ── Header ── */
.sp-header {
  padding: 0 50px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #221e14;
  position: sticky; top: 0; z-index: 50;
  background: rgba(12,10,7,.96);
  backdrop-filter: blur(10px);
}
.sp-header-name { font-size: .85rem; color: #c4a35a; letter-spacing: .04em; font-weight: 500; }
.sp-header-nav  { display: flex; gap: 4px; }
.sp-header-link {
  padding: 6px 14px;
  color: #7a6e58;
  font-size: .78rem;
  cursor: pointer;
  transition: all .2s;
  border-radius: 4px;
}
.sp-header-link:hover,
.sp-header-link.active { color: #c4a35a; background: #181408; }

/* ── Hero ── */
.sp-hero {
  padding: 80px 50px 60px;
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 40px;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
  border-bottom: 1px solid #1a1610;
}
.sp-hero-img {
  width: 150px; height: 150px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid #2a2010;
  justify-self: end;
  display: block;
}
.sp-eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: .62rem;
  letter-spacing: .2em;
  color: #5a4e30;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.sp-name {
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: #f0e8d0;
  font-weight: 600;
  letter-spacing: -.025em;
  margin-bottom: 10px;
  line-height: 1.05;
}
.sp-role  { color: #c4a35a; font-size: .92rem; margin-bottom: 18px; font-weight: 400; }
.sp-bio-hero {
  color: #8a7e68;
  font-size: .9rem;
  line-height: 1.85;
  max-width: 500px;
  margin-bottom: 28px;
}
.sp-resume-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 22px;
  border: 1px solid #2e2614;
  color: #c4a35a;
  font-size: .82rem;
  text-decoration: none;
  transition: all .2s;
  border-radius: 4px;
}
.sp-resume-btn:hover { background: rgba(196,163,90,.08); border-color: #c4a35a; }

/* ── Body / Sections ── */
.sp-body { max-width: 1000px; margin: 0 auto; padding: 0 50px 80px; }
.sp-section { display: none; animation: fadeUp .35s ease; }
.sp-section.active { display: block; padding-top: 50px; }

.sp-section-header {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 32px;
}
.sp-section-accent { width: 3px; height: 24px; background: #c4a35a; border-radius: 2px; flex-shrink: 0; }
.sp-section-title  { font-size: 1.35rem; color: #f0e8d0; font-weight: 500; }

/* ── Services grid ── */
.sp-doing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px,1fr));
  gap: 12px;
}
.sp-doing-card {
  border: 1px solid #1e1a10;
  padding: 20px;
  border-radius: 7px;
  transition: all .25s;
  background: #0f0d08;
}
.sp-doing-card:hover { border-color: rgba(196,163,90,.35); background: #13110a; transform: translateY(-2px); }
.sp-icon-box {
  width: 38px; height: 38px;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem;
  margin-bottom: 12px;
}
.sp-doing-title { font-size: .9rem; color: #e8dcc0; margin-bottom: 5px; font-weight: 500; }
.sp-doing-desc  { font-size: .78rem; color: #6a5e48; line-height: 1.65; }

/* ── Skills ── */
.sp-skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px,1fr));
  gap: 12px;
}
.sp-skill-cat {
  border: 1px solid #1e1a10;
  padding: 18px;
  border-radius: 7px;
  background: #0f0d08;
}
.sp-skill-cat-name {
  font-size: .62rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #c4a35a;
  margin-bottom: 12px;
  font-weight: 600;
}
.sp-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.sp-tag  {
  border: 1px solid #2a2416;
  padding: 4px 10px;
  font-size: .75rem;
  color: #8a7e68;
  border-radius: 3px;
  background: #13110a;
}

/* ── Timeline ── */
.sp-timeline {
  position: relative;
  padding-left: 30px;
}
.sp-timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 8px; bottom: 8px;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(196,163,90,.5) 20%, rgba(196,163,90,.5) 80%, transparent);
}
.sp-titem {
  position: relative;
  margin-bottom: 38px;
  padding-bottom: 38px;
  border-bottom: 1px solid #161410;
}
.sp-titem:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.sp-tdot {
  position: absolute;
  left: -35px; top: 6px;
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(196,163,90,.7);
  background: rgba(196,163,90,.15);
}
.sp-tdate  {
  font-family: 'IBM Plex Mono', monospace;
  font-size: .65rem;
  color: #c4a35a;
  margin-bottom: 6px;
  letter-spacing: .08em;
}
.sp-tinst { font-size: .95rem; color: #e8dcc0; margin-bottom: 3px; }
.sp-tdeg  { font-size: .82rem; color: #6a5e48; }

/* ── Projects ── */
.sp-proj-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px,1fr));
  gap: 14px;
}
.sp-proj-card {
  border: 1px solid #1e1a10;
  padding: 22px;
  border-radius: 7px;
  display: flex; flex-direction: column;
  background: #0f0d08;
  transition: all .3s;
}
.sp-proj-card:hover { border-color: rgba(196,163,90,.35); transform: translateY(-2px); }
.sp-proj-title { font-size: .95rem; color: #e8dcc0; margin-bottom: 7px; font-weight: 500; }
.sp-proj-desc  { font-size: .82rem; color: #6a5e48; flex: 1; line-height: 1.65; }
.sp-proj-links { display: flex; gap: 8px; margin-top: 14px; }
.sp-btn-sm {
  padding: 5px 12px;
  font-size: .74rem;
  border: 1px solid #2a2416;
  color: #7a6e58;
  transition: all .2s;
  display: flex; align-items: center; gap: 5px;
  text-decoration: none;
  border-radius: 3px;
  background: #13110a;
}
.sp-btn-sm:hover { border-color: #c4a35a; color: #c4a35a; }

/* ── Achievements ── */
.sp-ach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px,1fr));
  gap: 12px;
}
.sp-ach-card {
  border: 1px solid #1e1a10;
  padding: 18px;
  border-radius: 7px;
  display: flex; align-items: flex-start; gap: 14px;
  background: #0f0d08;
}
.sp-ach-icon  { color: rgba(196,163,90,.6); font-size: 1.1rem; flex-shrink: 0; margin-top: 2px; }
.sp-ach-title { font-size: .88rem; color: #e8dcc0; margin-bottom: 3px; }
.sp-ach-sub   { font-size: .76rem; color: #6a5e48; margin: 0; }
.sp-cert-link { display: inline-block; margin-top: 5px; font-size: .68rem; color: #c4a35a; text-decoration: none; }

.sp-empty { color: #3a3020; font-size: .83rem; font-style: italic; }

@media (max-width: 800px) {
  .sp-hero { grid-template-columns: 1fr; padding: 50px 24px 40px; }
  .sp-hero-img { justify-self: start; }
  .sp-header { padding: 0 20px; }
  .sp-body { padding: 0 24px 60px; }
}

/* ── Contact row ── */
.sp-contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}
.sp-contact-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  border: 1px solid #2a2416;
  border-radius: 4px;
  color: #8a7e68;
  font-size: .8rem;
  text-decoration: none;
  background: #0f0d08;
  transition: all .2s;
}
.sp-contact-item:hover { border-color: #c4a35a; color: #c4a35a; }
.sp-contact-item i { font-size: .85rem; }
.sp-contact-item span { display: inline; }
