@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");

/* * {
  border: 2px solid red;
} */
body {
  margin: 0;
  padding: 0;
  font-family: "Montserrat", sans-serif;
  background-color: #f3fffe;
  min-height: 100%;
}
@media screen and (min-width: 1440px) {
  #welcome-section {
    width: 80%;
    margin: 0 auto;
  }
  body {
    margin: 0 auto;
    width: 80%;
  }
}

html {
  height: 100%;
  scroll-behavior: smooth;
}

nav {
  z-index: 10;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  height: 65px;
  background-color: #aa9cf3;
  width: 100vw;
}

nav ul {
  height: 100%;
  width: 50%;
  margin: 0;
  position: relative;
  display: flex;
  justify-content: right;
  align-items: center;
  float: right;
  list-style-type: none;
  margin-right: 7%;
}

nav li {
  height: 100%;
  width: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}

nav li:hover {
  background-color: white;
}

nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 0 20px;
  font-size: 1.3em;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
}

nav a:hover {
  color: #aa9cf3;
}

section {
  overflow-y: visible;
}

#welcome-section {
  position: relative;
  width: 100%;
  height: 100vh;
  max-height: 100%;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

#welcome-section::before {
  content: " ";
  position: absolute;

  background-image: url("./images/welcome-section-left-side-decoration.svg");
  background-position: left;
  background-attachment: local;
  background-size: contain;
  background-repeat: no-repeat;
  height: 100vh;
  width: 392.79px;
  top: 65px;
  left: -0.9px;
  right: 0;
  bottom: 0;
}

#welcome-section::after {
  content: " ";
  position: absolute;
  background-image: url("./images/welcome-section-right-side-decoration.svg");
  background-position: right;
  background-attachment: local;
  background-size: contain;
  background-repeat: no-repeat;
  /* height: calc(100% - 220px); */
  height: 100vh;
  width: 664.77px;
  top: 27.2%;
  /* left: 684px; */
  right: 0px;
  bottom: 0;
}

#welcome-section h1 {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 35% 0 0px 0;
  height: fit-content;
  font-size: 4.5em;
  color: #7166ac;
  font-weight: 600;
}

#welcome-section p {
  position: relative;
  text-align: center;
  margin-top: 23px;
  font-size: 2.3em;
  color: #a5a1be;
}
#welcome-section #icon {
  position: relative;
  margin-top: 8%;
  margin-left: 16%;
  animation: move 1s infinite alternate;
}
#welcome-bottom-part-design {
  display: none;
}

@keyframes move {
  from {
    transform: translateY(0px);
  }
  to {
    transform: translateY(20px);
  }
}

#about-link {
  position: absolute;
  margin-top: 65px;
}
#about-section {
  position: relative;
  width: 80%;
  margin: 50px auto 200px auto;
}
/* 
#inside-about-section {
} */
#about-section h1 {
  position: relative;
  display: inline-block;
  left: 15%;
  top: 40px;
  font-size: 3.5em;
  font-weight: 500;
  color: #4c4184;
  height: fit-content;
  margin-bottom: 0;
}
#about-bg {
  position: absolute;
  width: 96%;
  height: 95%;
  left: -140px;
  top: 105px;
}
#about-section div {
  position: relative;
  display: inline-block;
  width: 40%;
  margin: 4% 50px 0 50px;
}
#about-section #about-div {
  text-align: left;
  margin: 0px 0px 0 90px;
}

#about-section #about-div article {
  display: inline-block;
  padding: 0% 0 0 4%;
}
#about-section h3 {
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: left;
  grid-gap: 10px;
  padding-left: 10px;
  color: #6d63a8;
  font-size: 100%;
}
#about-section p {
  font-size: 90%;
  color: #414141;
  font-weight: 400;
}

#about-section #person img {
  position: relative;
  width: 100%;
  bottom: 0;
  left: 70px;
  border-radius: 50% 50% 0 50%;
}

@media screen and (max-width: 1230px) {
  #about-section #about-div {
    top: 60px;
    left: -10px;
  }
  #about-section #person {
    width: 35%;
  }
}

@media screen and (max-width: 1100px) {
  #about-section #about-div {
    font-size: 14px;
    left: -60px;
  }
}

