/* ── Contact ──────────────────────────────────────────── */

#contact > .inner > :nth-child(2n-1) {
  border-right: none;
}

/* Desktop only: override theme's 60% width for the two-column layout */
@media screen and (min-width: 980px) {
  #contact > .inner > :nth-child(2n-1) {
    width: auto;
  }
}

#contact > .inner {
  justify-content: center;
}

#contact > .inner > .contact-row {
  display: flex;
  flex-direction: row;
  gap: 2em;
  align-items: stretch;
  padding: 5em 0 4em 0;
}

.contact-method {
  padding: 1.5em 1.5em 1.5em 4.75em;
  margin: 0;
  white-space: nowrap;
}

@media screen and (max-width: 736px) {
  #contact > .inner > .contact-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-method {
    white-space: normal;
  }

  header.major {
    width: 100%;
    max-width: 100%;
  }

  .job-meta {
    letter-spacing: 0.05em;
  }

  .job-projects .actions {
    flex-wrap: wrap;
  }
}

/* ── Skills ───────────────────────────────────────────── */

.skill-group {
  margin-bottom: 1.75em;
}

.skill-group h4 {
  font-size: 0.7em;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(212, 212, 255, 0.45);
  margin-bottom: 0.75em;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  list-style: none;
  padding: 0;
  margin: 0;
}

.skill-tags li {
  background: rgba(212, 212, 255, 0.04);
  border: 1px solid rgba(212, 212, 255, 0.2);
  border-radius: 3px;
  padding: 0.3em 0.9em;
  font-size: 0.8em;
  letter-spacing: 0.075em;
}

/* ── Experience timeline ──────────────────────────────── */

.job-entry {
  position: relative;
  border-left: 2px solid rgba(212, 212, 255, 0.15);
  padding-left: 2em;
  margin-bottom: 3.5em;
}

.job-entry::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 0.45em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6fc3df;
}

.job-entry h2 {
  margin-bottom: 0.15em;
  overflow-wrap: break-word;
  word-break: break-word;
}

.job-entry h2 em {
  font-weight: 300;
  color: rgba(212, 212, 255, 0.6);
}

.job-meta {
  font-size: 0.78em;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(212, 212, 255, 0.4);
  margin-bottom: 1.25em;
}

.job-projects {
  margin-top: 1.25em;
  padding-top: 1em;
  border-top: 1px solid rgba(212, 212, 255, 0.1);
  font-size: 0.9em;
  color: rgba(212, 212, 255, 0.55);
}

.job-projects strong {
  text-transform: uppercase;
  font-size: 0.75em;
  letter-spacing: 0.15em;
  margin-right: 0.75em;
}

.job-projects a {
  border-bottom-color: rgba(212, 212, 255, 0.3);
}

/* ── Education / Languages ────────────────────────────── */

.meta-columns {
  display: flex;
  gap: 4em;
  flex-wrap: wrap;
  margin-top: 0.5em;
}

.meta-columns section {
  min-width: 10em;
}

.meta-columns h2 {
  margin-bottom: 0.5em;
}

.meta-columns p,
.meta-columns ul {
  margin: 0;
}

/* ── Project category nav ─────────────────────────────── */

.category-nav {
  margin-bottom: 2.5em;
}

.category-nav li {
  margin-bottom: 0.6em;
}

.category-nav .current {
  background-color: rgba(212, 212, 255, 0.1);
  border-color: rgba(212, 212, 255, 0.45);
}

/* ── Project cards ────────────────────────────────────── */

.project-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(360px, 100%), 1fr));
  gap: 1.25em;
  margin-bottom: 2em;
}

.project-card {
  position: relative;
  background: rgba(212, 212, 255, 0.03);
  border: 1px solid rgba(212, 212, 255, 0.15);
  border-radius: 4px;
  padding: 1.5em 1.75em;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.project-card:hover {
  background: rgba(212, 212, 255, 0.07);
  border-color: rgba(212, 212, 255, 0.35);
}

/* invisible overlay that makes the whole card clickable */
.project-card-link {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.project-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75em;
  flex-wrap: wrap;
  margin-bottom: 0.6em;
}

.project-card-header h2 {
  margin: 0;
  font-size: 1.1em;
  line-height: 1.3;
}

/* github button sits above the card overlay */
.project-card-github {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.project-desc {
  color: rgba(212, 212, 255, 0.7);
  margin-bottom: 0.85em;
  font-size: 0.9em;
}

.project-tags {
  margin-bottom: 0.85em;
}

.project-features {
  margin: 0 0 0 1.25em;
  padding: 0;
  font-size: 0.85em;
  color: rgba(212, 212, 255, 0.6);
  line-height: 1.7;
}

/* ── Global mobile safety net ─────────────────────────── */

#wrapper {
  overflow-x: hidden;
}
