/* Links section specific styles */
#links { padding: 40px 20px; position: relative; }
.links-list { text-align: center; }
.links-list ul { list-style: none; display: inline-flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.links-list a { color: #B8C1C7; text-decoration: none; transition: color 0.2s ease, transform 0.2s ease; }
.links-list a:hover { color: #FFF; transform: translateY(-2px); }
.links-list .contact-link { cursor: pointer; }

.contact-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(2, 8, 12, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 2000;
}

.contact-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.contact-modal {
  position: relative;
  width: min(100%, 420px);
  padding: 32px 28px 28px;
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(8, 24, 34, 0.98), rgba(6, 17, 25, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.35);
  transform: translateY(20px) scale(0.98);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(.22, .61, .36, 1), opacity 0.35s ease;
}

.contact-overlay.is-visible .contact-modal {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.contact-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #F1E9E1;
  font-size: 1.3rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.contact-close:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: rotate(90deg);
}

.contact-modal h2 {
  margin-bottom: 24px;
  color: #F1E9E1;
  font-size: 1.5rem;
  text-align: center;
}

.contact-modal p {
  color: #D7D2CA;
  margin-bottom: 8px;
  text-align: center;
}

.contact-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #F1E9E1;
}

.contact-role {
  margin-bottom: 18px;
}

.contact-link-item {
  display: inline-block;
  margin-top: 10px;
  color: #B8C1C7;
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-link-item:hover {
  color: #FFF;
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 640px) {
  .contact-modal {
    padding: 28px 22px 24px;
  }
}
