/* ============================
   Base Styles
============================ */
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(to right, #f0f4f8, #d9e2ec);
  min-height: 100vh;
  padding-top: 70px; /* spacing for fixed navbar */
}

/* ============================
   Fixed Top Navigation Bar
============================ */
.navigation {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: #ffffff;
  border-bottom: 1px solid #ccc;
  padding: 0.5rem 0;
  text-align: center;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.navigation a {
  margin: 0 15px;
  text-decoration: none;
  color: #0077b6;
  font-weight: bold;
  font-size: 1.1em;
  transition: color 0.3s ease;
}

.navigation a:hover {
  color: #023e8a;
}

/* ============================
   Main Container
============================ */
.container {
  text-align: center;
  background-color: white;
  box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  max-width: 800px;
  width: 90%;
  margin: 2rem auto;
  padding: 2rem;
}

/* ============================
   Profile Section
============================ */
.profile-pic {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 1rem;
  border: 4px solid #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* ============================
   Text and Typography
============================ */
h1 {
  margin: 0.5rem 0;
  color: #333;
}

p {
  color: #555;
  font-size: 1.1em;
  margin-bottom: 20px;
}

.justified-text {
  text-align: justify;
  color: black;
  font-size: 1.1em;
  line-height: 1.6;
  margin: 1.5rem auto;
  max-width: 90%;
}

.centered-text {
  text-align: center;
}

/* ============================
   Social Media Icons
============================ */
.social-icons {
  margin-top: 1.5rem;
}

.social-icons a {
  text-decoration: none;
  margin: 0 10px;
  font-size: 1.6em;
  color: #333;
  transition: transform 0.2s ease, color 0.2s ease;
}

.social-icons a:hover {
  transform: scale(1.2);
  color: #0077b6;
}

/* ============================
   CV Button Styling
============================ */
.cv-button {
  display: inline-block;
  padding: 10px 20px;
  margin-top: 1rem;
  background-color: #0077b6;  /* Blue background */
  color: white !important;    /* Force white text */
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.cv-button:hover {
  background-color: #023e8a;
  color: white !important;    /* Ensure it stays white on hover too */
}

/* ============================
   Utility Classes
============================ */
.dark-blue {
  color: #003366;
}

.black {
  color: #000000;
}

.centered-line {
  width: 100%;
  max-width: 1000px;
  margin: 2rem auto;
  border: none;
  border-top: 2px solid #ccc;
}

.centered-thick-line {
  width: 100%;
  max-width: 1000px;
  margin: 2rem auto;
  border: none;
  border-top: 4px solid #000;
}

.small-heading {
  font-size: 1.3rem;
}

/* ============================
   Skills Table
============================ */
.skills-table {
  max-width: 1000px;
  margin: 2rem auto;
  font-size: 1.1rem;
  border-spacing: 0 0.5rem;
}

.skills-table td:first-child {
  white-space: nowrap;
  vertical-align: top;
  padding-right: 0.5rem;
  font-weight: bold;
  color: #0077b6;
  text-align: right;
  width: 220px;
}

.skills-table td:last-child {
  text-align: left;
}

/* ============================
   About Page Specific Styles
============================ */

.about-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem;
  padding-bottom: 6rem; /* ensures content doesn't clash with fixed nav */
  }

/* ================================
Top grey bar that should touch nav
================================== */
.top-bar {
  background-color: #ccc;
  margin: 0;      /* Ensure no gap */
  padding: 0;     /* Adjust if needed */
  width: 100%;
  }

.top-bar-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem;
  font-weight: bold;
  font-size: 2rem;
  color: #333;
  text-align: left;
  }

    .nested-list {
      margin-left: 1.5rem;
    }

    h2 {
      color: #0077b6;
      margin-top: 2rem;
    }

    ul, p {
      font-size: 1.1rem;
      line-height: 1.6;
      text-align: justify;
    }

    ul {
      padding-left: 1.5rem;
    }

/* ================================
publication link
================================== */

.publication-link {
  display: block;
  text-decoration: none;
  color: #333;
  font-size: 1.1rem;
  line-height: 1.6;
  text-align: justify;
  margin-bottom: 1.5rem;
}

.publication-link:hover {
  color: #0077b6;
  text-decoration: underline;
}

.publications-list {
  max-width: 1000px;
  margin: 2rem auto;
  padding-left: 2rem;
  font-size: 1.1rem;
  line-height: 1.6;
}

.publications-list li {
  margin-bottom: 1.5rem;
}

.publications-list a {
  text-decoration: none;
  color: #003366;
}

.publications-list a:hover {
  color: #0077b6;
  text-decoration: underline;
}

.cover-link {
  font-size: 0.95rem;
  color: #0077b6;
  text-decoration: underline;
  display: inline-block;
  margin-top: 5px;
}
.cover-link:hover {
  color: #023e8a;
}

/* ================================
Cover page in the background of publication
================================== */

body.publications-page {
  position: relative;
  background: linear-gradient(to right, #f0f4f8, #d9e2ec);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Animated background layer */
body.publications-page::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('images/JPCB-coverpage.jpg');
  background-repeat: no-repeat;
  background-size: contain;
  background-position: left top;
  opacity: 1;
  animation: moveAndFade 10s ease-out forwards;
  z-index: 0;
}

/* Content stays above background */
.publication-container {
  background: rgba(255, 255, 255, 0.6); /* semi-transparent white */
  backdrop-filter: blur(10px);         /* frosted glass blur */
  -webkit-backdrop-filter: blur(10px); /* for Safari */
  max-width: 1000px;
  margin: 40px auto 3rem auto;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 1;
}

/* Animation: slide image to the right and fade to 60% opacity */
@keyframes moveAndFade {
  0% {
    background-position: left top;
    opacity: 1;
  }
  100% {
    background-position: right top;
    opacity: 0.4;
  }
}

/* Frosted glass only on publication page */
.publications-page .top-bar {
  background-color: rgba(204, 204, 204, 0.4); /* semi-transparent grey */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  z-index: 999;
  position: relative;
}

/* ============================
   Research Project Sections
============================ */

.research-content {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 0 20px;
}

.project {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
  padding: 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.project-content {
  flex: 1;
  padding-right: 20px;
}

.project-content h2 {
  margin-top: 0;
  color: #0077b6;
}

.project img {
  width: 300px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Poster download/view button */
.poster-link {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 12px;
  background: #4b7bec;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  transition: background 0.3s;
}

.poster-link:hover {
  background: #3867d6;
}

/* ============================
   Resources Project Sections
============================ */

.top-bar {
  background-color: #e0e0e0;
  padding: 15px 0;
  text-align: center;
  font-weight: bold;
  font-size: 1.4em;
  color: #333;
  margin-top: 60px;
  box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.1);
}

.research-content {
  padding: 40px 10%;
}

.resource-block {
  background-color: #f5f5f5;
  padding: 20px;
  margin: 30px 0;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.resource-block h2 {
  color: #2c3e50;
  border-bottom: 2px solid #ccc;
  padding-bottom: 10px;
  margin-bottom: 15px;
}

.resource-block ul {
  list-style-type: disc;
  margin-left: 20px;
}

.resource-block a {
  color: #0077cc;
  text-decoration: none;
}

.resource-block a:hover {
  text-decoration: underline;
}

/* ============================
============================ */

#tricks details summary {
  list-style: disc;
  cursor: pointer;
  font-size: 1em;
  color: inherit;
}

#tricks details {
  margin-left: 1.5em;
}

#tricks details summary::-webkit-details-marker {
  display: none; /* hides default arrow */
}

#tricks details summary::before {
  content: "• "; /* adds bullet like <li> */
}
