.bio-title {
  font-size: 2rem;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  text-align: center;
}

.bio-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-sm);
  background: var(--gray-6);
  color: var(--white-1);
  border-radius: 12px;
  max-width: 90vw;
  margin: 0 auto;
}

.bio-profile { text-align: center; }

.profile-picture {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  box-shadow: 0 0 6px var(--highlight-color),
              0 0 12px var(--highlight-color);
  transition: transform .3s ease-in-out;
}
.profile-picture:hover { transform: scale(1.1); }

.author-name {
  margin-top: var(--space-sm);
  font-size: 1.6rem;
  color: var(--text-primary);
  text-shadow: 0 0 6px var(--highlight-color-muted);
}
.author-quote {
  margin-top: var(--space-2xs);
  font-size: 1rem;
  color: var(--text-muted);
  text-shadow: 0 0 6px var(--highlight-color-muted);
  font-style: italic;
}

.greeting {
  font-size:1.2rem;
  color:var(--text-primary);
  padding:var(--space-2xs);
  opacity:0;
  transform:translateY(-30px) scale(0.9);
}
.greeting.animate { animation: greetingEffect 1s cubic-bezier(.25,1,.5,1) forwards; }
@keyframes greetingEffect{
  0% { 
    opacity:0;
    transform:translateY(-30px) scale(.9);
    color:var(--highlight-color-retro-muted);
  }
  50% {
    opacity:1;
    transform:translateY(0) scale(1.1);
    color:var(--highlight-color-retro);
  }
  70% {
    transform:translateY(-10px) scale(1);
  }
  100% { 
    opacity:1;
    transform:translateY(0) scale(1);
    color:var(--text-primary);
  }
}

.social-links {
  margin-top: var(--space-sm);
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
}
.social-link {
  transition: transform .3s, box-shadow .3s;
  border-radius: 50%;
}
.social-link:hover {
  transform: scale(1.2);
  box-shadow: 0 0 6px var(--highlight-color), 0 0 8px var(--highlight-color);
}
.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.quick-stats{
  list-style:none;
  display:flex;
  flex-wrap:wrap;
  gap:var(--space-sm);
  justify-content:center;
  padding:0;
}
.quick-stats li{
  background:var(--gray-6);
  padding:var(--space-2xs) var(--space-sm);
  border-radius:6px;
  font-weight:600;
  box-shadow: 8px 8px 16px var(--shadow-dark),
    -8px -8px 16px var(--shadow-light);
}

/* Neumorphic raised section heading pill */
.section-heading {
  /* Typography/layout: keep your current choices */
  position: relative;
  display: inline-block;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin: var(--space-xl) auto var(--space-sm);
  padding: var(--space-2xs) var(--space-md);
  font-size: 1.55rem;

  /* Accent selection:
     prefer new indigo; fall back to old highlight if needed */
  --accent: var(--highlight-color);
  --accent-muted: var(--highlight-color-muted);

  /* Surface + shape */
  color: var(--accent);
  background: var(--bg-primary-retro);
  border: 0;
  border-radius: 9999px;

  /* Raised, convex look (no inset) */
  box-shadow:
    var(--elev-offset) var(--elev-offset) var(--elev-blur) var(--shadow-dark),
    calc(var(--elev-offset) * -1) calc(var(--elev-offset) * -1) var(--elev-blur) var(--shadow-light),
    /* soft accent halo instead of a hard border */
    0 0 0 2px color-mix(in srgb, var(--accent-muted) 18%, transparent);

  /* Slight surface sheen for depth */
  background-image: linear-gradient(
    to bottom,
    var(--surface-gloss-top),
    var(--surface-gloss-mid) 40%,
    var(--surface-gloss-low) 60%,
    var(--surface-gloss-deep)
  );

  /* Better text clarity on light pill */
  text-shadow: 0 1px 0 var(--surface-emboss);
}

/* Hover = a little more lift (keeps it subtle) */
@media (prefers-reduced-motion: no-preference) {
  .section-heading:hover {
    transform: translateY(-1px);
    transition: transform 160ms ease, box-shadow 160ms ease;
    box-shadow:
      calc(var(--elev-offset) + 2px) calc(var(--elev-offset) + 2px) calc(var(--elev-blur) + 4px) var(--shadow-dark),
      calc((var(--elev-offset) + 2px) * -1) calc((var(--elev-offset) + 2px) * -1) calc(var(--elev-blur) + 4px) var(--shadow-light),
      0 0 0 3px color-mix(in srgb, var(--accent-muted) 22%, transparent);
  }
}

/* Active/pressed = invert to a soft inset for tactile click */
.section-heading:active {
  transform: translateY(0);
  box-shadow:
    inset 2px 2px 6px color-mix(in srgb, var(--shadow-dark) 90%, transparent),
    inset -2px -2px 6px color-mix(in srgb, var(--shadow-light) 90%, transparent),
    0 0 0 2px color-mix(in srgb, var(--accent-muted) 18%, transparent);
}

