:root {
  --animate-speed: 2s;
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  width: 100%;
  height: 100%;
  background-color: rgb(32, 35, 48);
  overflow: hidden;
}

.intro,
.page {
  display: flex;
  flex-direction: column;
  height: 100vh;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 4rem;
}

#logo {
  animation: fill 2s ease forwards 3s;
  width: 50vw;
}

#logo:hover {
  opacity: 0.8;
}

.intro h3 {
  font-size: 2em;
  color: white;
  font-weight: normal;
  margin: 2rem 0;
  opacity: 0;
  animation: fadein 2s ease forwards 4s;
  cursor: default;
}

#logo path:nth-child(1) {
  stroke-dasharray: 297px;
  stroke-dashoffset: 297px;
  animation: line-anim 2s ease forwards;
}

#logo path:nth-child(2) {
  stroke-dasharray: 464px;
  stroke-dashoffset: 464px;
  animation: line-anim 2s ease forwards 0.3s;
}
#logo path:nth-child(3) {
  stroke-dasharray: 565px;
  stroke-dashoffset: 565px;
  animation: line-anim 2s ease forwards 0.6s;
}
#logo path:nth-child(4) {
  stroke-dasharray: 605px;
  stroke-dashoffset: 605px;
  animation: line-anim 2s ease forwards 0.9s;
}
#logo path:nth-child(5) {
  stroke-dasharray: 442px;
  stroke-dashoffset: 442px;
  animation: line-anim 2s ease forwards 1.2s;
}
#logo path:nth-child(6) {
  stroke-dasharray: 491px;
  stroke-dashoffset: 491px;
  animation: line-anim 2s ease forwards 1.5s;
}
#logo path:nth-child(7) {
  stroke-dasharray: 605px;
  stroke-dashoffset: 605px;
  animation: line-anim 2s ease forwards 1.8s;
}
#logo path:nth-child(8) {
  stroke-dasharray: 454px;
  stroke-dashoffset: 454px;
  animation: line-anim 2s ease forwards 2.1s;
}
#logo path:nth-child(9) {
  stroke-dasharray: 373px;
  stroke-dashoffset: 373px;
  animation: line-anim 2s ease forwards 2.4s;
}
#logo path:nth-child(10) {
  stroke-dasharray: 298px;
  stroke-dashoffset: 298px;
  animation: line-anim 2s ease forwards 2.7s;
}

@keyframes line-anim {
  to {
    stroke-dashoffset: 0px;
  }
}

@keyframes fill {
  from {
    fill: transparent;
  }
  to {
    fill: #fff;
  }
}

@keyframes fadein {
  to {
    opacity: 1;
  }
}

@media (max-width: 768px) {
  #logo {
    width: 80vw;
  }
}

.btn {
  display: inline-block;
  padding: 1rem 2rem;
  background: #fff;
  color: #333;
  text-decoration: none;
  border: none;
  margin-top: 1rem;
  font-size: 1.1rem;
  transition: all 0.3s ease-in;
}

/* Social icons */
.social {
  display: flex;
  opacity: 0;
  animation: fadein 2s ease forwards 4s;
}

.social div {
  margin: 0 1rem;
}

.social div:hover {
  opacity: 0.8;
}

.social-icon {
  width: 25px;
  transition: all 500ms cubic-bezier(0.42, 0, 0.38, 2);
}

.social-icon:hover {
  transform: translateY(-5px);
}
