*,
::before,
::after {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}
:root {
  --primary-color: #05c7f2;
  --secondary-color: #4384d9;
  --bg-dark: #000014;
  --bg-normal: #010440;
  --bg-light: #020659;
  --size: 8px;
}
html {
  color: #c8cbd1;
  font-family: "Roboto", sans-serif;
}
body {
  /* overflow-x: hidden; */
  background-color: var(--bg-dark);
}
a {
  text-decoration: none;
}
h1 {
  font-size: 3.5rem;
  font-weight: 500;
  text-align: center;
}
h2 {
  font-size: 2.5rem;
  font-weight: 300;
  text-align: center;
  color: var(--primary-color);
  font-family: "Press Start 2P", sans-serif;
}
h3 {
  font-size: 2rem;
  font-weight: 300;
  color: var(--primary-color);
  font-family: "Press Start 2P", sans-serif;
  line-height: 1.2;
}
p {
  font-size: 1.2rem;
  font-weight: 300;
}
button {
  all: unset;
}
::-webkit-scrollbar {
  height: 5px;
  width: 5px;
}
::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}
::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 4px;
}

@keyframes scrollImg {
  from {
    object-position: 0 100%;
    -o-object-position: 0 100%;
  }
  to {
    object-position: 0 0;
    -o-object-position: 0 0;
  }
}

/* GLOBAL CLASSES */
.container {
  width: 100%;
  padding: 3rem 10rem;
}
.col {
  width: 50%;
}
.btn {
  padding: 10px;
  border-radius: 10px;
  cursor: pointer;
  margin-top: 5px;
  text-align: center;
}
.btn:hover {
  filter: brightness(1.2);
}
.btn-primary {
  background-color: var(--primary-color);
  color: black;
}
.btn-secondary {
  background-color: #eeeeee;
  color: black;
}
.btn-info {
  background-color: #ffc107;
  color: black;
  min-width: 100px;
}
.btn-icon {
  display: inline-flex;
  align-items: center;
}
.icon-btn {
  width: 24px;
  margin-right: 5px;
}
.bg-white {
  background-color: white;
}
.shadow {
  box-shadow: 0px 4px 4px rgb(0 0 0 / 25%);
}
.disableScroll {
  overflow: hidden;
}
.flex {
  display: flex;
}
.flex-column {
  flex-direction: column;
}
.align-center {
  align-items: center;
}
.my-1 {
  margin: var(--size) 0;
}
.my-2 {
  margin: calc(var(--size) * 2) 0;
}
.underline {
  text-decoration: underline;
}
/* END GLOBAL CLASSES */

/* STYLES HEADER*/
header {
  background-color: black;
  height: 60px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  transition: top 0.5s;
  top: -60px;
  padding: 0 10rem;
  width: 100%;
  z-index: 20;
}
.show {
  top: 0;
}
.logo-container {
  height: 100%;
  width: 98px;
  display: flex;
  align-items: center;
}
.logo-container img {
  width: 100%;
}
.menu {
  display: flex;
  height: 100%;
  align-items: center;
}
.menu-list {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
}
.menu-item {
  color: var(--primary-color);
}
.menu-item:hover {
  filter: brightness(1.2);
}
.menu-dropdown {
  display: none;
  cursor: pointer;
  height: 32px;
  width: 32px;
}
.menu-dropdown img {
  object-fit: cover;
  width: 100%;
}
.active {
  transform: translate(600px);
}
.opacity {
  filter: brightness(0.6);
  transition: all 0.5s ease;
}
.menu-mobile {
  background-color: black;
  width: 100vw;
  max-width: 300px;
  height: 100vh;
  position: fixed;
  top: 0;
  right: 0;
  z-index: 10;
  transition: all 0.5s ease;
}
.menu-list-mobile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  padding: 100px 0 20px 0;
}
.menu-item-mobile {
  color: var(--primary-color);
  font-size: 1.8rem;
}
.menu-item-mobile:hover {
  filter: brightness(1.2);
}
/* END STYLES HEADER*/

