/* Preloader */

.preloader {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  justify-content: center;
  align-items: center;
  background: rgb(25, 32, 18);
  min-height: 100vh;
  animation: animatePreloader 10s linear infinite;
}

@keyframes animatePreloader {
  0% {
      filter: hue-rotate(0deg);
  }

  100% {
      filter: hue-rotate(360deg);
  }
}

.loader {
  position: relative;
  width: 120px;
  height: 120px;
}

.preloader .loader span {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: rotate(calc(18deg * var(--i)));
}

.preloader .loader span:before {
  content: "";
  position: absolute;
  background: rgb(35, 224, 11);
  top: 0;
  left: 0;
  width: 15px;
  height: 15px;
  box-shadow: 0 0 10px rgb(35, 224, 11),
      0 0 20px rgb(35, 224, 11),
      0 0 30px rgb(35, 224, 11),
      0 0 40px rgb(35, 224, 11),
      0 0 55px rgb(35, 224, 11),
      0 0 70px rgb(35, 224, 11),
      0 0 100px rgb(35, 224, 11);
  animation: AnimateRound 2s linear infinite;
  animation-delay: calc(0.1s * var(--i));
}

@keyframes AnimateRound {

  0% {
      transform: scale(1);
  }

  80%,
  100% {
      transform: scale(0);
  }

}










/* Global css */
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}
:root {
  --darkBg: #585555;
  --lightBg: #ffffff;
  --navBg: #4b4646;
}

body {
  display: flex;
  justify-content: space-between;
  background: var(--darkBg);
  color: var(--lightBg);
  overflow-x: hidden;
}

.icon-img {
  height: 40px;
  width: 40px;
  /* filter: invert(100%); */
}

h2 {
  font-size: 5rem;
}

li {
  list-style-type: none;
  padding: 1px;
}

/* --------------- Naigation Bar---------------- */
.navbar {
  width: 153px;
  height: 100vh;
  border-right: rgb(17, 199, 231) 2.5px solid;
  position: relative;
  background: var(--navBg);
  box-shadow: inset -1px 0 10px black;
  z-index: 10;
}

.navbar:hover {
  border-right: 3px rgb(17, 199, 231) solid;
}
.nav-items {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: auto;
}

#logo-box {
  width: 150px;
  height: 25vh;
  /* border: 1px solid red; */
  display: flex;
}
.logo {
  text-align: center;
  margin: auto;
}

@keyframes logoanimation {
  0% {
    background: linear-gradient(209deg, rgb(255, 95, 0), rgb(30, 38, 238));
  }
  25% {
    background: linear-gradient(209deg, rgb(255, 5, 190), rgb(16, 233, 68));
  }
  50% {
    background: linear-gradient(278deg, rgb(255, 5, 190), rgb(190, 190, 225));
  }
  75% {
    background: linear-gradient(278deg, rgb(1, 244, 0), rgb(12, 161, 255));
  }
  100% {
    background: linear-gradient(278deg, rgb(1, 244, 0), rgb(12, 161, 255));
  }
}

.logo span {
  font-size: 2rem;
  animation: logoanimation 2s infinite;
  font-weight: bold;
}

.nav-icons {
  display: flex;
  margin-top: 6vh;
  margin-bottom: 0px;
  height: 69vh;
  width: 100%;
  justify-content: space-evenly;
  flex-direction: column;
  align-items: center;
  position: relative;
  /* border: 2px solid white; */
}

.nav-icon-img {
  padding: 2px;
  border-radius: 50%;
  transition: all 0.25s linear;
  border: 2px solid #06e7f7;
  background: linear-gradient(209deg, rgb(20 84 226), rgb(255 2 2));
}
.nav-icons p {
  overflow: hidden;
  position: absolute;
  width: 100%;
  left: -50%;
  text-align: center;
  transform: translate(50%, -168%);
  transition: all 0.5s linear;
  opacity: 0;
  font-weight: bolder;
  font-family: cursive;
  color: blue;
  font-size: 16px;
}

.nav-icon-list:hover img {
  opacity: 0;
}
.nav-icon-list:hover p {
  opacity: 1;
}

/* =====Body Contents============ */
.body-contents {
  display: block;
  width: 100%;
}

/* Text Positioning With Js animation */
#top-left-h2 {
  margin-left: 5px;
  filter: drop-shadow(-8px -4px 1px black);
  letter-spacing: -2px;
  background: linear-gradient(217deg, rgb(255, 0, 33), rgb(0, 250, 255));
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
}

#bottom-right-h2 {
  position: absolute;
  right: 10px;
  bottom: 6px;
  filter: drop-shadow(-8px -4px 1px black);
  letter-spacing: -2px;
  overflow: hidden;
  background: linear-gradient(217deg, rgb(255, 0, 33), rgb(0, 250, 255));
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
}

