/* 
  1. Use a more-intuitive box-sizing model.
  2. Remove default margin
*/
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/*
    Typographic tweaks!
    3. Add accessible line-height
    4. Improve text rendering
  */
body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/*
    5. Improve media defaults
  */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

/*
    6. Remove built-in form typography styles
  */
input,
button,
textarea,
select {
  font: inherit;
}

/*
    7. Avoid text overflows
  */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

/*
    8. Create a root stacking context
  */
#root,
#__next {
  isolation: isolate;
}

/* Reset end */

/* Global classes */

.container {
  padding: 0 40px;
}

.container-normal {
  max-width: 1100px;
}

.container-large {
  max-width: 1400px;
}

.full-width-border {
  width: 100vw;
  border-bottom: 1px solid #363e52;
}

/* Main start */
body {
  min-width: 100vw;
  min-height: 100vh;
  width: 100vw;
  overflow-x: hidden;
  background-color: #040e27;
  color: #ddd;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  font-family: "Roboto", sans-serif;
}

/* Nav */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 75px;

  img {
    /* width: 50px;
    height: 50px; */
    width: 100%;
  }

  ul {
    list-style: none;
    display: flex;
    gap: 25px;

    a {
      color: #fff;
      text-decoration: none;
    }
  }
}

/* Main */
main {
  /* background-color: coral; */
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
/* Main - hero */
main .hero {
  width: 100%;
  display: flex;
  justify-content: space-around;
  align-items: start;
  gap: 75px;
  padding: 40px;
}

/* Main - Hero - Contact */

main .hero .contact {
  text-align: center;
  min-width: 200px;

  img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 2px solid #0181f5;
  }

  p {
    margin-top: 10px;

    svg {
      position: relative;
      top: 10px;
      display: inline-block;
      width: 2rem;
      margin-right: 7px;

      &.email {
        width: 27px;
        top: 12px;
      }

      &.whatsapp {
        width: 25px;
        /* margin-right: 8px; */
      }

      &.linkedin {
        top: 14px;
      }
    }

    span {
      color: #ffa500;
      font-size: 2rem;
    }

    a {
      text-decoration: none;
      color: inherit;
      display: inline-block;

      &:hover {
        opacity: 0.8;
      }
    }

    &:last-of-type {
      margin-top: 0;
    }
  }
}

/* Main - hero - description */
main .hero .description {
  p {
    margin-top: 10px;
    line-height: 2.1rem;

    span {
      color: #ffa500;
      font-size: 2rem;
    }

    &:nth-of-type(2),
    &:nth-of-type(4) {
      span {
        font-size: 1.2rem;
      }
    }

    a {
      text-decoration: none;
      color: #ffa500;
      padding: 0 10px;

      &:hover {
        opacity: 0.8;
      }
    }
  }

  a.cta {
    display: inline-block;
    position: relative;
    text-decoration: none;
    color: #fff;
    background-color: #0181f5;
    margin-top: 20px;
    padding: 10px 30px;

    &:hover {
      opacity: 0.8;
    }
  }
}

/* Main - Projects */
main .projects {
  min-width: 100vw;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 350px;
  gap: 3px;

  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .project {
    cursor: pointer;
    position: relative;

    .more-info {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      position: absolute;
      width: 100%;
      height: 100%;
      background-color: rgba(1, 129, 245, 0.8);
      top: 0;
      opacity: 0;
      transition: all 0.5s;

      &:hover {
        opacity: 1;
      }

      p {
        text-align: center;
      }

      p.title {
        font-size: 1.5rem;
        font-weight: 700;
        margin-bottom: 7px;
      }

      p.description {
        font-size: 1rem;
        margin-bottom: 7px;
      }

      a {
        background-color: rgba(0, 0, 0, 0.8);
        padding: 10px 25px;
        color: #fff;
        text-decoration: none;

        &:hover {
          opacity: 0.9;
        }
      }
    }
  }
}

/* Footer */
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 40px;
}

footer .follow-me {
  display: flex;
  align-items: center;
  justify-content: start;
}

footer svg {
  position: relative;
  display: inline-block;
  width: 2rem;
  margin-left: 7px;
  &.linkedin {
    top: 0;
  }
}

/*  Responsive Design */
@media (max-width: 768px) {
  body {
    min-width: 375px;
    width: 100%;
  }

  nav.container {
    flex-direction: column;
    justify-content: center;
    height: auto;
    padding: 10px;

    img {
      margin-bottom: 10px;
    }
  }

  main .hero {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    gap: 30px;
    text-align: center;
  }

  main .projects {
    display: grid;
    grid-template-columns: repeat(2, 1fr);

    .project:last-of-type {
      grid-column: span 2;
    }
  }

  footer {
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  footer .follow-me p {
    font-weight: 700;
  }
}
