@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700&family=DM+Mono:wght@300;400&family=DM+Sans:wght@300;400;500&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'DM Sans', Arial, sans-serif;
  background-color: #121212;
  color: #e0e0e0;
  line-height: 1.65;
  font-weight: 400;
  font-size: 16px;
}

/* === NAV === */
nav {
  position: sticky;
  top: 0;
  background-color: rgba(30, 30, 30, 0.95);
  backdrop-filter: blur(10px);
  padding: 15px 0;
  z-index: 1000;
  border-bottom: 2px solid rgba(214, 51, 132, 0.3);
}
nav ul { display: flex; justify-content: center; flex-wrap: wrap; gap: 30px; list-style: none; }
nav a { color: #e0e0e0; text-decoration: none; font-weight: 500; transition: color 0.3s ease; padding: 5px 10px; font-family: 'DM Sans', Arial, sans-serif; font-size: 0.95em; }
nav a:hover { color: #d63384; }

.container { width: 100%; padding: 20px; }
.content { max-width: 900px; margin: 0 auto; }

/* === HEADER === */
.header {
  display: flex;
  align-items: center;
  gap: 36px;
  margin-bottom: 32px;
  padding: 28px 20px;
}
.header-left { flex-shrink: 0; }
.profile-pic { width: 180px; height: 180px; border-radius: 50%; object-fit: cover; border: 4px solid #d63384; }
.header-right { flex: 1; }

.header-right h1 {
  font-family: 'Playfair Display', Georgia, serif;
  color: #d63384;
  margin-bottom: 8px;
  font-size: 2.4em;
  font-weight: 700;
  line-height: 1.15;
}

.header-right .tagline {
  color: #999;
  font-size: 0.95em;
  margin-bottom: 16px;
  font-family: 'DM Mono', monospace;
  letter-spacing: 0.03em;
}

.social-links { display: flex; gap: 18px; margin-top: 14px; }
.social-links a { color: #d63384; font-size: 24px; text-decoration: none; transition: color 0.3s ease, transform 0.3s ease; }
.social-links a:hover { color: #b0266c; transform: scale(1.1); }

/* === HEADINGS === */
h2 {
  font-family: 'DM Sans', Arial, sans-serif;
  color: #d63384;
  margin-bottom: 16px;
  font-size: 1.45em;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-bottom: 2px solid rgba(214, 51, 132, 0.25);
  padding-bottom: 8px;
}

h3 {
  font-family: 'DM Sans', Arial, sans-serif;
  color: #d63384;
  margin-bottom: 6px;
  font-weight: 500;
  font-size: 1.05em;
}

.section { margin: 44px 0; scroll-margin-top: 80px; }
#about p { margin-bottom: 11px; font-size: 1em; color: #ccc; }

/* === PUBLICATIONS — stacked === */
.publications-grid { display: flex; flex-direction: column; gap: 0; }

.publication {
  padding: 16px 0 16px 16px;
  border-bottom: 1px solid rgba(214, 51, 132, 0.15);
  border-left: 3px solid rgba(214, 51, 132, 0.4);
}
.publication:first-child { border-top: 1px solid rgba(214, 51, 132, 0.15); }
.publication + .publication { margin-top: 12px; }

.publication h3 {
  font-size: 1em;
  font-weight: 500;
  color: #e0e0e0;
  line-height: 1.5;
  margin-bottom: 5px;
}

.publication .pub-authors {
  color: #888;
  font-size: 0.88em;
  font-style: italic;
  margin-bottom: 4px;
}

.publication .pub-venue {
  font-family: 'DM Mono', monospace;
  font-size: 0.78em;
  color: #d63384;
  letter-spacing: 0.03em;
}

/* === ARTICLES === */
.articles-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.article-card { background-color: #1e1e1e; border-radius: 8px; border: 1px solid rgba(214, 51, 132, 0.2); overflow: hidden; transition: transform 0.3s ease, box-shadow 0.3s ease; display: flex; flex-direction: column; }
.article-card:hover { transform: translateY(-4px); box-shadow: 0 8px 16px rgba(214, 51, 132, 0.25); }
.article-preview { width: 100%; height: 130px; object-fit: cover; background-color: #2a2a2a; }
.article-content { padding: 12px; flex-grow: 1; display: flex; flex-direction: column; }
.article-meta { display: flex; gap: 12px; margin-bottom: 5px; font-size: 0.82em; color: #888; }
.article-card h3 { margin-bottom: 5px; font-size: 0.95em; }
.article-card p { color: #999; margin-bottom: 8px; line-height: 1.45; font-size: 0.88em; flex-grow: 1; }
.article-card a { color: #d63384; text-decoration: none; font-weight: 500; font-size: 0.88em; }
.article-card a:hover { color: #b0266c; }

/* === RESUME === */
.resume-btn { display: inline-block; margin: 10px 10px 10px 0; padding: 10px 22px; background-color: #d63384; color: white; text-decoration: none; border-radius: 4px; font-weight: 500; font-size: 0.93em; transition: background-color 0.3s ease, transform 0.3s ease; }
.resume-btn:hover { background-color: #b0266c; transform: scale(1.03); }

/* === FOOTER === */
footer { text-align: center; padding: 22px 20px; margin-top: 36px; border-top: 2px solid rgba(214, 51, 132, 0.3); background-color: #1a1a1a; }
footer p { color: #666; font-size: 0.86em; font-family: 'DM Mono', monospace; }

/* === RESEARCH === */
.research-list { display: flex; flex-direction: column; }

.research-item {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(214, 51, 132, 0.15);
  align-items: flex-start;
}
.research-item:first-child { border-top: 1px solid rgba(214, 51, 132, 0.15); }

.research-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #d63384;
  flex-shrink: 0;
  margin-top: 10px;
}

.research-text strong {
  display: block;
  color: #e0e0e0;
  font-size: 1em;
  font-weight: 500;
  margin-bottom: 4px;
}
.research-text p { color: #888; font-size: 0.9em; margin: 0; line-height: 1.5; }

/* === BLOG === */
.blog-posts { display: flex; flex-direction: column; }

.blog-post {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(214, 51, 132, 0.15);
  align-items: baseline;
}
.blog-post:first-child { border-top: 1px solid rgba(214, 51, 132, 0.15); }

.blog-date {
  font-family: 'DM Mono', monospace;
  font-size: 0.78em;
  color: #d63384;
  letter-spacing: 0.02em;
}

.blog-content { font-size: 0.95em; color: #bbb; line-height: 1.65; }
.blog-content a { color: #d63384; text-decoration: underline; text-decoration-color: #d63384; text-underline-offset: 4px; text-decoration-thickness: 2px; transition: color 0.2s, text-decoration-color 0.2s; }
.blog-content a:hover { color: #ff6eb4; text-decoration-color: #ff6eb4; }
.blog-content em { font-style: italic; color: #ddd; }

/* === PROJECTS  === */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.project {
  background-color: #1e1e1e;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid rgba(214, 51, 132, 0.2);
  box-shadow: 0 4px 6px rgba(214, 51, 132, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 12px rgba(214, 51, 132, 0.2);
}

.project h3 {
  color: #d63384;
  font-size: 1.05em;
  font-weight: 600;
  margin-bottom: 10px;
}

.project p {
  color: #999;
  font-size: 0.92em;
  line-height: 1.55;
  margin-bottom: 12px;
}

.project a {
  color: #d63384;
  font-size: 0.88em;
  text-decoration: none;
  margin-right: 10px;
  transition: color 0.2s;
}
.project a:hover { text-decoration: underline; color: #ff6eb4; }

/* === RESPONSIVE === */
@media (max-width: 768px) {
  nav ul { gap: 15px; font-size: 0.9em; }
  .header { flex-direction: column; text-align: center; gap: 18px; }
  .header-right h1 { font-size: 2em; }
  .social-links { justify-content: center; }
  h2 { font-size: 1.3em; }
  .articles-grid { grid-template-columns: 1fr; }
  .blog-post { grid-template-columns: 1fr; gap: 3px; }
  .projects-grid { grid-template-columns: 1fr; }
}