html{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #050505;
}
.cube{
    position: relative;
    width: 300px;
    height: 300px;
    transform-style: preserve-3d;
    transform: rotateX(-30deg);
    animation: animate 4s linear infinite;
}
@keyframes animate{
    from{
        transform: rotateX(-30deg);
    }
    to{
        transform: rotateX(-30deg)  rotateY(360deg); 
    }
}

.cube div{
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    transform-style: preserve-3d;
}

.cube div span{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(#151515,#4ea017);
    transform: rotateY(calc(90deg * var(--i))) translateZ(150px);
}
.top{
    position: absolute;
    top: 0;
    left: 0;
    width: 300px;
    height: 300px;
    transform: rotateX(90deg) translateZ(150px);
    background-color: rgb(20, 19, 19);
}

.top::before
{
 content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 300px;
  height: 300px;
  background: rgb(27, 31, 27);
  transform: translateZ(-380px);
  filter: blur(20px);
  box-shadow: 0 0 120px rgba(0, 255,0, 0.2),
  0 0 200px rgba(0, 255,0, 0.4),
  0 0 300px rgba(0, 255,0, 0.6),
  0 0 4000px rgba(0, 255,0, 0.8),
  0 0 500px rgb(220, 0, 8);
}
.text{
    position: absolute;
    top: 3%;
    left: 3%;
    color: rgb(146, 182, 193);
    font-size: 2rem;
}
/* contacts */
    #hidden-contant{
    overflow: hidden; 
    position: fixed;
    height: 0;
    width: 0;
    top: 0;
    left: 0;
    transition: all 2s ease-in-out;
}
   #hidden-contant:target{
    display: flex;
    height: 100vh;
    width: 100vw;
    z-index: 1;
    background-color: rgb(39, 33, 26);
    opacity: 0.6;
}
#hidden-contant ul{
    padding: 0 !important;
}
#hidden-contant li{
    list-style: none;
    color: rgb(201, 188, 188);
}

.cross a{
    position: absolute;
    top: 15%;
    left: 25%;
    font-size: 2rem;
    text-decoration: none;
    color:rgb(230, 139, 36);
}

#hidden-contant .contact-me{
     position: absolute;
    top: 20%;
    left: 32%; 
    font-family: 'Roboto', sans-serif;
    font-size: 10rem;
}
.social-icons{
    display: flex;
    position: absolute;
    top: 49%;
    left: 30%;
   
}
.social-icons a{
    display: inline-block;
    position: relative; 
    padding: 1rem;
    margin: 2rem;
    width: 50px;
    height: 50px;
    background-color: white;
    border-radius: 50%;
    overflow: hidden;
}
 .social-icons a i{
    color: black;
     transition: all 0.5s;
     padding: 0.5rem;
     opacity: 1 !important;
}

  .social-icons a::before{
    content: '';
    position: absolute;
    height: 130%;
    width: 130%;
    top: -35%;
    left: -5%;
    background-color: #cd5a0d;
    transform: rotate(40deg);
    transition: all 0.5s;
    opacity: 0.8;
}  
.social-icons a:hover{
    color: green;
}
.social-icons a:hover i{
    transform: scale(1.3);
    color: #151515;
}
.social-icons a:hover::before{
    transform: rotate(45deg) translate(15%,-100%) ;
}