.contact-content {
  display: flex;
  height: 100%;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.5rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: repeat(4, auto);
  gap: 1rem;
}

.contact-item {
  position: relative;
  width: fit-content;
  border-radius: 0.375rem;
  padding: 1rem;
  text-decoration: none;
  color: var(--whiteish);
  transition: all 0.3s ease;

  &:not(:last-child) {
    cursor: pointer;
  }
}

.contact-item h2 {
  font-weight: 600;
  margin-bottom: 0.25rem;
  font-size: 1rem;
}

.contact-item p {
  color: var(--greyish);
}

.corner-borders {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.contact-item:hover .corner-borders {
  opacity: 1;
}

.corner {
  position: absolute;
  width: 0.75rem;
  height: 0.75rem;
  border: 2px solid var(--whiteish);
}

.corner.top-left {
  left: 0;
  top: 0;
  border-bottom: 0;
  border-right: 0;
}

.corner.top-right {
  right: 0;
  top: 0;
  border-bottom: 0;
  border-left: 0;
}

.corner.bottom-right {
  bottom: 0;
  right: 0;
  border-top: 0;
  border-left: 0;
}

.corner.bottom-left {
  bottom: 0;
  left: 0;
  border-top: 0;
  border-right: 0;
}

.email-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(50%);
  z-index: 50;
  margin: 0 1rem;
  opacity: 0;
  transition: all 0.3s ease;
}

.email-toast .toast-container {
  border-radius: 9999px;
  border: 1px solid rgba(244, 244, 244, 0.2);
  background-color: rgba(20, 20, 20, 0.95);
  padding: 0.5rem 1rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(4px);
}

.email-toast .toast-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.email-toast .toast-indicator {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background-color: #4ade80;
}

.email-toast .toast-text {
  font-size: 0.75rem;
  color: var(--whiteish);
}

.email-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 0 0 2.5rem 0;
  }

  .contact-item.github {
    grid-column-start: 1;
    grid-row-start: 2;
  }

  .contact-item.placeholder {
    grid-column-start: 2;
    grid-row-start: 2;
  }
}