/* =======================
   Base + Palette
   ======================= */
:root{
  --bg: #f8fafc;             /* page background */
  --surface: #ffffff;         /* cards/nav */
  --text: #1f2937;            /* main text */
  --muted: #6b7280;           /* secondary text */
  --border: #e5e7eb;          /* subtle lines */

  /* purple accents */
  --accent-100:#ede9fe;
  --accent-300:#c4b5fd;
  --accent-500:#8b5cf6;
  --accent-600:#7c3aed;       /* main accent */
  --accent-700:#6d28d9;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 16px/1.75 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; border: 0; }
a { color: var(--accent-600); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* =======================
   Top Navigation (sticky)
   ======================= */
nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  backdrop-filter: saturate(140%) blur(4px);
}
nav .container {
  display: flex; align-items: center; justify-content: center;
  gap: 24px; padding: 14px 8px;
}
nav a {
  color: #111827;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 8px;
}
nav a:hover { background: #f3f4f6; text-decoration: none; }

/* optional right-side icons area (add a div.nav-actions if you want) */
.nav-actions { margin-left: auto; display: flex; gap: 16px; color: var(--muted); }
.nav-actions a { color: inherit; }

/* =======================
   Hero / Title (simple)
   ======================= */
header { background: transparent; }
header .container { padding: 36px 24px 0; }
header h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.01em;
}
header p { margin: 0; color: var(--muted); }

/* =======================
   Main two-column layout
   put this inside <main><div class="container"><div class="layout">...</div></div>
   left column: .profile   right: .content
   ======================= */
.layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 48px;
  padding: 32px 24px 64px;
  background: transparent;
}
@media (max-width: 900px){
  .layout { grid-template-columns: 1fr; gap: 28px; }
}

/* ------- Left column (profile card) ------- */
.profile {
  text-align: center;
}
.avatar {
  width: 200px; height: 200px; margin: 0 auto 18px;
  border-radius: 999px; object-fit: cover;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
}
.name {
  margin: 0; font-size: 32px; font-weight: 800; letter-spacing: -0.01em;
}
.subtitle {
  margin: 6px 0 14px; color: var(--muted); font-weight: 500;
}
.orgs { list-style: none; padding: 0; margin: 14px 0 18px; }
.orgs li { margin: 6px 0; }
.orgs a { color: var(--accent-600); }
.orgs a:hover { color: var(--accent-700); }

/* socials row under the org links (use <div class="socials"><a>…</a></div>) */
.socials { display: flex; justify-content: center; gap: 16px; margin-top: 10px; }
.socials a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 999px;
  background: var(--accent-100); color: var(--accent-600);
}
.socials a:hover { background: var(--accent-300); color: var(--accent-700); }

/* ------- Right column (content) ------- */
.content h2 {
  font-size: clamp(15px, 3.6vw, 44px);
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.content p { margin: 0 0 16px; }
.content a { color: var(--accent-600); }
.content a:hover { color: var(--accent-700); }

/* two small columns like "Interests" & "Education" */
.two-col {
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 28px;
}
@media (max-width: 700px){ .two-col { grid-template-columns: 1fr; } }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 18px;
  box-shadow: 0 6px 18px rgba(17,24,39,.04);
}
.card h3 { margin: 0 0 10px; font-size: 20px; }
ul.clean { margin: 0; padding-left: 18px; }

/* =======================
   Nice little details
   ======================= */
