@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;800&amp;family=Roboto&amp;display=swap");

:root {
  --blue: #1cb4da;
  scroll-behavior: smooth;
}

body {
  font-family: "Roboto", monospace;
  color: rgb(48, 48, 48);
  line-height: 1.5;
  font-size: 1.2rem;
  background: rgb(30, 201, 197);
  background: linear-gradient(
    90deg,
    /* rgba(30, 201, 197, 1) 0%,
    rgba(250, 255, 138, 1) 100% */
  );
  
  /* background-color: #05e8ba;
background-image: linear-gradient(315deg, #05e8ba 0%, #087ee1 74%); */
/* background-color: #0499f2;
background-image: linear-gradient(315deg, #0499f2 0%, #26f596 74%); */

background-color: #f5f186;
background-image: linear-gradient(315deg, #f5f186 0%, #9dfbc8 74%);
  
  cursor: url(images/cursor.svg), auto;
}

*::selection {
  background-color: rgba(30, 201, 197, 0.5);
}

h1,
h2,
h3,
h4 {
  font-family: "Poppins", sans-serif;
  margin: 0;
}

h1 {
  font-size: 3.5rem;
  font-weight: 800;
}

h2 {
  font-size: 3rem;
}

h3 {
  font-size: 2rem;
  text-align: center;
}

h4 {
  padding-left: 1rem;
  margin-left: 0.8rem;
  margin-top: 0.8rem;
}

p {
  margin: 0.8rem;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 300ms ease-in-out;
  border: var(--blue);
  border-radius: 10px;
  margin: 0.8rem;
  cursor: url(images/click.svg), auto;
}

a:hover {
  padding: 0;
  color: var(--blue);
  background-color: initial;
}

/* Navigation bar */

nav {
  width: 100%;
  text-align: center;
  border-bottom: 3px solid white;
}

ul {
  padding: 1rem;
  margin: 0;
}

nav ul {
  padding-left: 0px;
}

nav li {
  display: inline;
  font-family: "Poppins", sans-serif;
  font-size: 1.1rem;
}

nav li:not(:last-child) {
  margin-right: 2rem;
}

nav a:hover {
  background-color: var(--blue);
  color: white;
  padding: 8px;
}

/* Hero section */

header,
section {
  display: flex;
  justify-content: center;
  flex-direction: column;
}

header {
  min-height: 80vh;
  align-items: center;
  text-align: center;
}

header img {
  width: 275px;
  height: auto;
  border-radius: 50%;
  border: 3px solid white;
  margin-bottom: 1rem;
  animation: pop 500ms ease-in;
}

.circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: var(--blue);
  position: absolute;
  left: 20px;
  top: 15px;
}

.fade {
  /* Fade animation on page load */
  animation: fade 500ms ease-in;
}

@keyframes fade {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes pop {
  /* Animation for the image on page load */
  0% {
    transform: scale(0.5);
  }
  100% {
    transform: scale(1);
  }
}

/* General styles */

.border {
  background-color: rgba(255, 255, 255, 0.5);
  width: 75%;
  margin: 1.5rem auto;
  border-radius: 20px;
  position: relative;
}

.section {
  margin-top: 8rem;
}

.icons {
  text-align: center;
  width: 90%;
  margin: 0 auto;
}

.icons p {
  font-family: "Roboto", monospace;
  font-size: 1rem;
  font-weight: initial;
}

.different {
  /* Styles for the 'me' letters */
  color: rgb(48, 48, 48);
  -webkit-text-fill-color: transparent; /* Will override color (regardless of order) */
  -webkit-text-stroke-width: 2.5px;
  -webkit-text-stroke-color: rgb(48, 48, 48);
}

i:not(:last-child) {
  margin-right: 1rem;
  margin-top: 1rem;
}

.content {
  margin: 2rem;
  text-align: justify;
}

h2::before {
  content: "\2771";
  font-size: 2rem;
  color: var(--blue);
}

/* Hand animation for the about me section */

.wave {
  animation: wave 1s infinite;
  display: inline-block;
  font-size: 1.5rem;
}

@keyframes wave {
  0% {
    transform: rotate(15deg);
  }
  50% {
    transform: rotate(-15deg);
  }
  100% {
    transform: rotate(15deg);
  }
}

/* Projects section */

.project-tile {
  display: flex;
  justify-content: space-evenly;
  flex-wrap: wrap;
  flex-direction: row-reverse;
}

.project-tile {
  margin-top: 5rem;
}

.first-proj {
  margin-top: 2rem;
}

.project-tile img {
  width: 20rem;
  height: auto;
  transition: all 300ms ease-in-out;
}

.project-tile img:hover {
  transform: scale(1.05);
}

.project-tile p {
  /* Font styles for the projects description */
  font-size: 1rem;
  max-width: 20rem;
  padding-left: 1rem;
  padding-right: 1rem;
}

.project-tile a {
  /* Styles for the launch and repository buttons */
  font-size: 1rem;
}

.project-tile a:hover {
  /* Hover styles for the launch and repository buttons */
  border: 3px solid var(--blue);
  padding: 8px;
  color: inherit;
}

.project-tile .icons {
  /* Separation for the launch and repository buttons from the projects description*/
  margin-top: 1rem;
  text-align: initial;
}

/* Contact section */

.contact-links {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

#contact .content {
  text-align: center;
}

#contact h2 {
  margin-left: -10px;
}

