
:root{
  --bg:#171a20; --card:#f9faf7; --text:#171a20; --muted:#171a20; --link:#8dafff;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Helvetica,Arial;line-height:1.6;background:linear-gradient(180deg,#e0e2e4 0%,#e0e2e4 60%,#e0e2e4 100%);color:var(--text)}
a{color:var(--link);text-decoration:none}a:hover{text-decoration:underline}
header{position:sticky;top:0;z-index:50;background:rgba(11,12,15,.6);backdrop-filter:saturate(140%) blur(8px);border-bottom:1px solid #171a20}
.nav{max-width:1100px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;padding:14px 20px}
.brand{font-weight:700}
.nav a{margin-left:18px;font-size:15.5px;color:var(--muted)}
.nav a.active,.nav a:hover{color:var(--text)}
main{max-width:1100px;margin:28px auto;padding:0 20px}
h1{font-size:34px;margin:8px 0 6px}h2{font-size:22px;margin:12px 0 14px}
.grid-2{display:grid;grid-template-columns:1.1fr .9fr;gap:16px}
.list{display:grid;gap:12px}
footer{max-width:1100px;margin:30px auto 80px;padding:0 20px;color:var(--muted)}
hr{border-color:#171a20}
@media(max-width:900px){.grid-2{grid-template-columns:1fr}}


.card{background:var(--card);border:15px solid #e0e2e4;border-radius:16px;padding:20px;box-shadow:0 0px 0px rgba(255, 255, 255, 0.25)}



.card-content {
  display: flex;
  align-items: flex-start;
}

.profile-photo img {
  width: 180px;       /* adjust size */
  height: auto;
  border-radius: 12px;
  margin-right: 25px;
  margin-top: 36px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.profile-info {
  flex: 1;
}

.social-links {
  margin-top: 15px;
}

.social-links a {
  margin-right: 15px;
  display: inline-block;
}

.social-links img {
  width: 32px;
  height: 32px;
  transition: transform 0.2s ease;
}

.social-links img:hover {
  transform: scale(1.2);
}


.news-card {
  max-height: 500px;    /* control visible height */
  overflow-y: auto;     /* vertical scroll */
  padding-right: 10px;  /* prevent scrollbar from overlapping text */
}

/* Optional: make scrollbar look nicer */
.news-card::-webkit-scrollbar {
  width: 6px;
}

.news-card::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}
.news-card::-webkit-scrollbar-thumb:hover {
  background: #555;
}


.news-card li {
  display: flex;
  gap: 20px;
  margin-bottom: 12px;
}

.news-card .date {
  flex: 0 0 120px; /* fixed width for dates */
  font-weight: bold;
  color: #8dafff;
}

.news-card .news {
  flex: 1; /* news takes remaining space */
}

.pub-links {
  margin-top: 6px;
}

.pub-links .btn {
  display: inline-block;
  padding: 4px 10px;
  margin-right: 6px;
  font-size: 0.9em;
  text-decoration: none;
  border: 1px solid #0073e6;
  border-radius: 4px;
  color: #0073e6;
  transition: all 0.2s ease;
}

.pub-links .btn:hover {
  background: #0073e6;
  color: #fff;
}










/* --- Timeline blocks --- */
.section-block {background:var(--card);border:15px solid #e0e2e4;border-radius:16px;padding:20px;box-shadow:0 0px 0px rgba(255, 255, 255, 0.25)}
.timeline {
  list-style: none;
  margin: 0; padding: 0;
  display: grid; gap: 16px;
}
.timeline-item {
  display: grid;
  grid-template-columns: 200px 1fr;  /* left: date, right: content */
  gap: 18px;
  align-items: start;
}

.tl-date {
  font-weight: 600;
  color: #171a20;            /* subtle blue highlight for dates */
  letter-spacing: .2px;
  white-space: nowrap;
  text-align: right;          /* push date to right edge */
  font-size: 17px;
}
.tl-title {
  margin: 0 0 0px;
  font-weight: 650;
  color: #171a20;
  font-size: 17px
}
.tl-sub {
  margin: 0 0 0px;
  color: #171a20;            /* softer than main text */
  font-size: 15px
}
.tl-meta {
  margin: 0;
  color: #171a20;            /* muted line for advisor/GPA/notes */
  font-size: 0.95rem;
}

/* section headings */
.card h2 { 
  border-left: 3px solid #8ab4ff; 
  padding-left: 12px; 
}

/* optional subtle divider inside cards */
.divider { 
  height: 1px; 
  background: #171a20; 
  margin: 10px 0; 
}


/* grid: exactly 3 columns on desktop, responsive on smaller screens */
.repos-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

/* responsive wrap */
@media (max-width: 980px) {
  .repos-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .repos-grid { grid-template-columns: 1fr; }
}

/* cards match your dark theme */
.repo-card {
  border: 1px solid #1a1f27;
  background: #535860;
  border-radius: 5px;
  padding: 14px;
}

.repo-title { margin: 0 0 6px; font-weight: 650; }
.repo-title a { color: #8dd4ff; text-decoration: none; }
.repo-title a:hover { text-decoration: underline; }

.repo-desc { margin: 0 0 10px; color: #cbd5e1; }

.repo-meta {
  display: flex; flex-wrap: wrap; gap: 10px;
  font-size: 0.95rem; color: #9aa3af;
}

.lang-dot {
  display: inline-block; width: 10px; height: 10px;
  border-radius: 50%; margin-right: 6px; vertical-align: -1px;
}

.repo-empty { color: #9aa3af; }