/* ==========================================
   FONT SELECTION - EASY SWITCHING
   ========================================== 
   
   All fonts are already loaded! Just change the font name below.
   
   SERIF FONTS (Traditional but Modern):
   - 'Lora'              → Warm, friendly, great readability
   - 'Merriweather'      → Classic, popular for long reading
   - 'Source Serif 4'    → Clean, professional, Adobe
   - 'Crimson Pro'       → Elegant, scholarly
   
   SANS-SERIF FONTS (Clean and Modern):
   - 'Outfit'            → Geometric, modern
   - 'Inter'             → Super clean, tech companies love it
   - 'Work Sans'         → Geometric, friendly
   - 'IBM Plex Sans'     → Corporate but friendly
   - 'Nunito Sans'       → Rounded, approachable (CURRENTLY ACTIVE)
   - 'DM Sans'           → Low contrast, easy on eyes
   
   To try a different font:
   Just replace 'Outfit' below with any font name above!
   Example: 'Lora' or 'Inter' or 'Work Sans'
   
   ========================================== */

/* ==========================================
   CSS Reset & Base Styles
   ========================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #2c5aa0;
  --accent-color: #0a7c42;
  --text-color: #1a1a1a;
  --text-light: #555;
  --border-color: #ddd;
  --background: #f5f7fa;
  --section-bg: #ffffff;
  --hover-bg: #eef1f5;
}

body {
  font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.55;
  color: var(--text-color);
  font-size: 14px;
  background: var(--background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================
   Typography
   ========================================== */
h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  color: var(--text-color);
  letter-spacing: -0.01em;
}

h2 {
  font-size: 1.7rem;
  font-weight: 600;
  margin-bottom: 1rem;
  margin-top: 2rem;
  color: var(--text-color);
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--border-color);
}

h3 {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 0.7rem;
  margin-top: 1.5rem;
  color: var(--text-color);
}

p {
  margin-bottom: 0.8rem;
  font-size: 1.2rem;
}

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

a:hover {
  color: #1a3f6f;
}

.award-link {
  color: var(--accent-color);
  font-weight: 500;
}

.award-link:hover {
  color: #085a30;
}

/* ==========================================
   Layout
   ========================================== */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (max-width: 768px) {
  .container {
    padding: 0 1.2rem;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.3rem;
  }
}

/* ==========================================
   Navigation
   ========================================== */
.navbar {
  background: rgb(3, 53, 109);
  border-bottom: none;
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.8rem;
  padding: 0.9rem 0;
  flex-wrap: wrap;
}

.nav-links a {
  color: #ffffff;
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
  padding: 0.3rem 0;
  transition: all 0.2s ease;
}

.nav-links a:hover {
  color: rgba(255, 255, 255, 0.7);
}

.nav-logo {
  margin-left: auto;
  display: flex;
  align-items: center;
}

.nav-logo img {
  height: 40px;
  width: auto;
  transition: opacity 0.2s ease;
}

.nav-logo img:hover {
  opacity: 0.8;
}

/* ==========================================
   Sections
   ========================================== */
.section-about {
  padding: 2rem 0 0.8rem;
}

.section {
  padding: 0.5rem 0 0.5rem;
}

.about-content {
  margin-bottom: 1rem;
}

.about-content p {
  text-align: justify;
}

.contact-info {
  padding: 0.9rem 1.2rem;
  background: var(--hover-bg);
  border-radius: 4px;
  margin-top: 0.4rem;
  border-left: 3px solid var(--primary-color);
}

.contact-info p {
  margin: 0;
  font-size: 1.2rem;
}

/* ==========================================
   Lists
   ========================================== */
.simple-list {
  list-style: none;
  padding: 0;
}

.simple-list li {
  margin-bottom: 0.7rem;
  padding-left: 1.2rem;
  position: relative;
  font-size: 1.2rem;
}

.simple-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

/* Remove bullets from student lists */
.student-list li {
  padding-left: 0.6rem;
}

.student-list li::before {
  content: none;
}

/* Make all student names same color whether linked or not */
.student-list a {
  color: var(--primary-color);
  text-decoration: none;
}

.student-list a:hover {
  color: #1a3f6f;
}

/* Color unlinked student names (strong not inside a) to match linked ones */
.student-list li > strong {
  color: var(--primary-color);
}

/* ==========================================
   Publications - COMPACT BUT READABLE
   ========================================== */
.publication-item {
  margin-bottom: 1.3rem;
  padding-bottom: 0;
  padding-left: 0.8rem;
  line-height: 1.5;
  border-left: 2px solid #e0e0e0;
  transition: border-color 0.2s ease;
}

.publication-item:hover {
  border-left-color: var(--primary-color);
}

.publication-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.1rem;
  line-height: 1.45;
}

.publication-title a {
  color: var(--text-color);
}

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

.publication-authors {
  color: var(--text-light);
  font-size: 1.1rem;
  margin-bottom: 0.15rem;
  line-height: 1.5;
}

