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

html,
body {
  overflow: hidden;
}

/**********Cursor animation***********/

#cursor {
  position: absolute;
  width: 4px;
  height: 4px;
  background: #000;
  pointer-events: none;
  -webkit-animation: animate-box 2s linear forwards;
  animation: animate-box 2s linear forwards;
}

@-webkit-keyframes animate-box {
  0% {
    opacity: 1;
    -webkit-transform: translate(0, 0);
    transform: translate(0, 0);
  }
  100% {
    opacity: 0;
    -webkit-transform: translate(var(--x), var(--y));
    transform: translate(var(--x), var(--y));
  }
}

@keyframes animate-box {
  0% {
    opacity: 1;
    transform: translate(0, 0);
  }
  100% {
    opacity: 0;
    transform: translate(var(--x), var(--y));
  }
}

/**********Welcome Section***********/

.container {
  width: 100dvw;
  height: 100dvh;
  font-family: "Poppins", "Sans-Serif";
  position: relative;
  font-size: 75px;
}

.hello,
.profession,
.name {
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  text-align: center;
  opacity: 0;
  pointer-events: none;
}

.hello {
  -webkit-animation: fade-in 1s linear forwards 0.5s,
    fade-out 1s linear forwards 3s;
  animation: fade-in 1s linear forwards 0.5s, fade-out 1s linear forwards 3s;
}

.profession {
  width: 100%;
  -webkit-animation: fade-in 1s linear forwards 4s,
    fade-out 1s linear forwards 7s;
  animation: fade-in 1s linear forwards 4s, fade-out 1s linear forwards 7s;
}

.container-names {
  height: 60.8px;
  position: relative;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  font-size: 60px;
  -webkit-animation: goUp 2s ease-in-out forwards 10s;
  animation: goUp 2s ease-in-out forwards 10s;
}

.name-left,
.name-right {
  position: absolute;
  top: 50%;
  left: 50%;
  text-align: center;
  pointer-events: none;
  width: 100%;
  opacity: 0.5;
}

.name-left {
  -webkit-transform: translate(-165%, -50%);
  transform: translate(-165%, -50%);
  -webkit-animation: left-middle 1.5s linear forwards 8s,
    colorChange 20s infinite alternate 12s;
  animation: left-middle 1.5s linear forwards 8s,
    colorChange 20s infinite alternate 12s;
  z-index: 1;
}

.name-right {
  -webkit-transform: translate(65%, -50%);
  transform: translate(65%, -50%);
  -webkit-animation: right-middle 1.5s linear forwards 8s,
    stay 1s linear forwards 9.5s;
  animation: right-middle 1.5s linear forwards 8s, stay 1s linear forwards 9.5s;
}

/**********Boxes Animation***********/

.box div {
  position: absolute;
  width: 60px;
  height: 60px;
  background-color: transparent;
  border: 6px solid black;
  opacity: 0;
}

.box div:nth-child(1) {
  top: 12%;
  left: 42%;
  animation: animate 10s linear infinite 12s;
}

.box div:nth-child(2) {
  top: 70%;
  left: 50%;
  animation: animate 7s linear infinite 12s;
}

.box div:nth-child(3) {
  top: 17%;
  left: 6%;
  animation: animate 9s linear infinite 12s;
}

.box div:nth-child(4) {
  top: 67%;
  left: 10%;
  animation: animate 6s linear infinite 12s;
}

.box div:nth-child(5) {
  top: 67%;
  left: 10%;
  animation: animate 6s linear infinite 12s;
}

.box div:nth-child(6) {
  top: 80%;
  left: 70%;
  animation: animate 12s linear infinite 12s;
}

.box div:nth-child(7) {
  top: 60%;
  left: 80%;
  animation: animate 15s linear infinite 12s;
}

.box div:nth-child(8) {
  top: 32%;
  left: 25%;
  animation: animate 16s linear infinite 12s;
}

.box div:nth-child(9) {
  top: 90%;
  left: 25%;
  animation: animate 9s linear infinite 12s;
}

.box div:nth-child(10) {
  top: 20%;
  left: 80%;
  animation: animate 5s linear infinite 12s;
}

/**********Projects***********/

.projects {
  width: 100%;
  height: 85%;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  text-align: center;
  position: absolute;
  font-size: 30px;
  top: 15%;
  padding: 0 25px;
  pointer-events: none;
}

.project-1,
.project-2,
.project-3,
.click-one {
  color: black;
  opacity: 0;
}

.project-1 {
  font-size: 50px;
  transform: rotate(-75deg) translate(50%, -300%);
  animation: project-1 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards 13s;
}

.project-2,
.project-3,
.click-one {
  animation: fade-in 2s linear forwards 14s;
}

.click-one {
  font-size: 12px;
}

/**********Keyframes***********/

@-webkit-keyframes animate {
  0% {
    -webkit-transform: scale(0) translateY(0) rotate(0);
    transform: scale(0) translateY(0) rotate(0);
    opacity: 1;
  }
  100% {
    -webkit-transform: scale(1.3) translateY(-90px) rotate(360deg);
    transform: scale(1.3) translateY(-90px) rotate(360deg);
    opacity: 0;
  }
}

@-webkit-keyframes fade-in {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@-webkit-keyframes fade-out {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@-webkit-keyframes stay {
  from {
    opacity: 1;
  }
}

@-webkit-keyframes left-middle {
  0% {
    -webkit-transform: translate(-145%, -50%);
    transform: translate(-145%, -50%);
    opacity: 0.5;
  }
  99% {
    opacity: 0.5;
  }
  100% {
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    opacity: 1;
  }
}

@-webkit-keyframes right-middle {
  0% {
    -webkit-transform: translate(45%, -50%);
    transform: translate(45%, -50%);
  }
  100% {
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
  }
}

@keyframes goUp {
  0% {
    top: 50%;
    font-size: 60px;
  }
  100% {
    top: 5%;
    font-size: 40px;
  }
}

@keyframes colorChange {
  0% {
    color: black;
  }
  5% {
    color: pink;
  }
  10% {
    color: #ff00cc;
  }
  15% {
    color: red;
  }
  20% {
    color: tan;
  }
  25% {
    color: yellow;
  }
  30% {
    color: yellowgreen;
  }
  35% {
    color: green;
  }
  40% {
    color: violet;
  }
  45% {
    color: goldenrod;
  }
  50% {
    color: navajowhite;
  }
  55% {
    color: #ffff66;
  }
  60% {
    color: orange;
  }
  65% {
    color: orangered;
  }
  70% {
    color: red;
  }
  75% {
    color: indianred;
  }
  80% {
    color: indigo;
  }
  85% {
    color: purple;
  }
  90% {
    color: blue;
  }
  95% {
    color: #50bfe6;
  }
  100% {
    color: grey;
  }
}

@keyframes project-1 {
  0% {
    opacity: 0;
    transform: rotate(-75deg) translate(50%, -300%);
  }
  100% {
    opacity: 1;
    transform: rotate(0deg) translate(0, 0);
  }
}

/***************Responsive iPad Pro***************/

@media only screen and (max-width: 641px) {
  #cursor {
    display: none;
  }
}

/***************Responsive iPhone 14 Pro Max, SE, XR, 12 Pro - Pixel 7 - Samsung Galaxy S8+, S20 Ultra***************/

@media only screen and (max-width: 450px) {
  .container {
    font-size: 32px;
    font-weight: 500;
  }

  .profession {
    width: 95%;
  }
}
