@import url('https://fonts.googleapis.com/css?family=Comic+Neue&display=swap');
:root {
  --principe : #220228;
  --text : #a781ad;

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

html{
  font-size:  10px;
  font-family:'Roboto', sans-serif;
  color: #eee;
}
body{
  width: 100%;
  height: 100vh;
  background: var(--principe);
  overflow: hidden;
}
section{
  padding: 6rem 0;
}
a{
  text-decoration: none;
  color: #eee;
}
p{
  font-size: 1.8rem;
  font-weight: 300;
}

.container{
  width: 100%;
  height: 100vh;
}
.top-nav{
  width: 100%;
  height: 100%;
  position: fixed;
  top: -1000vh;
  z-index: 50;
  background: #410c4b;
  transition: all 650ms cubic-bezier(1,0,0,1);
}
.nav-list {
  list-style: none;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
li{
  margin: 0 2rem;
}
.nav-link{
  font-family: 'Comic Neue', cursive;
  font-size: 5rem;
  padding: 1rem;
}
.nav-link:hover,
.nav-link:focus{
  background: linear-gradient(to top, #8d50af, #8d50af);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.top-nav.open{
  top: 0;
  border-raduis: initial;
}

.menu-toggler{
  position: absolute;
  top: 5rem;
  right: 5rem;
  width: 5rem;
  height: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  z-index: 1500;
  transition: transform 650ms ease-out;
}
.menu-toggler.open{
  transform: rotate(-45deg);
}
.bar{
  background: linear-gradient(to top, var(--text), #8c349d);
  width: 100%;
  height: 4px;
  border-radius: .8rem;
}
.bar.half{
  width: 50%;
}
.bar.start{
  transform-origin: right;
  transition: transform 650ms cubic-bezier(0.54, -0.81, 0.75, 0.57);
}
.open .bar.start{
  transform: rotate(-450deg) translateX(.8rem);
}
.bar.end{
  align-self: flex-end;
  transform-origin: left;
  transition: transform 650ms cubic-bezier(0.54, -0.81, 0.75, 0.57);
}
.open .bar.end{
  transform: rotate(-450deg) translateX(-.8rem);
}

/*________________________________TEXT________________________*/
.landing-text{
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  text-align: center;
  z-index: 1;
  animation-name: anna;
}
.container{
  color: #fff;
  font-size: 3rem;
  cursor: context-menu;
}

strong{
  color: var(--text);
}
.line {
  position: relative;
  top: 50%;
  width: 16em;
  margin: 0 auto;
  border-right: 2px solid rgba(255, 255, 255, 0.75);
  font-size: 180%;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  transform: translateY(-50%);
}
/*Animation*/

.anim-typewriter {
      animation: typewriter 4s steps(40) 1s 1 normal both,
      blinkTextCursor 500ms steps(40) infinite normal;
}

@keyframes typewriter {
      from {
            width: 0;
      }
      to {
            width: 12.3em;
      }
}

@keyframes blinkTextCursor {
      from {
            border-right-color: rgba(255, 255, 255, 0.75);
      }
      to {
            border-right-color: transparent;
      }
}
.social {
  position: absolute;
  bottom: 8px;
  left: 50%;
  Transform: translate(-50%, -50%);
}
.media {
  position: relative;
  top: 14%;
}
.social i {
  font-size: 25px;
  padding-left: 10px;
  transition: .2s;
}

.social a:hover {
  color: #a781ad;
}
.one {
  font-size: 55px;
  color: var(--text);
  position: absolute;
  top: 90px;
  right: 5px;
  transition: .8s;
}


/* start  design services */
.container{
  width: 90%;
  max-width: 120rem;
  height: 100%;
  margin: 0 auto;
  position: relative;
}

/*________________________________skills________________________*/
.skills h1 {
  text-align: center;
  opacity: .6;
  font-size: 4rem;
  padding: 45px;
}

.mySkills {
  width: 35%;
  height: 10vh;
  margin-left: 10%;
}
.mySkills p{
  text-align: left;
  opacity: .8;
  line-height: 5px;
}
.mySkills p:nth-child(2){
  position: relative;
  text-align: right;
  animation-name: animationText;
  animation-duration: 10s;
  margin-bottom: 9px;
}
.barskills {
  background: #fff;
  opacity: .6;
  padding: 4px;
  border-radius: 10px;
  width: 100%;
  height: 16px;
}
.barbackground {
  background: var(--principe);
  width: 100%;
  height: 9px;
  border-radius: 12px;
  animation-duration: 4s;
  animation-name: animationBar;
}

@keyframes animationBar {
  from {
      width: 0;
      }
}

@keyframes animationText {
  from {
        opacity: 0;
      }
  to {
    opacity: 1;
  }
}
.box {
  position: absolute;
  top: 22%;
  right: 18%;
}
.langage {
  width:200px;
  height:200px;
  margin:100px auto;
  position:relative;
 -webkit-transform-style:preserve-3d;
}
.langage div {
  position: absolute;
  left: 0;
  top: 0;
  width: 200px;
  height: 200px;
  transform-origin: 50% 50% 100px;
  opacity: 0.9;
}
.p1 {
  background: url(../images/html.jpg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  animation:spin1 10s infinite linear;
}
.p2 {
  background: url(../images/css.jpg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  animation:spin2 10s infinite linear;
}
.p3 {
  background-image: url(../images/sass.png);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  animation:spin3 10s infinite linear;
}
.p4 {
  background: url(../images/js.png);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  animation:spin4 10s infinite linear;
}
.p5 {
  background: url(../images/bootstrap.png);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  animation:spin5 10s infinite linear;
}
.p6 {
  background: url(../images/vue.jpg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  animation:spin6 10s infinite linear;
}

@keyframes spin1 {
0% {transform:perspective(600px) rotateX(0deg) rotateY(90deg) rotateZ(0deg);}
to {transform: perspective(600px) rotateX(360deg) rotateY(450deg) rotateZ(0deg);}
}
@keyframes spin2 {
0% {transform:perspective(600px) rotateX(0deg) rotateY(270deg) rotateZ(0deg);}
100% {transform:perspective(600px) rotateX(360deg) rotateY(630deg) rotateZ(0deg);}
}
@keyframes spin3 {
0% {transform:perspective(600px) rotateX(90deg) rotateY(0deg) rotateZ(0deg);}
100% {transform:perspective(600px) rotateX(450deg) rotateY(0deg) rotateZ(-360deg);}
}
@keyframes spin4 {
0% {transform:perspective(600px)  rotateX(-90deg) rotateY(0deg) rotateZ(0deg);}
100% {transform:perspective(600px) rotateX(270deg) rotateY(0deg) rotateZ(360deg);}
}
@keyframes spin5 {
0% {transform:perspective(600px) rotateX(0deg) rotateY(0deg) rotateZ(0deg);}
100% {transform:perspective(600px) rotateX(360deg) rotateY(360deg) rotateZ(0deg);}
}
@keyframes spin6 {
0% {transform:perspective(600px)  rotateX(0deg) rotateY(180deg) rotateZ(0deg);}
100% {transform:perspective(600px) rotateX(360deg)  rotateY(540deg) rotateZ(0deg);}
}



/*________________________________PROJECT________________________*/
.project h1 {
  text-align: center;
  padding-top: 6%;
  font-size: 54px;
  padding-bottom: 3%;
  opacity: .3;
}
.pro {
  text-align: center;
}
.content{
  width: 300px;
  display: inline-block;
  position: relative;
  transition: .5s;
  margin: 4px;
  }
img{
  width: 80%;
  transition: .5s;
  border-radius: 4px;
  background: #fff;
  padding: 50px;
  overflow: hidden;
}

.content:hover img{
  filter: brightness(30%);
  transition: .5s;
}

.title{
  position: absolute;
  z-index: 1;
  top: 30%;
  left: 79px;
  text-align: center;
  color: #fff;
  opacity: 0;
  cursor: context-menu;
}
.title p a:hover{
  color:  #a781ad;
  font-weight: bold;
  text-decoration: underline;
}

.content:hover :not(img){
  opacity:1;
}
.arrows {
  font-size: 2.4rem;
  position: absolute;
  background: #a781ad;
  border-radius: 50%;
  height: 60px;
  width: 60px;
  line-height: 60px;
  text-align: center;
  cursor: pointer;
  color: #fff;
  display: none;
}
.arrows:hover {
  background: #a781adab;
  transition: .5s;
}
.left {
  top: 23rem;
  left: 5rem;
}
.right {
  top: 23rem;
  right: 5rem;
}
@keyframes zoom {
  0%{transform: scale(2);opacity: 0}
  50%{transform: scale(2);}
  100%{transform: scale(1);opacity:1}
}
/*________________________________CONTACT________________________*/


#error_message{
  color: #ED5565;
  text-align: center;
  font-size: 12px;
  transition: all 0.5s ease;
}
.contact h1 {
  text-align: center;
  padding-top: 5%;
  padding-bottom: 1%;
  font-size: 54px;
  opacity: .6;
}
.name {
  margin: auto;
  width: 400px;
  padding: 40px;
  border: 1px solid rgba(0, 0, 0, .1);
  box-shadow: 0 5px 10px rgba(0,0,0,.2);
}
.name label{
  display: flex;
}
.name input{
  padding: 10px 0;
  color: #fff;
  background: none;
  margin-bottom: 30px;
  width: 100%;
  outline: none;
  border: none;
  box-shadow: none;
  border-bottom: 2px solid var(--text);
}
.name textarea{
  padding: 10px 0;
  color: #fff;
  margin-bottom: 30px;
  width: 100%;
  outline: none;
  border: none;
  box-shadow: none;
  background: none;
  border-bottom: 2px solid var(--text);
}
.name input[type="submit"]{
  border-bottom: none;
  cursor: pointer;
  margin-bottom: 0;
  text-transform: uppercase;
  background: var(--text);
  color: var(--principe);
  font-size: 16px;
  transition: .5s;
}
.name input[type="submit"]:hover{
  background: #dcb2e3;
}

.name form div {
  position: relative;
}
.name form div label {
  position: absolute;
  font-size: 13px;
  top: 10px;
  left: 0;
  color: #fff;
  opacity: .6;
  transition: .5s;
  pointer-events: none;
}
.name input:valid ~ label,
.name textarea:valid ~ label {
  top: -12px;
  left: 0;
  color: var(--text);
  opacity: 1;
  font-weight: bold;
}
.name input:focus,
.name textarea:focus,
.name input:valid,
.name textarea:valid{
  border-bottom: 2px solid var(--text);
}
button.portfolio {
  position: absolute;
  bottom: 10%;
  left: 50%;
  Transform: translate(-50%, -50%);
  display: inline-block;
  cursor: pointer;
  outline: none;
  border: 0;
  vertical-align: middle;
  text-decoration: none;
  background: transparent;
  padding: 0;
  font-size: inherit;
  font-family: inherit;
  width: 16rem;
  height: auto;
}
button.portfolio .circle {
  transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
  position: relative;
  display: block;
  margin: 0;
  width: 3rem;
  height: 3rem;
  background: #a781ad;
  border-radius: 1.625rem;
}
button.portfolio .circle .icon {
  transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
  position: absolute;
  top: 0;
  bottom: 0;
  margin: auto;
  background: #a781ad;
}
button.portfolio .circle .icon.arrow {
  transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
  left: 0.625rem;
  width: 1.125rem;
  height: 0.125rem;
  background: none;
}
button.portfolio .circle .icon.arrow::before {
  position: absolute;
  content: '';
  top: -0.25rem;
  right: 0.0625rem;
  width: 0.625rem;
  height: 0.625rem;
  border-top: 0.125rem solid #fff;
  border-right: 0.125rem solid #fff;
  transform: rotate(45deg);
}
button.portfolio .button-text {
  transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.75rem 0;
  margin: 0 0 0 1.85rem;
  color: #a781ad;
  font-weight: 700;
  line-height: 0.6;
  text-align: center;
  font-size: 22px;
}
#pro {
  margin: 0 -10px 0 1.85rem;
  font-size: 21px;
}
#cont {
  margin: 0 -10px 0 1.90rem;
}
button:hover .circle {
  width: 100%;
}
button:hover .circle .icon.arrow {
  background: #fff;
  transform: translate(1rem, 0);
}
button:hover .button-text {
  color: #fff;
}


/* media query */
@media only screen and (max-width: 811px) {

  .nav-list {
    display: grid;
    height: 85%;
    align-items: end;
  }
  .nav-link {
    font-size: 3rem;
  }
  /* index */
  .container{
    color: #fff;
    font-size: 2.5rem;
    cursor: context-menu;
  }

  /* skills */
  .box {
    display: none;
  }
  .mySkills {
    width: 80%;
    margin: auto;
  }
  .skills h1 {
    padding: 20px;
  }
}

@media only screen and (max-width: 757px) {
  .slider {
    width: 293px;
    height: 254px;
    margin: 4rem auto;
    position: relative;
  }
    .content {
      display: none;
    }
    .active {
      display: block;
    }
    img {
      width: 80%;
      height: 230px;
      object-fit: cover;
      transition: .5s;
      animation:zoom 1s ease;
    }
    .img {
      background: #fff;
      padding: 50px;
      object-fit: contain;
    }
    .arrows {
      display: block;
    }
}

 @media only screen and (max-width: 610px) {
/* index */
  .container{
    font-size: 2rem;
  }


  /* project */
  .project h1 {
    font-size: 35px;
    padding-top: 10%;
  }
.landing-text {
    position: absolute;
    top: 47%;
  }
  .contact h1 {
    padding-top: 8%;
    font-size: 40px;
  }
}

@media only screen and (max-width: 530px) {
  .project h1 {
    font-size: 35px;
  }
  .contact h1 {
    padding-top: 10%;
  }
  .arrows {
    height: 40px;
    width: 40px;
    line-height: 40px;
  }
  .right {
    right: 2rem;
    top: 22rem;
  }
  .left {
    left: 2rem;
    top: 22rem;
  }
}

@media only screen and (max-width: 490px) {

  .name {
    width: 320px;
  }
  .container {
    color: #fff;
    font-size: 1.8rem;
    cursor: context-menu;
  }
  .container {
    font-size: 1.8rem;
  }
  .contact h1 {
    padding-top: 10%;
  }
  .project h1 {
    padding-top: 16%;
  }
  .right, .left {
    top: 26rem;
  }
}

@media only screen and (max-width: 445px) {
  .container {
    font-size: 1.6rem;
  }
  .project h1 {
    padding-top: 20%;
  }
}

@media only screen and (max-width: 400px) {
/* index */
.name {
    margin: auto;
    width: 280px;
  }

  /* .contact h1 */
  .contact h1 {
    padding-top: 8%;
  }

  /* project */
  .container h1 {
    font-size: 30px;
  }
  .line {
    font-size: 110%;
  }
  .project h1 {
    padding-top: 26%;
  }
  img {
    width: 60%;
    height: 180px;
  }

  /* skills */
  .skills h1 {
    text-align: center;
    opacity: .6;
    font-size: 3rem;
  }
  .skills h1 {
    padding-top: 15px;
    padding-bottom: 15px;
}

  .container {
    font-size: 2.4rem;
  }
}

@media only screen and (max-width: 360px) {
  .menu-toggler {
    position: absolute;
    top: 5rem;
    right: 2rem;
  }
  .line {
    font-size: 2.6rem;
  }
  .contact h1 {
    padding-top: 14%;
  }
}
@media only screen and (max-width: 345px) {
  .line {
    font-size: 2.4rem;
  }
  .img {
    padding: 20px;
  }
  img {
    width: 50%;
    height: 160px;
  }
  .right, .left {
    top: 24rem;
  }
}
@media only screen and (max-width: 325px) {
  .container h1 {
      font-size: 26px;
  }
  .line {
    font-size: 2.2rem;
  }
}
