/* ============================================
   Portfolio Stylesheet - Enhanced Version
   ============================================ */

/* CSS Variables for Theming */
:root {
  --primary-color: #1772d0;
  --primary-hover: #f09228;
  --accent-gradient: linear-gradient(135deg, #1772d0 0%, #6b5ce7 50%, #f09228 100%);
  --text-color: #333333;
  --text-muted: #666666;
  --bg-color: #ffffff;
  --bg-alt: #f8f9fa;
  --border-color: #e9ecef;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.15);
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.5s ease;
  /* Font: Lexend Deca - clean, modern, designed for readability */
  --font-main: 'Lexend Deca', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  /* Content width - wider for less line wrapping */
  --content-width: 1050px;
}

/* Global Reset & Base */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  margin: 0;
  padding: 0;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Particle Background Canvas */
#particle-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.4;
  pointer-events: none;
}

/* Typography */
a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-fast);
}

/* News Scroll Container */
.news-scroll-wrapper {
  position: relative;
  /* Ensure the wrapper respects the layout */
  width: 100%;
}

.news-scroll-wrapper::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--bg-color));
  pointer-events: none;
  z-index: 5;
}

.news-scroll-content {
  width: 100%;
  height: 200px;
  overflow-y: auto;
  position: relative;
  /* Add padding at bottom so content isn't hidden by fade */
  padding-bottom: 20px;
}

/* Custom Scrollbar for News */
.news-scroll-content::-webkit-scrollbar {
  width: 6px;
}

.news-scroll-content::-webkit-scrollbar-track {
  background: var(--bg-alt);
  /* Changed from --bg-color-alt to --bg-alt as --bg-color-alt is not defined */
  border-radius: 3px;
}

.news-scroll-content::-webkit-scrollbar-thumb {
  background-color: var(--text-muted);
  border-radius: 3px;
  border: 1px solid var(--bg-color);
}

a:focus,
a:hover {
  color: var(--primary-hover);
  text-decoration: none;
}

body,
td,
th,
tr,
p,
a {
  font-family: var(--font-main);
  font-size: 15px;
  line-height: 1.65;
}

strong {
  font-family: var(--font-main);
  font-size: 15px;
  font-weight: 600;
}

heading {
  font-family: var(--font-main);
  font-size: 24px;
  font-weight: 600;
  color: var(--text-color);
}

papertitle {
  font-family: var(--font-main);
  font-size: 15px;
  font-weight: 600;
}

/* Name with Gradient Effect */
name {
  font-family: var(--font-main);
  font-size: 36px;
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Image Containers */
.one {
  width: 160px;
  height: 160px;
  position: relative;
}

.two {
  width: 160px;
  height: 160px;
  position: absolute;
  transition: opacity var(--transition-fast);
}

.fade {
  transition: opacity var(--transition-fast);
}

span.highlight {
  background-color: #ffffd0;
  padding: 2px 4px;
  border-radius: 3px;
}

/* ============================================
   Navbar - Glassmorphism Style
   ============================================ */
.navbar-container {
  display: flex;
  justify-content: center;
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1000px;
  width: 100%;
  padding: 16px 24px;
  font-size: 16px;
}

.navbar-left a {
  font-weight: 700;
  font-size: 18px;
  color: var(--text-color);
  transition: color var(--transition-fast);
}

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

.navbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.navbar-right a {
  color: var(--text-muted);
  text-decoration: none;
  padding: 8px 14px;
  font-weight: 500;
  border-radius: 6px;
  transition: all var(--transition-fast);
}

.navbar-right a:hover {
  color: var(--primary-color);
  background: rgba(23, 114, 208, 0.08);
}

.toggle-icon {
  cursor: pointer;
  font-size: 22px;
  padding: 8px;
  border-radius: 50%;
  transition: all var(--transition-fast);
  user-select: none;
}

.toggle-icon:hover {
  background: rgba(0, 0, 0, 0.05);
  transform: scale(1.1);
}

.navbar-hr {
  display: none;
}

/* ============================================
   Profile Image - Circular with Effects
   ============================================ */
.profile-image {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid white;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-medium);
}

.profile-image:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 40px rgba(23, 114, 208, 0.25);
}

/* ============================================
   Publications & Cards
   ============================================ */
.selected-publications,
.publications {
  margin-top: 20px;
}

.publication {
  margin-bottom: 15px;
}

/* Publication Row Hover Effect */
tr[onmouseout] {
  transition: all var(--transition-fast);
}

