/* Academic Portfolio - Minimalist Scholarly Design */

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

:root {
  --bg-color: #fafaf8;
  --text-color: #1a1a1a;
  --text-muted: #666666;
  --border-color: #e0e0e0;
  --primary-color: #1a1a1a;
  --accent-color: #0066cc;
  --hover-bg: #f5f5f3;
}

body {
  font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Crimson Text', serif;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
}

h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

h2 {
  font-size: 2rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.3rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary-color);
}

/* Header Navigation */
header {
  border-bottom: 1px solid var(--border-color);
  background-color: var(--bg-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

nav {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav .logo {
  font-weight: 600;
  color: var(--primary-color);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

nav a:hover,
nav a.active {
  color: var(--primary-color);
}

/* Container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Hero Section */
.hero {
  border-bottom: 1px solid var(--border-color);
  padding: 4rem 0;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  align-items: start;
}

.hero-image {
  width: 250px;
  height: 250px;
  border-radius: 0;
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-text h1 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.hero-text .subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.social-links {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  color: var(--text-color);
  transition: all 0.2s ease;
}

.social-links a:hover {
  background-color: var(--primary-color);
  color: var(--bg-color);
  border-color: var(--primary-color);
}

.quick-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.fact {
  text-align: center;
}

.fact-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.fact-value {
  font-size: 1.1rem;
  color: var(--primary-color);
  font-weight: 600;
}

/* Section */
section {
  border-bottom: 1px solid var(--border-color);
  padding: 3rem 0;
}

section h2 {
  margin-top: 0;
}

/* About Section */
.about-text {
  max-width: 800px;
  line-height: 1.8;
}

/* Research Interests */
.interests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.interest-item {
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  text-align: center;
  transition: all 0.2s ease;
}

.interest-item:hover {
  background-color: var(--hover-bg);
  border-color: var(--primary-color);
}

.interest-item h3 {
  margin: 0;
  font-size: 1rem;
}

/* Education & Experience */
.timeline {
  margin-top: 1.5rem;
}

.timeline-item {
  padding: 1.5rem 0;
  padding-left: 2rem;
  border-left: 2px solid var(--border-color);
  position: relative;
  margin-bottom: 1.5rem;
}

.timeline-item::before {
  content: '';
  width: 10px;
  height: 10px;
  background-color: var(--primary-color);
  border-radius: 50%;
  position: absolute;
  left: -6px;
  top: 1.5rem;
}

.timeline-item h3 {
  margin-top: 0;
  margin-bottom: 0.25rem;
}

.timeline-item .meta {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

/* Publications */
.publications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 1.5rem;
}

.publication-card {
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  transition: all 0.2s ease;
}

.publication-card:hover {
  background-color: var(--hover-bg);
  border-color: var(--primary-color);
}

.publication-card h3 {
  margin-top: 0;
  font-size: 1.1rem;
}

.publication-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.publication-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.tag {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  font-size: 0.75rem;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.2s ease;
}

.tag:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

/* Blog Page */
.blog-container {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 3rem;
  margin-top: 2rem;
}

.blog-sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.sidebar-section {
  margin-bottom: 2rem;
}

.sidebar-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-weight: 600;
}

.filter-button {
  display: block;
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  border: 1px solid var(--border-color);
  background-color: transparent;
  color: var(--text-muted);
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.9rem;
}

.filter-button:hover,
.filter-button.active {
  background-color: var(--primary-color);
  color: var(--bg-color);
  border-color: var(--primary-color);
}

.divider {
  height: 1px;
  background-color: var(--border-color);
  margin: 1.5rem 0;
}

.topic-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.topic-count {
  background-color: var(--hover-bg);
  padding: 0.2rem 0.6rem;
  border-radius: 0;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Blog Posts */
.blog-posts {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.blog-post {
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
}

.blog-post:last-child {
  border-bottom: none;
}

.blog-date {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.blog-post h2 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.blog-post h2 a {
  color: var(--primary-color);
}

.blog-post h2 a:hover {
  color: var(--accent-color);
}

.blog-excerpt {
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.blog-tag {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  font-size: 0.75rem;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.blog-tag:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.read-more {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-color);
}

/* Blog Post Detail */
.post-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 2rem;
  margin-bottom: 2rem;
}

.post-title {
  margin: 1rem 0;
}

.post-meta {
  display: flex;
  gap: 2rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.post-content {
  max-width: 800px;
  line-height: 1.8;
}

.post-content h2 {
  margin-top: 2rem;
}

.post-content ul,
.post-content ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.post-content li {
  margin-bottom: 0.5rem;
}

/* Projects Page */
.projects-container {
  margin-top: 2rem;
}

.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.project-card {
  padding: 2rem;
  border: 1px solid var(--border-color);
  margin-bottom: 2rem;
  transition: all 0.2s ease;
}

.project-card:hover {
  background-color: var(--hover-bg);
  border-color: var(--primary-color);
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 1rem;
}

.project-header h2 {
  margin: 0;
}

.project-status {
  font-size: 0.9rem;
  font-weight: 600;
  color: #2d7a2d;
}

.project-status.completed {
  color: #0066cc;
}

.project-description {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.project-long-description {
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.project-section {
  margin-bottom: 1.5rem;
}

.project-section-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-badge {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
  border: 1px solid var(--border-color);
  background-color: transparent;
  color: var(--text-color);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.project-tag {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  font-size: 0.75rem;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.project-tag:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.impact-box {
  padding: 1rem;
  background-color: var(--hover-bg);
  border: 1px solid var(--border-color);
  margin-bottom: 1.5rem;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent-color);
  font-weight: 600;
  font-size: 0.9rem;
}

.project-link:hover {
  color: var(--primary-color);
}

/* CTA Section */
.cta-section {
  padding: 3rem 0;
  border-bottom: 1px solid var(--border-color);
}

.cta-section h2 {
  margin-top: 0;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--primary-color);
  background-color: transparent;
  color: var(--primary-color);
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
  font-size: 0.95rem;
}

.cta-button:hover {
  background-color: var(--primary-color);
  color: var(--bg-color);
}

/* Footer */
footer {
  border-top: 1px solid var(--border-color);
  padding: 2rem 0;
  background-color: var(--bg-color);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-text {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--primary-color);
}

/* Responsive */
@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
  }

  .hero-image {
    width: 200px;
    height: 200px;
  }

  .quick-facts {
    grid-template-columns: 1fr;
  }

  .blog-container {
    grid-template-columns: 1fr;
  }

  .blog-sidebar {
    position: static;
  }

  nav ul {
    gap: 1rem;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .interests-grid {
    grid-template-columns: 1fr;
  }

  .publications-grid {
    grid-template-columns: 1fr;
  }
}
