/* about-overlay.css */
/* Overlay container */
.about-overlay {
  position: fixed;
  display: none;
  top: 0;
  left: 0;
  width: 100vw;
  height: 93vh;
  background: rgba(176, 246, 255, 0.1); /* light transparent veil */
  backdrop-filter: blur(6px); /* veil effect */
  -webkit-backdrop-filter: blur(6px); /* for Safari */
  z-index: 9999;
  justify-content: center;
  align-items: flex-start;
  padding-top: 2em;
  padding-bottom: 7vh;
  font-family: "Crimson Pro", serif;
  color: #f5f5f5;
  overflow-y: auto;
  font-size: 16px; /* Local em scale */
}

/* Inner content wrapper */
.about-content {
  background: rgba(0, 25, 37, 0.6);
  max-width: 90vw;
  width: 37.5em;
  text-align: center;
  position: relative;
  animation: fadeIn 1s ease;
  padding: 1.5em;
  border-radius: 0.625em;
  margin-bottom: 0.5em;
}

/* Sigil image */
.sigil-glow {
  display: flex;
  justify-content: center;
  margin: 0.4em auto;
}

.sigil-mask {
  position: relative;
  margin: 0 auto;
  width: 3.75em;
  height: 3.75em;
  -webkit-mask-image: url("./assets/about-me/hand-symbol.png");
  -webkit-mask-size: cover;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-image: url("./assets/about-me/hand-symbol.png");
  mask-size: cover;
  mask-repeat: no-repeat;
  mask-position: center;
}

.glow-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(1.3) blur(1px);
}

/* Title heading */
.about-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 2em;
  margin-bottom: 0.5em;
  color: #fefefe;
}

/* Portrait styling */
.portrait-wrapper {
  margin-bottom: 0.5em;
}

.about-portrait {
  width: 10em;
  height: 10em;
  object-fit: cover;
  border-radius: 50%;
  opacity: 0.9;
  filter: grayscale(20%) brightness(1.1);
  border: 0.125em solid rgba(255, 255, 255, 0.05);
}

/* Text block */
.about-text {
  font-size: 1.2em;
  line-height: 1.3;
  color: #f0f0f0;
  margin: 1em 0;
}

.about-text p {
  display: block;
  text-align: left;
  margin: 0.5em 0;
  font-size: 1em;
}

.about-contact-container {
  margin-top: 1em;
  margin-bottom: 1em;
  text-align: center;
}

.about-contact-container p {
  text-align: center;
  margin-bottom: 1em;
  font-size: 1em;
  line-height: 1.4;
  opacity: 1;
}

.about-contact-textual {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 1.8em;
  margin-top: 0.8em;
  margin-bottom: 0.8em;
  font-family: "Crimson Pro", serif;
  text-align: center;
}

.contact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sacred-label {
  font-size: 1em;
  font-weight: 400;
  letter-spacing: 0.5px;
  color: #b3b3b3;
  opacity: 0.85;
}

.contact-detail a {
  margin-top: 0.3em;
  font-size: 1.1em;
  font-weight: 300;
  color: #ffffff;
  text-decoration: none;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.contact-detail a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* Close button */
.close-about {
  position: absolute;
  top: 1.5em;
  right: 1.5em;
  background: none;
  border: none;
  color: #ccc;
  font-size: 1.8em;
  cursor: pointer;
  transition: color 0.3s ease, transform 0.3s ease;
}

.close-about:hover {
  color: #fff;
  transform: scale(1.1);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(1.25em);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 600px) {
  .about-content {
    width: 90%;
    padding: 1em;
  }

  .sigil-glow {
    margin: 0.5em 0;
  }

  .about-title {
    font-size: 1.5em;
    margin-bottom: 0.5em;
  }

  .portrait-wrapper {
    margin-bottom: 0.8em;
  }

  .about-text {
    font-size: 1em;
    line-height: 1.3;
    margin: 1em 0;
  }

  .about-text p {
    font-size: 1em;
    line-height: 1.3;
    margin: 0.4em 0;
  }

  .about-contact-container {
    margin-top: 1.5em;
    margin-bottom: 1.5em;
  }

  .about-contact-textual {
    flex-direction: column;
    gap: 1em;
    margin-top: 0.8em;
    margin-bottom: 0.8em;
  }

  .about-contact-container p {
    font-size: 0.9em;
    margin-bottom: 1em;
  }

  .sacred-label {
    font-size: 0.95em;
  }

  .contact-detail a {
    font-size: 1em;
  }
}