tr[onmouseout]:hover {
  background: var(--bg-alt);
  border-radius: 8px;
}

.publication-thumbnail {
  width: 180px;
  height: 160px;
  object-fit: contain;
  border-radius: 8px;
  display: block;
  transition: all var(--transition-medium);
  box-shadow: var(--shadow-sm);
}

.publication-thumbnail:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-md);
}

/* ============================================
   News Section
   ============================================ */
.news-item {
  display: flex;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--border-color);
  text-align: justify;
  transition: all var(--transition-fast);
}

.news-item:last-child {
  border-bottom: none;
}

.news-item:hover {
  background: rgba(23, 114, 208, 0.03);
  padding-left: 8px;
  border-radius: 6px;
}

.news-date {
  font-weight: 600;
  width: 120px;
  flex-shrink: 0;
  margin-right: 8px;
  color: var(--primary-color);
  white-space: nowrap;
}

.news-separator {
  color: var(--text-muted);
  margin-right: 8px;
  flex-shrink: 0;
}

.news-content {
  margin: 0;
  flex: 1;
  text-align: justify;
}

/* ============================================
   Abstract & BibTeX Containers
   ============================================ */
.abstract-container {
  background: var(--bg-alt);
  padding: 16px;
  margin-top: 12px;
  border-radius: 8px;
  border-left: 3px solid var(--primary-color);
  text-align: justify;
}

.bibtex-container {
  background: var(--bg-alt);
  padding: 16px;
  margin-top: 12px;
  border-radius: 8px;
  border-left: 3px solid var(--primary-hover);
  text-align: left;
}

pre {
  background: #2d2d2d;
  color: #f8f8f2;
  padding: 16px;
  border-radius: 8px;
  white-space: pre-wrap;
  overflow-x: auto;
  text-align: left;
  font-family: 'Fira Code', 'SF Mono', Monaco, Consolas, monospace;
  font-size: 13px;
  display: block;
}

/* ============================================
   Pill Container (Highlights)
   ============================================ */
.pill-container {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 20px;
  margin: 24px;
  overflow: hidden;
}

