/* ============================================================
   ABOUT PAGE — Profile, Content, Timeline, Education,
                Languages, Code Card
   ============================================================ */

/* ── Profile Card ── */
.profile-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  position: sticky;
  top: calc(var(--nav-height) + 2rem);
}

.profile-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 2px solid var(--border-lit);
  margin: 0 auto 1.25rem;
}

.profile-name { font-size: 1.2rem; font-weight: 700; color: var(--text); margin-bottom: 0.3rem; }

.profile-role-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(7, 160, 246, 0.18);
  border-radius: 100px;
  padding: 0.25rem 0.75rem;
  margin-bottom: 0.6rem;
}

.profile-location {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.profile-location i { font-size: 0.7rem; color: var(--accent); }

.profile-actions { display: flex; gap: 0.75rem; justify-content: center; margin-bottom: 1.75rem; }

.profile-actions .btn-accent,
.profile-actions .btn-outline { padding: 0.5rem 1.1rem; font-size: 0.8rem; }

.profile-tags-section { border-top: 1px solid var(--border); padding-top: 1.25rem; text-align: left; overflow: visible; }

.profile-tags-title {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
}

.profile-tags {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(36px, 1fr));
  gap: 0.35rem;
}

/* Icon-only square tags */
.profile-tags .tag {
  width: 100%;
  aspect-ratio: 1;
  padding: 0;
  justify-content: center;
  position: relative;
  border-radius: var(--radius-sm);
  transition: background var(--ease), color var(--ease), border-color var(--ease),
              transform var(--ease), box-shadow var(--ease);
}

.profile-tags .tag i {
  font-size: 1rem;
  opacity: 0.7;
  transition: opacity var(--ease);
  pointer-events: none;
}

.profile-tags .tag:hover {
  transform: translateY(-2px) scale(1.08);
  box-shadow: 0 4px 14px rgba(7, 160, 246, 0.22);
}

.profile-tags .tag:hover i {
  opacity: 1;
}


.profile-tags .tag:hover::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── About Content ── */
.section-title-md {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 1.25rem;
}

.section-title-md--spaced { margin-bottom: 2rem; }

.about-section { padding: 96px 0; }

.about-subsection { margin-top: 2.5rem; }
.about-subsection-title { margin-bottom: 1rem; }

.about-lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.85;
  font-weight: 400;
  margin-bottom: 1.25rem;
}

.about-text { font-size: 0.97rem; margin-bottom: 1rem; color: var(--text-muted); }

/* ── Skill Area Cards ── */
.skill-areas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.skill-area-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  position: relative;
  overflow: hidden;
  transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease);
  will-change: transform;
}

.skill-area-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.skill-area-card:hover::before { transform: scaleX(1); }

.skill-area-card:hover {
  border-color: rgba(7, 160, 246, 0.22);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.skill-area-header { display: flex; align-items: center; gap: 0.85rem; margin-bottom: 1rem; }

.skill-area-icon {
  width: 34px;
  height: 34px;
  background: var(--accent-dim);
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--accent);
  flex-shrink: 0;
}

.skill-area-name { font-size: 0.97rem; font-weight: 700; color: var(--text); margin: 0; letter-spacing: -0.02em; }
.skill-area-desc { font-size: 0.88rem; color: var(--text-muted); line-height: 1.78; margin: 0; }
.skill-area-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }

/* ── Experience & Timeline ── */
.experience-section {
  padding: 96px 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.timeline-scroll-wrap { display: flex; align-items: center; gap: 0.75rem; overflow: hidden; }

.timeline {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 1.25rem 0.25rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.timeline::-webkit-scrollbar { display: none; }

.timeline-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem;
  text-align: center;
  min-width: 175px;
  flex-shrink: 0;
  cursor: pointer;
  transition: all var(--ease);
  will-change: transform;
}

.timeline-item:hover {
  border-color: rgba(7, 160, 246, 0.28);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.timeline-item.selected {
  border-color: var(--accent);
  border-bottom: 2px solid var(--accent);
  background: var(--accent-dim);
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(7, 160, 246, 0.13);
}

.timeline-item .title {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-dim);
  margin-bottom: 0.8rem;
}

.timeline-item.selected .title { color: var(--accent); }

.timeline-item img {
  width: 100px;
  height: 52px;
  object-fit: contain;
  margin: 0 auto 0.8rem;
  opacity: 0.65;
  transition: opacity var(--ease);
}

.timeline-item:hover img,
.timeline-item.selected img { opacity: 0.9; }

[data-theme="dark"] .timeline-item img { filter: brightness(0.85) saturate(0.8); opacity: 1; }

/* Maker Market uses a black SVG — invert in dark mode */
[data-theme="dark"] .timeline-item img.mm-logo { filter: invert(1) brightness(0.88); opacity: 1; }

.timeline-item .date { font-size: 0.72rem; color: var(--text-dim); font-weight: 500; }

.timeline-nav-btn {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--ease);
  flex-shrink: 0;
}

