/* ============================================================================
 * SECTIONS — about, skills, projects, research, experience, education,
 * contact, footer. Each block is grouped with a banner comment.
 * ==========================================================================*/


/* ============================================================================
 * ABOUT
 * ==========================================================================*/

.about {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 64px;
  align-items: start;
}
.avatar {
  width: 180px; height: 180px;
  border-radius: 50%;
  background: linear-gradient(160deg, #1E293B 0%, #0F172A 100%);
  border: 2px solid var(--teal);
  box-shadow: 0 0 0 6px rgba(0,180,166,0.08), 0 20px 50px -20px rgba(0,180,166,0.5);
  display: grid; place-items: center;
  color: var(--teal);
  font-size: 56px; font-weight: 700; letter-spacing: -0.02em;
  position: relative;
  overflow: hidden;
}
.avatar::after {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, transparent 0 8px, rgba(0,180,166,0.05) 8px 9px);
  pointer-events: none;
}
/* If a photo is set, hide the diagonal pattern so the photo reads cleanly. */
.avatar.has-photo::after { display: none; }
.avatar img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 1;
}

.avatar-stack {
  display: flex; flex-direction: column; align-items: center;
  gap: 18px;
}
.avatar-info {
  text-align: center;
  font-size: 13px;
  color: var(--text-mute);
}
.avatar-info .where {
  color: var(--text);
  font-weight: 500;
}

.about p {
  font-size: 17px;
  color: var(--text-dim);
  line-height: 1.75;
  margin: 0 0 18px;
}
.about p:last-child { margin-bottom: 0; }
.about p strong {
  color: var(--text);
  font-weight: 600;
}
.about-stats {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.stat {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  background: rgba(30,41,59,0.4);
}
.stat .v {
  font-size: 26px; font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 4px;
}
.stat .v .unit { color: var(--teal); }
.stat .l {
  font-size: 12.5px;
  color: var(--text-mute);
  letter-spacing: 0.02em;
}


/* ============================================================================
 * SKILLS
 * ==========================================================================*/

.skill-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.skill-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  transition: border-color 200ms, transform 200ms, box-shadow 200ms;
}
.skill-card:hover {
  border-color: var(--teal-line);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}
.skill-head {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 20px;
}
.skill-icon {
  width: 42px; height: 42px; border-radius: 10px;
  background: var(--teal-soft);
  color: var(--teal);
  display: grid; place-items: center;
  border: 1px solid var(--teal-line);
}
.skill-card h3 {
  font-size: 16.5px; font-weight: 600;
  margin: 0;
  letter-spacing: -0.01em;
}
.skill-card .count {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-mute);
}


/* ============================================================================
 * PROJECTS
 * ==========================================================================*/

.proj-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.proj {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 26px 22px;
  transition: transform 220ms, box-shadow 220ms, border-color 220ms;
}
.proj::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--teal);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform 280ms cubic-bezier(.2, .7, .2, 1);
}
.proj:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--border-strong);
}
.proj:hover::before { transform: scaleY(1); transform-origin: top; }

.proj-tag-row {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 16px;
  color: var(--text-mute);
  font-family: var(--font-mono);
  font-size: 11.5px; letter-spacing: 0.04em;
}
.proj-num { color: var(--teal); }
.proj-domain {
  margin-left: auto;
  padding: 3px 8px; border-radius: 4px;
  background: rgba(148,163,184,0.08);
  color: var(--text-dim);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.proj h3 {
  font-size: 19px; margin: 0 0 10px;
  letter-spacing: -0.015em;
  font-weight: 650;
  line-height: 1.25;
}
.proj p {
  margin: 0 0 18px;
  color: var(--text-dim);
  font-size: 14.5px;
  line-height: 1.6;
  flex: 1;
}
.proj-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
}
.proj-pills {
  display: flex; flex-wrap: wrap; gap: 6px;
  max-width: 70%;
}
.proj-pills .pill {
  font-size: 11.5px;
  padding: 4px 9px;
}
.proj-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--text-dim);
  font-size: 13px; font-weight: 500;
  padding: 7px 11px; border-radius: 6px;
  border: 1px solid var(--border);
  transition: all 160ms;
}
.proj-link:hover {
  color: var(--teal);
  border-color: var(--teal-line);
  background: rgba(0,180,166,0.06);
}


/* ============================================================================
 * RESEARCH
 * ==========================================================================*/

