html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* ---- Portfolio theme ------------------------------------------------ */
.hero {
  background: linear-gradient(160deg, #1f2430 0%, #2b3242 100%);
  color: #f3f5f9;
  border-radius: 16px;
  padding: 3.5rem 2rem;
}
.hero .text-muted { color: #c4ccda !important; }

.project-card {
  border: 1px solid #e6e8ec;
  border-radius: 12px;
  padding: 1.25rem;
  background: #fff;
  transition: box-shadow .12s ease, transform .12s ease;
}
.project-card:hover { box-shadow: 0 6px 18px rgba(31,36,48,.12); transform: translateY(-2px); }

.project-card-link { cursor: pointer; }

.badge {
  background: #2b3242;
  color: #fff;
  font-weight: 500;
  margin: 0 .15rem .3rem 0;
}

.footer { background: #f7f8fa; }

/* ---- Project detail page -------------------------------------------- */
.project-hero {
  background: linear-gradient(160deg, #1f2430 0%, #2b3242 100%);
  color: #f3f5f9;
  border-radius: 16px;
  padding: 2.5rem 2rem;
}
.project-hero .text-muted { color: #c4ccda !important; }
.project-hero .lead { color: #e7ebf2; }

.feature-card {
  border: 1px solid #e6e8ec;
  border-radius: 12px;
  padding: 1rem 1.1rem;
  background: #fff;
}

.project-aside {
  border: 1px solid #e6e8ec;
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
  background: #f7f8fa;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}
.screenshot { margin: 0; }
.screenshot img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid #e6e8ec;
  display: block;
}
.screenshot figcaption { margin-top: .35rem; }

.screenshot-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  border: 2px dashed #cfd4dc;
  border-radius: 10px;
  color: #9aa3b1;
  background: repeating-linear-gradient(
    45deg, #f7f8fa, #f7f8fa 12px, #f1f3f6 12px, #f1f3f6 24px);
  font-size: .85rem;
}