/* STYLES HERO */
.hero-container {
  height: 100vh;
  background-image: url("./images/background-hero.jpg");
  background-size: cover;
  background-position: bottom;
  background-repeat: no-repeat;
}
.my-name {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
}
/* END STYLES HERO */

/* STYLES ABOUT ME */
.about {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.container-img-profile {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}
.img-profile {
  width: 100%;
  height: 50%;
  max-width: 400px;
  border-radius: 50%;
  object-fit: cover;
}
.container-description {
  display: flex;
  flex-direction: column;
  padding: 10px;
}
.title-description {
  display: flex;
  align-items: center;
  padding-bottom: 10px;
}
.react-img {
  width: 64px;
}
.skills {
  font-family: "Press Start 2P", sans-serif;
  color: var(--secondary-color);
  margin: 10px 0;
}
.skills-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 8px;
  max-width: 360px;
}
.skills-list li {
  display: flex;
  max-width: 150px;
  align-items: center;
  list-style: none;
  padding-bottom: 8px;
}
.icon-skill {
  width: 32px;
  padding-right: 5px;
}
/* END STYLES ABOUT ME */

/* STYLES MY PROJECTS */
.projects {
  background-color: var(--bg-dark);
}
.title-projects {
  text-align: center;
  margin-bottom: 20px;
}
.projects-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 20px;
}
.project {
  margin-bottom: 20px;
  width: 100%;
}
.container-preview {
  height: 400px;
}
.container-preview:hover {
  transform: scale(1.04);
  transition: 1s;
}
.project-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 0 0;
  border-radius: 10px;
}
.container-preview:hover .project-preview {
  -webkit-animation-name: scrollImg;
  animation-name: scrollImg;
  animation-iteration-count: infinite;
  animation-direction: alternate-reverse;
  -webkit-animation-iteration-count: infinite;
  -webkit-animation-duration: 6s;
  animation-duration: 6s;
}
.project-title {
  font-family: "Press Start 2P", sans-serif;
  margin: 15px 0 10px;
  color: var(--secondary-color);
  line-height: 1.5;
}
.project-description {
  margin-bottom: 10px;
}
.title-technologies {
  margin-bottom: 8px;
}
.technologies {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.technology {
  background-color: #1c2541;
  padding: 8px;
  border-radius: 15px;
}
.technology span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-weight: 300;
}
/* END STYLES MY PROJECTS */

/* STYLES EXPERIENCES */
.experiences {
  background-color: var(--bg-normal);
}
.title-experiences {
  text-align: center;
  margin-bottom: 20px;
  word-break: break-word;
}
.experiences-list {
  display: grid;
  grid-gap: 20px;
  grid-template-columns: 1fr 1fr;
}
.experience {
  margin-bottom: 20px;
}
.experience--buzzly .title-experience.buzzly {
  color: #fff;
}
.experience--buzzly .container-preview-experience {
  margin: 1rem 0;
  border-radius: 10px;
  overflow: hidden;
}
.experience--buzzly .container-preview-experience img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.container-preview-experience {
  height: 280px;
}
.title-experience {
  font-family: "Press Start 2P", sans-serif;
  font-size: 1.2rem;
  font-weight: 300;
  margin-top: 15px;
  line-height: 1.5;
}
.title-experience.buzzly {
  color: var(--primary-color);
}
.experience-date {
  margin-bottom: 10px;
}
.experience-description {
  margin-bottom: 0;
}
/* END STYLES EXPERIENCES */

