:root {
  --bg: #0d1117;
  --surface: #161b22;
  --surface2: #1c2330;
  --border: #30363d;
  --accent: #2f81f7;
  --accent2: #58a6ff;
  --green: #3fb950;
  --orange: #f78166;
  --text: #e6edf3;
  --muted: #8b949e;
  --highlight: #ffa657;
}

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

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}

a { color: var(--accent2); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Layout ── */
.container { max-width: 960px; margin: 0 auto; padding: 0 24px; }

/* ── Header ── */
header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 40px 0 36px;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  position: relative;
}

.avatar {
  width: 110px;
  height: 110px;
  /*border-radius: 50%; */
  border: 3px solid var(--accent);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--surface2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: var(--muted);
  overflow: hidden;
}

.avatar-placeholder {
  width: 200px; height: 325px; /*border-radius: 50%; */
  border: 3px solid var(--accent);
  background: linear-gradient(135deg, #1c2330, #2f3d52);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 48px;
  background-image: url('./images/hero3.jpg');
  background-size: cover;
  background-position: center;
}

.header-text { flex: 1; }

.header-text h1 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.header-text h1 span { color: var(--accent2); }

.role {
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.95rem;
  font-weight: 600;
  margin: 6px 0 12px;
  letter-spacing: 0.3px;
}

.tagline {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 440px;
  margin-bottom: 16px;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.875rem;
  color: var(--muted);
}

.contact-links span, .contact-links a {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
}

.contact-links a:hover { color: var(--accent2); text-decoration: none; }

.kite-deco {
  position: absolute;
  right: 0; top: -10px;
  opacity: 0.18;
  width: 110px;
}

/* ── Sections ── */
main { padding: 40px 0 60px; }

section { margin-bottom: 52px; }

.section-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text);
}

.section-heading .icon {
  color: var(--accent);
  font-size: 1.1rem;
}

/* ── About ── */
.about-text {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 700px;
  border-left: 3px solid var(--accent);
  padding-left: 16px;
}

/* ── Work Experience ── */
.job-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 16px;
  transition: border-color 0.2s;
}

.job-card:hover { border-color: var(--accent); }

.job-header { display: flex; gap: 24px; align-items: flex-start; }

.job-main { flex: 1; }

.job-title {
  font-weight: 600;
  font-size: 1rem;
  font-family: 'JetBrains Mono', monospace;
}

.job-company {
  color: var(--accent2);
  font-size: 0.875rem;
  font-weight: 500;
  margin: 2px 0;
}

.job-dates {
  color: var(--muted);
  font-size: 0.8rem;
  font-family: 'JetBrains Mono', monospace;
}

.job-bullets {
  margin-top: 14px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.job-bullets li {
  font-size: 0.875rem;
  color: var(--muted);
  padding-left: 18px;
  position: relative;
}

.job-bullets li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--border);
}

.job-bullets .num { color: var(--highlight); font-weight: 600; }
.job-bullets .money { color: var(--green); font-weight: 600; }

/* Tech Stack sidebar */
.tech-stack {
  min-width: 200px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
}

.tech-stack-title {
  font-size: 0.7rem;
  font-family: 'JetBrains Mono', monospace;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 10px;
}

.tech-badges {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
}

.badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* badge colors */
.c-aws { background: #ff9900; }
.c-tf  { background: #7b42bc; }
.c-k8s { background: #326ce5; }
.c-docker { background: #2496ed; }
.c-py { background: #3776ab; }
.c-prom { background: #e6522c; }
.c-jenkins { background: #d33833; }
.c-gitlab { background: #fc6d26; }
.c-cw { background: #ff9900; }
.c-linux { background: #fcc624; }
.c-ansible { background: #e00; }
.c-nagios { background: #23519e; }
.c-mysql { background: #4479a1; }
.c-nginx { background: #009639; }
.c-gh { background: #2da44e; }
.c-helm { background: #0f1689; }
.c-grafana { background: #f46800; }
.c-elk { background: #005571; }
.c-azure { background: #0078d4; }
.c-gcp { background: #4285f4; }
.c-cf { background: #ec7211; }
.c-baell { background: #76bd22; }

/* ── Skills ── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
}

.skill-group-title {
  font-size: 0.75rem;
  font-family: 'JetBrains Mono', monospace;
  color: var(--accent2);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 10px;
  font-weight: 600;
}

.skill-group { }

.skill-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  margin-bottom: 7px;
  color: var(--text);
}

/* ── Projects ── */
.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 22px;
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  cursor: pointer;
  transition: border-color 0.2s;
  flex-wrap: wrap;
}

.project-card:hover { border-color: var(--accent); }

.project-icon {
  width: 38px; height: 38px;
  border-radius: 8px;
  background: var(--surface2);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.project-info { flex: 1; }

.project-name {
  font-weight: 600;
  font-size: 0.95rem;
  font-family: 'JetBrains Mono', monospace;
}

.project-desc {
  font-size: 0.835rem;
  color: var(--muted);
  margin-top: 3px;
}

.project-chevron {
  color: var(--muted);
  display: flex;
  align-items: center;
  transition: transform 0.3s ease, color 0.2s;
  flex-shrink: 0;
}

.project-card.open .project-chevron {
  transform: rotate(180deg);
  color: var(--accent2);
}

.project-body {
  display: none;
  grid-column: 1 / -1;
  padding-top: 14px;
  margin-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.7;
  width: 100%;
}

.project-card.open .project-body { display: block; }

.project-card.open { border-color: var(--accent); }

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.ptag {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 3px 9px;
  font-size: 0.75rem;
  font-family: 'JetBrains Mono', monospace;
  color: var(--accent2);
}

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
}

.footer-icons {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  align-items: center;
  margin-top: -28px;
}

.footer-icon {
  width: 32px; height: 32px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
  transition: border-color 0.2s, color 0.2s;
  font-size: 14px;
  cursor: pointer;
}

.footer-icon:hover { border-color: var(--accent2); color: var(--accent2); }

/* SVG icons */
svg.icon { width: 14px; height: 14px; fill: currentColor; vertical-align: middle; }
.section-heading .icon { display: flex; align-items: center; color: var(--accent); }

@media (max-width: 680px) {
  .header-inner { flex-direction: column; gap: 16px; }
  .job-header { flex-direction: column; }
  .tech-stack { min-width: unset; width: 100%; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
}