::selection { background: var(--accent-300); color: #0f172a; }
hr { border: none; border-top: 1px solid var(--border); margin: 24px 0; }


/* Center the hero (big name at top) */
header .container {
  text-align: left;
}

/* Center everything in the left profile column */
.profile {
  display: flex;
  flex-direction: column;
  align-items: center;   /* centers the name + avatar horizontally */
  text-align: center;    /* centers text inside */
}

.name {
  margin: 8px 0 6px;
  text-align: center;    /* in case a global h2 rule was left-aligning it */
}

.avatar {
  display: block;
  margin: 0 auto;        /* ensures the image centers */
}
/* center everything in the left profile column */
.profile {
  display: flex;
  flex-direction: column;
  align-items: center;   /* centers children horizontally */
  text-align: center;    /* centers text inside */
}

/* title + subtitle */
.name { text-align: center; margin: 8px 0 4px; }

.subtitle {
  text-align: center;
  align-self: center;    /* in case something overrides alignment */
  margin: 2px 0 12px;
  color: var(--muted);
  font-weight: 500;
}

header .container {
  text-align: center;
}

header .container h1 {
  margin: 0 0 6px;
}

header .container p {
  margin: 0;
  color: var(--muted);     /* optional, from earlier palette */
  font-weight: 500;        /* optional */
}

/* Center name + subtitle in the header */
header .container {
  display: flex;
  flex-direction: column;
  align-items: center;  /* centers block elements horizontally */
  text-align: center;   /* centers inline text */
}

header .container h1 { margin: 0 0 8px; text-align: center; }
header .container p  { margin: 0;        text-align: center; }


/* ---------- Page hero ---------- */
.page-hero {
  padding: 40px 0 10px;
  background: transparent;
}
.page-hero h1 {
  margin: 0 0 6px;
  font-size: clamp(28px, 4.5vw, 44px);
  letter-spacing: -0.01em;
}
.page-hero p {
  margin: 0;
  color: var(--muted);
  font-weight: 500;
}

/* ---------- Readable typography block ---------- */
.prose {
  max-width: 900px;
  margin: 18px auto 28px;
  line-height: 1.8;
  font-size: 1.05rem;
}
.prose h3 { margin-top: 18px; margin-bottom: 10px; }
.prose p { margin: 0 0 16px; }

/* ---------- Simple two-column grid ---------- */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 20px 0 30px;
}
@media (max-width: 900px) {
  .grid-2 { grid-template-columns: 1fr; }
}

/* ---------- Cards (reuse if you already have .card) ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 18px;
  box-shadow: 0 6px 18px rgba(17,24,39,.04);
}
.card h3 { margin: 0 0 10px; font-size: 20px; }
ul.clean { margin: 0; padding-left: 18px; }
ul.clean li { margin: 6px 0; }

/* ---------- Badges (for exams/topics) ---------- */
.badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.badge {
  display: inline-block;
  background: var(--accent-100);
  color: var(--accent-700);
  border: 1px solid var(--accent-300);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
}

/* ---------- Callout box ---------- */
.callout {
  margin: 24px 0 50px;
  padding: 14px 16px;
  border-left: 4px solid var(--accent-600);
  background: #f5f3ff; /* light purple */
  border-radius: 8px;
}
.callout p { margin: 0; }
/* ========== Cute purple gradients + Georgia ========== */

/* 1) Typography — use Georgia for headings (readable + classy) */
h1, h2, h3, h4, h5, h6,
.name, .subtitle, .pub-title {
  font-family: Georgia, "Times New Roman", Times, serif;
  letter-spacing: -0.2px;
}

/* If you want ALL text in Georgia, uncomment:
body { font-family: Georgia, "Times New Roman", Times, serif; }
*/

