* {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
      }

      body {
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          Oxygen, Ubuntu, Cantarell, sans-serif;
        background-color: #000;
        color: #fff;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
      }

      nav {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 2rem 4rem;
        position: relative;
      }

      .theme-toggle {
        position: absolute;
        left: 4rem;
        width: 40px;
        height: 40px;
        border: 2px solid #fff;
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        transition: all 0.3s ease;
      }

      .theme-toggle:hover {
        transform: rotate(180deg);
        background-color: rgba(255, 255, 255, 0.1);
      }

      .sun-icon {
        width: 24px;
        height: 24px;
      }

      .sun-icon circle {
        fill: #fff;
      }

      .sun-icon line {
        stroke: #fff;
        stroke-width: 2;
        stroke-linecap: round;
      }

      .nav-links {
        display: flex;
        gap: 2rem;
        list-style: none;
      }

      .nav-links a {
        color: #fff;
        text-decoration: none;
        font-size: 1.5rem;
        transition: opacity 0.3s ease;
      }

      .nav-links a:hover {
        opacity: 0.7;
      }

      main {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 3rem 2rem 6rem 2rem;
      }

      .page-title {
        font-size: 4rem;
        font-style: italic;
        margin-bottom: 2rem;
        text-align: center;
      }

      .research-intro {
        font-size: 1.3rem;
        font-style: italic;
        text-align: center;
        margin-bottom: 1rem;
        color: #ccc;
      }

      .research-subtitle {
        font-size: 1.2rem;
        text-align: center;
        margin-bottom: 4rem;
        color: #aaa;
      }

      .papers-container {
        max-width: 1200px;
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 3rem;
      }

      .paper-card {
        background-color: #1a1a1a;
        border-radius: 12px;
        padding: 2.5rem;
        display: flex;
        gap: 2rem;
        transition: all 0.3s ease;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
      }

      .paper-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 16px rgba(255, 255, 255, 0.1);
      }

      .paper-image {
        flex-shrink: 0;
        width: 250px;
        height: 180px;
        overflow: hidden;
        border-radius: 8px;
        background-color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
      }

      .paper-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
      }

      .paper-content {
        flex: 1;
        display: flex;
        flex-direction: column;
      }

      .paper-title {
        font-size: 1.5rem;
        font-weight: 600;
        margin-bottom: 1rem;
        line-height: 1.4;
      }

      .paper-meta {
        font-size: 1.1rem;
        color: #ccc;
        margin-bottom: 0.8rem;
      }

      .linko svg {
  color: #000000; /* Black in light mode */
  transition: color 0.3s ease;
}

.light-mode .linko svg {
  color: #000000; /* Black in light mode */
}

body:not(.light-mode) .linko svg,
body.dark-mode .linko svg {
  color: #ffffff; /* White in dark mode */
}

/* Optional: hover effect */
.linko a:hover svg {
  opacity: 0.7;
}

      /* .paper-type {
        display: inline-block;
        background-color: #5a7a6f;
        color: #fff;
        padding: 0.3rem 0.8rem;
        border-radius: 20px;
        font-size: 0.9rem;
        font-weight: 500;
        margin-top: 1rem;
      }

      .paper-type a,
      .paper-type a:visited,
      .paper-type a:hover,
      .paper-type a:active {
        color: white;
        text-decoration: none;
    } */


      .chatbot-button {
        position: fixed;
        bottom: 30px;
        background-color: #5a7a6f;
        color: #fff;
        padding: 1rem 2.5rem;
        border-radius: 50px;
        font-size: 0.8rem;
        cursor: pointer;
        margin-top: 4rem;
        transition: all 0.3s ease;
        outline: none;
        border: none;
      }

      .chatbot-button:focus {
        outline: none;
      }

      .chatbot-button:hover {
        background-color: #6a8a7f;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(90, 112, 111, 0.4);
      }

      footer {
        display: flex;
        justify-content: flex-end;
        padding: 2rem 4rem;
      }

      .scroll-top {
        width: 40px;
        height: 40px;
        border: 2px solid #fff;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
        background-color: transparent;
        color: #fff;
        font-size: 1.2rem;
      }

      .scroll-top:hover {
        background-color: rgba(255, 255, 255, 0.1);
        transform: translateY(-3px);
      }


      /* Update existing @media (max-width: 968px) with these additions */
