.hero {
  background-image: url(../images/hero.png);
  background-size: cover;
  background-position: left;
  background-repeat: no-repeat;
  height: 100vh;
  position: relative;
  overflow: hidden;
}

.hero-div {
  width: clamp(300px, 50vw, 800px);
  height: 60vh;

  position: absolute;
  top: 40px;
  right: 40px;

  backdrop-filter: blur(4px);
  border-radius: clamp(20px, 10vw, 80px);

  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
}

.hero-h1 {
  font-family: "MedievalSharp", serif;
  font-size: clamp(2rem, 8vw, 6rem);
  color: #343637;
  letter-spacing: 2px;
  line-height: 1.1;
  text-shadow:
    2px 2px 0 #000,
    4px 4px 8px rgba(0, 0, 0, 0.5);
  text-align: center;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  width: 100%;
  box-sizing: border-box;
}

.hero-p {
  font-family: "Lato", sans-serif;
  font-size: 1.5rem;
  color: #bb884b;
  letter-spacing: 1px;
  text-align: center;
}

.hero-btn {
  display: inline-block;
  text-decoration: none;
  background-color: #343637;
  color: #ccd5d9;
  border: 1px solid #78746e;

  align-self: center;
  padding: 10px 40px;

  font-family: "Lato", sans-serif;
  font-size: 1.2rem;
  letter-spacing: 1.5px;

  border: none;
  outline: none;
  border-radius: 999px;

  cursor: pointer;
  margin-top: 16px;

  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
  transition:
    box-shadow 0.3s ease,
    transform 0.3s ease;
}

.hero-btn:hover {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  color: #bb884b;
  transform: translateY(-2px);
}

.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30%;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(255, 255, 255, 0.8) 100%
  );

  pointer-events: none;
}

@media (max-width: 768px) {
  .hero-div {
    position: static;
    width: 100%;

    margin: 0 auto;
    margin-top: 40px;
    height: auto;
    justify-content: center;
    padding: 20px 15px;
    border-radius: 40px;
  }

  .hero-h1 {
    font-size: 2.5rem;
    width: 100%;
    box-sizing: border-box;
  }

  .hero-p {
    font-size: 1.1rem;
  }

  .hero-btn {
    padding: 8px 20px;
    font-size: 1rem;
  }
}
