/* ══ ABOUT PAGE ════════════════════════════════════════════ */
.about-page-wrap { position: relative; z-index: 1; }

/* Shared card */
.about-bio-card,
.about-photo-card,
.about-location-card,
.about-section-card,
.about-arsenal-card {
  background: rgba(17,21,32,.75);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  isolation: isolate;
}
.about-photo-card { overflow: hidden; }  /* clips the inner photo on tilt */

/* ── TOP GRID ─────────────────────────────────── */
/* Photo panel — photo (50%) + location/CV (50%), shown at the very top */
.about-photo-panel {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  max-width: 960px;
  margin: 100px auto 14px;
  padding: 0 32px;
  box-sizing: border-box;
}

/* Bio card sits below, full width */
.about-bio-section {
  max-width: 960px;
  margin: 0 auto 14px;
  padding: 0 32px;
  box-sizing: border-box;
}
.about-bio-section .about-bio-card { width: 100%; }

.about-bio-card {
  padding: 32px;
  display: flex;
  flex-direction: column;
  min-height: 360px;
  box-sizing: border-box;
}
.about-avail-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(59,130,246,.1);
  border: 1px solid rgba(59,130,246,.25);
  border-radius: 9999px;
  padding: 5px 14px 5px 10px;
  margin-bottom: 20px;
  font-family: 'Space Mono', monospace;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .16em;
  color: #60a5fa;
  text-transform: uppercase;
  width: fit-content;
}
.about-avail-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
  animation: about-pulse 2s ease-in-out infinite;
}
@keyframes about-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,.6); }
  50% { box-shadow: 0 0 0 5px rgba(34,197,94,0); }
}
.about-bio-heading {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 16px;
}
.about-bio-heading em {
  font-style: italic;
  font-family: 'Playfair Display', serif;
  color: #3b82f6;
  -webkit-text-fill-color: #3b82f6;
}
.about-bio-text {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,.42);
  margin-bottom: 28px;
  flex: 1;
}
.about-bio-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: auto;
}
.about-hire-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  color: #000000;
  padding: 11px 24px;
  border-radius: 9999px;
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  transition: all .2s;
  white-space: nowrap;
  box-shadow: 0 0 0 1px rgba(255,255,255,.3);
}
.about-hire-btn:hover { background: #e5e7eb; text-decoration: none; color: #000; }
.about-hire-btn svg { transition: transform .25s; }
.about-hire-btn:hover svg { transform: translateX(2px); }
.about-social-icons { display: flex; gap: 10px; }
.about-social-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.5);
  text-decoration: none;
  transition: all .2s;
}
.about-social-icon:hover { color: #fff; border-color:rgba(255,255,255,.45); text-decoration: none; }

/* Photo card */
.about-photo-card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  min-height: 360px;
}
.about-photo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform .6s cubic-bezier(0.16,1,0.3,1);
}
.about-photo-card:hover .about-photo-img { transform: scale(1.06); }
.about-photo-placeholder { transition: transform .6s cubic-bezier(0.16,1,0.3,1); }
.about-photo-card:hover .about-photo-placeholder { transform: scale(1.06); }
.about-photo-overlay { transition: padding-bottom .4s ease; }
.about-photo-card:hover .about-photo-overlay { padding-bottom: 24px; }
.about-photo-placeholder {
  width: 100%;
  height: 100%;
  min-height: 360px;
  background: linear-gradient(135deg,#0d1b2a,#1a1020);
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-photo-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 1;
  padding: 60px 18px 18px;
  background: linear-gradient(to top, rgba(5,8,14,.9) 0%, transparent 100%);
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.about-photo-name { font-size: 1.05rem; font-weight: 700; color: #fff; letter-spacing: -.01em; }
.about-photo-role { font-size: 11px; color: rgba(255,255,255,.5); font-family: monospace; letter-spacing: .04em; }

/* Right cards */
.about-right-cards { display: flex; flex-direction: column; gap: 12px; }
.about-location-card {
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  flex: 1;
  min-height: 130px;
}
.about-location-text { font-size: 13px; font-weight: 500; color: #fff; line-height: 1.5; }
.about-location-text strong { font-weight: 700; display: block; }
.about-cv-card {
  background: #2563eb;
  border: none;
  border-radius: 16px;
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  color: #ffffff;
  text-decoration: none;
  cursor: pointer;
  flex: 1;
  min-height: 130px;
  font-size: 14px;
  font-weight: 600;
  transition: background .2s;
}
.about-cv-card:hover { background: #1d4ed8; text-decoration: none; color: #fff; }
.about-cv-card svg { width: 24px; height: 24px; }

/* ── MID GRID ─────────────────────────────────── */
.about-mid-grid {
  display: grid !important;
  grid-template-columns: 1.45fr 1fr;
  gap: 14px;
  max-width: 960px;
  margin: 0 auto 14px;
  padding: 0 32px;
  box-sizing: border-box;
}
.about-right-stack { display: flex; flex-direction: column; gap: 12px; }
.about-section-card { padding: 26px; }
.about-section-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 20px;
  letter-spacing: -.01em;
}
.about-section-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #3b82f6;
  flex-shrink: 0;
}
.about-section-body { font-size: 13.5px; line-height: 1.7; color:rgba(255,255,255,.55); }

/* Experience timeline */
.about-exp-list { display: flex; flex-direction: column; gap: 20px; }
.about-exp-item { display: flex; align-items: flex-start; gap: 14px; }
.about-exp-bullet {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  border: 1.5px solid rgba(255,255,255,.22);
  flex-shrink: 0;
  margin-top: 5px;
}
.about-exp-content { flex: 1; min-width: 0; }
.about-exp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}
.about-exp-company { font-size: 15px; font-weight: 700; color: #fff; letter-spacing: -.01em; }
.about-exp-years {
  font-family: monospace;
  font-size: 10px;
  color:rgba(255,255,255,.55);
  letter-spacing: .04em;
  white-space: nowrap;
  flex-shrink: 0;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 4px;
  padding: 3px 8px;
}
.about-exp-role { font-size: 13px; color:rgba(255,255,255,.55); line-height: 1.4; }

/* Studies */
.about-study-list { display: flex; flex-direction: column; gap: 16px; }
.about-study-item { display: flex; flex-direction: column; gap: 3px; }
.about-study-title { font-size: 14px; font-weight: 700; color: #fff; letter-spacing: -.01em; }
.about-study-desc { font-size: 12.5px; color:rgba(255,255,255,.55); line-height: 1.55; }

/* Languages */
.about-lang-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.about-lang-pill {
  padding: 6px 16px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,.65);
}

/* ── ARSENAL ──────────────────────────────────── */
.about-arsenal-wrap {
  max-width: 960px;
  margin: 0 auto 80px;
  padding: 0 32px;
  box-sizing: border-box;
}
.about-arsenal-card { padding: 28px; }
.about-section-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.about-section-subtitle { font-size: 13px; color:rgba(255,255,255,.5); margin: 0; }

.about-tech-boxes {
  display: grid !important;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.about-tech-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  padding: 22px 12px 18px;
  text-align: center;
  transition: border-color .2s, background .2s;
}
.about-tech-box:hover { background: rgba(255,255,255,.08); border-color:rgba(255,255,255,.45); }
.about-tech-abbr {
  font-family: 'Space Mono', monospace;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.02em;
}
.about-tech-name { font-size: 11px; color:rgba(255,255,255,.55); letter-spacing: .02em; }

/* Responsive */
@media (max-width: 768px) {
  .about-photo-panel { grid-template-columns: 1fr !important; padding: 0 20px; margin-top: 80px; }
  .about-bio-section { padding: 0 20px; }
  .about-mid-grid { grid-template-columns: 1fr !important; padding: 0 20px; }
  .about-arsenal-wrap { padding: 0 20px; }
  .about-photo-card { min-height: 280px; }
  .about-tech-boxes { grid-template-columns: repeat(3,1fr) !important; }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .about-tech-boxes { grid-template-columns: repeat(4,1fr) !important; }
}

/* ── ABOUT PAGE — Light theme ────────────────────── */
body.pa-light .about-bio-card,
body.pa-light .about-photo-card,
body.pa-light .about-location-card,
body.pa-light .about-section-card,
body.pa-light .about-arsenal-card {
  background: #ffffff;
  border-color:rgba(0,0,0,.5);
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
}
body.pa-light .about-avail-badge {
  background: rgba(37,99,235,.08);
  border-color: rgba(37,99,235,.2);
  color: #2563eb;
}
body.pa-light .about-bio-heading { color: #111827; }
body.pa-light .about-bio-heading em { color: #2563eb; -webkit-text-fill-color: #2563eb; }
body.pa-light .about-bio-text { color: rgba(0,0,0,.5); }
body.pa-light .about-hire-btn {
  background: #111827;
  color: #fff;
  box-shadow: 0 0 0 1px rgba(0,0,0,.2);
}
body.pa-light .about-hire-btn:hover { background: #1f2937; color: #fff; }
body.pa-light .about-social-icon {
  background: rgba(0,0,0,.05);
  border-color:rgba(0,0,0,.5);
  color: rgba(0,0,0,.45);
}
body.pa-light .about-social-icon:hover { color: #111827; border-color:rgba(0,0,0,.5); }
body.pa-light .about-photo-name { color: #ffffff; }
body.pa-light .about-location-text { color: #111827; }
body.pa-light .about-section-title { color: #111827; }
body.pa-light .about-section-dot { background: #2563eb; }
body.pa-light .about-section-body { color: rgba(0,0,0,.5); }
body.pa-light .about-exp-company  { color: #111827; }
body.pa-light .about-exp-role     { color: rgba(0,0,0,.45); }
body.pa-light .about-exp-years {
  color:rgba(0,0,0,.6);
  background: rgba(0,0,0,.05);
  border-color:rgba(0,0,0,.5);
}
body.pa-light .about-exp-bullet { background: rgba(0,0,0,.12); border-color:rgba(0,0,0,.5); }
body.pa-light .about-study-title { color: #111827; }
body.pa-light .about-study-desc  { color: rgba(0,0,0,.45); }
body.pa-light .about-lang-pill {
  background: rgba(0,0,0,.05);
  border-color:rgba(0,0,0,.5);
  color: rgba(0,0,0,.6);
}
body.pa-light .about-section-subtitle { color:rgba(0,0,0,.6); }
body.pa-light .about-tech-box {
  background: rgba(0,0,0,.04);
  border-color:rgba(0,0,0,.5);
}
body.pa-light .about-tech-box:hover {
  background: rgba(0,0,0,.07);
  border-color:rgba(0,0,0,.5);
}
body.pa-light .about-tech-name { color:rgba(0,0,0,.6); }

/* ── Location + placeholder icon colors (theme-aware) ── */
.about-location-icon { color: rgba(255,255,255,.5); }
.about-photo-ph-icon { color: rgba(255,255,255,.1); }
body.pa-light .about-location-icon { color: rgba(0,0,0,.55); }
body.pa-light .about-photo-ph-icon { color: rgba(0,0,0,.12); }


/* ── Work Experience TIMELINE (reference exact) ──── */
.about-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
/* Vertical line — runs through the centre of the dots (dot is 12px, centre at 6px; line 2px → left 5px) */
.about-timeline-line {
  position: absolute;
  left: 5px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  border-radius: 2px;
  background: rgba(255,255,255,.1);
  transform-origin: top center;
  animation: about-line-grow 1s cubic-bezier(.16,1,.3,1) forwards;
}
@keyframes about-line-grow {
  from { transform: scaleY(0); }
  to   { transform: scaleY(1); }
}
.about-tl-item {
  position: relative;
  padding-left: 32px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  transform: translateX(-12px);
  animation: about-tl-in .6s cubic-bezier(.16,1,.3,1) forwards;
}
@media (min-width: 600px) {
  .about-tl-item {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
  }
}
.about-tl-item:nth-child(2) { animation-delay: .1s; }
.about-tl-item:nth-child(3) { animation-delay: .2s; }
.about-tl-item:nth-child(4) { animation-delay: .3s; }
.about-tl-item:nth-child(5) { animation-delay: .4s; }
.about-tl-item:nth-child(6) { animation-delay: .5s; }
@keyframes about-tl-in {
  to { opacity: 1; transform: translateX(0); }
}
/* Dot — sits ON the line: 12px wide, centre at left 6px → left 0, top aligned to first text line */
.about-tl-dot {
  position: absolute;
  left: 0;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #0a0a0a;
  border: 3px solid rgba(255,255,255,.2);
  box-sizing: border-box;
  transition: border-color .3s;
  z-index: 1;
}
.about-tl-item:hover .about-tl-dot { border-color: #3b82f6; }
.about-tl-content { min-width: 0; }
.about-tl-company {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: #ffffff;
  margin: 0 0 4px;
  line-height: 1.2;
}
.about-tl-role {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,.45);
  line-height: 1.4;
}
.about-tl-period {
  font-family: var(--mono,'Space Mono',monospace);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: rgba(255,255,255,.55);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.07);
  padding: 5px 12px;
  border-radius: 9999px;
  white-space: nowrap;
  flex-shrink: 0;
  align-self: flex-start;
}
/* Light mode */
body.pa-light .about-timeline-line { background: rgba(0,0,0,.1); }
body.pa-light .about-tl-dot { background: #ffffff; border-color: rgba(0,0,0,.2); }
body.pa-light .about-tl-item:hover .about-tl-dot { border-color: #3b82f6; }
body.pa-light .about-tl-company { color: #111827; }
body.pa-light .about-tl-role { color: rgba(0,0,0,.5); }
body.pa-light .about-tl-period { color: rgba(0,0,0,.6); background: rgba(0,0,0,.04); border-color: rgba(0,0,0,.08); }
@media (prefers-reduced-motion: reduce) {
  .about-timeline-line, .about-tl-item { animation: none; opacity: 1; transform: none; }
}
