/* --- Navbar: avatar as brand, content constrained to the page container --- */
.navbar-custom {
  padding-left: 0;
  padding-right: 0;
}
/* Bootstrap makes any .container-md inside a .navbar a flex box, which shrink-wraps the row */
.navbar-custom .container-md {
  display: block;
}
.navbar-custom .navbar-brand {
  padding-top: 0.3125rem;
  padding-bottom: 0.3125rem;
}
.navbar-custom .navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.navbar-custom .nav-brand-text {
  font-size: 1.125rem;
  font-weight: 800;
  white-space: nowrap;
}
.navbar-custom .navbar-brand:hover,
.navbar-custom .navbar-brand:focus,
.navbar-custom .navbar-nav .nav-link:hover,
.navbar-custom .navbar-nav .nav-link:focus {
  color: rgba(255, 255, 255, 0.75);
}
.navbar-custom .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.5);
}
.navbar-custom .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.navbar-custom .nav-avatar {
  display: block;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9);
}
@media (min-width: 1200px) {
  .navbar-custom .navbar-brand {
    padding-top: 0;
    padding-bottom: 0;
  }
  .navbar-custom .nav-avatar {
    width: 3.125rem;
    height: 3.125rem;
  }
}

/* --- Projects list --- */
.project {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 0 0 1.5rem 0;
}
.project-logo {
  flex: 0 0 150px;
  width: 150px;
  height: 80px;
  box-sizing: border-box;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f4f4f4;
  border: 1px solid #e3e3e3;
  border-radius: 6px;
}
.project-logo.dark {
  background: #333;
  border-color: #333;
}
.project-logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.project-body h3 {
  margin: 0 0 0.35rem 0;
  font-size: 1.25rem;
}
.project-body p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
}
@media (max-width: 575px) {
  .project { align-items: flex-start; }
  .project-logo { flex-basis: 110px; width: 110px; height: 60px; padding: 6px 10px; }
}

/* --- Project screenshots --- */
.project { align-items: flex-start; }
.project-screenshot {
  display: block;
  max-width: 480px;
  margin-top: 0.75rem;
  padding: 4px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
  transition: box-shadow 0.15s ease-in-out;
}
.project-screenshot:hover {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}
.project-screenshot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 3px;
}

/* --- Footer on green: icon glyphs take the footer colour --- */
footer .footer-links .fa-inverse {
  color: #2e8b57;
}
footer .copyright,
footer .theme-by {
  color: rgba(255, 255, 255, 0.85) !important;
}

/* --- Project years + pixel logos --- */
.project-years {
  font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 0.8rem;
  font-weight: 400;
  color: #888;
  margin-left: 0.4rem;
  white-space: nowrap;
}
.project-logo img.pixel {
  image-rendering: pixelated;
  max-height: 60px;
}
