* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  transition: 1s;
  font-family: "Cinzel", serif;
  font-optical-sizing: auto;
  font-weight: 400;
}

* a {
  text-decoration: none;
  color: #7e22ce;
}

body {
  overflow-x: hidden;
  background: #efe6ef;

}

nav {
  width: 100vw;
  height: 15vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0;
  z-index: 100;
}

.nav-box {
  overflow: hidden;
  width: 90%;
  height: 60%;
  border: 1px solid hsla(0, 0%, 20%, 0.1);
  border-radius: 50px;
  backdrop-filter: blur(10px);
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: space-evenly;
}

#navBox1,
#navBox2,
#navBox3 {
  width: 33%;
  height: 100%;
  display: flex;
  align-items: center;
}

#navBox1 img {
  height: 90%;
  border-radius: 50%;
}

#navBox2 {
  justify-content: space-evenly;
}

#navBox3 {
  justify-content: flex-end;
  padding-right: 2%;
}


#home,
#contact,
#project {
  width: 30%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 3px solid transparent;
}

#mobile-menu,#menu {
    display: none;
}


#home a,
#contact a,
#project a {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7e22ce;
  width: 100%;
  height: 100%;
}

#home:hover,
#contact:hover,
#project:hover {
  border-bottom: 3px solid #7e22ce;
}

.header {
  margin: auto;
  width: 90vw;
  height: 100vh;
  display: flex;
  background: #efe6ef;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.headerLines {
  width: 50%;
  height: 40%;
  position: relative;
  top: 20%;
  left: 10%;
  display: flex;
  justify-content: space-evenly;
  flex-direction: column;
}

.headerLines h1 {
  font-size: 2.5em;
}

.headerLines p {
  font-size: 1em;
}

#purple,
#autotype {
  color: #7e22ce;
}

.navButtonBox {
  width: 40%;
  height: 20%;
  display: flex;
  align-items: center;
  gap: 5%;
}

.btn-contact-about {
  --btn-bg-1: #b885e5;
  --btn-bg-2: #7e22ce;
  --btn-bg-color: hsla(360 100% 100% / 1);
  --radii: 0.5em;
  cursor: pointer;
  width: 80%;
  height: 100%;
  font-size: var(--size, 1.1rem);
  font-weight: 500;
  transition: 0.8s;
  background-size: 280% auto;
  background-image: linear-gradient(
    325deg,
    var(--btn-bg-2) 0%,
    var(--btn-bg-1) 55%,
    var(--btn-bg-2) 90%
  );
  border: none;
  border-radius: var(--radii);
  color: var(--btn-bg-color);
  box-shadow: 0px 0px 20px #b885e5, 0px 5px 5px -1px rgba(58, 125, 233, 0.25),
    inset 4px 4px 8px rgba(175, 230, 255, 0.5),
    inset -4px -4px 8px rgba(19, 95, 216, 0.35);
}

.btn-contact:hover {
  background-position: right top;
}

@media (prefers-reduced-motion: reduce) {
  .btn-contact {
    transition: linear;
  }
}


.btn-contact-about a {
  color: white;
}

.headerImgBox {
  margin: auto;
  width: 35%;
  aspect-ratio: 1/1;
  border-radius: 49% 51% 38% 62% / 38% 39% 61% 62% ;
  background: #b885e5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.headerImgBox .bg1 {
  margin: auto;
  width: 98%;
  aspect-ratio: 1/1;
  border-radius: 49% 51% 51% 49% / 48% 39% 61% 52% ;
  background: #7e22ce;
  display: flex;
  align-items: center;
  justify-content: center;
}

.headerImgBox .bg2 {
  width: 96%;
  aspect-ratio: 1/1;
  border-radius: 49% 51% 41% 59% / 46% 42% 58% 54%  ;
  background-image: url(head.webp);
  background-size: contain;
}

#headerBox1 {
  margin-top: 10vh;
  height: 90%;
  width: 90%;
  display: flex;
}

#headerBox2 {
  margin-top: 10vh;
  height: 90%;
  width: 10%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#line {
  margin-top: 10vh;
  height: 30%;
  width: 3%;
  border-radius: 50px;
  background: #7e22ce;
}

#profileContainer {
  width: 35%;
  height: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  align-items: center;
}

#profileContainer img {
  margin: auto;
  width: 100%;
}





/* ------------------------------------------ FOR MOBILE ---------------------------------------- */



@media screen and (max-width: 1000px) {
  nav {
    width: 100vw;
    height: 15vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    z-index: 100;
  }

  .nav-box {
    width: 95%;
    overflow: visible;
  }

  #navBox1,
  #navBox2,
  #navBox3, #menu {
    width: 48%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;

  }

  #navBox3 {
    display: none;
  }

  #navBox2 {
    display: flex;
    justify-content: flex-end;
  } 

  #menu {
    margin-right: 5%;
    justify-content: flex-end;
  }

  #menuButton {
    font-size: 2em;
    background: transparent;
    border: none;
    color: #7e22ce;
  }

  #mobile-menu {
    display: flex;
    position: fixed;
    width: 100%;
    height: 0vh;
    z-index: 101;
    margin: auto;
    flex-direction: column;
    align-items: center;
    justify-content:flex-start;
    backdrop-filter: blur(10px);
    overflow: hidden;
    border-bottom:solid #000;
    border-width: 0px;
  }

  #Mhome ,#Mcontact ,#Mproject  {
    margin: 1%;
    display: flex;
    width: 95%;
    height: 10%;
    align-items: center;
    justify-content: center;
    background: rgba(171, 171, 171, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    z-index: 102;
    border: 1px solid rgba(132, 0, 255, 0.5);
  }

  #Mhome a,#Mcontact a,#Mproject a {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  #home,#contact,#project {
    display: none;
  }


  .header {
    height: 40vh;
    width: 100vw;
    background: #efe6ef;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    justify-content: center;
    margin-top: 15vh;
  }

  
  #headerBox1 {
    margin-top: 0;
    height: 80%;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  #headerBox2 {
    height: 20%;
    width: 100%;
    display: flex;
    align-items: center;
    margin-top: 1%;
  }

  #profileContainer {
    height: 100%;
  }


  #profileContainer  a {
    aspect-ratio: 1/1;
    height: 100%;
    width: fit-content;
  }

  .headerLines {
    width: 90%;
    height: 100%;
    display: flex;
    top: 0;
    left: 0;
    align-items: center;
    text-align: center;
  }

  .headerLines h1 {
    font-size: 2em;
  }

  .headerLines p {
    font-size: 0.8em;
  }

.navButtonBox {
  width: 60%;
  height: 17%;
  justify-content: center;
}

  .btn-contact-about {
    width: 60%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .headerImgBox {
    display: none;
  }

  .headerImgBox .bg1 {
    display: none;
  }

  .headerImgBox .bg2 {
    display: none;
  }

  #line {
    display: none;
  }

  #profileContainer {
    width: 70%;
    height: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-evenly;
  }

  #profileContainer .bi {
    font-size: 2em;
  }

  #profileContainer .main {
    display: none;
  }


}
