/* ====================================================================
   ULTRA-MINIMAL ACADEMIC PORTFOLIO CSS
   Aesthetic: High readability, crisp black text, bold focus elements
   ==================================================================== */

:root {
  --bg-primary: #ffffff;
  --bg-subtle: #f8fafc;
  --text-primary: #000000;
  --text-secondary: #000000;
  --text-muted: #000000;

  --accent-color: #0f2942;
  /* Deep Academic Navy for headings/brand */
  --accent-link: #1e40af;
  /* Classic Academic Blue for links */
  --header-purple: #7e22ce;
  /* Rich Purple for all section headers */
  --border-color: #e5e7eb;

  --font-serif: 'Lora', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --max-width: 900px;
  /* Optimal academic reading width */
  --header-height: 64px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 1rem);
  font-size: 16px;
}

body {
  background-color: var(--bg-primary);
  color: #000000;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Typography */
h1,
h2,
h3,
h4 {
  font-family: var(--font-serif);
  color: #000000;
  font-weight: 700;
}

a {
  color: var(--accent-link);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(30, 64, 175, 0.4);
  transition: text-decoration-color 0.15s ease, color 0.15s ease;
}

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

p {
  margin-bottom: 1rem;
  color: #000000;
}

p:last-child {
  margin-bottom: 0;
}

strong {
  color: #000000;
  font-weight: 700;
}

/* NAVIGATION HEADER */
.site-header {
  position: sticky;
  top: 0;
  background-color: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--border-color);
  z-index: 100;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: #000000;
}

.brand-logo {
  text-decoration: none;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
}

.nav-link {
  font-size: 0.925rem;
  font-weight: 600;
  color: #000000;
  text-decoration: none;
  padding: 0.25rem 0;
}

.nav-link:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

.nav-link.active {
  color: #000000;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.nav-cv-link {
  font-weight: 700;
  color: #000000;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  flex-direction: column;
  gap: 4px;
}

.hamburger-bar {
  width: 20px;
  height: 2px;
  background-color: #000000;
}

/* SECTION BLOCKS */
.section-block {
  padding: 2.75rem 0;
  border-bottom: 1px solid var(--border-color);
}

.section-block:last-of-type {
  border-bottom: none;
}

.section-heading {
  font-size: 1.5rem;
  color: #7e22ce !important;
  font-weight: 700;
  margin-bottom: 1.5rem;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid #7e22ce !important;
  display: inline-block;
}

/* ABOUT SECTION */
.about-flex {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
}

.about-photo-wrapper {
  width: 170px;
  flex-shrink: 0;
}

.profile-photo {
  width: 170px;
  height: 200px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border-color);
}

.photo-placeholder {
  width: 170px;
  height: 200px;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #000000;
  font-size: 0.85rem;
  font-weight: 600;
}

.about-content {
  flex-grow: 1;
}

.page-name {
  font-size: 2.25rem;
  color: #000000;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.phd-target-note {
  background-color: var(--bg-subtle);
  border-left: 3px solid #000000;
  padding: 0.65rem 0.85rem;
  font-size: 0.925rem;
  color: #000000;
  margin-top: 1.25rem;
}

.bio-paragraphs {
  font-size: 0.975rem;
  line-height: 1.65;
  color: #000000;
  margin-bottom: 1.25rem;
}

/* MINIMAL SOCIAL / CONTACT ICONS BAR */
.social-links-bar {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding-top: 0.25rem;
}

.social-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #000000;
  text-decoration: none;
  transition: color 0.15s ease, transform 0.15s ease;
}

.social-icon-btn:hover {
  color: var(--accent-link);
  transform: translateY(-1px);
  text-decoration: none;
}

.social-icon-btn svg {
  display: block;
}

/* NEWS SECTION */
.news-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.news-entry {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1rem;
  align-items: baseline;
}

.news-date {
  font-size: 0.875rem;
  font-weight: 700;
  color: #000000;
}

.news-detail {
  font-size: 0.95rem;
  color: #000000;
}

/* RESEARCH & PUBLICATIONS */
.subpart-heading {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: #000000 !important;
  margin-bottom: 1.25rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--border-color);
}

