@import url("https://fonts.googleapis.com/css2?family=Space+Mono&display=swap");

#about {
  padding: 0;
  margin: 0;
  background: #e7e5e4;
  height: 100vh;
}

#about h1 {
  text-transform: uppercase;
}

.about-title {
  padding: 0px;
  font-size: 5em;
  font-weight: 1000;
  letter-spacing: 0.1em;
  color: #131313;
  text-align: center;
  margin-bottom: 2rem;
}

.about-content {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width: 70%;
  margin: 0 auto;
  gap: 5rem;
  color: #121516;
}

.about-description {
  align-items: center;
  text-align: justify;
}

.text-block {
  word-wrap: break-word;
  margin: 0 auto;
  max-width: 80dvw;
  font-family: "Space Mono", monospace;
  font-weight: 200;
  font-style: normal;
  font-size: 1.5rem;
  color: #131313;
}

.word {
  display: inline-block;
  white-space: nowrap;
  margin-right: 0.4em;
}

/* Ensure the last word in a line doesn't affect justification */
.justified-word:last-child {
  margin-right: 0;
}

.char {
  will-change: transform;
  display: inline-block; /* Keep characters together */
}

/* Ensure paragraphs have proper spacing */
.text-block p {
  margin-bottom: 1em;
}

/* Tablet Responsive */
@media screen and (max-width: 1024px) {
  .about-title {
    font-size: 3em;
    margin-bottom: 1.5rem;
  }

  .about-content {
    width: 85%;
    height: 100vh;
  }

  .text-block {
    max-width: 85dvw;
    font-size: 1.2rem;
  }
}

/* Mobile Responsive */
@media screen and (max-width: 768px) {
  .about-title {
    font-size: 5.5em;
    margin-bottom: 0rem;
  }

  .about-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 90%;
    height: 100vh;
    gap: 0rem;
    color: #121516;
  }

  .about-description {
    text-align: center;
    width: 100%;
  }

  .text-block {
    max-width: 90dvw;
    font-size: 1rem;
    text-align: left;
  }

  .text-block p {
    margin-bottom: 0.8em;
  }
}

/* Additional mobile styles for about section */
@media (max-width: 768px) {
  .mobile-device .about-content {
    padding: auto;
    margin: auto;
  }

  .mobile-device .text-block {
    overflow-wrap: break-word;
    hyphens: auto;
  }
}

/* Small Mobile Devices */
@media screen and (max-width: 480px) {
  .about-title {
    padding: 0;
    margin: 0;
    font-size: 2em;
    letter-spacing: 0.05em;
  }

  .about-content {
    margin: 0;
    padding: 0;
  }

  .text-block {
    max-width: 95dvw;
    font-size: 0.9rem;
  }

  /* Text block paragraphs get tighter spacing on small screens */
  .text-block p {
    margin-bottom: 0.6em;
  }

  .mobile-wrap br {
    display: none;
  }
}

/* Extra Small Mobile Devices */
@media screen and (max-width: 320px) {
  .about-title {
    font-size: 1.8em;
  }

  .text-block {
    font-size: 0.8rem;
  }
}
