/* CSS Variables - Light Theme */
:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --text-primary: #1e293b;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --accent-primary: #dc2626;
  --accent-secondary: #b91c1c;
  --accent-gradient: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  --border-color: #e2e8f0;
  --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --card-shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --nav-bg: rgba(255, 255, 255, 0.9);
  --overlay: rgba(255, 255, 255, 0.8);
}

/* Dark Theme */
[data-theme="dark"] {
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-tertiary: #334155;
  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;
  --accent-primary: #FEC288;
  --accent-secondary: #FDB45C;
  --accent-gradient: linear-gradient(135deg, #FEC288 0%, #FDB45C 100%);
  --border-color: #334155;
  --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
  --card-shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
  --nav-bg: rgba(15, 23, 42, 0.9);
  --overlay: rgba(15, 23, 42, 0.8);
}

/* Reset & Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
}

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

a:hover {
  color: var(--accent-secondary);
}

/* App Layout */
.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main-content {
  flex: 1;
  padding-top: 80px;
}

.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  display: none;
}

.page.active {
  display: block;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.nav-logo:hover {
  transform: scale(1.05);
}

.nav-links.desktop {
  display: flex;
  gap: 0.5rem;
}

.nav-link {
  position: relative;
  padding: 0.5rem 1rem;
  color: var(--text-secondary);
  font-weight: 500;
  border-radius: 8px;
  transition: color 0.3s ease, background-color 0.3s ease;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-link:hover {
  color: var(--text-primary);
  background-color: var(--bg-secondary);
}

.nav-link.active {
  color: var(--accent-primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-gradient);
  border-radius: 3px 3px 0 0;
}

.nav-link svg {
  width: 18px;
  height: 18px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: var(--bg-secondary);
  color: var(--text-primary);
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.theme-toggle:hover {
  background: var(--bg-tertiary);
  transform: scale(1.1);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
}

.mobile-menu-btn svg {
  width: 24px;
  height: 24px;
}

.nav-links.mobile {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 70px;
  left: 0;
  right: 0;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem;
  gap: 0.5rem;
}

.nav-links.mobile.open {
  display: flex;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.nav-links.mobile .nav-link {
  padding: 1rem;
}

@media (max-width: 768px) {
  .nav-links.desktop {
    display: none;
  }
  
  .mobile-menu-btn {
    display: block;
  }
}

/* Footer */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 3rem 0;
  position: relative;
}

.footer-shield {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  width: 40px;
  height: auto;
  opacity: 0.3;
  transition: opacity 0.3s ease;
}

.footer-shield:hover {
  opacity: 0.6;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.footer-section p {
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.social-link:hover {
  background: var(--accent-primary);
  color: white;
  transform: scale(1.2) rotate(5deg);
}

.social-link svg {
  width: 20px;
  height: 20px;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: float 10s ease-in-out infinite;
}

.orb-1 {
  width: 400px;
  height: 400px;
  background: var(--accent-primary);
  top: -100px;
  right: -100px;
}

.orb-2 {
  width: 300px;
  height: 300px;
  background: var(--accent-secondary);
  bottom: -50px;
  left: -50px;
  animation-delay: -3s;
}

.orb-3 {
  width: 250px;
  height: 250px;
  background: var(--accent-primary);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -5s;
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.1); }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem;
}

.profile-image {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 4px solid var(--accent-primary);
  box-shadow: 0 0 30px rgba(220, 38, 38, 0.4);
  object-fit: cover;
  animation: profilePop 0.8s ease-out;
}

@keyframes profilePop {
  from { transform: scale(0) rotate(-180deg); opacity: 0; }
  to { transform: scale(1) rotate(0); opacity: 1; }
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  margin-top: 1.5rem;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  display: block;
  font-size: 1.5rem;
  font-weight: 400;
  -webkit-text-fill-color: var(--text-secondary);
  margin-top: 0.5rem;
}

.hero-role {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.hero-role svg {
  width: 18px;
  height: 18px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.hero-tag {
  padding: 0.5rem 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.social-icon:hover {
  transform: scale(1.2) translateY(-5px);
  color: white;
  border-color: transparent;
}

.social-icon[data-color="linkedin"]:hover { background: #0077b5; }
.social-icon[data-color="researchgate"]:hover { background: #00d0af; }
.social-icon[data-color="scholar"]:hover { background: #4285f4; }
.social-icon[data-color="github"]:hover { background: #333; }
.social-icon[data-color="email"]:hover { background: #ea4335; }

.social-icon svg {
  width: 24px;
  height: 24px;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent-gradient);
  color: white;
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.5);
  color: white;
}

.btn-secondary {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

/* Section Styles */
.section-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.section-title svg {
  color: var(--accent-primary);
  width: 24px;
  height: 24px;
}

/* Welcome Section */
.welcome-section {
  padding: 4rem 0;
  text-align: center;
}

.welcome-text {
  max-width: 800px;
  margin: 0 auto 1rem;
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* Interests Grid */
.interests-section {
  padding: 4rem 0;
}

.interests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.interest-card {
  text-align: center;
  padding: 2rem;
}

.interest-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--accent-gradient);
  color: white;
  margin-bottom: 1rem;
}

.interest-icon svg {
  width: 32px;
  height: 32px;
}

.interest-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.interest-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Quick Links */
.quick-links-section {
  padding: 4rem 0;
}

.quick-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.quick-link-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem;
  background: var(--bg-secondary);
  border-radius: 16px;
  border: 1px solid var(--border-color);
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.quick-link-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--card-shadow-hover);
  border-color: var(--accent-primary);
}

.quick-link-card svg {
  color: var(--accent-primary);
  margin-bottom: 1rem;
  width: 40px;
  height: 40px;
}

.quick-link-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.quick-link-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Animated Card */
.animated-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  opacity: 1;
  transform: translateY(0);
}

.animated-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Page Hero */
.page-hero {
  text-align: center;
  padding: 3rem 0;
  margin-bottom: 2rem;
}

.page-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.title-icon {
  color: var(--accent-primary);
}

.title-icon svg {
  width: 36px;
  height: 36px;
}

.page-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.scholar-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--accent-gradient);
  color: white;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.scholar-link:hover {
  color: white;
  opacity: 0.9;
  transform: scale(1.05);
}

.scholar-link svg {
  width: 20px;
  height: 20px;
}

/* Stats */
.pub-stats {
  margin-bottom: 3rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
}

.stat-item {
  text-align: center;
  padding: 1.5rem;
  background: var(--bg-secondary);
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent-primary);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Publications */
.pub-section {
  margin-bottom: 3rem;
}

.publications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.5rem;
}

.publication-card {
  position: relative;
}

.pub-type-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--accent-gradient);
  color: white;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.pub-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.pub-authors {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.pub-details {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.pub-details span {
  padding: 0.25rem 0.5rem;
  background: var(--bg-tertiary);
  border-radius: 4px;
}

.pub-status {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.25rem 0.75rem;
  background: #fef3c7;
  color: #92400e;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
}

[data-theme="dark"] .pub-status {
  background: #78350f;
  color: #fef3c7;
}

/* Projects */
.projects-section {
  padding: 2rem 0;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.project-card {
  overflow: hidden;
  padding: 0;
}

.project-image {
  height: 180px;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.05);
}

.project-content {
  padding: 1.5rem;
}

.project-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.project-description {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.project-language {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.language-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.project-stat {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.project-stat svg {
  width: 14px;
  height: 14px;
}

.project-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.topic-tag {
  padding: 0.25rem 0.5rem;
  background: var(--bg-tertiary);
  border-radius: 4px;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.project-links {
  display: flex;
  gap: 0.75rem;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--accent-primary);
  color: white;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.project-link:hover {
  color: white;
  opacity: 0.9;
  transform: scale(1.05);
}

.project-link svg {
  width: 16px;
  height: 16px;
}

.project-link.secondary {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.loading-state,
.error-state {
  text-align: center;
  padding: 4rem;
}

.spinner {
  animation: spin 1s linear infinite;
  color: var(--accent-primary);
  margin-bottom: 1rem;
  width: 48px;
  height: 48px;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Blog */
.filter-section {
  margin-bottom: 2rem;
}

.category-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.filter-btn svg {
  width: 14px;
  height: 14px;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: white;
  transform: scale(1.05);
}

.blog-section {
  padding: 2rem 0;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.5rem;
}

.blog-card {
  overflow: hidden;
  padding: 0;
  cursor: pointer;
}

.blog-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.blog-card:hover .blog-image img {
  transform: scale(1.05);
}

.blog-category {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.25rem 0.75rem;
  background: var(--accent-gradient);
  color: white;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.blog-content {
  padding: 1.5rem;
}

.blog-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.blog-date {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.blog-date svg {
  width: 14px;
  height: 14px;
}

.blog-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.blog-excerpt {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.blog-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.blog-stats {
  display: flex;
  gap: 1rem;
}

.stat-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.stat-btn svg {
  width: 18px;
  height: 18px;
}

.stat-btn:hover {
  color: var(--accent-primary);
}

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

/* Blog Post */
.blog-post {
  max-width: 800px;
  margin: 0 auto;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  color: var(--text-secondary);
  cursor: pointer;
}

.back-link svg {
  width: 20px;
  height: 20px;
}

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

.post-hero {
  position: relative;
  height: 400px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 2rem;
}

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

.post-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}

.post-hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  color: white;
}

.post-hero-content h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-top: 0.75rem;
}

.post-meta {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  font-size: 0.9rem;
  opacity: 0.9;
}

.post-meta span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.post-meta svg {
  width: 16px;
  height: 16px;
}

.post-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.post-content p {
  margin-bottom: 1.5rem;
}

.post-content h1,
.post-content h2,
.post-content h3 {
  color: var(--text-primary);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

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

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

.post-content code {
  background: var(--bg-tertiary);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-family: 'Monaco', 'Consolas', monospace;
  font-size: 0.9em;
}

.post-content pre {
  background: var(--bg-tertiary);
  padding: 1rem;
  border-radius: 8px;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

.post-content pre code {
  background: none;
  padding: 0;
}

.post-content blockquote {
  border-left: 4px solid var(--accent-primary);
  padding-left: 1rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--text-muted);
}

.post-interactions {
  padding: 1.5rem;
  background: var(--bg-secondary);
  border-radius: 12px;
  margin-bottom: 2rem;
}

.interaction-buttons {
  display: flex;
  gap: 1rem;
}

.like-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--accent-gradient);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.like-btn:hover {
  transform: scale(1.05);
}

.like-btn svg {
  width: 20px;
  height: 20px;
}

.comments-section {
  background: var(--bg-secondary);
  border-radius: 12px;
  padding: 1.5rem;
}

.comments-section h3 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.comments-section h3 svg {
  width: 24px;
  height: 24px;
}

.comment-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.comment-form input,
.comment-form textarea {
  padding: 0.75rem 1rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 1rem;
  font-family: inherit;
}

.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.comment {
  padding: 1rem;
  background: var(--bg-primary);
  border-radius: 8px;
  animation: fadeIn 0.3s ease-out;
}

.comment-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.comment-author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}

.comment-author svg {
  width: 14px;
  height: 14px;
}

.comment-date {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.comment-text {
  color: var(--text-secondary);
}

/* Education Timeline */
.timeline-section {
  padding: 2rem 0;
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent-gradient);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
}

.timeline-marker {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  z-index: 1;
}

.timeline-marker svg {
  width: 20px;
  height: 20px;
}

.timeline-item.left .education-card,
.timeline-item.right .education-card {
  width: calc(50% - 40px);
}

.timeline-item.left .education-card {
  margin-right: auto;
}

.timeline-item.right .education-card {
  margin-left: auto;
}

.education-card {
  position: relative;
}

.current-badge,
.honors-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.current-badge {
  background: #dcfce7;
  color: #166534;
}

.honors-badge {
  background: #fef3c7;
  color: #92400e;
  margin-left: 0.5rem;
}

.honors-badge svg {
  width: 14px;
  height: 14px;
}

[data-theme="dark"] .current-badge {
  background: #14532d;
  color: #dcfce7;
}

[data-theme="dark"] .honors-badge {
  background: #78350f;
  color: #fef3c7;
}

.edu-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.edu-logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 8px;
  background: white;
  padding: 8px;
}

.edu-degree {
  font-size: 1.2rem;
  font-weight: 600;
}

.edu-field {
  color: var(--accent-primary);
  font-weight: 500;
}

.edu-institution {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

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

.edu-meta span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.edu-meta svg {
  width: 14px;
  height: 14px;
}

.edu-description {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .timeline::before {
    left: 20px;
  }
  
  .timeline-marker {
    left: 20px;
  }
  
  .timeline-item.left .education-card,
  .timeline-item.right .education-card {
    width: calc(100% - 60px);
    margin-left: 60px;
  }
}

/* Experience */
.current-section {
  margin-bottom: 3rem;
}

.current-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.current-card {
  text-align: center;
}

.current-card h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.current-card .org {
  color: var(--accent-primary);
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.current-card .dept {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.exp-section {
  margin-bottom: 3rem;
}

.experience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 1.5rem;
}

@media (max-width: 500px) {
  .experience-grid {
    grid-template-columns: 1fr;
  }
}

.experience-card {
  position: relative;
}

.exp-type-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.exp-type-badge[data-type="research"] {
  background: #dbeafe;
  color: #1e40af;
}

.exp-type-badge[data-type="industry"] {
  background: #dcfce7;
  color: #166534;
}

.exp-type-badge[data-type="academic"] {
  background: #fae8ff;
  color: #86198f;
}

[data-theme="dark"] .exp-type-badge[data-type="research"] {
  background: #1e3a8a;
  color: #dbeafe;
}

[data-theme="dark"] .exp-type-badge[data-type="industry"] {
  background: #14532d;
  color: #dcfce7;
}

[data-theme="dark"] .exp-type-badge[data-type="academic"] {
  background: #701a75;
  color: #fae8ff;
}

.exp-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.exp-company {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent-primary);
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.exp-company svg {
  width: 16px;
  height: 16px;
}

.exp-dept {
  color: var(--text-muted);
  font-weight: 400;
}

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

.exp-meta span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.exp-meta svg {
  width: 14px;
  height: 14px;
}

.exp-highlights {
  list-style: none;
  padding: 0;
}

.exp-highlights li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.exp-highlights li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--accent-primary);
}

/* Not Found */
.not-found {
  text-align: center;
  padding: 4rem;
}

.not-found h1 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
  .page {
    padding: 1rem;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .page-title {
    font-size: 1.75rem;
  }
  
  .publications-grid,
  .blog-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-cta {
    flex-direction: column;
  }
}

/* Starfall Animation - Only visible in dark mode */
.starfall-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  display: none;
}

[data-theme="dark"] .starfall-container {
  display: block;
}

.star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: #FEC288;
  border-radius: 50%;
  box-shadow: 0 0 6px 2px rgba(254, 194, 136, 0.5);
  animation: starfall linear infinite;
}

.star::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 80px;
  background: linear-gradient(to bottom, rgba(254, 194, 136, 0.8), transparent);
}

@keyframes starfall {
  0% {
    transform: translateY(-100px) translateX(0);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) translateX(100px);
    opacity: 0;
  }
}

/* Generate different stars with various positions and durations */
.star:nth-child(1) { left: 10%; animation-duration: 3s; animation-delay: 0s; }
.star:nth-child(2) { left: 20%; animation-duration: 4s; animation-delay: 0.5s; }
.star:nth-child(3) { left: 30%; animation-duration: 3.5s; animation-delay: 1s; }
.star:nth-child(4) { left: 40%; animation-duration: 4.5s; animation-delay: 1.5s; }
.star:nth-child(5) { left: 50%; animation-duration: 3s; animation-delay: 2s; }
.star:nth-child(6) { left: 60%; animation-duration: 4s; animation-delay: 0.3s; }
.star:nth-child(7) { left: 70%; animation-duration: 3.8s; animation-delay: 0.8s; }
.star:nth-child(8) { left: 80%; animation-duration: 4.2s; animation-delay: 1.3s; }
.star:nth-child(9) { left: 90%; animation-duration: 3.3s; animation-delay: 1.8s; }
.star:nth-child(10) { left: 15%; animation-duration: 3.7s; animation-delay: 2.3s; }
.star:nth-child(11) { left: 25%; animation-duration: 4.1s; animation-delay: 0.6s; }
.star:nth-child(12) { left: 35%; animation-duration: 3.4s; animation-delay: 1.1s; }
.star:nth-child(13) { left: 45%; animation-duration: 3.9s; animation-delay: 1.6s; }
.star:nth-child(14) { left: 55%; animation-duration: 4.3s; animation-delay: 2.1s; }
.star:nth-child(15) { left: 65%; animation-duration: 3.6s; animation-delay: 0.4s; }
.star:nth-child(16) { left: 75%; animation-duration: 4.4s; animation-delay: 0.9s; }
.star:nth-child(17) { left: 85%; animation-duration: 3.2s; animation-delay: 1.4s; }
.star:nth-child(18) { left: 95%; animation-duration: 4.6s; animation-delay: 1.9s; }
.star:nth-child(19) { left: 5%; animation-duration: 3.5s; animation-delay: 2.4s; }
.star:nth-child(20) { left: 48%; animation-duration: 4.0s; animation-delay: 0.7s; }

/* Floating animation for profile */
.floating {
  animation: floatProfile 4s ease-in-out infinite;
}

@keyframes floatProfile {
  0%, 100% { transform: translateY(-5px); }
  50% { transform: translateY(5px); }
}

/* Hide elements for blog post view */
.blog-post-view .blog-list-view {
  display: none;
}

.blog-list-view {
  display: block;
}

.blog-post-view .blog-post {
  display: block;
}

.blog-post {
  display: none;
}

/* Markdown content styling */
.post-content img {
  max-width: 100%;
  border-radius: 8px;
  margin: 1rem 0;
}

.post-content a {
  color: var(--accent-primary);
  text-decoration: underline;
}

/* Math display blocks */
.post-content .math-display {
  overflow-x: auto;
  margin: 1.5rem 0;
  padding: 1rem;
  background: var(--bg-secondary);
  border-radius: 8px;
}

.post-content .math-inline {
  display: inline;
}

/* Horizontal rule styling */
.post-content hr {
  border: none;
  height: 1px;
  background: var(--border-color);
  margin: 2rem 0;
}

.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

.post-content th,
.post-content td {
  border: 1px solid var(--border-color);
  padding: 0.5rem 1rem;
  text-align: left;
}

.post-content th {
  background: var(--bg-tertiary);
}

/* Hidden by default */
.hidden {
  display: none !important;
}