.publication-venue {
  color: #555;
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.publication-venue strong {
  color: #555;
  font-weight: 700;
}

.venue-separator {
  width: 0.38em;
  height: 0.38em;
  background: currentColor;
  display: inline-block;
  transform: rotate(45deg);
  margin: 0em 0.2em;
  vertical-align: 0.15em;
}

.publication-awards {
  margin-top: 0.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.venue-award {
  color: var(--accent-color);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.15rem 0.5rem;
  background: rgba(10, 124, 66, 0.1);
  border-radius: 3px;
  display: inline-block;
}

.venue-award a {
  color: var(--accent-color);
  text-decoration: none;
}

.venue-award a:hover {
  text-decoration: underline;
}

/* Publications Header with Diamond Toggle */
.publications-header {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--border-color);
}

.publications-header h2 {
  margin-bottom: 0;
  margin-top: 0;
  padding-bottom: 0;
  border-bottom: none;
}

/* Rotating Diamond Toggle */
.diamond-toggle {
  width: 32px;
  height: 32px;
  margin-right: 0.35rem;
  margin-bottom: 0.18rem;
  cursor: pointer;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

/* Glow animation - plays until first click */
@keyframes glow {
  0%, 100% {
    filter: drop-shadow(0 0 1px rgba(44, 90, 160, 0.3));
  }
  50% {
    filter: drop-shadow(0 0 4px rgba(44, 90, 160, 0.8));
  }
}

/*@keyframes iconGlow {
  0%, 100% {
    filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.5));
  }
  50% {
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 1));
  }
}*/

.diamond-toggle.glowing {
  animation: glow 2s ease-in-out infinite;
}

.diamond-toggle.glowing .icon-plus {
  animation: iconGlow 2s ease-in-out infinite;
}

.diamond-toggle:hover {
  transform: scale(1.05);
}

.diamond-toggle svg {
  width: 100%;
  height: 100%;
}

.diamond-bg {
  fill: var(--primary-color);
  transition: all 0.2s ease;
  transform-origin: 20px 20px;
}

/* Default state: + icon (Selected Recent) - square rotated 45deg = diamond */
.diamond-toggle .diamond-bg {
  transform: rotate(45deg);
}

.diamond-toggle .icon-plus {
  opacity: 1;
  transition: opacity 0.2s ease;
}

.diamond-toggle .icon-x {
  opacity: 0;
  transition: opacity 0.2s ease;
}

/* All Publications state: X icon - square (no rotation) */
.diamond-toggle.show-all .diamond-bg {
  transform: rotate(0deg);
}

.diamond-toggle.show-all .icon-plus {
  opacity: 0;
}

.diamond-toggle.show-all .icon-x {
  opacity: 1;
}

/* Instant Toggle - Hide/Show publications with CSS */
#publications-container.show-selected-only .publication-item:not(.is-selected),
#publications-container.show-selected-only .thesis-entry:not(.is-selected),
#publications-container.show-selected-only .year-divider {
  display: none;
}

.publication-note {
  color: var(--text-light);
  font-size: 1rem;
  font-style: italic;
  margin-top: 0.2rem;
  margin-left: 1rem;
}

.year-divider {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-light);
  margin: 1.8rem 0 0.8rem;
  padding-bottom: 0.15rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: center;
  align-items: center;
}

.thesis-entry {
  color: var(--primary-color) !important;
  font-size: 1.2rem;
  margin: 1.2rem 0 1.5rem 0 !important;
  padding: 1rem !important;
  background: #eef1f5 !important;
  border-left: 3px solid var(--primary-color) !important;
  border-radius: 4px !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  transition: background 0.2s ease;
}

.thesis-entry:hover {
  background: #d6e4f5 !important;
}

.thesis-entry strong {
  font-weight: 600;
}

.under-prep-section {
  margin-bottom: 2rem;
}

.under-prep-section h3 {
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
  color: var(--text-color);
}

.under-prep-list {
  list-style: none;
  padding: 0;
}

.under-prep-list li {
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.under-prep-list .paper-title {
  font-weight: 500;
  color: var(--text-color);
  display: block;
  margin-bottom: 0.2rem;
}

.under-prep-list .paper-authors {
  color: var(--text-light);
  font-size: 0.88rem;
}

/* ==========================================
   Footer
   ========================================== */
footer {
  margin-top: 3rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border-color);
  text-align: center;
  color: var(--text-light);
  font-size: 0.9rem;
}

/* ==========================================
   Smooth Scrolling
   ========================================== */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 4rem;
}

/* ==========================================
   Loading State
   ========================================== */
.loading {
  text-align: center;
  padding: 2rem;
  color: var(--text-light);
}

/* ==========================================
   Footer
   ========================================== */
.minimal-footer {
  text-align: center;
  padding: 2rem 0 1.5rem;
  color: #999;
  font-size: 1.2rem;
  margin-bottom:0.5rem;
}
