.hero-section {
  background-image: url(../img/lighthouse-2372461_1920.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  height: 100vh;
  margin-top: -10vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  box-sizing: border-box;
}

@keyframes fade-out {
  from {
    scale: 1;
    opacity: 1;
  }
  to {
    scale: 1;
    opacity: 0;
  }
}

.hero-button,
.hero-p {
  font-family: "Roboto Slab", serif;
  font-size: 20px;
}

.hero-button {
  width: 40vw;
  max-width: 300px;
  background-color: #ffffff75;
  border-radius: 10px;
  padding: 12px 30px;
  cursor: pointer;
  color: black;
  text-decoration: none;
  text-align: center;
  border: none;
}

.hero-button:hover {
  background-color: #fff;
}

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes blink {
  50% {
    background-color: transparent;
  }
}

.typeWriter {
  display: flex;
  justify-content: center;
  align-items: center;
  color: rgba(55, 51, 52, 255);
  width: 100%;
  text-align: center;
  margin-top: 46.6vh;
}

.typeWriter p {
  font-family: "Roboto Slab", serif;
  font-size: 1.5rem;
  overflow: hidden;
  width: fit-content;
  white-space: nowrap;
  border-right: 1px solid;
  animation: typing 3s steps(46) forwards 1.3s, blink 1s step-end infinite;
}

/* Responsive design */
@media (max-width: 768px) {
  .typeWriter {
    margin-top: 38.5vh;
  }
  .typeWriter p {
    font-size: 1.2rem;
  }
}

@media (max-width: 500px) {
  .hero-section {
    background-position: 70%;
  }
  .typeWriter {
    margin-top: 36.5vh;
  }
  .typeWriter p {
    font-size: 1rem;
  }
  .hero-button {
    padding: 8px 20px;
    font-size: 14px;
  }
}

@media (max-width: 425px) {
  .hero-section {
    background-position: 75%;
  }
  .typeWriter {
    margin-top: 35.4vh;
  }
  .typeWriter p {
    font-size: 0.8rem;
  }
  .hero-button {
    padding: 8px 20px;
    font-size: 10px;
  }
}

@media (max-width: 320px) {
  .hero-section {
    background-position: 75%;
  }
  .typeWriter {
    margin-top: 35.9vh;
  }
  .typeWriter p {
    font-size: 0.8rem;
  }
  .hero-button {
    padding: 8px 20px;
    font-size: 10px;
  }
}
