:root {
  --bg: #fff7ed;            /* warm peach/amber 50 */
  --bg-2: #fffbeb;          /* warm amber 50 alt */
  --text: #1f2937;          /* slate-800 */
  --muted: #6b7280;         /* slate-500 */
  --accent: #fb923c;        /* orange-400 */
  --accent-strong: #f97316; /* orange-500 */
  --card: #ffffff;
  --ring: rgba(249, 115, 22, 0.35);
  --shadow: 0 10px 25px rgba(249, 115, 22, 0.08), 0 2px 8px rgba(0,0,0,0.06);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b0c;
    --bg-2: #111113;
    --text: #f3f4f6;
    --muted: #a1a1aa;
    --accent: #fb923c;
    --accent-strong: #fdba74;
    --card: #111113;
    --ring: rgba(251, 146, 60, 0.45);
    --shadow: 0 10px 25px rgba(0,0,0,0.35), 0 2px 8px rgba(0,0,0,0.25);
  }
}

/* Reset-ish */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, Apple Color Emoji, Segoe UI Emoji, Noto Color Emoji, 'Noto Sans';
  background: linear-gradient(180deg, var(--bg), var(--bg-2));
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Accessibility helpers */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--accent); color: white; padding: .6rem .8rem; border-radius: .5rem; z-index: 1000;
}
.skip-link:focus { left: .5rem; top: .5rem; outline: none; box-shadow: 0 0 0 4px var(--ring); }

.container {
  width: min(100% - 2rem, 980px);
  margin-inline: auto;
}

/* Header */
.site-header { padding: 3rem 0 1rem; }

.brand {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem 1.5rem;
  align-items: center;
}

/* --- Avatar: zoomed & centered --- */
.avatar-wrap{
  width: clamp(140px, 18vw, 200px);
  height: clamp(140px, 18vw, 200px);
  border-radius: 50%;
  overflow: hidden;
  border: 6px solid rgba(249, 115, 22, 0.15);
  box-shadow: var(--shadow);
}
.avatar{
  width: 100%;
  height: 100%;
  object-fit: cover;          /* crop inside circle */
  object-position: 50% 28%;   /* nudge focus upward */
  transform: scale(1.22);     /* zoom in */
  display: block;
}

.title {
  margin: 0;
  font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.4rem);
  letter-spacing: -0.01em;
}
.tagline {
  margin: .25rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, .95rem + .25vw, 1.125rem);
}

/* Hero card */
.card {
  background: var(--card);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 1.25rem;
  padding: clamp(1rem, 3vw, 2rem);
  margin: 1.5rem 0 3rem;
  box-shadow: var(--shadow);
  animation: rise .6s ease both;
}

.card.hero {
  /* inherits card styling; kept for semantic clarity */
}
@keyframes rise { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }

.lead {
  font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem);
  margin: 0 0 1.25rem;
}

.hero-meta {
  display: inline-flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 0 0 1.5rem;
  font-size: .95rem;
  font-weight: 600;
  color: var(--accent-strong);
}
.hero-meta span {
  display: inline-flex;
  align-items: center;
  padding: .4rem .7rem;
  border-radius: .75rem;
  background: rgba(249, 115, 22, 0.12);
}

.pill-list {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.pill-list li {
  padding: .55rem .85rem;
  border-radius: .8rem;
  background: rgba(249, 115, 22, 0.12);
  border: 1px solid rgba(249, 115, 22, 0.18);
  font-weight: 600;
  font-size: .95rem;
}

.card.info p {
  margin-top: 0;
}

.experience-grid {
  display: grid;
  gap: 1.5rem;
  margin: 1.5rem 0;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.experience {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 1rem;
  padding: 1.25rem 1.35rem;
  backdrop-filter: blur(2px);
}
@media (prefers-color-scheme: dark) {
  .experience {
    background: rgba(17, 17, 19, 0.6);
    border-color: rgba(255, 255, 255, 0.05);
  }
}
.experience h3 {
  margin: 0;
  font-size: 1.08rem;
}
.experience-meta {
  margin: .25rem 0 .9rem;
  color: var(--muted);
  font-size: .9rem;
}
.experience ul {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: .6rem;
}

.experience-more {
  margin: 1rem 0 0;
}
.experience-more summary {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: var(--accent-strong);
  font-weight: 600;
}
.experience-more summary::-webkit-details-marker {
  display: none;
}
.experience-more[open] summary {
  margin-bottom: .75rem;
}
.experience-more ul {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: .5rem;
}

.education-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: .6rem;
}
.education-list li {
  font-size: .98rem;
}

/* Optional placeholder (kept for reference) */
.widget-placeholder {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem .9rem;
  border-radius: .75rem;
  border: 1px dashed rgba(0,0,0,0.15);
  color: var(--muted);
  margin: .25rem 0 1.25rem;
  user-select: none;
}
.widget-placeholder .dot {
  width: .5rem; height: .5rem; border-radius: 50%;
  background: var(--accent);
  animation: blink 1.5s infinite ease-in-out;
}
.widget-placeholder .dot:nth-child(2){ animation-delay: .2s; }
.widget-placeholder .dot:nth-child(3){ animation-delay: .4s; }
@keyframes blink { 0%,80%,100% { opacity: .25 } 40% { opacity: 1 } }

/* Links / buttons */
.links {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
}
.btn {
  display: inline-block;
  border-radius: .7rem;
  padding: .7rem 1rem;
  background: linear-gradient(180deg, var(--accent), var(--accent-strong));
  color: white;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 4px 12px var(--ring);
  transition: transform .08s ease, box-shadow .2s ease, opacity .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--ring), 0 4px 12px var(--ring); }
.btn:active { transform: translateY(1px); }
/* Remove aria-disabled on real links so they remain clickable */
/* .btn[aria-disabled="true"] { opacity: .6; pointer-events: none; } */

.btn-ghost {
  background: transparent;
  color: var(--accent-strong);
  border: 1.5px solid rgba(249, 115, 22, 0.35);
  box-shadow: none;
}

/* --- PhD Defense section styles --- */
.section-title{
  margin: 0 0 .75rem;
  font-size: clamp(1.1rem, 1rem + .6vw, 1.5rem);
  letter-spacing: -0.01em;
}

/* Responsive 16:9 video embed */
.video{
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.video iframe{
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}


/* Footer */
.site-footer {
  padding: 2rem 0 3rem;
  color: var(--muted);
  text-align: center;
}
