/* general styles */
@import 'components/styles.css';

/* navigation bar */
@import 'components/navbar.css';

/* footer */
@import 'components/footer.css';

/* home - introduction */
.home {
  padding-top: var(--navbar-height);
  min-height: calc(100dvh);
  display: flex;
  flex-wrap: wrap;
  flex-direction: column-reverse;
  justify-content: space-evenly;
  align-items: center;
  gap: 1rem;
}
.home aside {
  display: flex;
  justify-content: center;
  align-items: center;
  width: min(100%, 17rem);
}
.home aside img {
  width: min(90%, 16rem);
  border-radius: 1rem;
}
.introduction {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  width: min(90%, 28rem);
}
.introduction h1 {
  text-align: center;
  font-size: 2.4rem;
}
.introduction p {
  text-align: center;
}

@media (min-width: 768px) {
  .home {
    flex-direction: row;
    gap: 0;
  }
  .home aside {
    padding: 1rem 0;
    width: 17rem;
  }
  .home aside img {
    width: 16rem;
  }
}
@media (min-width: 992px) {
  .home aside {
    width: 26rem;
  }
  .home aside img {
    width: 24rem;
  }
  .introduction {
    width: 32rem;
  }
  .introduction h1 {
    font-size: 3rem;
  }
}

/* home - about me */
.about {
  padding-top: var(--navbar-height);
  min-height: calc(100dvh);
}
.about-me, .technologies {
  text-align: center;
  margin: 0 1rem;
}
.projects-caroussel {
  display: flex;
  align-items: center;
  gap: 1rem;
  overflow-x: scroll;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  margin: 1rem;
}
.projects-caroussel div {
  position: relative;
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  height: 16rem;
  width: 16rem;
  scroll-snap-align: start;
}
.projects-caroussel div  img{
  width: 100%;
  height: calc(100% - 1rem);
  object-fit: cover;
  border-radius: 1rem;
}
.tlakamik-icon-container img {
  background-color: #00ffc3;
}
.project-info {
  opacity: 0;
  position: absolute;
  top: 0.5rem;
  left: 0;
  text-align: center;
  width: 100%;
  height: calc(100% - 1rem);
  border-radius: 1rem;
  background-color: rgba(0, 0, 0, 0.6);
  transition: opacity ease 500ms;
}
.project-info a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: white;
}
.project-info:hover {
  opacity: 1;
}
@media (min-width: 440px) {
  .about-me, .technologies {
    margin: 0 2rem;
  }
  .projects-caroussel {
    flex-wrap: wrap;
    overflow-x: visible;
    scroll-snap-type: none;
    justify-content: space-around;
    gap: 2rem;
  }
  .projects-caroussel div {
    height: min(40vw, 18rem);
    width: min(40vw, 18rem);
  }
  .projects-caroussel div img {
    height: 100%;
  }
  .project-info {
    top: 0;
    height: 100%;
  }
}
@media (min-width: 768px) {
  .about-me, .technologies {
    margin: 0 6rem;
  }
  .projects-caroussel {
    width: 90%;
    height: 60vh;
    margin: 1rem auto;
    gap: 0;
  }
  .projects-caroussel div {
    height: 100%;
    justify-content: none;
    width: 0;
    flex-grow: 2;
    transition: flex-grow ease 500ms;
  }
  .projects-caroussel div:hover {
    flex-grow: 3;
  }
  .projects-caroussel div img, .project-info {
    border-radius: 0;
  }
}

/* home - tools */
.dev-tools {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.tool {
  width: min(90%, 12rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.tool img {
  max-width: 100%;
  object-fit: contain;
}

/* home - projects showcase */
.projects {
  padding-top: var(--navbar-height);
  margin: auto 1rem;
  min-height: 100dvh;
  width: calc(100% - 2rem);
  gap: 1rem;
  display: flex;
  align-items: start;
  flex-wrap: wrap;
  justify-content: space-around;
}
.project {
  width: min(90%, 24rem);
  background: rgba(255, 241, 241, 0.1);
  box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(0.5rem);
  -webkit-backdrop-filter: blur(0.5rem);
}
.card {
  height: fit-content;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: start;
  gap: 1rem;
}
.card img {
  width: 100%;
  height: auto;
  object-fit: cover;
}
#alerta-unida img {
  padding: 4rem;
}
.card-title {
  margin: 0 1rem 0;
  font-size: 2rem;
}
.card-body {
  font-size: 1.2rem;
  margin: 0 1rem 0;
}
.card-link {
  font-size: 1.2rem;
  margin: 0 1rem 1rem;
}
