
body {
  --bg-pattern: url("data:image/svg+xml,%3Csvg width='6' height='6' viewBox='0 0 6 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23161821' fill-opacity='0.9' fill-rule='evenodd'%3E%3Cpath d='M5 0h1L0 6V5zM6 5v1H5z'/%3E%3C/g%3E%3C/svg%3E");
}
 
body.light {
  --bg-pattern: url("data:image/svg+xml,%3Csvg width='6' height='6' viewBox='0 0 6 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23000000' fill-opacity='0.4' fill-rule='evenodd'%3E%3Cpath d='M5 0h1L0 6V5zM6 5v1H5z'/%3E%3C/g%3E%3C/svg%3E");
} 

.pub-section {
  padding: 4rem 2rem;
  color: var(--text, #eee);
  background-color: var(--bg, #121212);
  background-image: var(--bg-pattern);
  background-repeat: repeat;
  background-size: auto;
}

  
  /* body.light .pub-section {
    background: white;
    color: #111;
  } */
  body.light .pub-section {
    background-color: var(--bg, #fff);
    background-image: var(--bg-pattern);
    background-repeat: repeat;
    background-size: auto;
    color: #111;
  }
  
  .pub-heading {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
  }
  
  .pub-timeline {
    position: relative;
    max-width: 1000px;
    margin: auto;
    padding: 2rem 0;
  }
  
  .pub-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    transform: translateX(-50%);
    width: 4px;
    background: rgba(0, 255, 204, 0.3);
  }
  
  body.light .pub-timeline::before {
    background: #007acc;
  }
  
  .pub-item {
    position: relative;
    width: 50%;
    padding: 2rem 2rem;
  }
  
  .pub-item.left {
    left: 0;
  }
  
  .pub-item.right {
    left: 50%;
  }
  
  .pub-card {
    background: rgba(255, 255, 255, 0.05); /* semi-transparent for glass effect */
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.5rem 1.8rem;
    border-radius: 12px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
    position: relative;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .pub-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
  }
  
  body.dark .pub-card {
    background: rgba(30, 30, 30, 0.4);
    border: 1px solid rgba(0, 255, 204, 0.1);
    box-shadow: 0 6px 20px rgba(0, 255, 204, 0.05);
  }
  
  
  body.light .pub-card {
    background: #f9f9f9;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  }
  
  .pub-marker {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 255, 204, 1) 40%, transparent 42%);
    box-shadow: 0 0 12px rgba(0, 255, 204, 0.4), inset 0 0 4px rgba(0, 255, 204, 0.6);
    position: absolute;
    top: 2rem;
    left: 100%;
    transform: translate(-50%, -50%);
    z-index: 2;
    border: none;
  }
  
  .pub-item.right .pub-marker {
    left: 0;
    transform: translate(-50%, -50%);
  }
  
  body.light .pub-marker {
    background: radial-gradient(circle, #007acc 40%, transparent 42%);
    box-shadow: 0 0 12px #007acc88, inset 0 0 4px #007accaa;
  }
  
  
  .pub-title {
    font-family: sans-serif;
    font-size: 1.3rem;
    font-weight: bold;
    /* text-align: justify; */
    margin-bottom: 0.4rem;
  }
  
  .pub-desc {
    font-family: sans-serif;
    font-size: 1rem;
    text-align: justify;
    margin: 0.3rem 0 0.8rem;
  }
  
  .pub-meta {
    /* font-family: sans-serif; */
    font-size: 0.9rem;
    color: #aaa;
    text-align: justify;
  }
  
  body.light .pub-meta {
    color: #555;
  }
  
  .pub-btn {
    display: inline-block;
    margin-top: 0.6rem;
    background: rgba(0, 255, 204, 0.8);
    color: #121212;
    padding: 0.4rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.3s ease;
  }
  
  .pub-btn:hover {
    background: rgba(0, 255, 204, 1);
  }
  
  body.light .pub-btn {
    background: #007acc;
    color: white;
  }
  
  body.light .pub-btn:hover {
    background: #005c99;
  }
  
  /* Fade Up Animation */
  [data-aos] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  
  [data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0);
  }
  
  /* Mobile Responsive */
  @media (max-width: 768px) {
    .pub-item, .pub-item.left, .pub-item.right {
      width: 100%;
      left: 0 !important;
      padding: 1rem 1rem;
    }
  
    .pub-timeline::before {
      left: 20px;
    }
  
    .pub-marker {
      left: 20px !important;
    }
  
    .pub-card {
      margin-left: 2.5rem;
    }
  }
  