* {
  margin: 0;
  padding: 0;
  font-family: "poppins";
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: #0C1737;
  color: white;
}

nav {
  position: fixed;
  top: 0;
  width: 99%;
  height: 8vh;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  padding: 3vh 2vw;
  background-color: white;
  z-index: 1000;
}

nav #portfolio {
  width: 39%;
  color: white;
  display: flex;
  justify-content: start;
}

nav #portfolio p {
  display: none;
}

nav #portfolio img {
  margin-left: 10px;
  width: 13vw;
}

nav #menu {
  width: 61%;
  display: flex;
  justify-content: space-around;
}

nav #menu a {
  text-decoration: none;
  color: lightblue;
  width: 10vw;
  height: 8vh;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.3vw;
}

nav #menu a:hover {
  background-color: lightblue;
  color: rgb(8, 8, 60);
  border-radius: 2vw;
  font-weight: bold;
  box-shadow: 0px 0px 5px black;
}

section {
  color: white;
  padding-top: 15vh;
  height: calc(100vh - 15vh);
  width: 100%;
}

section:nth-of-type(even) {
  background-color: #0050B2;
  width: 100%;
}

#home {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

#home #intro-side {
  letter-spacing: 1px;
}

#home #intro-side h2 {
  font-size: 1.5vw;
}

#home #into-side * {
  margin-top: 2vh;
}

#home #intro-side #hi {
  font-size: 1.5vw;
}

#home #intro-side #harshil {
  font-size: 3vw;
}

#home #intro-side #info {
  font-size: 1vw;
}

#home #intro-side #icon-container {
  display: flex;
  justify-content: flex-start;
  margin-top: 2vw;
}

#home #intro-side #icon-container .icon {
  height: 7vh;
  width: 7vh;
  border-radius: 50%;
  margin-right: 2vw;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #87a8d1;
  cursor: pointer;
  box-shadow: 0 0 5px #ffffff;
}

#home #intro-side #icon-container .icon img {
  width: 60%;
}

#btn4 {
  border: 1px solid black;
  width: 10vw;
  height: 5vh;
  text-decoration: none;
  border-radius: 10px;
  background-color: #2c78d4;
  color: rgb(255, 255, 255);
  padding: 1vh;
  justify-content: center;
  display: flex;
  align-items: center;
  margin-top: 3vh;
}

#btn4:hover {
  background-color: rgb(255, 255, 255);
  color: black;
  cursor: pointer;
}

#home #img-side {
  width: 25%;
}

#home #img-side img {
  height: 55vh;
  border-radius: 50%;
  animation: upDown 5s ease-in-out infinite;
  box-shadow: 0 0 1000px #0050B2;
}

@keyframes upDown {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
  100% {
    transform: translateY(0);
  }
}

#about {
  width: 100%;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

#about h1 {
  font-size: 5vw;
}

#about p {
  width: 50%;
  font-size: 1.5vw;
}

#about span {
  font-weight: bolder;
  font-size: 1.6vw;
}

#skills h1 {
  text-align: center;
  margin: 7vh;
  font-size: 2.5vw;
}

#skills .img-row {
  display: flex;
  justify-content: space-around;
  margin: 6vh;
  box-sizing: border-box;
}

#skills .img-box {
  width: 8vw;
  height: 8vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1vw;
  background-color: #77aff3;
  box-shadow: 0 0 1000px 10px #0050B2;
  transition: transform 0.5s ease;
  color: white;
  font-weight: bold;
  opacity: 0.6;
  border-radius: 10px;
  font-size: 1.8vw;
}

#skills div img {
  width: 5vw;
}

#skills .img-box:hover {
  transform: scale(1.1);
  opacity: 1;
  background-color: #e2e7ec;
  color: black;
}

#projects h1,
#events h1 {
  text-align: center;
  font-size: 2.5vw;
}

#projects .project-row {
  width: 100%;
  display: flex;
  justify-content: space-around;
  margin-top: 5vh;
  box-sizing: border-box;
}

#projects {
  height: 87vh;
}

#projects .project-row .project-box {
  width: 30vw;
  height: 15vw;
  background-color: #77aff3;
  box-shadow: 0 0 1000px 10px #0050B2;
  color: white;
  border-radius: 10px;
  font-size: 0.9vw;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 5px 1px #ffffff;
}

.image img {
  width: 100%;
  height: 15vw;
  display: block;
  transition: transform 0.5s ease;
}

.content {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: top 0.5s ease;
}

.content p:first-child {
  font-weight: bold;
}

#projects .project-row .project-box:hover .image img {
  transform: translateY(-100%);
}

#projects .project-row .project-box:hover .content {
  top: 0;
}

#events img {
  height: 100%;
  width: 65%;
  margin: auto;
  display: flex;
  justify-content: center;
}

