@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,300;0,400;0,500;1,300;1,400&family=Poppins:ital,wght@0,200;0,300;0,400;1,200;1,300&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* CONTACT SECTION */
.contact-body {
  width: 100%;
  background-color: #1a1a1a;
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  padding: 140px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-container {
  width: min(100%, 900px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 80px;
  border-bottom: 1px solid var(--color-line, rgba(255, 255, 255, 0.15));
}

.contact-label {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-dim, #8a8a8a);
  margin-bottom: 24px;
}

.contact-email {
  font-family: 'Poppins', sans-serif;
  font-weight: 300;
  font-size: clamp(1.5rem, 7vw, 4.5rem);   /* lower min so it can shrink further */
  letter-spacing: -0.01em;
  color: #fff;
  text-decoration: none;
  position: relative;
  display: inline-block;
  max-width: 100%;         /* add */
  word-break: break-word;  /* add — wraps instead of overflowing */
  text-align: center;      /* add */
  transition: color 0.4s ease;
}

.contact-email::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background-color: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s ease;
}

.contact-email:hover {
  color: var(--color-section-2, #a9c2cf);
}

.contact-email:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.contact-row {
  width: min(100%, 900px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 56px;
  flex-wrap: wrap;
  gap: 24px;
}

.contact-socials {
  display: flex;
  gap: 28px;
}

.contact-socials a {
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.02em;
  color: var(--color-dim, #8a8a8a);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-socials a:hover {
  color: #fff;
}

.contact-meta {
  text-align: right;
}

.contact-meta p {
  font-size: 12px;
  font-weight: 300;
  color: var(--color-dim, #8a8a8a);
  line-height: 1.6;
}

.contact-footer {
  width: min(100%, 900px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
}

.contact-footer p {
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.02em;
  color: var(--color-dim, #8a8a8a);
}

.back-to-top {
  cursor: pointer;
  transition: color 0.3s ease;
}

.back-to-top:hover {
  color: #fff;
}

@media (max-width: 640px) {
  .contact-body {
    padding: 100px 20px;
  }

  .contact-email {
    font-size: clamp(1.3rem, 8vw, 2.5rem);
  }

  .contact-row,
  .contact-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .contact-meta {
    text-align: left;
  }

  .contact-footer {
    text-align: center;
    align-items: center;
  }
}