.down {
  /* Hand animation */
  animation: down 1s infinite;
  display: inline-block;
  font-size: 1.5rem;
}

@keyframes down {
  0% {
    transform: translateY(-2px);
  }
  50% {
    transform: translateY(2px);
  }
  100% {
    transform: translateY(-2px);
  }
}

/* Credit */

footer {
  display: grid;
  place-items: center;
  height: 5rem;
  font-size: 1rem;
}

/* Contact form */

form {
  display: flex;
  flex-direction: column;
}

label {
  margin-bottom: 1rem;
}

input,
.text-area {
  border: none;
  outline: none;
  border-radius: 10px;
  padding: 0.5rem;
  font-family: inherit;
  font-size: 0.9rem;
  width: 50%;
}

.text-area {
  resize: none;
  height: 8rem;
  margin: auto;
}

.submit-btn {
  cursor: pointer;
  margin: auto;
  cursor: url(images/click.svg), auto;
  background-color: var(--blue);
  color: white;
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  transition: opacity 300ms ease-in-out;
  margin-top: 1rem;
}

.submit-btn:hover {
  opacity: 0.8;
}

/* Media queries */

@media (max-width: 700px) {
  body {
    font-size: 1rem;
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  h3 {
    font-size: 1.5rem;
  }

  nav li {
    font-size: 0.9rem;
  }

  header img {
    width: 100px;
    height: auto;
  }

  nav li:not(:last-child) {
    margin-right: 0.8rem;
  }

  nav {
    text-align: right;
  }

  nav a {
    margin: 0px;
  }

  .project-tile {
    justify-content: center;
    align-items: center;
    text-align: initial;
  }

  .border {
    width: 90%;
  }

  .circle {
    width: 20px;
    height: 20px;
    top: 18px;
  }

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

  .skill {
    flex: 1;
  }

  .icons a {
    font-size: 0.9rem;
  }

  #about-me i {
    margin-right: 0px;
    margin-top: 0.8rem;
  }

  .project-tile img {
    width: 14rem;
    height: auto;
    display: block;
    margin: auto;
  }

  input,
  .text-area {
    width: 80%;
  }

  .project-tile a:hover {
    padding: 0;
    color: #229bb9;
    background-color: initial;
    border: none;
  }

  .submit-btn {
    font-size: 0.9rem;
  }
}

@media (max-width: 320px) {
  h4 {
    padding-left: initial;
    margin-left: initial;
  }

  .project-tile p {
    /* Font styles for the projects description */
    padding-left: initial;
    padding-right: initial;
  }

  .circle {
    display: none;
  }

  .project-tile img {
    max-width: 12rem;
    transform: none;
  }

  .content {
    text-align: center;
  }

  #contact p {
    margin: initial;
  }
}

@media (min-width: 700px) {
  h2::before {
    font-size: 3rem;
  }
}
