.home-page {
  display: flex;
  justify-content: center;
  gap: clamp(100px, 30vw, 150px);
  padding-right: 40px;
  height: 700px;
  padding: 2rem;
  align-items: center;
  padding-bottom: 4rem;
  scroll-margin-top: 100px;
  position: relative;
}

.sticky-tab {
  position: absolute;
  width: 220px;
  height: 40px;
  background-color: var(--tab-color);
  border: 2.4px solid var(--tab-outline);
  border-radius: 6px;
  top: -15px;
}

.sticky-note {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  width: clamp(100px, 40vw, 600px);
  height: clamp(40px, 60vh, 500px);
  padding: 1rem;
  background-color: var(--sticky-note-color);
  border-radius: 20px;
  box-shadow: -5px 5px 5px rgba(0, 0, 0, 0.10);
}

.intro-text {
  padding-top: 60px;
  font-size: 40px;
  padding-bottom: 20px;
}

.dynamic-text {
  position: relative;
}

.dynamic-text::before {
  content: "Angela Dakay";
  color: var(--intro-text-color);
  animation: words 20s infinite;
}

.dynamic-text::after {
  content: "";
  position: absolute;
  width: calc(100% + 8px);
  height: 100%;
  background-color: var(--sticky-note-color);
  border-left: 2px solid var(--intro-text-color);
  right: -8px;
  top: 0.08em;
  animation: cursor .8s infinite, typing 20s steps(14) infinite;
}


@keyframes cursor {
  50% {
    border-color: transparent
  }
}

@keyframes words {

  0%,
  20% {
    content: "Angela Dakay"
  }

  21%,
  40% {
    content: "a Programmer"
  }

  41%,
  60% {
    content: "a Learner"
  }

  61%,
  80% {
    content: "a Designer"
  }

  81%,
  100% {
    content: "a Developer"
  }
}

@keyframes typing {
  10%,
  15%,
  30%,
  35%,
  50%,
  55%,
  70%,
  90%,
  95% {
    width: 0;
  }

  5%,
  20%,
  25%,
  40%,
  45%,
  60%,
  65%,
  80%,
  85% {
    width: calc(100% + 8px);
  }
}

.info-text {
  font-size: clamp(16px, 3vw, 22px);
  color: var(--info-color);
  padding: 10px 30px 60px 30px;
  overflow-y: hidden;
}

.home-image {
  width: clamp(100px, 30vw, 500px);
  border-radius: 40px;
  border: solid;
  border-color: var(--gif-outline);
  cursor: pointer;
  transition: transform 0.2s ease-in-out;
}

.home-image:hover {
  transform: scale(1.01);
}

.gif-credits {
  font-size: 16px;
  color: var(--exp-card-text-color);
}

.gif-credits a:hover {
  color: var(--intro-text-color);
}

.chick-cursor {
  opacity: 0;
  position: absolute;
  bottom: -12.8%;
  left: 0;
  pointer-events: none;
  transition: opacity 0.2s ease-in-out;
  z-index: 99;
}

.chick-cursor.active {
  opacity: 1;
  display: block;
}

@media (max-width: 1024px) {
  .home-page {
    gap: 90px;
  }

  .sticky-note {
    height: 60%;
  }

  .intro-text {
    font-size: 2rem;
  }
  
  .info-text {
    font-size: 1.1rem;
  }
}

@media (max-width: 768px) {
  .home-page {
    gap: 40px;
  }

  .sticky-tab {
    width: 150px;

  }

  .sticky-note {
    width: 55%;
    height: 50%;
  }

  .intro-text {
    font-size: 1.5rem;
  }

  .info-text {
    font-size: 0.9rem;
    overflow: hidden;
  }

  .home-image {
    width: 250px;
  }
}

@media (max-width: 600px) {
  .home-page {
    flex-wrap: wrap;
  }

  .sticky-note {
    width: 95%;
    height: 50%;
  }
}

@media (max-width: 320px) {
  .intro-text {
    font-size: 1.2rem;
  }

  .info-text {
    font-size: 0.8rem;
  }
}

@media (max-height: 760px) {
  .home-page {
    height: 570px;
  }
}