.pill {
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  padding: 16px;
  cursor: pointer;
  transition: all var(--transition-medium);
  text-align: center;
  width: 170px;
  flex-shrink: 0;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.pill:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.thumbnail,
.pill video {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  transition: all var(--transition-medium);
}

/* Topmate widget removed */

/* ============================================
   Footer
   ============================================ */
footer {
  text-align: center;
  padding: 24px;
  background: var(--bg-alt);
  color: var(--text-muted);
  margin-top: 48px;
  border-top: 1px solid var(--border-color);
}

footer a {
  color: var(--primary-color);
  transition: color var(--transition-fast);
}

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

/* ============================================
   Dark Mode
   ============================================ */
.dark-mode {
  --text-color: #e4e4e4;
  --text-muted: #a0a0a0;
  --bg-color: #121212;
  --bg-alt: #1e1e1e;
  --border-color: #333333;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);

  background-color: var(--bg-color);
  color: var(--text-color);
}

.dark-mode .navbar-container {
  background: rgba(18, 18, 18, 0.9);
}

.dark-mode .navbar-left a {
  color: var(--text-color);
}

.dark-mode .navbar-right a {
  color: var(--text-muted);
}

.dark-mode .navbar-right a:hover {
  background: rgba(240, 146, 40, 0.1);
}

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

.dark-mode a:hover {
  color: #ffb366;
}

.dark-mode heading {
  color: var(--text-color);
}

.dark-mode name {
  background: linear-gradient(135deg, #4dabf7 0%, #9775fa 50%, #ffd43b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dark-mode .toggle-icon:hover {
  background: rgba(255, 255, 255, 0.1);
}

.dark-mode pre {
  background: #0d0d0d;
  border: 1px solid #333;
}

.dark-mode .profile-image {
  border-color: #333;
}

.dark-mode .profile-image:hover {
  box-shadow: 0 12px 40px rgba(240, 146, 40, 0.25);
}

.dark-mode .pill {
  background: var(--bg-alt);
  border-color: var(--border-color);
}

.dark-mode .pill:hover {
  border-color: var(--primary-hover);
}

.dark-mode .news-item:hover {
  background: rgba(240, 146, 40, 0.05);
}

.dark-mode .abstract-container,
.dark-mode .bibtex-container {
  background: var(--bg-alt);
}

.dark-mode #topmate-widget {
  background: linear-gradient(135deg, #f09228 0%, #e67e22 100%);
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes gradientShift {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

.animate-fade-in {
  animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fade-in-delay-1 {
  animation: fadeInUp 0.8s ease-out 0.1s forwards;
  opacity: 0;
}

.animate-fade-in-delay-2 {
  animation: fadeInUp 0.8s ease-out 0.2s forwards;
  opacity: 0;
}

.animate-fade-in-delay-3 {
  animation: fadeInUp 0.8s ease-out 0.3s forwards;
  opacity: 0;
}

/* Name gradient animation */
name {
  background-size: 200% 200%;
  animation: gradientShift 4s ease infinite;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 768px) {
  .navbar {
    padding: 12px 16px;
  }

  .navbar-right {
    gap: 4px;
  }

  .navbar-right a {
    padding: 6px 10px;
    font-size: 14px;
  }

  name {
    font-size: 28px;
  }

  .profile-image {
    width: 180px;
    height: 180px;
  }

  .pill-container {
    flex-wrap: wrap;
    gap: 12px;
  }

  .pill {
    width: 140px;
    padding: 12px;
  }

  .thumbnail,
  .pill video {
    width: 120px;
    height: 120px;
  }
}

@media (max-width: 480px) {
  .navbar-right a {
    padding: 4px 8px;
    font-size: 13px;
  }

  name {
    font-size: 24px;
  }

  .profile-image {
    width: 150px;
    height: 150px;
  }
}

/* ============================================
   Utility Classes
   ============================================ */
.text-gradient {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.card-hover {
  transition: all var(--transition-medium);
}

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

/* ============================================
   Experience Page - Timeline Styles
   ============================================ */
.container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 24px;
  bottom: 3rem;
  left: 24px;
  width: 3px;
  background: linear-gradient(to bottom, var(--primary-color), var(--primary-hover));
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  padding-left: 70px;
  margin-bottom: 3rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}

.timeline-marker {
  position: absolute;
  top: 0;
  left: 12px;
  width: 24px;
  height: 24px;
  background: var(--bg-color);
  border: 4px solid var(--primary-color);
  border-radius: 50%;
  z-index: 1;
  transition: all var(--transition-fast);
}

.timeline-item:hover .timeline-marker {
  background: var(--primary-color);
  transform: scale(1.2);
}

.timeline-content {
  flex: 1;
  background: var(--bg-color);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-medium);
}

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

.timeline-date {
  font-weight: 600;
  color: var(--primary-color);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  display: inline-block;
  background: rgba(23, 114, 208, 0.08);
  padding: 4px 12px;
  border-radius: 20px;
}

.timeline-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0.5rem 0;
  color: var(--text-color);
}

.timeline-subtitle {
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.timeline-content p {
  margin: 0.75rem 0 0;
  color: var(--text-color);
}

.timeline-content ul {
  margin: 0.5rem 0;
  padding-left: 1.2rem;
}

.timeline-content li {
  margin-bottom: 0.4rem;
}

.timeline-visual {
  flex: 0 0 200px;
  max-width: 200px;
  display: flex;
  align-items: center;
}

.timeline-visual img {
  width: 100%;
  height: 120px;
  object-fit: contain;
  border-radius: 10px;
  background: white;
  padding: 14px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-medium);
}

.timeline-visual img:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
}

.timeline-item:last-child {
  margin-bottom: 0;
}

/* Section Divider for Experience Page */
.section-divider {
  display: flex;
  align-items: center;
  margin: 3rem 0 2rem;
  gap: 1rem;
}

.section-divider h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-color);
  margin: 0;
  white-space: nowrap;
}

.section-divider::after {
  content: '';
  flex: 1;
  height: 2px;
  background: linear-gradient(to right, var(--primary-color), transparent);
}

/* Info Badges */
.info-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.info-badge a {
  color: var(--primary-color);
}

