@import url(global.css);

.bg {
  background: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.65)),
    url(images/1.webp);
  background-size: cover;
}

footer {
  padding: 2rem;
  width: 100%;
  position: fixed;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  clip-path: polygon(0% 100%, 100% 100%, 100% 100%, 0% 100%);
  animation-name: bring-footer-to-view;
  animation-duration: 1.5s;
  animation-timing-function: var(--animation-timing-function);
  animation-delay: 1.5s;
  animation-fill-mode: forwards;
}

footer ul {
  display: flex;
  justify-content: space-between;
  color: whitesmoke;
  list-style: none;
}
footer li {
  font-weight: 250;
  width: 16ch;
  text-wrap: wrap;
  text-align: center;
}

footer a {
  all: unset;
  font-size: 0.9rem;
  text-transform: uppercase;
  background-color: white;
  color: black;
  align-self: center;
  padding: 0.8rem 2rem;
  border-radius: 2rem;
  cursor: pointer;
  transition: all 200ms var(--animation-timing-function);
  background-image: url(images/icon-phone.png);
  background-repeat: no-repeat;
  background-size: 16%;
  background-position: 10px 8px;
  padding-left: 3rem;
}

footer a:hover {
  scale: 1.2;
}

.highlight {
  position: absolute;
  left: 0rem;
  width: 100vw;
  height: 2px;
  bottom: -1rem;
  background-color: rgba(255, 255, 255, 0.3);
  animation-name: bring-highlight;
  animation-duration: 1.5s;
  animation-timing-function: var(--animation-timing-function);
  animation-delay: 1.5s;
  animation-fill-mode: forwards;
}

@keyframes bring-highlight {
  to {
    bottom: 11rem;
  }
}

@keyframes bring-footer-to-view {
  to {
    clip-path: polygon(0% 100%, 100% 100%, 100% 0%, 0% 0%);
  }
}

.hero {
  margin-top: 25vh;
  padding-left: 2rem;
}

.hero h1 {
  color: white;
  font-weight: 300;
  width: 25ch;
  font-size: 4vw;
  clip-path: polygon(0% 100%, 100% 100%, 100% 100%, 0% 100%);
  animation-name: bring-footer-to-view;
  animation-duration: 1.5s;
  animation-timing-function: var(--animation-timing-function);
  animation-delay: 1.5s;
  animation-fill-mode: forwards;
}

.hero h1:nth-child(2n) {
  animation-delay: 2s;
}