#projects-link {
  position: absolute;
  margin-top: -80px;
}
#projects {
  position: relative;
  text-align: left;
  margin: 100px auto 100px auto;
  width: 80%;
  height: 1000px;
}
#project-section-bg {
  position: absolute;
  text-align: center;
  width: 110%;
  z-index: -1;
  right: -7%;
  top: 20px;
  transform: rotate(-1deg);
}
#projects .project-div {
  width: 100%;
  display: grid;
  grid-gap: 10%;
  margin: 80px auto 0 auto;
  grid-template-columns: repeat(3, minmax(50px, 268px));
}
#projects .project-div a {
  width: 100%;
  text-decoration: none;
}
#projects h1 {
  color: #4c4184;
  font-size: 3em;
  font-weight: 500;
  text-align: center;
  margin: 40px auto 60px auto;
}

#projects figure {
  margin: 0;
  padding: 0;
  background-color: #ccc1ff;
  padding: 0px 0;
  border-radius: 30px 30px 30px 30px;
  width: 100%;
  text-align: center;
  /* border: 1px solid #a9a3e7; */
}
figcaption {
  padding: 10px 0 16px 0;
  font-weight: 500;
  color: #17095e;
  font-size: 1.2em;
  text-decoration: none;
  display: flex;
  height: 40px;
  justify-content: center;
  align-items: center;
}
#projects figure img {
  width: 100%;
  height: 100%;
  border-radius: 30px 30px 0 0;
}
#projects .project-div a :hover {
  opacity: 0.8;
  z-index: 3;
  z-index: 3;
}
#profile-link {
  position: relative;
  display: block;
  text-align: right;
  top: 80px;
  right: 6%;
}

#profile-link input {
  font-size: 1.2em;
  height: 52px;
  width: 203.17px;
  color: white;
  background: #7a6fe5;
  border-radius: 10px;
  border: unset;
}
#profile-link input:hover {
  background: #4e4699;
}

#contact {
  position: relative;
  text-align: center;
  height: 650px;
  overflow: hidden;
}

#contact-link {
  position: absolute;
  margin-top: -20px;
}
#contact h1 {
  font-size: 3.4em;
  color: #403965;
}
#contact a {
  position: relative;
  width: 100%;
  height: 100%;
  top: 10px;
  z-index: 2;
}

#contact a img {
  position: relative;
  margin: 50px 1.3%;
  transition: all 0.3s ease-in-out;
}
#contact a img:hover {
  transform: translateY(-20px);
}
@keyframes move-up {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-20px);
  }
}
#circle-like {
  position: relative;
  justify-content: center;
  width: 80%;
  bottom: 37em;
}
@media screen and (max-width: 1225px) {
  #circle-like {
    bottom: 30em;
  }
}

footer {
  position: relative;
  display: flex;
  justify-content: right;
  align-items: center;
  height: 100px;
  width: 80%;
  margin: 10px auto;
  top: -10px;
  border-radius: 39px;
  background-color: #6f64a7;
}
footer h2 {
  padding: 0 40px;
  color: #fff;
  font-size: 1em;
  font-weight: 400;
}

@media screen and (max-width: 1143px) {
  /* #welcome-section #icon {
    top: 12%;
    right: 20%;
  } */
  #about-section h1 {
    left: 100px;
  }
  #projects {
    height: 800px;
  }
}

@media screen and (max-width: 1000px) {
  * {
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
    -khtml-user-select: none; /* Konqueror HTML */
    -moz-user-select: none; /* Old versions of Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome, Edge, Opera and Firefox */
  }
  #welcome-section::after {
    background-image: none;
  }
  #welcome-section::before {
    background-image: none;
  }
  #icon {
    display: none;
  }
  /* #welcome-section {
    overflow-x: hidden;
  } */

  #welcome-bottom-part-design {
    position: absolute;
    display: block;
    width: 999px;
    max-width: 100%;
    height: 500px;
    max-height: 100%;
    left: -1px;
    bottom: 0;
    right: 0;
    display: none;
    /* bottom: 100px; */
  }

  #welcome-section h1 {
    margin-top: 0px;
  }
  #inside-about-section {
    display: grid;
    grid-template-columns: repeat(1, minmax(30%, 100px) minmax(100%, 100%));
  }
  #inside-about-section article {
    width: 300px;
    left: unset;
    position: relative;
    right: 0px;
  }
  #about-bg {
    left: -50px;
    width: 600px;
    top: 110px;
  }
  #person {
    top: 15%;
    left: 20%;
  }
  #circle-like {
    bottom: 50%;
  }
  figcaption {
    font-size: 1.1em;
  }
  #welcome-bottom-part-design {
    top: 115px;
  }
}

