* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  font-family: Arial, "Avenir Next", Avenir, Helvetica, sans-serif;
}

body {
  min-height: 100vh;
}

.hero {
  position: relative;
  width: 100%;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7rem 1.5rem calc(7rem + env(safe-area-inset-bottom));
  overflow: hidden;
  background-image: url("../images/hero.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center 32%;
  color: #ffffff;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.28) 0%,
      rgba(0, 0, 0, 0.16) 22%,
      rgba(0, 0, 0, 0.20) 58%,
      rgba(0, 0, 0, 0.34) 100%
    );
  z-index: 1;
}

.hero > * {
  position: relative;
  z-index: 2;
}

.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, calc(-50% - 8vh));
  width: 100%;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  opacity: 0;
  animation: titleFadeUp 0.8s ease-out forwards;
  animation-delay: 0.15s;
}

.title {
  margin: 0;
  font-family: "Libre Bodoni", Didot, "Bodoni MT", "Times New Roman", serif;
  font-size: clamp(2.6rem, 7vw, 5.25rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 0.95;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}

.subtitle {
  margin-top: 0.9rem;
  font-family: Arial, "Avenir Next", Avenir, Helvetica, sans-serif;
  font-size: clamp(0.78rem, 1.6vw, 1rem);
  font-weight: 500;
  letter-spacing: 0.26em;
  line-height: 1.2;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.68);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.14);
}

.social-icons {
  position: absolute;
  left: 50%;
  bottom: calc(2rem + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: calc(100% - 2rem);
  max-width: 32rem;
  padding: 0;
  text-align: center;
  z-index: 3;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 50%;
  text-decoration: none;
  font-size: 1.35rem;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    color 0.2s ease;
}

.social-icons a:hover,
.social-icons a:focus-visible {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.38);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
  outline: none;
}

.social-icons a:active {
  transform: translateY(0);
}

.social-icons i {
  line-height: 1;
}

@keyframes titleFadeUp {
  from {
    opacity: 0;
    transform: translate(-50%, calc(-50% - 8vh + 14px));
  }
  to {
    opacity: 1;
    transform: translate(-50%, calc(-50% - 8vh));
  }
}

@media (min-width: 768px) {
  .hero {
    padding: 8rem 2rem 6rem;
    background-position: center 28%;
  }

  .hero-text {
    transform: translate(-50%, calc(-50% - 6vh));
  }

  @keyframes titleFadeUp {
    from {
      opacity: 0;
      transform: translate(-50%, calc(-50% - 6vh + 14px));
    }
    to {
      opacity: 1;
      transform: translate(-50%, calc(-50% - 6vh));
    }
  }

  .social-icons {
    bottom: 2.5rem;
    gap: 1.15rem;
  }

  .social-icons a {
    width: 3.75rem;
    height: 3.75rem;
  }
}

@media (min-width: 1024px) {
  .hero {
    background-position: center 24%;
  }

  .hero-text {
    transform: translate(-50%, calc(-50% - 4vh));
  }

  @keyframes titleFadeUp {
    from {
      opacity: 0;
      transform: translate(-50%, calc(-50% - 4vh + 14px));
    }
    to {
      opacity: 1;
      transform: translate(-50%, calc(-50% - 4vh));
    }
  }
}

@media (max-width: 768px) {
  .hero-text {
    padding: 0 24px;
  }

  .title {
    letter-spacing: 0.06em;
  }
}

@media (max-width: 480px) {
  .hero {
    background-position: center 38%;
  }

  .hero-text {
    transform: translate(-50%, calc(-50% - 7vh));
  }

  .title {
    font-size: clamp(2.15rem, 10vw, 3rem);
    letter-spacing: 0.05em;
    line-height: 1;
  }

  .subtitle {
    margin-top: 0.65rem;
    font-size: 0.72rem;
    letter-spacing: 0.2em;
  }

  .social-icons {
    gap: 0.75rem;
    width: calc(100% - 1.5rem);
  }

  .social-icons a {
    width: 3.25rem;
    height: 3.25rem;
    font-size: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-text {
    opacity: 1;
    animation: none;
    transform: translate(-50%, calc(-50% - 8vh));
  }

  .social-icons a {
    transition: none;
  }
}
