/* Base Typography and Layout */
body {
  font-size: 14px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease-in;
}

#header-placeholder {
  min-height: 100px;
}

@media (max-width: 768px) {
  #header-placeholder {
    min-height: 120px;
  }
}

/* Header Elements */
img.profile {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 0.5em;
  display: block;
}

#header-placeholder h2 {
  font-size: 1.5rem;
  margin-top: 0.5rem;
}

/* Info List */
#infolist ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#infolist ul li {
  padding-top: 10px;
}

ul.clean-list {
  list-style-type: none;
  padding-left: 0;
  margin-left: 0;
}

ul.clean-list li {
  margin-bottom: 1em;
}

/* Software Section */
.software li {
  padding-bottom: 8px;
}

/* Publications Section */
.papers ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.papers ul li {
  padding-top: 8px;
  padding-bottom: 8px;
}

/* Navigation Styling */
.nav-pills .nav-link {
  color: #333;
  background-color: transparent;
  transition: background-color 0.3s ease;
}

.nav-pills .nav-link:hover {
    color: #5fa6ed; /* existing blue for hover */
  text-decoration: underline;
  background-color: transparent;
}

.nav-links .nav-link.active {
  background-color: #dee2e6; /* light grey */
  color: #000;
}

/* SVG Icons */
.svg-icon {
  width: 40px;
  height: 40px;
  display: inline-block;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}

.svg-icon.github {
  background-image: url(github.svg);
}

.svg-icon.twitter {
  background-image: url(twitter.svg);
}

.svg-icon.scholar {
  background-image: url(googlescholar.svg);
}

/* Mobile nav layout */
.responsive-nav {
  display: flex;
  flex-direction: column;
}

.nav-toggle {
  display: none;
  background-color: #f8f9fa;
  border: 1px solid #ccc;
  padding: 6px 12px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 4px;
  margin-bottom: 10px;
  text-align: left;
}

.nav-links {
  display: flex;
  flex-direction: column;
}

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

  .nav-links {
    display: none;
    flex-direction: column;
  }

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

  .nav-item.nav-link {
    padding: 8px 0;
  }

  /* Preserve active highlight on mobile */
  .nav-item.nav-link.active {
    background-color: #dee2e6;
    color: #000;
  }
}

.card-img-top {
  transition: transform 0.3s ease;
}

.card-img-top:hover {
  transform: scale(1.03);
}

#lightbox-close {
  top: 0.5rem;
  right: 1rem;
  font-size: 2.5rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5em;
  margin-top: 2em;
}

.card {
  border: 1px solid #ddd;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
}

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

.card-body {
  padding: 1em;
}

.card-body h4 {
  margin-top: 0;
  margin-bottom: 0.5em;
  font-size: 1.1em;
}

.card-img-nightoncall {
  background: #14b8a6 linear-gradient(180deg, #14b8a6 0%, #129aa1 100%);
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-img-feedback {
  background: #3b82f6 linear-gradient(180deg, #3b82f6 0%, #1d4ed8 100%);
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-img {
  max-height: 220px;
  max-width: 220px;
  object-fit: contain;
}