@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;500;700;900&display=swap');

* {
  box-sizing: border-box;
  /* outline: 1px solid red; */
}

html,
body {
  overflow-x: hidden;
  width: 100%;
  margin: 0;
  font-size: 1rem;
  font-family: 'Roboto', sans-serif;
  color: rgb(85, 85, 85);
  background: linear-gradient(to right, rgba(245, 245, 245, .9), rgba(245, 245, 245, .8));
}

:root {
  --color1: #6e07f4;
  --color2: #5be9b9;
  --navy: #151c39;
}

a {
  text-decoration: none;
  color: inherit;
}

#about,
#contact {
  position: relative;
  background: linear-gradient(to right, rgba(245, 245, 245, 0.65), rgba(245, 245, 245, 0.65)), url("https://d33wubrfki0l68.cloudfront.net/daac8858fd4a0ccea44f59dfd079c3c16c263f33/c157c/assets/svg/common-bg.svg");
  background-size: cover;
  background-position: center;
}

.section {
  padding: 2em 4em;
  height: 100%;
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: start;
}

.secTitle {
  position: relative;
  font-size: 2em;
  font-weight: 600;
}

.secTitle::after {
  position: absolute;
  content: "";
  background-color: var(--color1);
  border-radius: 0.05em;
  width: 90%;
  height: 0.13em;
  top: 110%;
  left: 5%;
}

/* _____________________________________ HOME ______________________________________________ */

#home {
  padding: 2em 4em;
  height: 100%;
  position: relative;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.name {
  color: var(--color1);
}

.hiText {
  text-align: center;
  z-index: 99;
}

.hi {
  font-size: 2.5em;
  font-weight: 600;
  margin: 0.1em;
  /* white-space: nowrap; */
}

.anime {
  position: relative;
  height: 100vh;
  width: 85%;
  display: flex;
  align-items: center;
  justify-content: start;
}

.circle {
  box-shadow: 0.5em 0.5em 0.4em #8888886d;
  background: linear-gradient(-45deg, var(--color1), var(--color2));
  background-size: 300% 300%;
  animation-name: drop, bg;
  animation-duration: 1s, 5s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: 1, infinite;
  overflow-x: hidden;
  width: 40vw;
  height: 40vw;
  border-radius: 50%;
  position: absolute;
  top: 10%;
  left: 50%;
}

@keyframes bg {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@keyframes drop {
  0% {
    opacity: 0.1;
    top: -60%;
  }

  100% {
    top: 10%;
  }
}

.vec {
  width: 40vw;
  height: auto;
  position: absolute;
  top: 35%;
  left: 50%;
  animation: vec 1.2s ease-in-out;
}

@keyframes vec {
  0% {
    opacity: 0.1;
    top: 60%;
  }

  50% {
    top: 33%;
  }

  100% {
    top: 35%;
  }
}

.btn {
  background-color: var(--navy);
  border-radius: 2em;
  outline: none;
  color: #FFFFFF;
  cursor: pointer;
  display: inline-block;
  font-weight: 500;
  margin: 1em;
  padding: 0.7em 1em;
  transition: all 300ms cubic-bezier(.23, 1, 0.32, 1);
  animation: btn 1.5s ease-in;
}

.btn:hover {
  box-shadow: rgba(0, 0, 0, 0.25) 0 8px 15px;
  transform: translateY(-2px);
}

.btn:active {
  box-shadow: none;
  transform: translateY(0);
  opacity: 0.5;
}

@keyframes btn {
  0% {
    visibility: hidden;
    opacity: 0;
  }

  50% {
    visibility: hidden;
    opacity: 0;
  }

  100% {
    visibility: visible;
    opacity: 1;
  }
}

/* _____________________________________ NAV-BAR _______________________________________________ */
nav {
  position: relative;
  background-color: white;
  box-shadow: 0 10px 50px rgba(0, 0, 0, .1);
  padding: 1.2em 2em;
  z-index: 99;
  transition: ease-in-out 0.6s;
}

.sticky {
  position: fixed;
  top: 0em;
  width: 100%;
  background: linear-gradient(180deg, rgb(255, 255, 255), rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.6));
  transition: ease-in-out 0.6s;
}

#nav-list {
  font-weight: 600;
  font-size: 1.2em;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: start;
  align-items: center;
}

.nav-item {
  margin-right: 1em;
}

.active {
  color: var(--color1);
}

/* _______________________________________ABOUT ME_____________________________________________ */

.about-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 2.5em;
}