.award-badge {
  display: inline-block;
  background: linear-gradient(135deg, #ffd700 0%, #ffaa00 100%);
  color: #333;
  font-weight: 600;
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 4px;
  margin-top: 0.5rem;
}

/* Dark Mode Timeline */
.dark-mode .timeline::before {
  background: linear-gradient(to bottom, #4dabf7, #ffd43b);
}

.dark-mode .timeline-content {
  background: var(--bg-alt);
  border-color: var(--border-color);
}

.dark-mode .timeline-date {
  background: rgba(77, 171, 247, 0.15);
  color: #4dabf7;
}

.dark-mode .timeline-visual img {
  background: var(--bg-alt);
  border-color: var(--border-color);
}

.dark-mode .award-badge {
  background: linear-gradient(135deg, #ffd43b 0%, #fab005 100%);
}

/* Responsive Timeline */
@media (max-width: 768px) {
  .timeline::before {
    left: 16px;
  }

  .timeline-item {
    flex-direction: column;
    padding-left: 50px;
    gap: 1rem;
  }

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

  .timeline-visual {
    flex: none;
    max-width: 100px;
    align-self: flex-start;
  }

  .timeline-visual img {
    height: 60px;
  }
}

/* ============================================
   Social Link Icons
   ============================================ */
.social-links {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: var(--bg-alt);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  color: var(--text-color);
  font-size: 1.1rem;
  transition: all var(--transition-medium);
}

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

/* Inline icon links (for bio section) */
.icon-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 6px 12px;
  background: var(--bg-alt);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  color: var(--text-color);
  font-size: 14px;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.icon-link:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

.icon-link i {
  font-size: 1rem;
}

/* Dark mode social links */
.dark-mode .social-links a,
.dark-mode .icon-link {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-color);
}

.dark-mode .social-links a:hover,
.dark-mode .icon-link:hover {
  background: #4dabf7;
  color: #121212;
  border-color: #4dabf7;
}

/* ============================================
   Contact Page Styles
   ============================================ */
.contact-section {
  max-width: 700px;
  margin: 0 auto;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  font-size: 1.1rem;
}

.contact-item i {
  width: 28px;
  color: var(--primary-color);
  font-size: 1.2rem;
}

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

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

/* ============================================
   Publication Hover Popup Effect
   ============================================ */
/* Target the image container (.one) for hover instead of the whole row */
.one {
  position: relative;
}

.one:hover {
  z-index: 20;
}

/* Publication preview popup */
.publication-popup {
  position: absolute;
  /* Position to the left of the image */
  right: 110%;
  left: auto;
  top: 50%;
  transform: translateY(-50%) scale(0.9);
  width: 280px;
  max-width: none;
  min-width: 0;
  background: var(--bg-color);
  border-radius: 12px;
  /* Larger shadow for floating effect */
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  /* 
     transition: property duration timing-function delay 
     Removed delay for instant appearance
  */
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    visibility 0.3s linear;

  z-index: 1000;
  pointer-events: none;
  overflow: visible;
}

/* Animated border effect - visible rotating glow */
.publication-popup::before {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border-radius: 14px;
  background: linear-gradient(90deg,
      var(--primary-color),
      #6b5ce7,
      #f09228,
      var(--primary-color));
  background-size: 400% 100%;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Show and animate border on hover */
.publication-row:hover .publication-popup::before,
.publication-popup:hover::before {
  opacity: 1;
  animation: borderGlow 2s ease infinite;
}

@keyframes borderGlow {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

/* Inner background to create border effect */
.publication-popup::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  right: 2px;
  bottom: 2px;
  border-radius: 11px;
  background: var(--bg-color);
  z-index: -1;
}

/* On hover of the row or popup, show popup */
.publication-row:hover .publication-popup,
.publication-popup:hover {
  transform: translateY(-50%) scale(1);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Ensure links inside popup are always clickable */
.publication-popup a {
  pointer-events: auto;
  cursor: pointer;
  position: relative;
  z-index: 10;
}

.publication-popup-image {
  width: 100%;
  height: auto;
  max-height: 160px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 12px;
  background: var(--bg-alt);
  border: 1px solid var(--border-color);
}

.publication-popup-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 8px;
  line-height: 1.35;
}

.publication-popup-venue {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 12px;
}

.publication-popup-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.publication-popup-links a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: var(--bg-alt);
  border: 1px solid var(--border-color);
  border-radius: 15px;
  font-size: 0.75rem;
  color: var(--text-color);
  text-decoration: none;
  transition: all var(--transition-fast);
  /* No delay on link hover */
}

.publication-popup-links a:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  transform: translateY(-1px);
}

/* Dark mode adjustments */
.dark-mode .publication-popup {
  background: #1a1a1a;
  /* Slightly lighter than pure black */
  border-color: #333;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

/* Mobile check */
/* Mobile check - hide popup on touch devices or small screens */
@media (max-width: 1000px),
(hover: none) {
  .publication-popup {
    display: none !important;
  }
}