body {
  line-height: 1.5;
  /* perspective: 40em; */
  display: flex;
  overflow-x: hidden;
}


*,
::before,
::after {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

:root {
  --theme-color: orange;
  --secondary-color: white;
  --background-color: #fff;
  --text-color-1: orange;
  --text-color-2: black;
}

html,
body {
  position: relative;
  height: 100%;
  font-family: "Raleway", sans-serif;
  font-size: 20px;
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;

}

body.animated{
  -webkit-animation: change-back 16s ease-in-out;
  animation: change-back 16s ease-in-out;
}
* {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

.wrapper {
  width: 300px;
  height: 300px;
  -webkit-transform: scale(1.5);
  transform: scale(1.5);
  overflow: hidden;
}

.hidden {
  display: none !important;
}

@media screen and (max-width: 600px) {
  .wrapper {
    -webkit-transform: scale(1);
    transform: scale(1);
  }
}

.container {
  position: absolute;
  width: 300px;
  height: 300px;
}

[data-typing] {
  position: absolute;
  top: 0;
  -webkit-transform-origin: 0% 0%;
  transform-origin: 0% 0%;
  font-size: 25px;
  margin: 0;
  padding: 0;
  top: 100px;
  line-height: 1;
  color: orange;
  font-weight: 900;
}

[data-typing="i"] {
  top: 0;
  left: 50px;
  font-size: 90px;
  height: 70px;
  line-height: 70px;
  font-weight: 900;
}

[data-typing="name"] {
  top: 3px;
  left: 80px;
  font-size: 26px;
  letter-spacing: 1px;
  min-width: 300px;
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
  font-weight: 900;
}

[data-typing="engineer"] {
  top: 30px;
  left: 80px;
  font-size: 30px;
  letter-spacing: 1px;
  font-weight: 900;
}

[data-typing="with"] {
  top: 90px;
  left: 265px;
  font-size: 36px;
  -webkit-transform: rotate(90deg);
  transform: rotate(90deg);
  background: var(--theme-color);
  color: #fff;
  padding: 0px 4px;
  font-weight: 900;
}

[data-typing="skills-in"] {
  top: 94px;
  left: 229px;
  -webkit-transform: rotate(90deg);
  transform: rotate(90deg);
  font-size: 32px;
  min-width: 300px;
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
  font-weight: 900;
}

[data-typing="javascript"] {
  top: 90px;
  right: 110px;
  font-size: 25px;
  font-weight: 900;
}

[data-typing="css"] {
  top: 115px;
  right: 110px;
  font-size: 18px;
  font-weight: 900;
}

[data-typing="app-dev"] {
  top: 134px;
  right: 110px;
  font-size: 12px;
}

[data-typing="animation"] {
  top: 143px;
  right: 110px;
  font-size: 32px;
}

[data-typing="scenejs"] {
  top: 170px;
  right: 110px;
  font-size: 26px;
}

a {
  color: black;
  text-decoration: none;
}

@keyframes change-back {
  0% {
    background-color: var(--text-color-2);
  }
  100% {
    background-color: var(--background-color);
  }
}

body .scenejs-editor-timeline {
  position: fixed;
  bottom: 0;
  max-height: 300px;
}


.preloader {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: auto;
  color: orange;
  width: 17em;
  height: 17em;
  position: absolute;
  overflow: hidden;
}

.preloader-container {
  height: 100%;
  width: 100%;
  justify-content: center;
  display: flex;
  align-items: center;
  transition: all 0.5s ease-in-out;
  background-color: black;
  overflow: hidden;
  will-change: transform;
}

.wrapper-container {
  position: absolute;
  height: 100%;
  width: 100%;
  justify-content: center;
  display: flex;
  align-items: center;
  transition: all 1.5s ease-in-out;
  overflow: hidden;
}

.preloader-container::after,
.preloader-container::before,
.wrapper-container::after,
.wrapper-container::before {
  position: absolute;
  content: "";
  background-color: orange;
  height: 100%;
  width: 100%;
  transform: translateX(100vw);
  transition: all 2s cubic-bezier(0.11, 0.6, 0.96, -0.81);
}

.wrapper-container::after,
.wrapper-container::before {
  transform: translateY(100vh);
  width: 100vw !important;
}
.preloader-container::before,
.wrapper-container::before {
  background-color: white;
}

.preloader-container.finished::after,
.preloader-container.finished::before,
.wrapper-container.finished::after,
.wrapper-container.finished::before {
  transform: translateX(-100vw);
  transition-delay: 0.2s;
  transition: all 2s ease-in-out;
}

.wrapper-container.finished::after,
.wrapper-container.finished::before {
  transform: translateY(-100vh);
  transition: all 2.2s cubic-bezier(0.23, 1, 0.320, 1);
}

.preloader-container.finished::before,
.wrapper-container.finished::before {
  transition: all 1.5s ease-in-out;
  transition-delay: -0.5s;
}

#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
#loader {
  display: block;
  position: relative;
  left: 50%;
  top: 50%;
  width: 150px;
  height: 150px;
  margin: -75px 0 0 -75px;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: orange;
  -webkit-animation: spin 1.5s linear infinite;
  animation: spin 2s linear infinite;
}
#loader:before {
  content: "";
  position: absolute;
  top: 5px;
  left: 5px;
  right: 5px;
  bottom: 5px;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: white;
  -webkit-animation: spin 3s linear infinite;
  animation: spin 3s linear infinite;
}
#loader:after {
  content: "";
  position: absolute;
  top: 15px;
  left: 15px;
  right: 15px;
  bottom: 15px;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: orange;
  -webkit-animation: spin 1.5s linear infinite;
  animation: spin 1.5s linear infinite;
}
@-webkit-keyframes spin {
  0% {
    -webkit-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    -ms-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@keyframes spin {
  0% {
    -webkit-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    -ms-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@keyframes load {
  0% {
    opacity: 0.08;
    filter: blur(5px);
    letter-spacing: 3px;
  }
}

.animate {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  margin: auto;
  font-family: "Raleway", sans-serif;
  animation: load 1.2s infinite 0s ease-in-out;
  animation-direction: alternate;
  text-shadow: 0 0 1px white;
  margin-top: 2rem;
  transition: all 0.3s ease-in-out;
  color: orange;
}

@media screen and (max-width: 560px) {
  @keyframes load {
    0% {
      opacity: 0.08;
      /* filter: blur(5px); */
      letter-spacing: 3px;
    }
  }
}

/* //////////Text Reveal///////// */

.reveal-text,
.reveal-text::after {
  -webkit-animation-iteration-count: 1;
  animation-iteration-count: 1;
  -webkit-animation-duration: 800ms;
  animation-duration: 800ms;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
  -webkit-animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
  animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
}

.reveal-second{
  animation-delay: .5s;
}
.reveal-second:after {
  animation-delay: .5s;
}

.text-reveal-trigger {
  opacity: 0;
}

.reveal-text {
  position: relative;
  display: inline-block;
  opacity: 1;
  -webkit-animation-name: reveal-text;
  animation-name: reveal-text;
}

.opacity-reveal{
  opacity: 0;
}


.appear{
  animation-delay: .8s;
  animation: appear .6s linear forwards;
}

@keyframes appear{
  0%{
    opacity: 0;
  }
  100%{
    opacity: 1;
  }
}

.reveal-text::after {
  content: "";
  position: absolute;
  z-index: 999;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: orange !important;
  -webkit-transform: scaleX(0);
  transform: scaleX(0);
  -webkit-transform-origin: 0 50%;
  transform-origin: 0 50%;
  pointer-events: none;
  -webkit-animation-name: revealer-text;
  animation-name: revealer-text;
}

@-webkit-keyframes reveal-text {
  from {
    -webkit-clip-path: inset(0 100% 0 0);
    clip-path: inset(0 100% 0 0);
  }
  to {
    -webkit-clip-path: inset(0 0 0 0);
    clip-path: inset(0 0 0 0);
  }
}

@keyframes reveal-text {
  from {
    -webkit-clip-path: inset(0 100% 0 0);
    clip-path: inset(0 100% 0 0);
  }
  to {
    -webkit-clip-path: inset(0 0 0 0);
    clip-path: inset(0 0 0 0);
  }
}

@-webkit-keyframes revealer-text {
  0%,
  50% {
    -webkit-transform-origin: 0 50%;
    transform-origin: 0 50%;
  }

  60%,
  100% {
    -webkit-transform-origin: 100% 50%;
    transform-origin: 100% 50%;
  }

  60% {
    -webkit-transform: scaleX(1);
    transform: scaleX(1);
  }

  100% {
    -webkit-transform: scaleX(0);
    transform: scaleX(0);
  }
}

@keyframes revealer-text {
  0%,
  50% {
    -webkit-transform-origin: 0 50%;
    transform-origin: 0 50%;
  }

  60%,
  100% {
    -webkit-transform-origin: 100% 50%;
    transform-origin: 100% 50%;
  }

  60% {
    -webkit-transform: scaleX(1);
    transform: scaleX(1);
  }

  100% {
    -webkit-transform: scaleX(0);
    transform: scaleX(0);
  }
}