.myPic {
  display: flex;
  justify-content: center;
}

.img {
  height: 15em;
  width: auto;
}


article {
  font-size: 1em;
  font-weight: 400;
}

article a {
  color: rgb(85, 85, 85);
  text-decoration: none;
}

.fw-bold {
  font-weight: 700;
}

article a:hover {
  color: var(--color1);
}

.skill-list {
  display: flex;
  flex-wrap: wrap;
}

.skill-list div {
  padding: 0.5em 1em;
  margin-bottom: 1em;
  margin-right: 1em;
  background: rgba(153, 153, 153, .2);
  border-radius: 0.3em;
  font-size: 1.1em;
  font-weight: 600;
}

.skill-fr {
  color: var(--color1);
}



/* ________________________________________PROJECTS_____________________________________________ */

.cards-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.project-card {
  overflow: hidden;
  margin: 1.5em;
  position: relative;
  width: 30em;
  height: 18em;
  border-radius: 0.7em;
  box-shadow: 10px 10px 2px 0px rgba(0, 0, 0, .1);
}

.card-overlay {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: out 0.5s ease-in-out;
  animation-fill-mode: forwards;
  animation-direction: alternate;
}

.project-card:hover .card-img {
  animation: in 0.5s ease-in-out;
  animation-fill-mode: forwards;
  animation-direction: alternate;
}

@keyframes in {
  0% {
    transform: scale(1);
    opacity: initial;
  }

  100% {
    transform: scale(1.1);
    opacity: 0.2;
  }
}

@keyframes out {
  0% {
    transform: scale(1.1);
    opacity: 0.2;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.learnMore {
  position: absolute;
  bottom: -20%;
  animation: btnout 0.5s ease-in-out;
  animation-fill-mode: forwards;
  background-color: black;
  border-radius: 0.5em;
  color: #FFFFFF;
  cursor: pointer;
  font-size: 0.9em;
  margin: 0.5em;
  padding: 0.5em 0.8em;

}

.project-card:hover .learnMore {
  animation: btnin 0.5s ease-in-out;
  animation-fill-mode: forwards;
}

@keyframes btnin {
  0% {
    opacity: 0;
    bottom: -15%;
  }

  100% {
    opacity: 1;
    bottom: 10%;
  }
}

@keyframes btnout {
  0% {
    opacity: 1;
    bottom: 10%
  }

  100% {
    opacity: 0;
    bottom: -15%;
  }
}

.details {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: -23%;
  animation: textout 0.5s ease-in-out;
  animation-fill-mode: forwards;
}

.project-card:hover .details {
  animation: textin 0.5s ease-in-out;
  animation-fill-mode: forwards;
}

@keyframes textin {
  0% {
    opacity: 0;
    top: -23%;
  }

  100% {
    opacity: 1;
    top: 17%
  }
}

@keyframes textout {
  0% {
    opacity: 1;
    top: 17%
  }

  100% {
    opacity: 0;
    top: -23%;
  }
}

.proj-name {
  font-size: 1.6em;
  font-weight: 500;
  margin: 0.1em;
}

.tech-used {
  font-size: 1.1em;
  font-weight: 500;
  color: var(--color1);
  text-align: center;
}

/* ________________________________________CONTACT_____________________________________________ */

.info {
  color: white;
  background-color: var(--color1);
  border-radius: 1.5em;
  box-shadow: 0em 0em 5em rgba(0, 0, 0, 0.5);
  /* height: 60vh; */
  width: 60vw;
  padding: 4em;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.cont {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  margin: 2em;
}

.cont>div {
  font-size: 1.2em;
  margin: 2em;
  text-align: start;
}

.title {
  font-weight: 500;
  margin: 0em 0em 1em 0em;
}

.links {
  display: flex;
  color: white;
  font-size: 1.2em;
}

.social {
  transition: all 0.4s ease-in-out;
  margin: 0.2em;
}

.social:hover {
  transform: scale(1.4);

}


video {
  width: 100%;
  height: 100%;
}

/* ______________________________________________ Modal ____________________________________ */
.Modal {
  position: fixed;
  background-color: rgba(255, 255, 255, 0.304);
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 9999;
  display: none;
  transition: all 0.3s;
}
.modal-content {
  overflow: hidden;
  background-color: rgb(255, 255, 255);
  height: 80vh;
  width: 70vw;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 1.5em;
  border-radius: 1em;
  box-shadow: 0em 0em 1em rgba(0, 0, 0, 0.5);

}

.modal-header {
  display: flex;
  flex-direction: row-reverse;
}

.modal-close {
  color: #aaa;
  font-size: 0, 9em;
  font-weight: 500;

}

.modal-close:hover {
  color: black;
  cursor: pointer;
}

.modal-body {
  overflow-y: auto;
  overflow-x: hidden;
  width: 100%;
  height: 85%;
}

.modal-body::-webkit-scrollbar-track {
  -webkit-box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.091);
  border-radius: 10px;
  background-color: #F5F5F5;
}

.modal-body::-webkit-scrollbar {
  width: 0.5em;
  background-color: #F5F5F5;
}

.modal-body::-webkit-scrollbar-thumb {
  border-radius: 10px;
  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, .3);
  background-color: #a9a9a9;
}

.modal-img {
  width: inherit;
  object-fit: contain;
}

.modal-video {
  object-fit: contain;
  height: auto;
}

.modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 500;
}

