:root {
  --navy:         #212A31;
  --navy-mid:     #2E3944;
  --teal:         #124E66;
  --steel:        #748D92;
  --silver:       #D3D9D4;
  --silver-light: #ECF0EC;
  --text:         #212A31;
  --text-muted:   #748D92;
  --text-faint:   #9AACB0;
  --border:       rgba(116,141,146,0.18);
  --border-md:    rgba(116,141,146,0.32);
  --bg:           #F8FAF9;
  --bg-surface:   #EEF2F0;
  --radius-md:    8px;
  --radius-lg:    12px;
  --teal-glow:    rgba(18,78,102,0.15);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 14px;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

/* ── Edit bar ── */
.edit-bar {
  background: var(--navy);
  padding: .6rem 2rem;
  display: flex; align-items: center;
  justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.edit-bar-msg { font-size: 12px; color: var(--silver); font-weight: 500; }
.edit-bar-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.eb-btn {
  font-size: 12px; font-weight: 500;
  padding: 5px 12px; border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.06);
  color: var(--silver); cursor: pointer;
  text-decoration: none; display: inline-block;
}
.eb-btn:hover { background: rgba(255,255,255,0.12); }
.eb-btn-logout { border-color: rgba(255,255,255,0.08); color: rgba(255,255,255,0.4); }
.eb-btn[type="submit"] { font-family: inherit; cursor: pointer; }

/* ── Section edit controls ── */
.section-edit { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.sec-btn {
  font-size: 11px; padding: 3px 10px; border-radius: 99px;
  border: 1px solid var(--border-md); background: var(--bg);
  color: var(--text-muted); cursor: pointer;
  text-decoration: none; display: inline-block;
}
.sec-btn:hover { background: var(--bg-surface); }
.sec-btn-light {
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.06);
  color: var(--silver);
}
.sec-btn-light:hover { background: rgba(255,255,255,0.12); }
.sec-btn-del { color: #7a2020; border-color: #c47a7a; }
.sec-btn-del:hover { background: #f5e8e8; }
.sec-btn-del-dark {
  color: #f0a0a0; border-color: rgba(240,160,160,0.3);
  background: rgba(240,160,160,0.06);
}
.sec-btn-del-dark:hover { background: rgba(240,160,160,0.14); }
button.sec-btn, button.sec-btn-del, button.sec-btn-del-dark,
button.sec-btn-light { font-family: inherit; cursor: pointer; }

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 55%, var(--teal) 100%);
  padding: 5rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 70% 50%, rgba(18,78,102,0.4) 0%, transparent 60%);
}
.hero-inner {
  max-width: 960px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 200px;
  gap: 3rem; align-items: center;
  position: relative; z-index: 1;
}
.hero-greeting {
  font-size: 14px; color: var(--steel);
  margin-bottom: .5rem; letter-spacing: .05em;
}
.hero h1 {
  font-size: 52px; font-weight: 700;
  letter-spacing: -0.03em; line-height: 1.05;
  color: #ffffff; margin-bottom: .75rem;
}
.hero-role {
  font-size: 15px; color: var(--steel);
  font-weight: 500; margin-bottom: 1.25rem;
  padding-left: 2px;
}
.hero-bio {
  font-size: 13px; line-height: 1.8;
  color: rgba(211,217,212,0.75);
  max-width: 480px; margin-bottom: 2rem;
}
.hero-btns { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 1.5rem; }
.btn-primary {
  font-size: 13px; font-weight: 600;
  padding: 10px 22px; border-radius: var(--radius-md);
  background: var(--teal); color: white;
  border: none; cursor: pointer;
  text-decoration: none; display: inline-block;
  transition: background .15s;
}
.btn-primary:hover { background: #0d3d52; }
.btn-ghost {
  font-size: 13px; padding: 10px 22px;
  border-radius: var(--radius-md); background: transparent;
  color: var(--silver); border: 1px solid rgba(255,255,255,0.25);
  cursor: pointer; text-decoration: none; display: inline-block;
  transition: background .15s;
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); }
.hero-login {
  font-size: 12px; color: rgba(255,255,255,0.3);
  display: inline-block;
}
.hero-login:hover { color: var(--silver); }

.hero-right { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.avatar {
  width: 160px; height: 160px; border-radius: 50%;
  background-image: url('../../images/avatar.jpg');
  background-size: cover;
  background-position: center;
  background-color: var(--teal);
  border: 4px solid rgba(255,255,255,0.12);
  overflow: hidden; flex-shrink: 0;
}
.hero-socials { display: flex; gap: 8px; }
.soc-btn {
  width: 34px; height: 34px; border-radius: 50%;
  border: 0.5px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.07);
  color: var(--silver); font-size: 12px;
  text-decoration: none; transition: background .15s;
}
.soc-btn:hover { background: var(--teal); color: white; }