.research-card,
.exp-card,
.pub-entry,
.exp-entry {
  background-color: #faf5ff !important;
  border: 1px solid #f3e8ff !important;
  border-left: 5px solid #7e22ce !important;
  border-radius: 12px !important;
  padding: 1.5rem !important;
  margin-bottom: 1.5rem !important;
  box-shadow: 0 4px 12px rgba(126, 34, 206, 0.05) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.research-card:hover,
.exp-card:hover,
.pub-entry:hover,
.exp-entry:hover {
  transform: translateY(-3px);
  border-color: #c084fc !important;
  border-left-color: #9333ea !important;
  box-shadow: 0 8px 20px rgba(126, 34, 206, 0.16) !important;
}

.research-card:last-child,
.exp-card:last-child,
.pub-entry:last-child,
.exp-entry:last-child {
  margin-bottom: 0;
}

.pub-title-line {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.pub-title-link {
  font-weight: 700;
  font-family: var(--font-serif);
  color: #000000;
}

.pub-title-link:hover {
  color: var(--accent-link);
}

.status-tag {
  font-size: 0.775rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  margin-left: 0.4rem;
  font-family: var(--font-sans);
  display: inline-block;
  line-height: 1.2;
}

.status-review {
  background-color: #fef3c7 !important;
  color: #78350f !important;
  border: 1px solid #fde047 !important;
}

.status-ongoing {
  background-color: #dcfce7 !important;
  color: #14532d !important;
  border: 1px solid #86efac !important;
}

.status-accepted {
  background-color: #dcfce7 !important;
  color: #14532d !important;
  border: 1px solid #86efac !important;
}

.status-thesis {
  background-color: #f3e8ff !important;
  color: #5b21b6 !important;
  border: 1px solid #c084fc !important;
}

.pub-supervisor-line {
  font-size: 0.925rem;
  color: #000000;
  margin-bottom: 0.2rem;
}

/* VENUE & COMPETITION NAME IN SOLID BLACK */
.pub-venue-line {
  font-size: 0.925rem;
  color: #000000;
  margin-bottom: 0.4rem;
}

.venue-link {
  color: #000000;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(0, 0, 0, 0.5);
}

.venue-link:hover {
  color: var(--accent-link);
  text-decoration-color: var(--accent-link);
}

.pub-action-links {
  font-size: 0.85rem;
  display: flex;
  gap: 0.65rem;
  align-items: center;
}

.btn-toggle-abstract {
  background: none;
  border: none;
  color: var(--accent-link);
  cursor: pointer;
  font-size: 0.85rem;
  font-family: var(--font-sans);
  font-weight: 600;
  text-decoration: underline;
  padding: 0;
}

.btn-toggle-abstract:hover {
  color: var(--accent-color);
}

.abstract-box {
  margin-top: 0.75rem;
  padding: 0.85rem 1rem;
  background-color: var(--bg-subtle);
  border-left: 3px solid var(--header-purple, #7e22ce);
  border-radius: 4px;
  font-size: 0.875rem;
  color: #000000;
  line-height: 1.6;
}

/* WORK EXPERIENCE */
.exp-entry {
  margin-bottom: 1.75rem;
}

.exp-entry:last-child {
  margin-bottom: 0;
}

.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.exp-role-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #000000;
}

.exp-date {
  font-size: 0.875rem;
  color: #000000;
  font-weight: 700;
}

.exp-org {
  font-size: 1rem;
  color: #000000;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.exp-summary {
  font-size: 0.95rem;
  color: #000000;
  margin-bottom: 0.5rem;
}

.courses-subblock {
  margin-top: 0.5rem;
  padding: 0.6rem 0.85rem;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: 4px;
}

.courses-label {
  font-size: 0.825rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #000000;
  display: block;
  margin-bottom: 0.35rem;
}

.courses-bullets,
.exp-bullets {
  padding-left: 1.2rem;
  font-size: 0.9rem;
  color: #000000;
  margin-bottom: 0;
}

.courses-bullets li,
.exp-bullets li {
  margin-bottom: 0.25rem;
  color: #000000;
}

/* EDUCATION */
.edu-entry {
  margin-bottom: 1.25rem;
}

.edu-entry:last-child {
  margin-bottom: 0;
}

.edu-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.edu-degree {
  font-size: 1.05rem;
  font-weight: 700;
  color: #000000;
}

.edu-date {
  font-size: 0.875rem;
  color: #000000;
  font-weight: 700;
}

.edu-inst {
  font-size: 0.95rem;
  color: #000000;
  font-weight: 600;
}

.edu-result {
  font-size: 0.9rem;
  color: #000000;
}

/* PROJECTS PAGE DESIGN */
.page-title {
  font-size: 2.25rem;
  color: #7e22ce !important;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.section-intro-text {
  font-size: 1rem;
  color: #000000;
  margin-bottom: 2.25rem;
}

.project-cards-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.project-card-featured {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 2rem;
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  align-items: flex-start;
}

.project-card-media {
  width: 100%;
  height: 220px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background-color: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-card-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.project-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.project-card-header-title {
  font-family: var(--font-sans);
  font-size: 1.65rem;
  font-weight: 700;
  color: #000000;
  line-height: 1.2;
}

.project-card-subtitle {
  font-size: 1.05rem;
  color: #000000;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.project-card-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.4rem;
}

/* BOLD TECH STACK PILLS */
.tech-pill {
  font-size: 0.825rem;
  font-weight: 700;
  color: #000000;
  background-color: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 0.25rem 0.65rem;
  line-height: 1.2;
}

.project-card-desc {
  font-size: 0.95rem;
  color: #000000;
  line-height: 1.6;
  margin-bottom: 0.25rem;
}

.project-card-bullet-list {
  padding-left: 1.25rem;
  font-size: 0.925rem;
  color: #000000;
  margin-bottom: 0.75rem;
}

.project-card-bullet-list li {
  margin-bottom: 0.35rem;
  line-height: 1.5;
  color: #000000;
}

.project-card-footer-links {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 0.25rem;
}

.proj-action-link {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent-link);
}

/* HONORS & AWARDS SECTION DESIGN */
.awards-section-title {
  font-family: var(--font-sans);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #7e22ce !important;
  /* Vibrant purple accent heading */
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

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

.award-card {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.15rem 1.35rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.award-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.award-card-main {
  flex: 1;
  padding-right: 1.5rem;
}

.award-title {
  font-family: var(--font-sans);
  font-size: 1.025rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.25rem;
  line-height: 1.35;
}

.award-subtitle {
  font-size: 0.875rem;
  color: #64748b;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.award-link {
  color: #1e293b;
  text-decoration: underline;
  text-decoration-color: rgba(30, 41, 59, 0.4);
}

.award-link:hover {
  color: #9333ea;
  text-decoration-color: #9333ea;
}

.award-sublink {
  color: #64748b;
  text-decoration: underline;
  text-decoration-color: rgba(100, 116, 139, 0.4);
}

.award-sublink:hover {
  color: #9333ea;
  text-decoration-color: #9333ea;
}

.award-more-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: #1e293b;
  text-decoration: underline;
  display: inline-block;
  margin-top: 0.25rem;
}

.award-more-link:hover {
  color: #9333ea;
}

.award-card-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
  flex-shrink: 0;
}

.award-badge {
  background-color: #f3e8ff;
  color: #9333ea;
  font-size: 0.775rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  white-space: nowrap;
}

.award-year {
  font-size: 0.825rem;
  color: #94a3b8;
  font-weight: 500;
}

@media (max-width: 640px) {
  .award-card {
    flex-direction: column;
    gap: 0.75rem;
  }

  .award-card-side {
    align-items: flex-start;
  }
}

/* FOOTER */
.site-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border-color);
  margin-top: 3rem;
  font-size: 0.85rem;
  color: #000000;
  font-weight: 500;
  text-align: center;
}

/* RESPONSIVE DESIGN */
@media (max-width: 820px) {
  .project-card-featured {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .project-card-media {
    height: 200px;
  }
}

@media (max-width: 768px) {
  .about-flex {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .about-photo-wrapper {
    margin-bottom: 1rem;
  }

  .phd-target-note {
    text-align: left;
  }

  .social-links-bar {
    justify-content: center;
  }

  .news-entry {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .exp-header,
  .edu-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: absolute;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 1.25rem;
    display: none;
  }

  .main-nav.is-open {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}