.modal-footer p {
  margin: 0;
}

.githubLink {
  background-color: black;
  border-radius: 0.5em;
  color: #FFFFFF;
  cursor: pointer;
  font-size: 0.9em;
  padding: 0.5em 0.8em;
}

/* ______________________________________________ Crousel ____________________________________ */

.modal-body ul {
  margin: 0;
  padding: 0;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  z-index: 99999;
  padding: 0 0.45em;
  font-size: 2em;
  background: none;
  border-radius: 1em;
  border: none;
  color: #646464;
  transition: 0.4s ease-in-out;
}

.carousel-btn:hover {
  background-color: rgba(210, 210, 210, 0.518);
  cursor: pointer;
}

.next {
  left: 92%;
}

.carousel {
  position: relative;
  height: 100%;
}

.slide {
  width: 100%;
  position: absolute;
  inset: 0;
  display: none;
}

.slide[data-active] {
  display: block;
}



@media (max-width: 420px) {
  .project-card {
    width: 22em;
    height: 15em;
  }
}



/* Extra small devices (phones, 600px and down) */
@media (max-width: 600px) {

  html,
  body {
    font-size: 0.9rem;
  }

  .about-body {
    grid-template-columns: 1fr;
  }

  #home,
  .section{
    padding: 2.5em;
  }
  .anime {
    width: auto;
  }
  .hiText{
    margin-bottom: 15em;
  }
  .hi {
    font-size: 1.7em;
  }
  .circle{
    width: 70vw;
    height: 70vw;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  @keyframes drop {
    0% {
      opacity: 0.1;
      top: -60%;
    }
    100% {
      top: 50%;
    }
  }
  .vec{
    width: 70vw;
    height: auto;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  @keyframes vec {
    0% {
      opacity: 0.1;
      top: 110%;
    }
  
    50% {
      top: 44%;
    }
  
    100% {
      top: 50%;
    }
  }
  .modal-content {
    height: 40vh;
    width: 90vw;
  }
  .modal-body {
    height: 75%;
  }

}


/* Medium devices (landscape tablets, 768px and up) */
@media (min-width: 600px) and (max-width: 900px) {

  html,
  body {
    font-size: 0.95rem;
  }
  .anime {
    width: 100%;
  }
  .hi {
    /* font-size: 2.2em; */
  }
  .circle{
    width: 50vw;
    height: 50vw;
  }
  .vec{
    width: 50vw;
    height: auto;

  }
  .modal-content {
    height: 50vh;
    width: 85vw;
  }
  
.modal-body {
  /* height: 85%; */
}

}


/*


  @media(max-width:700px) {
    .circle {
      width: 70vw;
      height: 70vw;
      top: 30%;
    }

    @keyframes drop {
      0% {
        opacity: 0.1;
        top: -60%;
      }

      100% {
        top: 30%;
      }
    }

    .vec {
      width: 85vw;
      top: 50%;
      right: 7%;
    }

    @keyframes vec {
      0% {
        opacity: 0.1;
        top: 60%;
      }

      50% {
        top: 47%;
      }

      100% {
        top: 50%;
      }
    }

    .anime {
      width: 0rem;
      height: 0rem;
    }

    .section {
      justify-content: flex-start;
      align-items: flex-start;
    }

    .text {
      padding-top: 10rem;

    }

    .project,
    .currentproject {
      overflow: hidden;
      background: none !important;
      width: auto;
      height: 11rem;
      margin: 0.5rem;
    }

    .nav-link {
      font-size: medium;
      margin: 0rem;
    }

  } */