.timeline-nav-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }

.description-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  margin-top: 1.75rem;
  transform-origin: top left;
}

/* ── Single-role header ── */
.description-box .desc-header {
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.description-box .desc-role {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.description-box .desc-company {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.3rem;
}

.description-box .desc-meta {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-weight: 500;
}

/* ── Multi-role company header ── */
.description-box .desc-company-header {
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.description-box .desc-company-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.description-box .desc-company-meta {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-weight: 500;
}

.description-box .desc-role-group {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.description-box .desc-role-entry {
  padding-left: 1rem;
  border-left: 2px solid var(--border-lit);
}

.description-box .desc-role-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.15rem;
}

.description-box .desc-role-meta {
  font-size: 0.72rem;
  color: var(--text-dim);
  font-weight: 500;
  margin-bottom: 0.6rem;
}

/* ── Bullet list ── */
.description-box .desc-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.description-box .desc-role-entry .desc-list {
  margin-bottom: 0;
}

.description-box .desc-list li {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
  padding-left: 1.1rem;
  position: relative;
}

.description-box .desc-list li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ── Tech stack tags ── */
.description-box .desc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.description-box .desc-tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 0.18rem 0.55rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* ── Education & Languages ── */
.edu-lang-section {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}

.edu-list { display: flex; flex-direction: column; }

.edu-item {
  position: relative;
  padding: 1.75rem 0 1.75rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.edu-item:first-child { padding-top: 0; }
.edu-item:last-child  { border-bottom: none; padding-bottom: 0; }

.edu-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: var(--border-lit);
  border-radius: 2px;
}

.edu-item:first-child::before { background: var(--accent); }

.edu-period {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.edu-degree { font-size: 1rem; font-weight: 700; color: var(--text); letter-spacing: -0.01em; margin-bottom: 0.2rem; }
.edu-school { font-size: 0.875rem; color: var(--text-muted); font-weight: 500; margin-bottom: 0.6rem; }
.edu-desc   { font-size: 0.875rem; color: var(--text-dim); line-height: 1.75; margin: 0; }

.lang-list { display: flex; flex-direction: column; gap: 0.75rem; }

.lang-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.125rem 1.25rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--ease), box-shadow var(--ease);
}

.lang-item:hover { border-color: rgba(7, 160, 246, 0.25); box-shadow: var(--shadow); }

.lang-flag  { font-size: 1.55rem; line-height: 1; flex-shrink: 0; display: flex; align-items: center; }
.lang-flag img { width: 28px; height: 21px; object-fit: cover; border-radius: 2px; display: block; }
.lang-info  { flex: 1; min-width: 0; }
.lang-name  { font-size: 0.97rem; font-weight: 700; color: var(--text); margin-bottom: 0.1rem; line-height: 1.3; }
.lang-level { font-size: 0.82rem; color: var(--text-muted); margin: 0; line-height: 1.4; }
.lang-cert  { font-size: 0.75rem; color: var(--text-dim); margin: 0.2rem 0 0; line-height: 1.4; }

.lang-badge {
  font-size: 0.67rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.22rem 0.6rem;
  border-radius: 100px;
  background: var(--card);
  color: var(--text-dim);
  border: 1px solid var(--border);
  white-space: nowrap;
  flex-shrink: 0;
}

.lang-badge-c1 { background: var(--accent-dim); color: var(--accent); border-color: rgba(7, 160, 246, 0.2); }
[data-theme="dark"] .lang-badge-c1 { color: var(--accent-light); }

/* ── Code Card ── */
.code-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--card);
}

.code-card-bar {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.code-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.code-dot-red    { background: #ff5f57; }
.code-dot-yellow { background: #ffbd2e; }
.code-dot-green  { background: #28c940; }

.code-card-filename {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-dim);
  margin-left: auto;
  font-family: 'SFMono-Regular', 'Consolas', 'Liberation Mono', monospace;
}

.code-card-body { padding: 1.5rem 1.75rem; }

.code-block {
  font-family: 'SFMono-Regular', 'Consolas', 'Liberation Mono', monospace;
  font-size: 0.82rem;
  line-height: 1.8;
  margin: 0;
  white-space: pre;
  overflow-x: auto;
}

.c-cmt { color: var(--text-dim); }
.c-kw  { color: var(--secondary); font-style: italic; }
.c-var { color: var(--text); }
.c-key { color: var(--text-muted); }
.c-str { color: var(--accent); }
[data-theme="dark"] .c-kw { color: #a78bfa; }

/* ── About Responsive ── */
@media (max-width: 991px) {
  .profile-card       { position: relative; top: 0; margin-bottom: 3rem; }
  .skill-areas-grid   { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 575px) {
  .skill-areas-grid   { grid-template-columns: 1fr; }
  .timeline-nav-btn   { display: none; }
}