/* Box Positioning */

.container {
  width: 100%;
  height: 85%;
}

.box {
  /* border: 2px solid blue; */
  width: 25vw;
  height: 55vh;
  position: absolute;
  transition: all 0.5s linear;
  bottom: 10px;
  box-shadow: -4px 6px 5px black;
  font-family: cursive;
  text-align: center;
}
.box .content h3{
  text-align: center;
  position: absolute;
  width: 100%;
  bottom: 5%;
  left: .1%;
  /* top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); */
  font-family: cursive;
  font-weight: bolder;
  font-size: 1.72rem;
  letter-spacing: -7px;
}
.box .content h3 span{
  animation: logoanimation 2s infinite;
  padding: 1px 4px;
}
.box:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 1%;
  height: 1%;
  background: #000;
  text-align: center;
  font-size: 0rem;
  line-height: 0rem;
  transform: translateY(-80%);
  transition: all 0.35s linear;
  visibility: hidden;
  background-size: cover;
  background-position: center;
}
.box:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 1%;
  height: 1%;
  background: linear-gradient(221deg, rgb(247, 93, 124), rgb(59, 170, 255));
  text-align: center;
  visibility: hidden;
  transform: translateY(80%);
  transition: all 0.35s linear;
  font-size: 0rem;
  line-height: 0rem;
  z-index: 99;
}

.box:hover::before {
  visibility: visible;
  transform: translateY(0%);
  width: 100%;
  font-size: 2.5rem;
  height: 40%;
  z-index: 1;
  line-height: 7rem;
}
.box:hover::after {
  visibility: visible;
  width: 100%;
  transform: translateY(0%);
  height: calc(60% + 2px);
  z-index: 1;
  font-size: 1.7rem;
  line-height: 4rem;
}

#box-1 {
  bottom: 3%;
  left: 16vw;
  background: url(../Images/web\ designing.jpg) center center/cover;
}
#box-1:before {
  z-index: 1;
  content: "WEB DESIGNER";
}
#box-1::after {
  z-index: 1;
  content: "I have Intermediate level of skill in Web Designing.";
}

#box-2 {
  bottom: 17%;
  overflow: hidden;
  left: 35vw;
}
#box-2 content {
  width: 25vw;
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100%;
  height: 55vh;
  overflow: hidden;
}
#box-2 video {
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

#box-2:before {
  content: "VIDEO EDITING";
}
#box-2::after {
  content: "Video Editing is not only skill its art too, and i have that.";
}

#box-3 {
  bottom: 28%;
  background: url(../Images/modeling.jpg) center center/cover;
  left: 55%;
}

#box-3:before {
  content: "3D MODELLING";
}
#box-3::after {
  content: "Recognizing the need is first key of modeling.";
}

#box-4 {
  bottom: 40%;
  background: url(../Images/ux\ design.jpg) center center/cover;
  right: 3%;
}
#box-4:before {
  content: "UX-DESIGN";
}
#box-4::after {
  content: "I can Do Some UX design as My use only.😁😁";
}

#navToggle{
  display: none;
}


/* Responsive for Mobile Phones */

@media only screen and (max-width: 890px) {
  body {
    flex-direction: column;
    /* display: block; */
  }

  .navbar {
    width: 100vw;
    height: 60px;
    position: static;
    z-index: 99;
    border-right: none;
    border-bottom: rgb(17, 199, 231) 2.5px solid;
  }
  .nav-items {
    flex-direction: row;
    width: 100%;
    height: 90%;
    align-items: center;
    justify-content: space-between;
  }
  .nav-icons {
    position: absolute;
    display: none;
    top: 61px;
    z-index: 9;
    left: 0;
    width: 100%;
    background: #000;
    flex-direction: column;
    height: 100%;
    margin: 0;
  }

  #logo-box {
    display: block;
    width: 150px;
    height: 90%;
    display: flex;
  }

  #navToggle {
    display: block;
    margin-right: 2%;
  }
  #bottom-right-h2{
    position: relative;
  }

  .container{
    display: flex;
    flex-direction: column;
    margin-top: 5%;
    height: auto;
    justify-content: center;
    align-items: center;
  }
  .box{
    position: relative;
    width: 90%;
    height: 50vh;
    left: 0px;
    margin: 3% 1%;
  }

  #box-1{
    left: 0;
  }
  #box-2{
    left: 0;
  }
  #box-3{
    left: 0;
  }
  #box-4{
    left: 0;
  }
}


@media (max-width: 600px){
  h2{
    font-size: 2.5rem;
  }
}
