/* A coordinated pair of profile and education cards. */
.about__top {
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
}

.about__text-col,
.about__edu-col { min-width: 0; }

.about__bio,
.edu-card__body,
.proj-card__title,
.proj-card__desc { min-width: 0; overflow-wrap: anywhere; }

.about__bio-card,
.edu-card {
  position: relative;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--clr-border);
  border-radius: 24px;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.045);
  transition: border-color 250ms ease, box-shadow 250ms ease, background 250ms ease;
}

.about__bio-card {
  padding: 40px;
  gap: 20px;
  justify-content: center;
  background: var(--clr-surface);
}

.about__bio-card::before {
  content: '';
  position: absolute;
  top: 40px;
  bottom: 40px;
  left: 0;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--grad-accent);
}

.about__bio-card .eyebrow { letter-spacing: 0.2em; }
.about__heading { font-size: clamp(2rem, 3vw, 2.7rem); letter-spacing: -0.04em; }
.about__bio { font-size: 0.98rem; line-height: 1.9; max-width: 640px; }

.edu-card {
  padding: 36px;
  flex-direction: column;
  justify-content: space-between;
  gap: 30px;
  background: linear-gradient(145deg, #eef2ff, #f5f3ff 65%, #eff6ff);
}

.edu-card::after {
  content: '';
  position: absolute;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(79, 70, 229, 0.09);
  border-radius: 50%;
  top: -110px;
  right: -65px;
  box-shadow: 0 0 0 28px rgba(79, 70, 229, 0.025),
              0 0 0 56px rgba(79, 70, 229, 0.02);
  pointer-events: none;
}

.edu-card__icon {
  position: relative;
  z-index: 1;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.05);
}

.edu-card__icon svg { width: 28px; height: 28px; }
.edu-card__body { position: relative; z-index: 1; gap: 8px; }
.edu-card__label { margin-bottom: 3px; }
.edu-card__school { font-size: clamp(1.3rem, 2vw, 1.7rem); line-height: 1.3; letter-spacing: -0.035em; }
.edu-card__degree { font-size: 0.95rem; }
.edu-card__spec {
  align-self: flex-start;
  margin-top: 6px;
  padding: 6px 11px;
  border: 1px solid var(--clr-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--clr-accent-1);
  font-size: 0.73rem;
  font-style: normal;
}

.about__bio-card:hover,
.edu-card:hover {
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.07);
}
.about__bio-card:hover { background: var(--clr-surface); }
.edu-card:hover { background: linear-gradient(145deg, #eef2ff, #f5f3ff 65%, #eff6ff); }

html[data-theme="dark"] .edu-card,
html[data-theme="dark"] .edu-card:hover {
  background: linear-gradient(145deg, #25304a, #2b2b43 65%, #233146);
}
html[data-theme="dark"] .about__bio-card:hover { background: var(--clr-surface); }
html[data-theme="dark"] .edu-card__spec { background: rgba(165, 180, 252, 0.08); }
html[data-theme="dark"] .edu-card::after { border-color: rgba(165, 180, 252, 0.16); }

@media (max-width: 768px) {
  .about__top { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .about__bio-card { padding: 30px; }
  .edu-card { padding: 30px; flex-direction: row; justify-content: flex-start; align-items: center; gap: 24px; }
}

@media (max-width: 560px) {
  .about__bio-card,
  .edu-card { padding: 26px; border-radius: 20px; }
  .about__bio-card::before { top: 26px; bottom: 26px; }
  .edu-card { flex-direction: column; align-items: flex-start; gap: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-block { opacity: 1; transform: none; transition: none; }
}
