/* =========================================================
   ABOUT.CSS
   Styles only for elements.html / Get to know me better.
   Includes intro split panel, timeline, skills, hobbies, quote.
   ========================================================= */

.split-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
  gap: clamp(1.25rem, 4vw, 2.25rem);
  align-items: center;
  padding: clamp(1.25rem, 4vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(125, 211, 252, 0.1), transparent 34%),
    rgba(15, 23, 42, 0.66);
  box-shadow: var(--shadow);
}

.split-panel h2 { margin-bottom: 1rem; }

.portrait-secondary {
  max-width: 360px;
  justify-self: end;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.portrait-secondary img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
}

.timeline-content,
.skill-card,
.hobby-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.042), rgba(255, 255, 255, 0.012)),
    rgba(15, 23, 42, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* =========================================================
   Selected impact section
   ========================================================= */

.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1.6rem;
}

.impact-card {
  position: relative;
  overflow: hidden;
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.046), rgba(255, 255, 255, 0.014)),
    rgba(15, 23, 42, 0.64);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.impact-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(125, 211, 252, 0.12), transparent 38%);
  opacity: 0.9;
  pointer-events: none;
}

.impact-card:hover {
  transform: translateY(-3px);
  border-color: rgba(147, 197, 253, 0.34);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.26),
    0 0 28px rgba(147, 197, 253, 0.08);
}