/* ── Section shell ── */
.section { padding: 4rem 2rem; }
.section-dark { background: var(--navy-mid); }
.section-inner { max-width: 960px; margin: 0 auto; }

.section-label {
  font-size: 13px; font-weight: 600;
  color: var(--teal); margin-bottom: 2rem;
  display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap;
}
.section-label.light { color: var(--steel); }
.label-bar {
  display: inline-block;
  width: 28px; height: 3px;
  background: var(--teal); border-radius: 99px; flex-shrink: 0;
}
.section-label.light .label-bar { background: var(--steel); }

/* ── About ── */
.about-grid {
  display: grid; grid-template-columns: 180px 1fr;
  gap: 3rem; align-items: start;
}
.big-stat { display: flex; flex-direction: column; gap: 8px; }
.big-num {
  font-size: 72px; font-weight: 700;
  letter-spacing: -0.04em; line-height: 1;
  color: var(--teal);
}
.big-desc { font-size: 13px; color: var(--text-muted); line-height: 1.6; }
.about-text-col p { font-size: 14px; color: var(--text-muted); line-height: 1.8; margin-bottom: 2rem; }
.about-stats { display: flex; gap: 2rem; flex-wrap: wrap; }
.mini-stat { display: flex; flex-direction: column; gap: 2px; }
.mini-num { font-size: 28px; font-weight: 700; color: var(--navy); letter-spacing: -0.02em; }
.mini-label { font-size: 11px; color: var(--text-faint); }

/* ── Skills grid ── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.skill-card {
  background: rgba(255,255,255,0.04);
  border: 0.5px solid rgba(116,141,146,0.25);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: border-color .15s, background .15s;
}
.skill-card:hover {
  border-color: var(--steel);
  background: rgba(255,255,255,0.07);
}
.skill-card-icon {
  font-size: 22px; color: var(--steel);
  margin-bottom: 1rem;
}
.skill-card-title {
  font-size: 11px; font-weight: 700;
  letter-spacing: .1em; color: var(--silver);
  margin-bottom: 4px;
}
.skill-card-sub {
  font-size: 11px; color: var(--steel);
  margin-bottom: 1rem; line-height: 1.5;
}
.skill-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.skill-tag {
  font-size: 11px; padding: 3px 10px; border-radius: 99px;
  background: rgba(18,78,102,0.35);
  border: 0.5px solid rgba(116,141,146,0.3);
  color: var(--silver);
  display: inline-flex; align-items: center; gap: 5px;
}
button.skill-del {
  background: none; border: none; padding: 0;
  cursor: pointer; color: #f0a0a0;
  font-size: 10px; font-family: inherit; line-height: 1;
}
button.skill-del:hover { font-weight: 700; }

.edu-mini { margin-top: 10px; }
.edu-mini-school { font-size: 12px; font-weight: 600; color: var(--silver); }
.edu-mini-deg { font-size: 11px; color: var(--steel); }
.edu-mini-yr { font-size: 11px; color: var(--text-faint); }

/* ── Experience ── */
.timeline { display: flex; flex-direction: column; }
.exp-item { display: grid; grid-template-columns: 28px 1fr; gap: 16px; padding-bottom: 2.5rem; }
.exp-line { display: flex; flex-direction: column; align-items: center; }
.exp-dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--teal); border: 2px solid var(--bg-surface);
  flex-shrink: 0; margin-top: 3px;
}
.exp-tail { width: 1px; background: var(--border-md); flex: 1; margin-top: 6px; }
.exp-item:last-child .exp-tail { display: none; }
.exp-co { font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 2px; }
.exp-role { font-size: 13px; color: var(--teal); font-weight: 500; margin-bottom: 4px; }
.exp-meta { font-size: 11px; color: var(--text-faint); margin-bottom: 12px; }
.exp-bullets { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.exp-bullets li {
  font-size: 13px; color: var(--text-muted);
  padding-left: 14px; position: relative; line-height: 1.55;
}
.exp-bullets li::before { content: "–"; position: absolute; left: 0; color: var(--steel); }


/* ── Nested roles within a company ── */
.exp-company-header { margin-bottom: 12px; }

.exp-roles { 
  display: flex; 
  flex-direction: column; 
  gap: 16px;
  padding-left: 16px;
  border-left: 2px solid var(--border);
  margin-top: 8px;
}

.exp-role-item { 
  display: grid; 
  grid-template-columns: 16px 1fr; 
  gap: 10px;
  align-items: start;
}

.exp-role-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--purple-200);
  border: 2px solid var(--bg);
  margin-top: 5px;
  flex-shrink: 0;
}

