* {
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
  max-width: 100%;
}

.hero {
  width: 100%;
  min-height: 100vh;
  position: relative;
  z-index: 1;
  padding: 80px 0;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero:before {
  content: "";
  background: color-mix(in srgb, var(--background-color), transparent 40%);
  position: absolute;
  inset: 0;
  z-index: 2;
}

.hero .container {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  z-index: 3;
  width: 560px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero-greeting {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  color: var(--accent-color);
}

.hero-title {
  margin: 0;
  font-size: 42px;
  font-weight: 700;
  line-height: 1.2;
  text-align: left;
  color: var(--contrast-color);
}

.hero-title span {
  color: var(--accent-color);
}

.hero-role {
  margin: 6px 0 0 0;
  font-size: 22px;
  min-height: 32px;
  color: var(--contrast-color);
}

.hero-role .typed {
  color: var(--accent-color);
  font-weight: 600;
}
.hero-role .typed-cursor {
  color: var(--accent-color);
  font-weight: 400;
}

.hero-icons {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.hero-icons a {
  width: 42px;
  height: 42px;
  border: 2px solid var(--accent-color);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-color);
  font-size: 18px;
  transition: 0.3s;
}

.hero-icons a:hover {
  background: var(--accent-color);
  color: black;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  margin-top: 24px;
}

.btn-outline {
  background-color: black;
  color: var(--accent-color);
  border: 2px solid var(--accent-color);
  box-shadow: 0 0 25px transparent;
}

.btn-outline:hover {
  box-shadow: 0 0 25px var(--accent-color);
  background-color: var(--accent-color);
  color: black;
}

@media (max-width: 768px) {
  .hero .container {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 100%;
    padding: 0 25px;
    margin-top: 24rem;
  }
  .hero-title {
    font-size: 28px;
  }

  .hero-role {
    font-size: 16px;
  }

  .hero-icons a {
    width: 36px;
    height: 36px;
    font-size: 15px;
  }

  .hero-buttons {
    flex-wrap: wrap;
    gap: 12px;
  }

  .btn, .btn-outline {
    padding: 0.8rem 1.8rem;
    font-size: 1.2rem;
  }
}