/* 2) Page background — soft layered purple gradients */
body {
  background:
    radial-gradient(1200px 600px at 85% -5%,
      rgba(167,139,250,0.18), transparent 60%),
    radial-gradient(900px 500px at -10% 20%,
      rgba(124,58,237,0.12), transparent 60%),
    radial-gradient(700px 500px at 110% 90%,
      rgba(196,181,253,0.14), transparent 55%),
    linear-gradient(180deg, #faf7ff 0%, #f7f5ff 40%, #f9f7ff 100%);
  /* keeps everything readable on top */
}

/* Optional floating “blobs” for extra cute glow */
body::before,
body::after {
  content: "";
  position: fixed;
  pointer-events: none;
  z-index: -1;
  filter: blur(40px);
  opacity: 0.35;
}
body::before {
  inset: -100px auto auto -120px;
  width: 520px; height: 520px;
  background: radial-gradient(circle at 30% 30%,
    rgba(167,139,250,0.35), rgba(124,58,237,0.15) 45%, transparent 60%);
}
body::after {
  inset: auto -120px -140px auto;
  width: 620px; height: 620px;
  background: radial-gradient(circle at 70% 40%,
    rgba(196,181,253,0.35), rgba(124,58,237,0.12) 50%, transparent 65%);
}

/* 3) Nav + buttons — subtle purple polish */
nav {
  background: rgba(255,255,255,0.9);
  backdrop-filter: saturate(140%) blur(6px);
}
nav a {
  position: relative;
  border-radius: 10px;
}
nav a:hover {
  background: rgba(124,58,237,0.06);
  text-decoration: none;
}
nav a::after {
  content:"";
  position:absolute; left:10px; right:10px; bottom:-6px; height:3px;
  background: linear-gradient(90deg, #c4b5fd, #7c3aed);
  opacity:0; transform: translateY(4px);
  transition: .2s ease;
  border-radius: 3px;
}
nav a:hover::after { opacity:1; transform: translateY(0); }

/* 4) Hero and section cards with gentle gradient accents */
header .container, .page-hero .container {
  /* keep text centered as you liked */
  text-align: center;
}
.page-hero {
  background: linear-gradient(180deg, rgba(167,139,250,0.10), rgba(124,58,237,0.06));
  border-bottom: 1px solid #e9e5ff;
}
.card {
  background: #ffffffcc; /* slight glassy look */
  border: 1px solid #ece8ff;
  box-shadow: 0 10px 24px rgba(124,58,237,0.07);
  border-radius: 16px;
}

/* 5) Cute buttons (used in Research, etc.) */
.btn {
  background-image: linear-gradient(135deg, #a78bfa, #7c3aed);
  border-color: #7c3aed;
}
.btn:hover {
  background-image: linear-gradient(135deg, #946cf8, #6d28d9);
  border-color: #6d28d9;
}
.btn.ghost {
  background: rgba(124,58,237,0.06);
  border-color: #c4b5fd;
  color: #6d28d9;
}
.btn.ghost:hover {
  background: rgba(124,58,237,0.12);
  border-color: #7c3aed;
}

/* 6) Selection + links */
::selection { background: #c4b5fd; color: #201a3a; }
a { color: #6d28d9; }
a:hover { color: #5b21b6; }
/* ---- Left-align everything important ---- */
nav .container { justify-content: flex-start !important; }

header .container {
  display: block !important;
  text-align: left !important;
}

/* hero sizing: Name > About me */
.hero-name {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
  font-size: clamp(36px, 5vw, 56px);  /* larger than About me */
}
.hero-subtitle {
  margin: 0;
  color: var(--muted);
  font-weight: 500;
  font-size: clamp(16px, 2.1vw, 20px);
}

/* profile column left-aligned (was centered earlier) */
.profile {
  align-items: flex-start !important;
  text-align: left !important;
}
.name, .subtitle {
  text-align: left !important;
  align-self: flex-start;
}

/* About-me heading in the content area */
.section-title {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  font-size: clamp(22px, 2.6vw, 28px);  /* smaller than hero name */
}

/* ensure the first element in .content doesn't float down with big top margins */
.content > :first-child { margin-top: 0 !important; }


/* inline hero now sits in the right column, left-aligned automatically */
.hero-inline { margin: 0 0 14px; }
.hero-name {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
  font-size: clamp(36px, 5vw, 56px);
}
.hero-subtitle {
  margin: 0;
  color: var(--muted);
  font-weight: 500;
  font-size: clamp(16px, 2.1vw, 20px);
}

/* About me smaller than name, snug above bio */
.section-title {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 10px 0 10px;
  font-size: clamp(22px, 2.6vw, 28px);
}

/* make sure earlier centering rules don’t fight this */
header .container,
.profile { text-align: left !important; align-items: flex-start !important; }
.content { text-align: left !important; }
.content > :first-child { margin-top: 0 !important; }


/* Make avatar line up with the left-aligned profile text */
.profile {
  align-items: flex-start !important;
  text-align: left !important;
}

.avatar {
  margin: 0 0 14px 0 !important;  /* remove the auto-centering */
  align-self: flex-start !important;
}

/* If you want the name ABOVE the avatar regardless of HTML order: */
/* .name { order: 1; } */
/* .avatar { order: 2; } */

