* {
  box-sizing: border-box;
}

:root {
  --primary-color: #03a9f4;
  --secondary-color: #29b6f6;
  --tertiary-color: #4fc3f7;
  --quarter-color: #81d4fa;
  --five-color: #b3e5fc;
  --six-color: rgba(225, 245, 254, 0.3);
  --white-color: rgb(255, 255, 255, 0.8);
  --dark-color: rgb(56, 52, 52);
  --grey-color: rgb(88, 86, 86);
}

html,
body {
  font-family: "Montserrat", sans-serif;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

a {
  text-decoration: none;
}

.card-contact span {
  font-size: 13px;
}

hr {
  height: 1px;
  border: none;
  background-color: var(--quarter-color);
}

.container {
  width: 90%;
  margin: 0 auto;
}

.container-right {
  width: 95%;
  margin: 0 auto 0 0;
}

.container-left {
  width: 95%;
  margin: 0 0 0 auto;
}

.list-style-none {
  list-style: none;
}

.flex {
  display: flex;
}

.flex-direction-column {
  flex-direction: column;
}

.grid {
  display: grid;
}

.grid-temp-1 {
  grid-template-columns: 1fr;
}

.grid-temp-2 {
  grid-template-columns: 1fr 1fr;
}
.grid-temp-3 {
  grid-template-columns: repeat(3, 1fr);
}

.gap-1 {
  gap: 1em;
}
.gap-2 {
  gap: 2em;
}
.gap-3 {
  gap: 3em;
}

.text-decoration-none {
  text-decoration: none;
}

.justify-content-beetwen {
  justify-content: space-between;
}
.justify-content-center {
  justify-content: center;
}
.justify-content-around {
  justify-content: space-around;
}

.align-items-center {
  align-items: center;
}

.w-100 {
  width: 100%;
}

.w-30 {
  width: 30%;
}

.w-xs-100 {
  width: 100%;
}

.h-100 {
  height: 100%;
}

.pl-0 {
  padding-left: 0;
}

.p-0 {
  padding: 0;
}
.p-1 {
  padding: 0.5em;
}
.p-2 {
  padding: 1em;
}
.p-3 {
  padding: 1.5em;
}

.pt-2 {
  padding-top: 1em;
}

.pt-3 {
  padding-top: 1.5em;
}

.pb-0 {
  padding-bottom: 0;
}
.pb-1 {
  padding-bottom: 0.5em;
}
.pb-2 {
  padding-bottom: 1em;
}
.pb-3 {
  padding-bottom: 1.5em;
}

.px-3 {
  padding-left: 1.5em;
  padding-right: 1.5em;
}

.py-3 {
  padding-top: 1.5em;
  padding-bottom: 1.5em;
}
.py-2 {
  padding-top: 1em;
  padding-bottom: 1em;
}

.mt-0 {
  margin-top: 0;
}
.mt-1 {
  margin-top: 0.5em;
}
.mt-2 {
  margin-top: 1em;
}
.mt-3 {
  margin-top: 1.5em;
}

.mb-0 {
  margin-bottom: 0;
}
.mb-1 {
  margin-bottom: 0.5em;
}
.mb-2 {
  margin-bottom: 1em;
}
.mb-3 {
  margin-bottom: 1.5em;
}

.my-0 {
  margin-top: 0;
  margin-bottom: 0;
}
.my-1 {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}
.my-2 {
  margin-top: 1em;
  margin-bottom: 1em;
}
.my-3 {
  margin-top: 1.5em;
  margin-bottom: 1.5em;
}

.fixed {
  position: fixed;
  z-index: 1;
}

.pointer {
  cursor: pointer;
}

.uppercase {
  text-transform: uppercase;
}

.text-align-center {
  text-align: center;
}

.text-align-center-sm {
  text-align: center;
}

.text-align-right {
  text-align: right;
}

.text-align-left {
  text-align: left;
}

.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.display-none {
  display: none;
}

.display-block {
  display: block;
}

.title {
  font-size: 25px;
  color: var(--dark-color);
}

.subtitle {
  font-size: 20px;
}

.description {
  font-size: 14px;
  line-height: 25px;
  color: var(--grey-color);
}

.link {
  color: var(--secondary-color);
}

.bg-white {
  background-color: #fff;
}
.bg-yellow {
  background-color: yellow;
}
.bg-primary {
  background-color: var(--primary-color);
}
.bg-secondary {
  background-color: var(--secondary-color);
}
.bg-tertiary {
  background-color: var(--tertiary-color);
}
.bg-quarter {
  background-color: var(--quarter-color);
}
.bg-five {
  background-color: var(--five-color);
}
.bg-six {
  background-color: var(--six-color);
}
.bg-grey {
  background-color: var(--grey-color);
}
.bg-dark {
  background-color: var(--dark-color);
}

.color-primary {
  color: var(--primary-color);
}
.color-secondary {
  color: var(--secondary-color);
}
.color-tertiary {
  color: var(--tertiary-color);
}
.color-quarter {
  color: var(--quarter-color);
}
.color-dark {
  color: var(--dark-color);
}
.color-gray {
  color: var(--grey-color);
}
.color-white {
  color: #fff;
}

/* header */
header {
  border-bottom: 1px solid rgba(200, 200, 200, 0.5);
  padding: 10px 0;
  height: 76px;
}

.title-header .title,
.title-header .description {
  margin: 0;
}

.title a {
  color: var(--secondary-color);
}

.menu-list {
  padding-left: 0;
  display: none;
}

.menu-link {
  color: var(--primary-color);
  padding-right: 30px;
}

.menu-link:hover {
  text-decoration: underline;
}

.menu-link:visited {
  color: var(--primary-color);
}

.active {
  font-weight: bolder;
  color: var(--primary-color);
  text-decoration: underline;
}

/* .menu-item {
  margin-right: 20px;
}

.menu-item:last-child {
  margin-right: 0;
} */

.hamburger i {
  font-size: 20px;
  color: var(--tertiary-color);
}

/* menu-clon */

.menu-clon {
  position: fixed;
  width: 100%;
  top: 0;
  margin-top: 76px;
  z-index: 1;
  background-color: var(--dark-color);
  transition: all 0.5s ease-in;
}

.menu-clon .menu-list {
  display: flex;
  margin: 0;
  text-align: center;
}

.menu-clon .menu-item-clon {
  padding: 0;
}

.menu-clon .menu-link {
  color: white;
  width: 100%;
  display: inline-block;
  padding: 1em 0;
  line-height: 50px;
}

.menu-clon .menu-link:hover {
  background-color: var(--grey-color);
}

.menu-item-clon {
  padding-top: 2em;
  padding-bottom: 2em;
  margin-right: 0;
}

/* home */

.home {
  /* padding: 50px 0; */
  height: 100vh;
  background-color: var(--six-color);
  width: 100%;
  display: flex;
  flex-flow: nowrap column;
  justify-content: center;
  background-image: url("img/bg.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.home-main {
  grid-template-columns: 1fr;
}

.home-photo {
  display: none;
  height: 100%;
  box-shadow: 10px 10px 17px -13px rgba(0, 0, 0, 0.75);
}

.home-photo img {
  width: 100%;
  height: 100%;
}

.button {
  padding: 10px 20px;
  margin-top: 20px;
  display: inline-block;
  border: 1px solid transparent;
  text-align: center;
}

.button-small {
  margin-top: 10px;
  padding: 5px 10px;
  display: inline-block;
  border: 1px solid transparent;
  text-align: center;
}

.button-primary {
  background-color: var(--primary-color);
  color: white;
  transition: all 0.3s ease;
}

.button-primary:hover {
  color: var(--primary-color);
  background-color: white;
  border: 1px solid var(--primary-color);
}
.button-secondary {
  background-color: var(--quarter-color);
  color: white;
  transition: all 0.3s ease;
  border: 1px solid var(--quarter-color);
}

.button-secondary:hover {
  color: var(--quarter-color);
  background-color: white;
  border: 1px solid var(--quarter-color);
}
.button-tertiary {
  background-color: white;
  color: var(--tertiary-color);
  transition: all 0.3s ease;
  border: 1px solid var(--tertiary-color);
}

.button-tertiary:hover {
  color: var(--quarter-color);
  background-color: white;
  border: 1px solid var(--quarter-color);
}
.button-yellow {
  background-color: yellow;
  color: var(--grey-color);
  border: 1px solid yellow;
  transition: all 0.3s ease;
}

.button-yellow:hover {
  color: var(--dark-color);
  font-weight: bolder;
}

.home-thanks {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: var(--white-color);
  padding: 20px;
  box-shadow: 10px 10px 17px -13px rgba(0, 0, 0, 0.75);
}

.home-info {
  width: 100%;
  grid-template-columns: 1fr;
  align-items: center;
  justify-items: center;
  gap: 1em;
  margin-top: 3em;
}

.network-follow {
  display: none;
}

.social-icon {
  font-size: 20px;
  margin-right: 20px;
}

.link-icon {
  color: var(--secondary-color);
}

.link-icon:hover {
  color: var(--quarter-color);
}

.see-more i {
  font-size: 50px;
  cursor: pointer;
  color: var(--tertiary-color);
  transition: all 0.3s ease;
}

.see-more i:hover {
  color: var(--primary-color);
}

/* projects */

.projects {
  padding: 50px 0;
}

.projects-container {
  padding: 30px 0;
  flex-wrap: wrap;
  justify-content: center;
  /* overflow: auto; */
}

.card-project {
  box-shadow: 10px 10px 17px -13px rgba(0, 0, 0, 0.75);
  grid-template-columns: 1fr;
  width: 250px;
  height: 250px;
  margin-right: 20px;
  margin-bottom: 1.5em;
}

.body-img {
  height: 100%;
  transition: all 0.3s ease;
}

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

.body-project {
  bottom: 0;
  width: 100%;
  padding: 10px;
  background-image: none;
}

.main-projects {
  justify-content: space-around;
  flex-wrap: wrap;
}

.main-project-card {
  width: 100%;
  display: flex;
  flex-flow: nowrap column;
  box-shadow: 10px 10px 17px -13px rgba(0, 0, 0, 0.75);
  margin-bottom: 1.5em;
  /* border-radius: 3px; */
  border: 1px solid rgba(184, 184, 184, 0.5);
  transition: all 0.3s ease;
}

.main-project-card:hover {
  transform: scale(1.02);
}

.main-project-description {
  padding: 0.5em;
  text-align: center;
}

.main-project-img {
  width: 100%;
}
/* 
.main-project-img img {
  border-top-left-radius: 3px;
  border-top-right-radius: 3px;
} */

/* about */

.about-container,
.about-container-2 {
  grid-template-columns: 1fr;
  gap: 1em;
}

.about-bg-fixed {
  width: 100%;
  min-height: 150px;
  background-image: url("img/code.jpeg");
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
}

.subrayado-yellow {
  /* font-weight: bold; */
  /* font-style: italic; */
  font-size: 1.05em;
  color: var(--grey-color);
}

.about-img {
  display: none;
}

.item-circle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 90px;
  height: 90px;
  background-color: yellow;
  color: var(--grey-color);
  border-radius: 50%;
  transition: all 0.3s ease;
  margin-bottom: 1em;
}

.item-circle:hover {
  animation: rotate 0.8s ease-in-out;
  color: var(--dark-color);
  transform: rotate(360deg);
}

.item-circle i {
  font-size: 30px;
}

.list-skills {
  flex-wrap: wrap;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* contact */

.card-contact {
  border-radius: 3px;
  color: var(--grey-color);
}

.card-contact:hover {
  color: var(--dark-color);
}

.card-contact > span {
  margin: 0.3em;
}

.card-contact i {
  font-size: 40px;
  transition: all 0.2s ease;
}

.card-contact:hover i {
  animation: rotateX 0.3s ease-in;
  transform: rotateZ(15deg);
}

@keyframes rotateX {
  from {
    transform: rotateZ(0deg);
  }
  to {
    transform: rotateZ(15deg);
  }
}

@media (min-width: 576px) {
  .w-sm-100 {
    width: 100%;
  }
  .title {
    font-size: 26px;
  }

  .subtitle {
    font-size: 24px;
  }

  .description {
    font-size: 15px;
  }

  /* projects */

  .main-project-card {
    width: 45%;
  }
}

@media (min-width: 768px) {
  .display-none-sm {
    display: none;
  }

  .display-block-sm {
    display: block;
  }

  .grid-temp-2-sm {
    grid-template-columns: 1fr 1fr;
  }

  .grid-temp-3-sm {
    grid-template-columns: repeat(3, 1fr);
  }

  .w-md-100 {
    width: 100%;
  }

  .w-md-auto {
    width: auto;
  }

  .w-md-30 {
    width: 30%;
  }

  .title {
    font-size: 28px;
  }

  .subtitle {
    font-size: 23px;
  }

  .see-more {
    display: none;
  }

  .home-info {
    grid-template-columns: 1fr 1fr;
  }

  .network-follow {
    display: block;
    justify-self: start;
  }

  .network-cv {
    justify-self: end;
  }

  .menu-clon {
    width: 60%;
  }

  /* projects */

  .card-project {
    min-width: 250px;
  }
}

@media (min-width: 992px) {
  .grid-temp-3-md {
    grid-template-columns: repeat(3, 1fr);
  }

  .card-contact span {
    font-size: 15px;
  }

  .container-right-md {
    width: 95%;
    margin: 0 auto 0 0;
  }

  .container-left-md {
    width: 95%;
    margin: 0 0 0 auto;
  }
  .text-align-right-md {
    text-align: right;
  }

  .text-align-left-md {
    text-align: left;
  }

  .w-lg-100 {
    width: 100%;
  }

  .w-lg-auto {
    width: auto;
  }
  .menu-list {
    display: flex;
  }

  .home-main {
    grid-template-columns: 1fr 3fr;
  }

  .home-photo {
    display: block;
  }

  .hamburger {
    display: none;
  }

  .see-more {
    display: block;
  }

  .title {
    font-size: 30px;
  }

  .subtitle {
    font-size: 25px;
  }

  .description {
    font-size: 16px;
  }

  .about-bg-fixed {
    height: 250px;
  }

  .menu-clon {
    display: none;
    right: -100%;
  }

  /* projects */

  .card-project {
    width: 200px;
  }

  .main-project-card {
    width: 30%;
  }

  .projects-container {
    justify-content: center;
  }

  /* about */

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

  .about-img {
    display: block;
  }
}

@media (min-width: 1200px) {
  .w-xl-100 {
    width: 100%;
  }
}