@media (max-width: 968px) {
  .theme-toggle {
    left: 1.5rem;
    width: 35px;
    height: 35px;
  }
  
  nav {
    padding: 1.5rem 2rem;
    flex-wrap: wrap;
    margin-right: -0.7rem;
  }

  .nav-links {
    gap: 1.5rem;
  }

  .nav-links a {
    font-size: 1.2rem;
  }

  .page-title {
    font-size: 3rem;
  }

  .paper-card {
    flex-direction: column;
    padding: 2rem;
  }

  .paper-image {
    width: 100%;
    height: 200px;
  }
  
  main {
    padding: 2rem 1.5rem 5rem 1.5rem;
  }
  
  .research-intro {
    font-size: 1.2rem;
    padding: 0 1rem;
  }
  
  .research-subtitle {
    font-size: 1.1rem;
    padding: 0 1rem;
  }
  
  .papers-container {
    gap: 2rem;
  }
  
  .chatbot-button {
    padding: 0.8rem 2rem;
    bottom: 46px;
    left: 50%;
    transform: translateX(-54%);
  }
  
  footer {
    padding: 1.5rem 2rem;
  }
}

@media (max-width: 768px) {
  .theme-toggle {
    top: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
  }

  .theme-toggle svg {
    width: 18px;
    height: 18px;
  }
}



/* Update existing @media (max-width: 640px) with these additions */
@media (max-width: 640px) {
  .theme-toggle {
    left: 0.9rem;
    width: 32px;
    height: 32px;
  }
  
  .sun-icon, .moon-icon {
    width: 20px;
    height: 20px;
  }
  
  .page-title {
    font-size: 2rem;
  }

  .research-intro {
    font-size: 1rem;
  }

  .research-subtitle {
    font-size: 0.95rem;
  }

  .nav-links {
    gap: 0.4rem;
  }
  
  .nav-links a {
    font-size: 1rem;
  }

  nav {
    padding: 1rem;
  }

  footer {
    padding: 1rem;
  }

  .paper-title {
    font-size: 1.2rem;
  }

  .paper-meta {
    font-size: 1rem;
  }

  .paper-card {
    padding: 1.5rem;
  }
  
  .paper-image {
    height: 180px;
  }
  
  /* .paper-type {
    font-size: 0.85rem;
    padding: 0.25rem 0.7rem;
  } */
  
  main {
    padding: 1.5rem 1rem 4rem 1rem;
  }
  
  .chatbot-button {
    padding: 0.7rem 1.5rem;
  }
}

/* Extra small devices */
@media (max-width: 380px) {
  .nav-links a {
    font-size: 0.9rem;
  }
  
  .page-title {
    font-size: 1.8rem;
  }
  
  .paper-title {
    font-size: 1.1rem;
  }
  
  .paper-meta {
    font-size: 0.95rem;
  }
  
  .paper-card {
    padding: 1.2rem;
  }
  
  .paper-image {
    height: 160px;
  }

  .theme-toggle {
  width: 30px;
  height: 30px;
}
}

      /* Light mode styles */
      body.light-mode {
        background-color: #fff;
        color: #000;
      }

      body.light-mode nav,
      body.light-mode .theme-toggle,
      body.light-mode .nav-links a {
        color: #000;
      }

      body.light-mode .theme-toggle {
        border-color: #000;
      }

      body.light-mode .sun-icon circle,
      body.light-mode .sun-icon line {
        fill: #000;
        stroke: #000;
      }

      body.light-mode .paper-card {
        background-color: #f5f5f5;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
      }

      body.light-mode .paper-card:hover {
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
      }

      body.light-mode .research-intro {
        color: #555;
      }

      body.light-mode .research-subtitle {
        color: #666;
      }

      body.light-mode .paper-meta {
        color: #555;
      }

      body.light-mode .chatbot-button {
        background-color: #5a7a6f;
        color: #fff;
      }

      body.light-mode .chatbot-button:hover {
        background-color: #6a8a7f;
      }

      body.light-mode .scroll-top {
        border-color: #000;
        color: #000;
      }

      body.light-mode .sun-icon {
        display: none;
      }

      .moon-icon {
        display: none;
        width: 24px;
        height: 24px;
      }

      body.light-mode .moon-icon {
        display: block;
      }
