/* Ensure no scrolling */
html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: Arial, sans-serif;
}

.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  width: 100%;
  background-color: #f8d9d6;
  box-sizing: border-box;
}

.typing-wrapper {
  display: flex;
  justify-content: center;
}

.typing {
  font-size: 1.5rem;
  font-family: monospace;
  white-space: nowrap;
  overflow: hidden;
  border-right: 2px solid #333;
  animation: typing 2.5s steps(16, end) forwards, blink 0.75s step-end infinite;
  width: 0;
}

.typing.done {
  border-right: none;
}

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 16ch;
  }
}

.main-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.portrait {
  width: 250px;
  height: 250px;
  margin-bottom: 10px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #f8d9d6;
  animation: pulse-border 2s infinite ease-in-out;
}

.services {
  text-align: center;
  margin: 1rem;
}

.services ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.services li {
  margin: 0.5rem 0;
}

.services a {
  text-decoration: none;
  background-color: #ffe0dc;
  padding: 1rem;
  border-radius: 8px;
  display: block;
  color: #333;
  font-weight: bold;
  transition: background-color 0.3s;
  width: 100vw;
  max-width: 300px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.1rem;
}

.services a:hover {
  background-color: #ffcfc6;
}

footer {
  width: 100vw;
  margin-top: auto;
  padding: 0.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: black;
  background-color: #ffcfc6;
}

@media (min-width: 768px) {
  .typing {
    font-size: 2rem;
  }

  .main-content {
    flex: 1;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    margin-top: 120px;
    gap: 6rem;
    padding: 0 2rem;
    flex-wrap: wrap;
  }

  .services {
    margin-top: 15px;
  }
}

@media (min-width: 1024px) {
  .typing {
    font-size: 2.5rem;
  }
}