/* Keyboard focus: clear, accessible ring using your accent */
.section-heading:focus-visible {
  outline: none;
  box-shadow:
    var(--elev-offset) var(--elev-offset) var(--elev-blur) var(--shadow-dark),
    calc(var(--elev-offset) * -1) calc(var(--elev-offset) * -1) var(--elev-blur) var(--shadow-light),
    0 0 0 4px color-mix(in srgb, var(--accent) 45%, transparent);
}

/* High-contrast/Windows forced-colors: ensure visible focus */
@media (forced-colors: active) {
  .section-heading:focus-visible {
    outline: 2px solid CanvasText;
    outline-offset: 2px;
  }
}


.timeline{
  list-style:none;
  border-left:2px dashed var(--gray-1);
  padding-left:calc(var(--space-sm) + var(--space-3xs));
  margin:0 auto;
  max-width:640px;
}
.timeline li{
  position:relative;
  margin-bottom:var(--space-md);
}
.timeline-dot{
  position:absolute;
  left:-0.95rem;
  top:0;
  width:10px;
  height:10px;
  border-radius:50%;
  background:var(--highlight-color);
}
.timeline-content h4 {
  font-size:1rem;
  color:var(--white-1);
}
.timeline-content p {
  font-size:.85rem;
}
.edu-meta{
  font-size:.9rem;
  color:var(--white-2);
  margin:var(--space-3xs) 0 var(--space-2xs);
}
.edu-desc{
  font-size:.9rem;
  margin:var(--space-3xs) 0 var(--space-2xs);
  color:var(--white-2);
}
.edu-degree{
  font-size:.9rem;
  font-weight:600;
  color:var(--highlight-color);
  margin-bottom:var(--space-3xs);
}
.edu-notes{
  margin-top:var(--space-2xs);
  font-size:.85rem;
  line-height:1.45;
  color:var(--white-1);
}

.chip-heading{
  font-size:1.5rem;
  margin:var(--space-xs) var(--space-2xs);
  color:var(--text-primary);
}
.chip-list{
  list-style:none;
  display:flex;
  flex-wrap:wrap;
  gap:var(--space-2xs);
  padding:0;
  margin-bottom:var(--space-xs);
}
.chip-tooltip{
  opacity:0;
  visibility:hidden;
  color:var(--white-1);
  min-width:190px;
  max-width:280px;
  white-space:normal;
  text-align:left;
  position:absolute;
  left:50%; transform:translateX(-50%);
  bottom:calc(100% + var(--space-2xs));
  padding:var(--space-2xs);
  border-radius:6px;
  font-size:.8rem;
  line-height:1.4;
  transition:.2s;
  background: var(--gray-4);
  box-shadow: 0 2px 10px var(--ambient-shadow-strong);
}
.chip{
  position:relative;
  background: var(--gray-3);
  color: var(--text-primary);
  border:1px solid var(--gray-6);
  border-radius:20px;
  font-size:.9rem;
  overflow:visible;
  cursor:default;
  margin: var(--space-3xs);
  padding: var(--space-2xs);
  box-shadow: 8px 8px 16px var(--shadow-dark),
    -8px -8px 16px var(--shadow-light);
}
.chip:hover .chip-tooltip,
.chip:focus .chip-tooltip{
  visibility:visible;
  opacity:1;
}
.chip:hover {
  background: var(--highlight-color-muted);
  border:1px solid var(--highlight-color-muted);
  color: var(--accent-muted-contrast);
}

.achievements-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:var(--space-md);
  max-width:1000px;
  margin:0 auto;
}
.card{
  background:var(--gray-6);
  padding:var(--space-md);
  border-radius:12px;
  box-shadow:8px 8px 16px var(--shadow-dark),
    -8px -8px 16px var(--shadow-light);
  line-height:1.55;
}
.card h4{
  margin-top:0;
  margin-bottom:var(--space-2xs);
  font-size:1.1rem;
  color:var(--highlight-color);
}

@media (max-width:768px){
  .profile-picture{
    width:140px;
    height:140px;
  }
  .author-name{ 
    font-size:1.4rem;
  }
}

@media (max-width:480px){
  .profile-picture{
    width:120px;
    height:120px; }
  .author-name{
    font-size:1.25rem;
  }
  .quick-stats{
    gap:var(--space-2xs);
  }
  .timeline{
    padding-left:calc(var(--space-sm) + var(--space-3xs));
   }
  .chip-heading{
    font-size:1rem;
  }
}

@media (max-width:600px){
  .achievements-grid{
    grid-template-columns:1fr;
  }
}