/* STYLES EDUCATION */
.educations {
  background-color: var(--bg-normal);
}
.title-educations {
  text-align: center;
  margin-bottom: 20px;
  word-break: break-word;
}
.educations-list {
  display: grid;
  grid-gap: 20px;
  grid-template-columns: 1fr 1fr;
}
.container-img-education {
  height: 400px;
}
.img-education {
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center;
}
.title-education {
  font-family: "Press Start 2P", sans-serif;
  font-size: 1.2rem;
  font-weight: 300;
  margin-top: 15px;
  line-height: 1.5;
}
.platzi {
  color: #aeda00;
}
.itfip {
  color: #eb3036;
}
.udemy {
  color: #ae4af1;
}
.alkemy {
  color: #58c1f5;
}
.education-finished-date {
  margin-bottom: 10px;
}
/* END STYLES EDUCATION */

/* STYLES FOOTER*/
footer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 150px;
}
footer p {
  text-align: center;
}
.social-media {
  margin-top: 10px;
}
.social-media-menu {
  margin-top: 10px;
  display: flex;
  justify-content: center;
}
.social-item {
  border-radius: 20px;
  width: 48px;
  margin-right: 10px;
}
.github {
  background-color: white;
}
/* END STYLES FOOTER*/

@media screen and (max-width: 1280px) {
  /* GLOBAL CLASSES */
  .container {
    padding: 3rem 5rem;
  }
  /* END GLOBAL CLASSES */

  /* STYLES HEADER */
  header {
    padding: 0 5rem;
  }
  /* END STYLES HEADER */
}
@media screen and (max-width: 900px) {
  h1 {
    font-size: 3rem;
  }
  h2 {
    font-size: 2rem;
  }
  h3 {
    font-size: 1.5rem;
  }

  /* GLOBAL CLASSES */
  .container {
    padding: 3rem 2.5rem;
  }
  .col {
    width: 100%;
  }
  /* END GLOBAL CLASSES */

  /* STYLES HEADER */
  header {
    padding: 0 2.5rem;
  }
  .menu-list {
    display: none;
  }
  .menu-dropdown {
    display: flex;
  }
  /* END STYLES HEADER */

  /* STYLES HERO */
  .hero-container {
    min-height: 50vh;
    height: 50vh;
  }
  .about {
    flex-direction: column;
  }
  .title-description {
    justify-content: center;
  }
  /* END STYLES HERO */

  /* STYLES MY PROJECTS */
  .projects-list {
    grid-template-columns: 1fr;
    grid-gap: 20px;
  }
  /* END STYLES MY PROJECTS */

  /* STYLES EXPERIENCES */
  .experiences-list {
    grid-template-columns: 1fr;
  }
  /* END STYLES EXPERIENCES */

  /* STYLES EDUCATION */
  .educations-list {
    grid-template-columns: 1fr;
  }
  /* END STYLES EDUCATION */
}
@media screen and (max-width: 600px) {
  /* GLOBAL CLASSES */
  .container {
    padding: 1rem 1rem;
  }
  .col {
    width: 100%;
  }
  /* END GLOBAL CLASSES */

  /* STYLES HEADER */
  header {
    padding: 0 1rem;
  }
  /* END STYLES HEADER */

  /* STYLES EXPERIENCES */
  .experiences-list {
    grid-template-columns: 1fr;
  }
  /* END STYLES EXPERIENCES */

  /* STYLES EDUCATION */
  .educations-list {
    grid-template-columns: 1fr;
  }
  /* END STYLES EDUCATION */
}
@media screen and (max-width: 450px) {
  h1 {
    font-size: 2.5rem;
  }
  h2 {
    font-size: 1.8rem;
  }
  h3 {
    font-size: 1.3rem;
  }
  p {
    font-size: 1rem;
  }
  /* GLOBAL CLASSES */

  .btn {
    display: flex;
    justify-content: center;
  }
  /* END GLOBAL CLASSES */

  /* STYLES MY PROJECTS */
  .container-preview {
    height: 300px;
  }
  /* END STYLES MY PROJECTS */

  /* STYLES EXPERIENCES */
  .container-preview-experience {
    height: 220px;
  }
  /* END STYLES EXPERIENCES */

  /* STYLES EDUCATION */
  .title-education {
    font-size: 1rem;
  }
  /* END STYLES EDUCATION */
}
