/* ===========================================
   Academic CV Theme - Hugo
   Inspired by Hugo Academic Theme
   =========================================== */

/* CSS Variables for theming */
:root {
  /* Light theme colors */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --text-primary: #1e293b;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --accent-primary: #3b82f6;
  --accent-secondary: #60a5fa;
  --accent-hover: #2563eb;
  --border-color: #e1e4e8;
  --shadow-sm: 0 2px 4px 1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px 0px rgb(0 0 0 / 0.15);
  --shadow-lg: 0 10px 15px -2px rgb(0 0 0 / 0.15);
  --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  --gradient-hero: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%);
}

/* Dark theme */
html.dark {
  --bg-primary: #141c2e;
  --bg-secondary: #1e293b;
  --bg-tertiary: #334155;
  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --accent-primary: #60a5fa;
  --accent-secondary: #93c5fd;
  --accent-hover: #3b82f6;
  --border-color: #334155;
  --gradient-hero: linear-gradient(135deg, #1e293b 0%, #2b2a51 100%);
}

/* Reset and 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, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  font-size: 16px;
  transition: background-color 0.3s, color 0.3s;
}

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

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

img {
  max-width: 100%;
  height: auto;
}

/* ===========================================
   Header & Navigation
   =========================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
}

.navbar {
  padding: 0;
}

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

.nav-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-primary);
  cursor: pointer;
}

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

.nav-menu li a {
  color: var(--text-secondary);
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
}

.nav-menu li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-primary);
  transition: width 0.3s;
}

.nav-menu li a:hover::after,
.nav-menu li a.active::after {
  width: 100%;
}

.nav-menu li a.active {
  color: var(--accent-primary);
}

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

.theme-toggle:hover {
  background: var(--accent-primary);
  color: white;
}

/* ===========================================
   Hero Section
   =========================================== */
.hero {
  background: var(--gradient-hero);
  padding: 4rem 2rem;
}

.hero-container {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 250px 1fr;
  grid-template-rows: auto auto;
  gap: 2rem;
}

.hero-image {
  grid-row: 1 / 3;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.avatar {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--bg-primary);
  box-shadow: var(--shadow-lg);
}

.hero-content {
  text-align: left;
}

.hero-name {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
}

.hero-pronouns {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 400;
}

.hero-title {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.hero-organization a {
  color: var(--accent-primary);
  font-weight: 500;
}

.hero-social {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.hero-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--bg-primary);
  border-radius: 50%;
  color: var(--text-secondary);
  font-size: 1.25rem;
  transition: all 0.3s;
  box-shadow: var(--shadow-sm);
}

.hero-social a:hover {
  background: var(--accent-primary);
  color: white;
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.hero-bio {
  background: var(--bg-primary);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

.hero-bio h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.hero-bio h3 i {
  color: var(--accent-primary);
  margin-right: 0.5rem;
}

.hero-bio p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.hero-bio .btn {
  display: block !important;
  width: fit-content;
  margin-top: 1rem;
}

.download-btn {
  display: block;
  margin-top: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: all 0.3s;
}

.btn-primary {
  background: var(--accent-primary);
  color: white;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.btn-secondary:hover {
  background: var(--accent-primary);
  color: white;
  border-color: var(--accent-primary);
}

/* ===========================================
   Section Styles (Common)
   =========================================== */
.section-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

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

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

.section-more {
  text-align: center;
  margin-top: 2rem;
}

/* ===========================================
   Education Section
   =========================================== */
.education-section {
  background: var(--bg-secondary);
}

.education-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.education-item {
  display: flex;
  gap: 1.5rem;
  background: var(--bg-primary);
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s, box-shadow 0.3s;
}

.education-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.education-icon {
  width: 70px;
  height: 50px;
  background: var(--gradient-primary);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;     /* Fallback icon size */
  flex-shrink: 0;
  overflow: hidden;
}

.education-icon.has-logo {
  background: var(--bg-primary);
  border: 0px solid var(--border-color);
  padding: 4px;          /* Padding around logo */
}

.institution-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.education-degree {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.education-institution {
  color: var(--accent-primary);
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.education-dates {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.education-description {
  margin-top: 0.5rem;
  color: var(--text-secondary);
}

/* ===========================================
   Skills Section
   =========================================== */
.skills-section {
  background: var(--bg-primary);
}

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

.skills-category {
  background: var(--bg-secondary);
  padding: 1.5rem;
  border-radius: 1rem;
}

.skills-category h3 {
  font-size: 1.125rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.skills-category h3 i {
  color: var(--accent-primary);
  margin-right: 0.5rem;
}

.skills-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-tag {
  display: inline-block;
  background: var(--bg-primary);
  color: var(--text-primary);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid var(--border-color);
  transition: all 0.3s;
}

.skill-tag:hover {
  background: var(--accent-primary);
  color: white;
  border-color: var(--accent-primary);
}

/* ===========================================
   Experience Section
   =========================================== */
.experience-section {
  background: var(--bg-secondary);
}

.experience-timeline {
  position: relative;
  padding-left: 0;
}

.experience-timeline::before {
  content: '';
  position: absolute;
  left: 35px;            /* Center of 70px marker width */
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--border-color);
}

.experience-item {
  position: relative;
  padding-bottom: 2rem;
  padding-left: 4rem;
}

.experience-item:last-child {
  padding-bottom: 0;
}

.experience-marker {
  position: absolute;
  left: 0;
  top: 0;
  width: 70px;
  height: 50px;
  background: var(--accent-primary);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;       /* Fallback icon size */
  overflow: hidden;
}

.experience-marker.has-logo {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  padding: 4px;          /* Padding around logo */
}

.company-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.experience-content {
    transition: transform 0.3s, box-shadow 0.3s;
  background: var(--bg-primary);
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-sm);
}
.experience-content:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.experience-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.experience-company {
  color: var(--accent-primary);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.experience-dates,
.experience-location {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.experience-dates i,
.experience-location i {
  margin-right: 0.5rem;
}

.experience-description {
  margin-top: 0.75rem;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

.experience-description ul {
  margin: 0.5em 0 0.5em 2.25em;
  padding: 0;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

.experience-description li {
  margin-bottom: 0.25em;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

/* ===========================================
   Publications Section
   =========================================== */
.publications-section {
  background: var(--bg-primary);
}

.publications-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.publication-item {
  background: var(--bg-secondary);
  padding: 1.5rem;
  border-radius: 1rem;
  border-left: 4px solid var(--accent-primary);
  transition: transform 0.3s, box-shadow 0.3s;
}

.publication-item:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-md);
}

.publication-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

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

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

.publication-authors {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  margin-bottom: 0.25rem;
}

.publication-venue {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.publication-summary {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  margin-bottom: 1rem;
}

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

.pub-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 0.375rem;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  transition: all 0.3s;
}

.pub-link:hover {
  background: var(--accent-primary);
  color: white;
  border-color: var(--accent-primary);
}

.no-publications {
  color: var(--text-muted);
  text-align: center;
  padding: 2rem;
}

.no-publications code {
  background: var(--bg-secondary);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
}

/* ===========================================
   Posts Section
   =========================================== */
.posts-section {
  background: var(--bg-secondary);
}

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

.post-card {
  background: var(--bg-primary);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s, box-shadow 0.3s;
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.post-image img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.post-content {
  padding: 1.5rem;
}

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

.post-meta i {
  margin-right: 0.25rem;
}

.post-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

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

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

.post-summary {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  margin-bottom: 1rem;
}

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

.tag {
  display: inline-block;
  background: var(--bg-secondary);
  color: var(--accent-primary);
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 500;
  transition: all 0.3s;
}

.tag:hover {
  background: var(--accent-primary);
  color: white;
}

.no-posts {
  color: var(--text-muted);
  text-align: center;
  padding: 2rem;
  grid-column: 1 / -1;
}

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

.footer-container {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--bg-primary);
  border-radius: 50%;
  color: var(--text-secondary);
  font-size: 1.25rem;
  transition: all 0.3s;
}

.footer-social a:hover {
  background: var(--accent-primary);
  color: white;
  transform: translateY(-3px);
}

.footer-text {
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

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

.footer-powered a {
  color: var(--accent-primary);
}

/* ===========================================
   Single Page (Blog Post / Publication)
   =========================================== */
.single-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.single-page h2 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.single-page .post-meta {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.single-page .content {
  color: var(--text-secondary);
}

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

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

.single-page .content code {
  background: var(--bg-secondary);
  padding: 0.2rem 0.4rem;
  border-radius: 0.25rem;
  font-family: 'Monaco', 'Consolas', monospace;
  font-size: 0.9em;
}

.single-page .content pre {
  background: var(--bg-secondary);
  padding: 1.5rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

.single-page .content pre code {
  background: transparent;
  padding: 0;
}

.single-page .content ul,
.single-page .content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

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

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

/* ===========================================
   List Page
   =========================================== */
.list-page {
  max-width: 1000px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.list-page h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--text-primary);
}

ul.list-page-items {
  list-style: none;
}

.list-item {
  background: var(--bg-secondary);
  border-radius: 1rem;
  margin-bottom: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  transition: all 0.3s;
}

.list-item:hover {
  border-color: var(--accent-primary);
  transform: translateX(5px);
}

/* ===========================================
   Responsive Design
   =========================================== */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

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

  .nav-menu.active {
    display: flex;
  }

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-image {
    grid-row: 1;
  }

  .hero-content {
    text-align: center;
  }

  .hero-social {
    justify-content: center;
  }

  .hero-name {
    font-size: 2rem;
  }

  .avatar {
    width: 150px;
    height: 150px;
  }

  .experience-timeline {
    padding-left: 0;
  }

  .experience-timeline::before {
    left: 20px;
  }

  .experience-marker {
    width: 40px;
    height: 40px;
  }

  .experience-item {
    padding-left: 3.5rem;
  }

  .education-icon {
    width: 40px;
    height: 40px;
  }

  .section-container {
    padding: 3rem 1rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 2rem 1rem;
  }

  .hero-name {
    font-size: 1.75rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

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

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

/* ===========================================
   Projects Section
   =========================================== */
.projects-section {
  background: var(--bg-primary);
}

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

.project-card {
  background: var(--bg-secondary);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: transform 0.3s, box-shadow 0.3s;
}

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

.project-image {
  margin: 0;
  padding: 0;
  line-height: 0;
}

.project-image img {
  width: 100%;
  height: 160px;
  object-fit: cover;}

.project-content {
  padding: 1.0rem 1.5rem 1.5rem;
}

.project-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

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

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

.project-status {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.status-active {
  background: #dcfce7;
  color: #166534;
}

html.dark .status-active {
  background: #166534;
  color: #dcfce7;
}

.status-completed {
  background: #dbeafe;
  color: #1e40af;
}

html.dark .status-completed {
  background: #1e40af;
  color: #dbeafe;
}

.status-in-progress {
  background: #fef3c7;
  color: #92400e;
}

html.dark .status-in-progress {
  background: #92400e;
  color: #fef3c7;
}

.status-archived {
  background: var(--bg-tertiary);
  color: var(--text-muted);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}

.project-tag {
  display: inline-block;
  background: var(--bg-primary);
  color: var(--accent-primary);
  padding: 0.2rem 0.6rem;
  border-radius: 0.25rem;
  font-size: 0.7rem;
  font-weight: 500;
  border: 1px solid var(--border-color);
}

.project-summary {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  margin-bottom: 1rem;
  line-height: 1.6;
}

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

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 0.375rem;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  transition: all 0.3s;
}

.project-link:hover {
  background: var(--accent-primary);
  color: white;
  border-color: var(--accent-primary);
}

.no-projects {
  color: var(--text-muted);
  text-align: center;
  padding: 2rem;
  grid-column: 1 / -1;
}

/* Project Single Page */
.project-single .project-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.project-single .project-header h2 {
  margin-bottom: 0;
}

.project-featured-image {
  margin: 2rem 0;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.project-featured-image img {
  width: 100%;
  height: auto;
}

.project-links-header {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

/* ===========================================
   Contact Page
   =========================================== */
.contact-page {
  padding: 4rem 2rem;
}

.contact-container {
  max-width: 1000px;
  margin: 0 auto;
}

.contact-header {
  text-align: center;
  margin-bottom: 3rem;
}

.contact-header h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.contact-header h2 i {
  color: var(--accent-primary);
  margin-right: 0.5rem;
}

.contact-intro {
  color: var(--text-secondary);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
}

.contact-info {
  background: var(--bg-secondary);
  padding: 2rem;
  border-radius: 1rem;
  height: fit-content;
}

.contact-info h3 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.contact-info h3 i {
  color: var(--accent-primary);
  margin-right: 0.5rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-item > i {
  width: 40px;
  height: 40px;
  background: var(--accent-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item strong {
  display: block;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.contact-item a,
.contact-item span {
  color: var(--text-secondary);
}

.contact-social {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.contact-social h4 {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

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

.contact-social .social-links a {
  width: 44px;
  height: 44px;
  background: var(--bg-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 1.25rem;
  transition: all 0.3s;
}

.contact-social .social-links a:hover {
  background: var(--accent-primary);
  color: white;
  transform: translateY(-3px);
}

.contact-form-wrapper {
  background: var(--bg-secondary);
  padding: 2rem;
  border-radius: 1rem;
}

.contact-form-wrapper h3 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.contact-form-wrapper h3 i {
  color: var(--accent-primary);
  margin-right: 0.5rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 500;
  color: var(--text-primary);
}

.form-group input,
.form-group textarea {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.contact-alternative {
  text-align: center;
  padding: 2rem;
}

.contact-alternative p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.contact-content {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.contact-content h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.contact-content p,
.contact-content li {
  color: var(--text-secondary);
}

.contact-content ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

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

/* Contact page responsive */
@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-header h2 {
    font-size: 1.75rem;
  }

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

/* Section description */
.section-description {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-size: 1.0625rem;
}

/* Project overview meta styling */
.project-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.project-meta .project-type, .project-meta .project-lab {
  font-size: 0.8em;
  color: var(--text-muted);
  margin-right: 0.75em;
  font-weight: 400;
}
.project-meta .project-lab a {
  color: var(--text-muted);
  text-decoration: underline dotted;
  font-size: 0.8em;
}
.project-meta .project-lab a:hover {
  color: var(--accent-primary);
  text-decoration: underline;
}

/* Full content for nopage projects in overview */
.project-full-content {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  max-height: 300px;
  overflow-y: auto;
}
.project-full-content::-webkit-scrollbar {
  width: 4px;
}
.project-full-content::-webkit-scrollbar-track {
  background: var(--bg-tertiary);
}
.project-full-content::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 2px;
}
.project-full-content::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}