/* Profile (Resume), redesigned as a personal card page: a cover band with the photo, then each
   section as its own card, activities as a timeline, and lists as soft rows. It was a developer
   résumé with condensed uppercase type and programming-language logos. The markup is unchanged,
   so saved edits and the editor's targets still apply. */
body {
  background: #f2f4f6;
  color: var(--aii-ink);
}

#sideNav {
  box-shadow: 0 2px 16px rgba(25, 31, 40, 0.12);
}

#sideNav .navbar-brand,
#sideNav .navbar-nav .nav-item .nav-link {
  letter-spacing: -0.01em !important;
  text-transform: none !important;
}

.container-fluid.p-0 {
  padding: 0.75rem 0.75rem 1.5rem !important;
}

/* Each section is a card; the dividers between them are no longer needed. */
section.resume-section {
  display: block;
  min-height: 0 !important;
  max-width: 46rem;
  margin: 0 auto 0.75rem;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 6px 22px rgba(25, 31, 40, 0.05);
  padding: 1.75rem 1.35rem !important;
}

.container-fluid > hr {
  display: none;
}

.resume-section h2 {
  margin-bottom: 1.25rem !important;
  font-size: clamp(1.35rem, 5.6vw, 1.75rem) !important;
}

.resume-section h3 {
  margin-bottom: 0.15rem !important;
  font-size: 1.08rem !important;
}

.subheading {
  color: var(--aii-ink-soft);
  font-size: 0.98rem !important;
  font-weight: 600 !important;
  line-height: 1.55;
  text-transform: none !important;
}

/* Introduction: a cover band in the theme color with the photo overlapping it. The photo used to
   live only in the desktop side navigation, so phones never showed it. */
#about {
  overflow: hidden;
  padding-top: 0 !important;
  text-align: center;
}

#about::before {
  content: "";
  display: block;
  height: 104px;
  margin: 0 -1.35rem;
  background:
    radial-gradient(circle at 18% 30%, rgba(255, 255, 255, 0.28) 0 18%, transparent 19%),
    radial-gradient(circle at 86% 78%, rgba(255, 255, 255, 0.18) 0 22%, transparent 23%),
    linear-gradient(135deg, var(--aii-accent), var(--aii-accent-soft));
}

#about .img-profile {
  display: block;
  position: relative;
  width: 7.5rem;
  height: 7.5rem;
  max-width: none;
  margin: -3.75rem auto 1rem !important;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 8px 24px rgba(25, 31, 40, 0.14);
}

#about h1 {
  margin-bottom: 0.5rem !important;
  font-size: clamp(2rem, 9vw, 2.75rem) !important;
  line-height: 1.2 !important;
}

#about .subheading {
  margin-bottom: 1rem !important;
}

#about .lead {
  margin-bottom: 1.25rem !important;
  color: var(--aii-ink);
  font-size: 1rem !important;
}

/* Contact buttons: round, in a centered row; empty slots are not published. */
.social-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.social-icons .social-icon {
  width: 3rem !important;
  height: 3rem !important;
  margin: 0 !important;
  background-color: var(--aii-ink) !important;
  font-size: 1.2rem !important;
}

.social-icons .social-icon:hover,
.social-icons .social-icon:focus {
  background-color: var(--aii-accent) !important;
  color: var(--aii-on-accent) !important;
}

/* Activities and history as a timeline: a dot on a line, the period as a small pill on top. */
#experience .resume-section-content > .d-flex,
#education .resume-section-content > .d-flex {
  position: relative;
  flex-direction: column !important;
  margin: 0 0 0 0.35rem !important;
  border-left: 2px solid var(--aii-line);
  padding: 0 0 1.5rem 1.25rem;
}

#experience .resume-section-content > .d-flex:last-child,
#education .resume-section-content > .d-flex:last-child {
  padding-bottom: 0.25rem;
}

#experience .resume-section-content > .d-flex::before,
#education .resume-section-content > .d-flex::before {
  content: "";
  position: absolute;
  top: 0.2rem;
  left: -7px;
  width: 12px;
  height: 12px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--aii-accent);
  box-shadow: 0 0 0 1px var(--aii-line);
}

#experience .flex-shrink-0,
#education .flex-shrink-0 {
  order: -1;
  margin-bottom: 0.4rem;
}

#experience .flex-shrink-0 .text-primary,
#education .flex-shrink-0 .text-primary {
  display: inline-block;
  border-radius: 999px;
  background: var(--aii-accent-soft);
  color: var(--aii-accent-text) !important;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 0.2rem 0.65rem;
}

#experience .subheading,
#education .subheading {
  margin-bottom: 0.4rem !important;
  font-size: 0.92rem !important;
}

#experience p,
#education p,
#education .flex-grow-1 > div:not(.subheading) {
  margin-bottom: 0 !important;
  color: var(--aii-ink-soft);
  font-size: 0.95rem;
}

/* Programming-language logos do not fit a general personal homepage. */
.dev-icons,
.subheading:has(+ .dev-icons) {
  display: none !important;
}

/* Lists (how I work, achievements) as soft rows. */
.resume-section .fa-ul {
  display: grid;
  gap: 0.5rem;
  margin: 0 !important;
  padding: 0;
}

.resume-section .fa-ul li {
  position: relative;
  border-radius: 14px;
  background: #f7f8fa;
  padding: 0.75rem 0.9rem 0.75rem 2.6rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.resume-section .fa-ul .fa-li {
  top: 0.8rem;
  left: 0.85rem;
  width: 1.2rem;
  color: var(--aii-accent-text);
  text-align: center;
}

.resume-section .fa-ul .fa-trophy.text-warning {
  color: #e8a33d !important;
}

#interests p {
  color: var(--aii-ink-soft);
  font-size: 0.98rem;
}

@media (min-width: 992px) {
  .container-fluid.p-0 {
    padding: 1.5rem 2rem 2rem !important;
  }

  section.resume-section {
    margin-bottom: 1rem;
    padding: 2.25rem 2.5rem !important;
  }

  #about::before {
    height: 140px;
    margin: 0 -2.5rem;
  }

  #about .img-profile {
    width: 9rem;
    height: 9rem;
    margin-top: -4.5rem !important;
  }

  /* With the photo moved out, the side navigation shows the page name on desktop too. */
  #sideNav .navbar-brand .d-lg-none {
    display: block !important;
    padding: 0 1rem;
    font-weight: 800;
    text-align: center;
    white-space: normal;
  }
}
