/* ============================================================
   Sumanth G — Portfolio · Content sections
   Consumes tokens from theme.css. Namespaces: xp- / about-
   ============================================================ */

/* ============================================================
   EXPERIENCE — vertical timeline
   ============================================================ */
.xp-timeline {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0 0 0 34px;
}

/* the vertical rail */
.xp-timeline::before {
  content: "";
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 6px;
  width: 2px;
  background: linear-gradient(
    to bottom,
    var(--amber) 0%,
    var(--border) 14%,
    var(--border) 100%
  );
  border-radius: 2px;
}

.xp-item {
  position: relative;
  padding-bottom: 44px;
}
.xp-item:last-child { padding-bottom: 0; }

/* dot on the rail, aligned to the company name baseline */
.xp-item::before {
  content: "";
  position: absolute;
  left: -34px;
  top: 7px;
  width: 14px;
  height: 14px;
  margin-left: -1px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--amber);
  box-shadow: 0 0 0 4px var(--bg), 0 0 14px -2px var(--glow-amber);
  transition: box-shadow .25s var(--ease), background .25s var(--ease);
}
.xp-item:hover::before {
  background: var(--amber);
  box-shadow: 0 0 0 4px var(--bg), 0 0 18px 0 var(--amber);
}

.xp-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
  margin-bottom: 16px;
}
.xp-company {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.4px;
  color: var(--text);
}
.xp-role {
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--amber);
}
.xp-date {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-dim);
  margin-left: auto;
  white-space: nowrap;
}

.xp-bullets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.xp-bullets li {
  position: relative;
  padding-left: 22px;
  color: var(--text-dim);
  line-height: 1.65;
  max-width: 70ch;
}
.xp-bullets li::before {
  content: "›";
  position: absolute;
  left: 2px;
  top: -1px;
  color: var(--amber);
  font-family: var(--font-mono);
  font-weight: 700;
}

/* ============================================================
   ABOUT — bio + education / skills + achievements
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: start;
}
.about-col { min-width: 0; }

.about-bio {
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-dim);
  max-width: 46ch;
}

/* education card */
.about-edu {
  margin-top: 28px;
  padding: 20px 22px;
}
.about-edu-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.5px;
  color: var(--muted);
  text-transform: uppercase;
}
.about-edu-school {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-top: 8px;
  color: var(--text);
}
.about-edu-degree {
  color: var(--text-dim);
  margin-top: 4px;
}
.about-edu-line {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.about-edu-cgpa { color: var(--amber); }
.about-edu-sep { color: var(--muted); }

/* skills */
.about-skills {
  display: grid;
  gap: 22px;
}
.about-skill-group { display: block; }
.about-skill-head {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--text);
  margin-bottom: 12px;
}
.about-skill-head::before {
  content: "# ";
  color: var(--amber);
}
.about-chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.about-chips .tag {
  transition: color .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}
.about-chips .tag:hover {
  color: var(--amber-2);
  border-color: var(--amber);
  background: var(--surface-2);
}

/* achievements */
.about-ach { margin-top: 32px; }
.about-ach-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.about-ach-list li {
  position: relative;
  padding-left: 22px;
  color: var(--text-dim);
  line-height: 1.6;
}
.about-ach-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--amber);
  box-shadow: 0 0 10px -1px var(--glow-amber);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 720px) {
  .xp-date { margin-left: 0; }
}

@media (max-width: 520px) {
  .xp-timeline { padding-left: 26px; }
  .xp-item::before { left: -26px; }
  .xp-company { font-size: 19px; }
  .about-bio { font-size: 16px; }
}