@media screen and (max-width: 750px) {
  #welcome-section h1 {
    font-size: 3em;
  }
  #welcome-section p {
    font-size: 1.5em;
  }
  figcaption {
    font-size: 0.9em;
    padding: 5px;
    height: 100%;
  }
  #about-section p {
    font-size: 12px;
  }
  #person {
    top: 25%;
  }
  #about-section {
    margin-top: 100px;
  }
  #about-link {
    margin-top: 0px;
  }
}

@media screen and (max-width: 680px) {
  nav ul {
    height: 100%;
    width: 50%;
    margin: 0;
    position: relative;
    display: flex;
    justify-content: right;
    align-items: center;
    float: none;
    list-style-type: none;
    margin-right: 7%;
  }
  nav ul {
    display: inline-block;
    width: 100%;
  }
  nav li {
    display: inline-block;
    width: 20%;
  }
  nav ul a {
    font-size: 16px;
    width: 100%;
    padding: 0;
  }
  #projects {
    margin-bottom: 0;
  }
  #circle-like {
    bottom: 40%;
  }
  #inside-about-section {
    display: block;
    text-align: left;
  }
  #about-section #about-div article {
    width: 100%;
  }

  #inside-about-section article p {
    width: 100%;
  }
  #about-section h1 {
    left: 0;
    text-align: center;
    display: block;
  }

  #about-section #person {
    display: flex;
    top: 0;
    left: 0;
    width: 80%;
    margin: 0 auto;
    justify-content: center;
    /* overflow: hidden; */
  }
  #about-section #about-div {
    margin: 0 0 100px 0;
    display: block;
    left: 0;
    width: 100%;
    text-align: left;
  }

  #about-section #person img {
    position: relative;
    bottom: 0;
    left: 0;
    border-radius: 100px;

    width: 300px;
    height: auto;
  }
  #about-bg {
    display: none;
  }
  #projects .project-div {
    display: inline-block;
    grid-template-columns: unset;
    width: 100%;
    text-align: center;
    margin-top: 0;
  }
  #projects {
    margin: 0 0px 200px 0;
    text-align: center;
    width: 100vw;
  }
  #projects h1 {
    margin-bottom: 10px;
  }
  #project-section-bg {
    display: none;
  }
  #projects .project-div figure {
    width: 40%;
    margin: 20px;
    display: inline-block;
  }
  #projects {
    height: 100%;
  }

  figcaption {
    height: 60px;
    padding: 0px;
  }
  #profile-link {
    text-align: center;
    right: 0;
  }
}

@media screen and (max-width: 600px) {
  #welcome-bottom-part-design {
    top: 120px;
  }
  #circle-like {
    bottom: 20%;
  }
  #contact h1 {
    font-size: 2.5em;
  }
  #contact a img {
    width: 15%;
  }
}

@media screen and (max-width: 480px) {
  #welcome-bottom-part-design {
    top: 180px;
  }
  #about-section #person img {
    position: relative;
    bottom: 0;
    left: 0;
    border-radius: 100px;

    width: 100%;
    height: auto;
  }
  #about-section {
    margin-bottom: 40%;
  }
}

@media screen and (max-width: 425px) {
  #projects .project-div figure {
    width: 60%;
  }
  #projects h1 {
    font-weight: 2em;
  }

  #welcome-section {
    display: block;
    padding-top: 0 0%;
    text-align: center;
  }
  #welcome-bottom-part-design {
    top: 10px;
  }
  #welcome-section::before,
  #welcome-section::after {
    background-image: none;
    display: none;
  }
  #about-section,
  #about-link {
    margin-top: 0px;
  }
  #profile-link {
    top: 10px;
  }
  #contact {
    height: 600px;
  }
  #projects {
    margin-bottom: 100px;
  }
}

@media screen and (max-width: 1000px) {
  #welcome-section {
    background-color: #6d63a8;
    height: 100vh;
    max-height: 100%;
    width: 100%;
    border-radius: 0 0 0px 0px;
  }
  #first {
    background-color: #a9a1d5;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    border-radius: 0 0 150px 100px;
  }
  #second {
    background-color: #f3fffe;
    border-radius: 0 0 300px 200px;
    width: 100%;
    height: 98%;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
  }
}
