/* ── Contact section & footer ──────────────────────────────────── */

#contact {
  text-align: center;
  padding-block: clamp(3rem, 7vw, 6rem);
}

.contact-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: clamp(2rem, 5vw, 3.5rem);
  max-width: 580px;
  margin-inline: auto;
}

.contact-box h2 {
  margin-bottom: .7rem;
}

.contact-mail {
  display: inline-block;
  margin-top: 1.6rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(79, 142, 247, .1);
  border: 1px solid rgba(79, 142, 247, .25);
  border-radius: var(--radius);
  padding: .75em 1.6em;
  transition: background .2s, transform .15s;
}

.contact-mail:hover {
  background: rgba(79, 142, 247, .2);
  transform: translateY(-1px);
}

/* ── Footer ────────────────────────────────────────────────────── */

footer {
  border-top: 1px solid var(--border);
  padding-block: 1.8rem;
  color: var(--muted);
  font-size: .8rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-copy {
  line-height: 1.6;
}

.footer-mail {
  color: var(--muted);
  font-size: .8rem;
  white-space: nowrap;
  transition: color .2s;
}

.footer-mail:hover {
  color: var(--accent);
}

/* ── Footer author logo + name link ────────────────────────────── */

.footer-author-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.author-logo {
  display: block;
  height: 50px;
  width: 50px;
  object-fit: contain;
  padding: 4px;
  background: #ffffff;
  border-radius: 16%;
  opacity: .75;
  transition: opacity .2s;
}

.footer-author-logo:hover .author-logo {
  opacity: 1;
}

.footer-author-name {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .2s, color .2s;
}

.footer-author-name:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