#contact h2 {
  font-size: 3vw;
}

#contact {
  font-size: 2vw;
  display: flex;
  width: 100%;
  height: auto;
  margin: auto;
}

#contact #handles {
  display: flex;
  flex-direction: column;
  height: 50vh;
  padding: 2vw;
  width: 50%;
  justify-content: space-evenly;
}

#handles div {
  display: flex;
  align-items: center;
}

#contact #handles img {
  width: 1.7vw;
  background-color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1vw;
}

#contact #handles span {
  margin-left: 1vw;
}

#contact #form {
  display: flex;
  flex-direction: column;
  height: 60vh;
}

#contact #form input,
#contact #form textarea {
  width: 40vw;
  height: 5vh;
  padding: 1vw;
  font-size: 1.7vw;
  margin-top: 4vh;
  margin-left: 2vw;
  background-color: white;
  display: flex;
  align-items: center;
}

#contact #form textarea {
  height: 10vh;
}

#contact #form button {
  border: 1px solid black;
  width: 30vw;
  height: 6vh;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2vw;
  margin-top: 5vh;
  margin-left: 2vw;
  border-radius: 10px;
  background-color: #0C1737;
  color: rgb(255, 255, 255);
}

#contact #form button:hover {
  color: #87a8d1;
}

@media only screen and (max-width: 800px) {
  nav {
    height: auto;
    flex-direction: column;
    padding: 0;
    width: 100%;
  }

  nav #portfolio p {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 30px;
    font-size: 40px;
    color: #0C1737;
  }

  nav #portfolio img {
    width: 30vw;
    margin: auto;
  }

  nav #portfolio {
    width: 100%;
    text-align: center;
    padding-top: 10px;
    display: flex;
  }

  nav #menu {
    width: 100%;
    flex-direction: column;
  }

  nav #menu a {
    width: 100%;
    font-size: 3.8vw;
    font-weight: bold;
    text-align: center;
    padding: 10px 0;
    display: none;
    height: 5vh;
  }

  nav #menu a.show {
    display: block;
  }

  section {
    height: 35vh;
  }

  nav.expanded section {
    padding-top: calc(12vh + 10px);
  }

  #home #img-side {
    width: 50%;
  }

  #home #img-side img {
    height: 20vh;
    margin-right: 2vw;
  }

  #home #intro-side #hi {
    font-size: 2.5vw;
  }

  #home #intro-side #harshil {
    font-size: 4vw;
  }

  #home #intro-side #info {
    font-size: 2.3vw;
  }

  #home #intro-side h2 {
    font-size: 2.5vw;
  }

  #home #intro-side #icon-container .icon {
    height: 4vh;
    width: 4vh;
    border-radius: 50%;
    margin-left: 2vw;
  }

  #home #intro-side #icon-container .icon img {
    width: 60%;
    height: 60%;
  }

  #btn4 {
    font-size: 2.5vw;
    width: 20vw;
    height: 2vh;
  }

  #about p {
    font-size: 2.4vw;
  }

  #about span {
    font-size: 3vw;
  }

  #skills {
    height: 43vh;
  }

  #skills h1 {
    font-size: 4vw;
    margin: 6.5vw;
  }

  #skills .img-row {
    width: 100%;
    margin: 5vh 0px;
    justify-content: space-between;
  }

  #skills .img-box {
    width: 10vw;
    height: 10vw;
    font-size: 2vw;
    opacity: 1;
  }

  #projects {
    height: 95vh;
  }

  #projects h1,
  #events h1 {
    margin-top: 1.5vh;
    font-size: 4vw;
  }

  #projects .project-row {
    flex-direction: column;
    height: 40vh;
  }

  #projects .project-row .project-box {
    width: 80vw;
    height: 40vw;
    font-size: 2.1vw;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px auto;
  }

  .content {
    font-size: 1.6vw;
  }

  #events img {
    width: 100%;
  }

  #contact h2 {
    font-size: 5vw;
  }

  #contact {
    font-size: 3vw;
  }

  #contact #handles {
    display: flex;
    flex-direction: column;
    height: 25vh;
    padding: 2vw;
    width: 50%;
  }

  #contact #handles img {
    width: 3.5vw;
    background-color: white;
    border-radius: 50%;
    padding: 1vw;
  }

  #contact #handles span {
    margin-left: 1vw;
  }

  #contact #form {
    display: flex;
    flex-direction: column;
    height: 60vh;
  }

  #contact #form input,
  #contact #form textarea {
    width: 35vw;
    height: 2.5vh;
    padding: 0.9vw;
    font-size: 1.7vw;
    margin-top: 2vh;
    font-size: 3vw;
  }

  #contact #form textarea {
    height: 6.7vh;
  }

  #contact #form button {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3vw;
    margin-top: 4vh;
    margin-left: 5vw;
  }
}