.research-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.research {
  position: relative; overflow: hidden;
  border: 1px solid var(--teal-line);
  background:
    linear-gradient(180deg, rgba(0,180,166,0.05), rgba(0,180,166,0.0) 60%),
    var(--card);
  border-radius: var(--radius-lg);
  padding: 30px;
  transition: transform 220ms, box-shadow 220ms;
}
.research::after {
  content: ''; position: absolute; right: -30px; top: -30px;
  width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(0,180,166,0.18), transparent 70%);
  pointer-events: none;
}
.research:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}
.research-head {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 12px; color: var(--teal);
  letter-spacing: 0.04em;
}
.research-status {
  margin-left: auto;
  padding: 4px 10px; border-radius: 999px;
  background: var(--teal-soft);
  border: 1px solid var(--teal-line);
  font-size: 11px;
}
.research h3 {
  font-size: 22px; margin: 0 0 8px;
  letter-spacing: -0.015em;
  font-weight: 650;
}
.research-meta {
  font-size: 13.5px;
  color: var(--text-dim);
  margin-bottom: 16px;
}
.research-meta .sep {
  margin: 0 8px;
  color: var(--text-mute);
}
.research p {
  color: var(--text-dim);
  font-size: 15px; line-height: 1.65;
  margin: 0 0 18px;
}


/* ============================================================================
 * EXPERIENCE TIMELINE
 * ==========================================================================*/

.timeline {
  position: relative;
  padding-left: 28px;
  border-left: 1px solid var(--border-strong);
}
.tl-item {
  position: relative;
  padding: 0 0 38px 18px;
}
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ''; position: absolute; left: -34px; top: 8px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--teal);
  box-shadow: 0 0 0 4px rgba(0,180,166,0.12);
}
.tl-time {
  font-family: var(--font-mono);
  font-size: 12px; color: var(--teal);
  letter-spacing: 0.03em;
  margin-bottom: 6px;
}
.tl-item h3 {
  font-size: 18px; margin: 0 0 4px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.tl-item h3 .at {
  color: var(--text-mute);
  font-weight: 500;
}
.tl-item p {
  color: var(--text-dim);
  font-size: 14.5px;
  margin: 8px 0 12px;
  line-height: 1.6;
  max-width: 640px;
}


/* ============================================================================
 * EDUCATION
 * ==========================================================================*/

.edu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.edu {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color 200ms, transform 200ms, box-shadow 200ms;
}
.edu:hover {
  transform: translateY(-3px);
  border-color: var(--teal-line);
  box-shadow: var(--shadow-hover);
}
.edu-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.edu-head .deg {
  font-family: var(--font-mono);
  font-size: 11.5px; color: var(--teal);
  letter-spacing: 0.04em;
}
.edu-head .gpa {
  font-family: var(--font-mono);
  font-size: 12px; color: var(--text);
  padding: 4px 9px;
  border: 1px solid var(--border-strong);
  border-radius: 5px;
}
.edu h3 {
  font-size: 19px; margin: 0 0 6px;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.edu .school {
  color: var(--text-dim);
  font-size: 14.5px;
  margin-bottom: 12px;
}
.edu .when {
  font-size: 13px;
  color: var(--text-mute);
}


/* ============================================================================
 * CONTACT
 * ==========================================================================*/

.contact-card {
  position: relative; overflow: hidden;
  border: 1px solid var(--border-strong);
  background:
    radial-gradient(900px 350px at 30% 0%, rgba(0,180,166,0.10), transparent 60%),
    var(--card);
  border-radius: 18px;
  padding: 64px 56px;
  text-align: center;
}
.contact-card h2 {
  font-size: clamp(30px, 3.6vw, 46px);
  margin: 0 0 14px;
  letter-spacing: -0.025em;
  font-weight: 700;
}
.contact-card h2 .accent { color: var(--teal); }
.contact-card p {
  color: var(--text-dim);
  font-size: 17px;
  max-width: 620px;
  margin: 0 auto 32px;
  line-height: 1.6;
}
.contact-card p strong { color: var(--text); }
.contact-actions {
  display: flex; gap: 12px; justify-content: center;
  flex-wrap: wrap;
}
.availability {
  margin-top: 28px;
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text-mute);
  font-size: 13px;
  font-family: var(--font-mono);
}
.availability .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 12px rgba(0,180,166,0.7);
}


/* ============================================================================
 * FOOTER
 * ==========================================================================*/

footer {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  padding: 40px 0 60px;
  border-top: 1px solid var(--border);
  margin-top: 60px;
  color: var(--text-mute);
  font-size: 13px;
}
