/* ===========================================================
  Tools & Contact Section
  Tools reuses the contact layout so the two read as one closing block:
  big break after Projects -> Tools -> small gap -> Contact
  =============================================================*/
.tools {
  display: flex; flex-direction: column; align-items: center;
  gap: 1.25rem;
  padding: clamp(5rem, 12vh, 9rem) 1.5rem 0; /* top = space after the projects gallery */
  text-align: center;
}

.badge-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
  max-width: 720px; /* wraps into a neat centered block instead of one long row */
}
.badge{
  visibility: hidden;
  opacity: 0;
  height: 28px; /* standard height boost, remove or set to auto if default height is fine */
  width: auto;
}
/* .badge-container img {
  
} */

.small__title { font-size: clamp(2rem, 5vw, 3rem); font-weight: 400;
    font-family: var(--font-pixel);
    text-transform: uppercase;
}

.contact {
  display: flex; flex-direction: column; align-items: center;
  gap: 1.25rem; padding: clamp(3rem, 6vh, 4rem) 1.5rem 4rem; text-align: center;
  color: var(--navy);
  width: 100%;
  margin-top: clamp(4rem, 10vh, 8rem);
}


.contact__email {
  position: relative; font: 600 clamp(1.1rem, 2.5vw, 1.5rem) var(--font-sans);
  color: var(--text); background: none; border: 0; cursor: pointer;
  
}
.contact__copied {
  position: absolute; left: 50%; top: 100%; translate: -50% 8px;
  font-size: .9rem; opacity: 0; transition: opacity .2s; pointer-events: none;
}
.contact__copied.is-shown { opacity: 1; }

.contact__links { display: flex; gap: 1rem; list-style: none; padding: 0; margin: 0; }
.icon-link {
  display: grid; place-items: center; width: 48px; height: 48px;
  border-radius: 50%; color: var(--navy); text-decoration: none;
  transition: transform .2s;
}
.icon-link:hover, .icon-link:focus-visible { transform: translateY(-3px) scale(1.06); }
.icon { width: 22px; height: 22px; }
/* small screens: tighter spacing, and the long email address shouldn't push past the edge */
@media (max-width: 700px) {
  .tools {
    padding: 4rem 1.25rem 0;
  }
  .badge-container {
    gap: 6px;
  }
  .badge-container img {
    height: 24px;
  }
  .contact {
    padding: 2.5rem 1.25rem 3rem;
  }
  .contact__email {
    overflow-wrap: anywhere;
  }
}


/* short landscape phones: vh-based gaps get tiny, so use fixed values */
@media (max-height: 560px) and (orientation: landscape) {
  .tools {
    padding-top: 4rem;
  }
  .contact {
    padding-top: 2.5rem;
  }
}