.exp-role-body { display: flex; flex-direction: column; gap: 2px; }

.exp-role-date { font-size: 11px; color: var(--text-faint); margin-bottom: 6px; }



/* ── Projects ── */
.proj-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.proj-card {
  background: rgba(255,255,255,0.04);
  border: 0.5px solid rgba(116,141,146,0.2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color .15s, transform .15s;
  display: flex; 
  flex-direction: column;
  height: 100%;
}
.proj-card:hover {
  border-color: var(--steel);
  transform: translateY(-2px);
}
.proj-preview {
  height: 100px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.proj-preview-letter {
  font-size: 48px; font-weight: 800;
  color: rgba(33,42,49,0.25);
  line-height: 1;
}
.proj-body { 
  padding: 1.25rem; 
  display: flex; 
  flex-direction: column;
  height: 100%;
}
.proj-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.proj-name { font-size: 14px; font-weight: 700; color: var(--silver); }
.proj-links { display: flex; gap: 8px; }
.proj-link { font-size: 12px; color: var(--steel); }
.proj-link:hover { color: var(--silver); }
.proj-desc { font-size: 12px; color: var(--steel); line-height: 1.6; margin-bottom: 12px; }
.proj-tags { display: flex; gap: 5px; flex-wrap: wrap; }
.proj-tag {
  font-size: 11px; padding: 2px 9px; border-radius: 99px;
  background: rgba(18,78,102,0.4);
  color: var(--silver);
  border: 0.5px solid rgba(116,141,146,0.25);
}

.proj-loc {
  margin-top: auto; 
}

.proj-stat {
  font-size: 11px; 
  color: var(--text-faint); 
  margin-bottom: 6px;
}

.proj-meta {
  height: 3px; 
  background: var(--border-md); 
  border-radius: 99px;
  bottom: 0;
  
}

.proj-completion {
  height: 3px; 
  border-radius: 99px; 
  background: var(--silver);
}

/* ── Contact ── */
.contact-section { background: var(--bg-surface); }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem;
}
.service-item {
  display: flex; gap: 14px; align-items: flex-start;
  margin-bottom: 1.5rem;
}
.service-icon {
  font-size: 18px; color: var(--teal);
  margin-top: 2px; flex-shrink: 0;
}
.service-title { font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 3px; }
.service-desc { font-size: 12px; color: var(--text-muted); line-height: 1.55; }
.contact-links { display: flex; flex-direction: column; gap: 10px; margin-bottom: 2rem; }
.contact-chip {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px; border-radius: var(--radius-md);
  border: 0.5px solid var(--border-md);
  background: var(--bg); color: var(--text-muted);
  font-size: 13px; text-decoration: none;
  transition: border-color .15s, background .15s;
}
.contact-chip:hover { border-color: var(--teal); background: white; color: var(--teal); }
.contact-chip-icon {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--teal); color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; flex-shrink: 0;
}
.lang-block { margin-top: 1rem; }
.lang-block-label {
  font-size: 11px; font-weight: 600; letter-spacing: .09em;
  text-transform: uppercase; color: var(--teal);
  margin-bottom: 1rem;
}
.lang-list { display: flex; flex-direction: column; gap: 12px; }
.lang-row { display: flex; flex-direction: column; gap: 4px; }
.lang-top { display: flex; justify-content: space-between; font-size: 12px; }
.lang-name { color: var(--text-muted); }
.lang-level { color: var(--text-faint); }
.lang-bar-wrap { height: 3px; background: var(--border-md); border-radius: 99px; }
.lang-bar { height: 3px; border-radius: 99px; background: var(--teal); }

.avail-badge {
  display: inline-flex; 
  align-items: center; 
  gap: 8px;
  font-size: 12px; 
  font-weight: 500;
  padding: 6px 14px; 
  border-radius: 99px;
  background: rgba(18,78,102,0.08);
  border: 0.5px solid rgba(18,78,102,0.25);
  color: var(--teal); margin-top: 1.5rem;
}
.avail-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #5BBF8A;
  flex-shrink: 0;
}
.avail-badge-hero {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.18);
  color: var(--silver);
}

/* ── Misc ── */
.empty-msg { font-size: 13px; color: var(--text-faint); }
.empty-msg.light { color: var(--steel); }

/* ── Responsive ── */
@media (max-width: 640px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-right { display: none; }
  .hero h1 { font-size: 36px; }
  .about-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .proj-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr 1fr; }
}