.impact-value {
  display: inline-flex;
  margin-bottom: 0.75rem;
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.impact-card h3 {
  margin-bottom: 0.6rem;
  font-size: 1.05rem;
}

.impact-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

@media (max-width: 980px) {
  .impact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .impact-card {
    padding: 1.15rem;
  }
}

.timeline-content {
  position: relative;
  padding: 1.25rem;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.timeline-time {
  display: inline-flex;
  margin-bottom: 0.65rem;
  color: var(--gold);
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.timeline-content h3 { margin-bottom: 0.55rem; }
.timeline-content p { margin-bottom: 0; }

.skills-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}

/* First row: 3 cards */
.skills-grid .skill-card {
  grid-column: span 2;
}

.skill-card,
.hobby-card { padding: 1.25rem; }
.skill-card h3 { margin-bottom: 0.8rem; }
.skill-card ul { font-size: 0.95rem; }

.two-column-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.hobby-card h3 { margin-bottom: 0.65rem; }

.quote-panel {
  margin-top: 1rem;
  border-left: 3px solid var(--accent);
  padding: 1.2rem 1.25rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: rgba(125, 211, 252, 0.06);
  color: #d9e5f5;
}

.quote-panel blockquote {
  margin: 0;
  color: #d9e5f5;
  font-size: 1.05rem;
}

.quote-panel cite {
  display: block;
  margin-top: 0.85rem;
  color: var(--muted);
  font-style: normal;
}

@media (min-width: 900px) {
  .skills-grid,
  .timeline { gap: 1.8rem; }
  .skill-card,
  .timeline-content { padding: 1.8rem; }
}

@media (max-width: 980px) {
  .split-panel { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .skills-grid,
  .two-column-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   Timeline timestamps on the vertical axis, no dots
   ========================================================= */

.timeline {
  position: relative;
  display: grid;
  gap: 1.35rem;
  margin-top: 2rem;
  padding-left: 0;
}

/* Main vertical line */
.timeline::before {
  content: "";
  position: absolute;
  left: 6.5rem;
  top: 0.7rem;
  bottom: 0.7rem;
  width: 1px;
  background: linear-gradient(
    to bottom,
    rgba(147, 197, 253, 0.65),
    rgba(147, 197, 253, 0.18),
    rgba(129, 140, 248, 0.42)
  );
}

/* Timeline row */
.timeline-item {
  position: relative;
  display: block;
  padding-left: 13rem;
}

/* Remove old dots */
.timeline-item::before {
  display: none !important;
  content: none !important;
}

/* Date replaces the dot on the vertical axis */
.timeline-axis-date {
  position: absolute;
  left: 6.5rem;
  top: 5rem;
  z-index: 3;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 6.8rem;
  padding: 0.42rem 0.75rem;
  border: 1px solid rgba(147, 197, 253, 0.28);
  border-radius: 999px;
  background: rgba(7, 9, 22, 0.9);
  color: #eaf2ff;
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.035em;
  font-variant-numeric: tabular-nums;
  box-shadow: none;
}

.timeline-item:hover .timeline-axis-date {
  border-color: rgba(147, 197, 253, 0.28);
  box-shadow: none;
}

.timeline-content:hover {
  transform: translateY(-3px);
  border-color: rgba(147, 197, 253, 0.32);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.26),
    0 0 28px rgba(147, 197, 253, 0.08);
}

/* Mobile layout */
@media (max-width: 680px) {
  .timeline {
    gap: 1.2rem;
  }

  .timeline::before {
    left: 0.55rem;
  }

  .timeline-item {
    padding-left: 2rem;
  }

  .timeline-axis-date {
    position: relative;
    left: auto;
    top: auto;
    transform: none;

    width: fit-content;
    min-width: auto;
    margin-bottom: 0.75rem;
  }
}

/* Subpage hero sizing */
.page-hero {
  padding-top: 3rem;
}

.page-hero h1 {
  max-width: 26ch;
}

/* Hobbies: one card per row with vertical spacing */
#hobbies .card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem !important;
}

/* Image wrapper and large-screen refinement */
.portrait-secondary picture {
  display: block;
  width: 100%;
}

/* Left-align subpage hero content with the main page container */
.page-hero-inner {
  max-width: var(--container);
  text-align: left;
  justify-items: start;
}

/* Keep the small eyebrow title aligned left */
.page-hero .eyebrow {
  margin-left: 0;
  margin-right: auto;
  justify-content: flex-start;
}

/* Keep hero text aligned left too */
.page-hero h1,
.page-hero .lead {
  margin-left: 0;
  margin-right: auto;
}

/* Wider intro text in the Working style section */
#soft-title + p {
  max-width: 980px;
}

/* Narrower chip lists for Practical Value and Working Style sections */
section[aria-labelledby="hard-title"] .stack-wrap,
section[aria-labelledby="soft-title"] .stack-wrap {
  max-width: 760px;
  margin-right: auto;
}

/* Clean language layout without &nbsp; */
.language-panel {
  margin-top: 1rem;
}

.language-list-clean {
  display: grid;
  gap: 0.05rem;
  margin: 0;
}

.language-row {
  display: grid;
  grid-template-columns: 5.4rem 1fr;
  column-gap: 0.9rem;
  align-items: baseline;
  font-size: 1rem;
}

.language-row dt {
  color: var(--muted);
  font-weight: 500;
}

.language-row dd {
  margin: 0;
  color: #d9e5f5;
  font-weight: 300;
}

@media (max-width: 520px) {
  .language-row {
    grid-template-columns: 1fr;
    row-gap: 0.1rem;
    font-size: 0.86rem;
  }
}

.timeline-note {
  margin-top: 0.95rem !important;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 16px;

  background: rgba(15, 23, 42, 0.32);
  color: rgba(203, 213, 225, 0.84);

  font-size: 0.91rem;
  line-height: 1.65;
  font-weight: 400;
  letter-spacing: 0.005em;
}

.timeline-note strong {
  display: inline-block;
  margin-right: 0.45rem;
  color: rgba(226, 232, 240, 0.96);
  font-weight: 500;
}

/* Structured bullet sections inside timeline cards */
.timeline-detail-group {
  margin-top: 1rem;
}

.timeline-detail-group:first-of-type {
  margin-top: 0.9rem;
}

.timeline-detail-group h4 {
  margin: 0 0 0.65rem;
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 850;
  letter-spacing: 0.01em;
}

.timeline-bullets {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding-left: 1.05rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.timeline-bullets li::marker {
  color: var(--accent);
}

.timeline-impact {
  margin-top: 1.15rem;
  padding-top: 0.95rem;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.timeline-impact h4 {
  color: #dbeafe;
}

.timeline-impact + .timeline-note {
  margin-top: 1.25rem !important;
}

