:root {
  --bg: #0a0f0d;
  --bg-card: #111916;
  --text: #d4d8d6;
  --text-dim: #7a8580;
  --text-bright: #e8ece9;
  --accent: #4a9e7a;
  --accent-dim: #2d6b50;
  --contour: #1a2822;
  --contour-light: #223530;
  --bar-bg: #1a2822;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--text-bright);
}

/* --- Topo background --- */
.topo-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.4;
}

/* --- Layout --- */
.site-wrapper {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

/* --- Header --- */
.site-header {
  margin-bottom: 3rem;
}

.header-name {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--text-bright);
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

.header-title {
  font-size: 1.1rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.header-coords {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  margin-bottom: 1.2rem;
}

.header-coords span {
  margin-right: 1.5rem;
}

.header-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  list-style: none;
  font-size: 0.9rem;
}

.header-links a {
  color: var(--text-dim);
  transition: color 0.2s;
}

.header-links a:hover {
  color: var(--accent);
}

/* --- Contour divider --- */
.contour-divider {
  border: none;
  height: 3px;
  margin: 2.5rem 0;
  background: repeating-linear-gradient(
    90deg,
    var(--contour-light) 0px,
    var(--contour-light) 8px,
    transparent 8px,
    transparent 12px
  );
  position: relative;
}

.contour-divider::before {
  content: '';
  position: absolute;
  top: -4px;
  left: 15%;
  right: 40%;
  height: 1px;
  background: repeating-linear-gradient(
    90deg,
    var(--contour) 0px,
    var(--contour) 12px,
    transparent 12px,
    transparent 18px
  );
}

.contour-divider::after {
  content: '';
  position: absolute;
  top: 7px;
  left: 30%;
  right: 20%;
  height: 1px;
  background: repeating-linear-gradient(
    90deg,
    var(--contour) 0px,
    var(--contour) 6px,
    transparent 6px,
    transparent 14px
  );
}

/* --- Sections --- */
.section {
  margin-bottom: 2.5rem;
}

.section-title {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1.2rem;
}

/* --- Profile --- */
.profile-text {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.7;
}

/* --- Experience --- */
.job {
  margin-bottom: 2rem;
}

.job-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.15rem;
}

.job-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-bright);
}

.job-date {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.job-company {
  font-size: 0.95rem;
  color: var(--accent);
  margin-bottom: 0.8rem;
}

.job-duties {
  list-style: none;
  margin-bottom: 1rem;
}

.job-duties li {
  position: relative;
  padding-left: 1.2rem;
  margin-bottom: 0.4rem;
  font-size: 0.92rem;
  color: var(--text);
}

.job-duties li::before {
  content: '\25E6';
  position: absolute;
  left: 0;
  color: var(--accent-dim);
}

.job-sub-heading {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
  margin-top: 0.8rem;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin-top: 1rem;
}

.tech-tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  color: var(--accent);
  background: var(--contour-light);
  border: 1px solid var(--accent-dim);
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
}

/* --- Two column layout --- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

/* --- Skills --- */
.skill-group {
  margin-bottom: 1.5rem;
}

.skill-group-title {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.7rem;
}

.skill-item {
  margin-bottom: 0.5rem;
}

.skill-name {
  font-size: 0.85rem;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.skill-bar {
  height: 4px;
  background: var(--bar-bg);
  border-radius: 2px;
  overflow: hidden;
}

.skill-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-dim), var(--accent));
  border-radius: 2px;
  transition: width 0.6s ease;
}

.badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
}

.badge {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  color: var(--text-dim);
  border: 1px solid var(--contour-light);
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
}

/* --- Education / Certs --- */
.edu-item {
  margin-bottom: 0.8rem;
}

.edu-degree {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-bright);
}

.edu-org {
  font-size: 0.88rem;
  color: var(--text);
}

.edu-date {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  color: var(--text-dim);
}

.cert-item {
  margin-bottom: 0.6rem;
}

.cert-name {
  font-size: 0.9rem;
  color: var(--text-bright);
}

.cert-desc {
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* --- Footer --- */
.site-footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  color: var(--contour-light);
  text-align: center;
}

/* --- Responsive --- */
@media (max-width: 640px) {
  .site-wrapper {
    padding: 2rem 1rem 3rem;
  }

  .header-name {
    font-size: 1.7rem;
  }

  .two-col {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .job-header {
    flex-direction: column;
    gap: 0.1rem;
  }
}
