/* GOOGLE FONTS */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');

/* VARIABLES CSS */

:root {
  /* Colors */
  /* Color mode HSL(hue, saturation, lightness) */
  /* 
        Blue: hsl(207, 90%, 61%)
        Purple: hsl(250, 66%, 75%)
        Pink: hsl(356, 66%, 75%)
        Teal: hsl(174, 63%, 62%)
    */

  --hue: 211;
  --sat: 96%;
  --lig: 39.6%;
  --first-color: hsl(var(--hue), var(--sat), var(--lig));
  --first-color-alt: hsl(var(--hue), var(--sat), 35.6%); /* -4% */
  --title-color: hsl(var(--hue), 12%, 15%);
  --text-color: hsl(var(--hue), 12%, 45%);
  --text-color-light: hsl(var(--hue), 8%, 75%);
  --text-color-lighten: hsl(var(--hue), 8%, 92%);
  --body-color: hsl(var(--hue), 100%, 99%);
  --container-color: #fff;
  --footer-color: #111;

  /* Font and typography */
  /* .5rem = 8px | 1rem = 16px */
  --body-font: 'Poppins', sans-serif;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1rem;
  --normal-font-size: 0.938rem;
  --small-font-size: 0.813rem;
  --smaller-font-size: 0.75rem;
}

@media screen and (min-width: 968px) {
  :root {
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: 0.875rem;
    --smaller-font-size: 0.813rem;
  }
}

/* BASE */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--body-color);
  color: var(--text-color);
  transition: 0.3s; /* For animation dark mode */
}

h1,
h2,
h3 {
  color: var(--title-color);
  font-weight: 600;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* THEME */
.change-theme {
  position: absolute;
  top: 1.5rem;
  right: 0;
  font-size: 1.25rem;
  color: var(--title-color);
  cursor: pointer;
  transition: 0.3s;
}

.change-theme:hover {
  color: var(--first-color);
}

/* Variables Dark Theme */
body.dark-theme {
  --hue: 208;
  --sat: 76%;
  --lig: 66%;
  --first-color-alt: hsl(var(--hue), var(--sat), 49.9%);
  --title-color: hsl(var(--hue), 12%, 95%);
  --text-color: hsl(var(--hue), 12%, 75%);
  --body-color: hsl(var(--hue), 40%, 8%);
  --container-color: hsl(var(--hue), 24%, 12%);
  --footer-color: #fff;
}

/* Color changes in some parts of the website, in light theme */
.dark-theme .button_gray {
  background-color: var(--container-color);
}

.dark-theme .button_gray:hover {
  background-color: hsl(var(--hue), 24%, 16%);
}

.dark-theme .filters_content {
  background: var(--container-color);
}

.dark-theme::-webkit-scrollbar {
  background: hsl(var(--hue), 8%, 16%);
}

.dark-theme::-webkit-scrollbar-thumb {
  background: hsl(var(--hue), 8%, 24%);
}

.dark-theme::-webkit-scrollbar-thumb:hover {
  background: hsl(var(--hue), 8%, 32%);
}

/* REUSABLE CSS CLASSES */
.container {
  max-width: 968px;
  margin-left: 1.5rem;
  margin-right: 1.5rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

/* PROFILE */
.profile {
  position: relative;
  padding-top: 3.5rem;
}

.profile_container {
  row-gap: 2rem;
}

.profile_data {
  display: grid;
  text-align: center;
}

.profile_profile {
  width: 100px;
  height: 100px;
  /* background: linear-gradient(180deg,
                hsla(var(--hue), var(--sat), var(--lig), 1) 0%,
                hsla(var(--hue), var(--sat), var(--lig), .2) 100%); */
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

/* .profile_profile img{
    width: 95px;
} */

.profile_border {
  border: 3.5px solid var(--first-color);
  justify-self: center;
  width: 115px;
  height: 115px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 0.75rem;
}

.profile_name {
  font-size: var(--h2-font-size);
}

.profile_profession {
  font-size: var(--smaller-font-size);
  font-weight: 500;
  color: var(--text-color);
  margin-bottom: 1rem;
}

.profile_social {
  display: flex;
  justify-content: center;
  column-gap: 0.75rem;
}

.profile_social-link {
  font-size: 1.25rem;
  color: var(--title-color);
  transition: 0.3s;
}

.profile_social-link:hover {
  /* color: var(--first-color); */
  transform: translateY(-15%);
}

.profile_info {
  grid-template-columns: repeat(3, max-content);
  justify-content: center;
  column-gap: 2.5rem;
}

.profile_info-group {
  text-align: center;
}

.profile_info-number {
  font-size: var(--normal-font-size);
  margin-bottom: 0.25rem;
}

.profile_info-description {
  font-size: var(--smaller-font-size);
  font-weight: 500;
}

.profile_buttons,
.profile_buttons-small {
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile_buttons {
  column-gap: 1rem;
}

.profile_buttons-small {
  column-gap: 0.5rem;
}

/* BUTTONS */
.button {
  display: inline-flex;
  align-items: center;
  column-gap: 0.5rem;
  background-color: var(--first-color);
  color: #fff;
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  transition: 0.3s;
  box-shadow: 0 8px 24px hsl(var(--hue), var(--sat), var(--lig), 0.25);
}

.button i {
  font-size: 1.25rem;
}

.button:hover {
  background-color: var(--first-color-alt);
}

.button_small {
  padding: 0.75rem;
  box-shadow: none;
}

.button_gray {
  background-color: var(--text-color-lighten);
  color: var(--title-color);
}

.button_gray:hover {
  background: var(--text-color-light);
}

/* FILTER TABS */
.filters_content {
  margin: 2rem 0 2.5rem;
  background-color: var(--text-color-lighten);
  padding: 0.375rem;
  border-radius: 0.75rem;
  display: flex;
  justify-content: space-between;
  column-gap: 0.5rem;
}

.filters_button {
  width: 100%;
  border: none;
  outline: none;
  border-radius: 0.75rem;
  padding: 1rem;
  color: var(--title-color);
  font-size: var(--small-font-size);
  font-family: var(--body-font);
  font-weight: 500;
  cursor: pointer;
  background-color: transparent;
  transition: 0.3s;
}

.filters_button:hover {
  background: var(--body-color);
}
/* PROJECTS */
.projects_card {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 8px 24px #52525236;
}

.projects_card img {
  width: 100%;
  height: 100%;
}

.projects_modal {
  position: absolute;
  width: 100%;
  height: 100%;
  bottom: -100%;
  left: 0;
  background: linear-gradient(180deg, hsla(var(--hue), 24%, 40%, 0.3) 0%, hsla(var(--hue), 24%, 4%, 1) 95%);
  display: grid;
  align-items: flex-end;
  padding: 1.5rem 1.25rem;
  transition: 0.3s;
}

.projects_subtitle,
.projects_title {
  color: #fff;
}

.projects_subtitle {
  font-size: var(--small-font-size);
}

.projects_title {
  font-size: var(--h3-font-size);
  margin-bottom: 0.75rem;
}

.projects_button {
  padding: 0.5rem;
}

.projects_card:hover .projects_modal {
  bottom: 0;
}

/* SKILLS */
.skills_content {
  row-gap: 3.5rem;
}

.skills_title {
  font-size: var(--h3-font-size);
  text-align: center;
  margin-bottom: 1.5rem;
}

.skills_box {
  display: flex;
  justify-content: center;
  column-gap: 3.5rem;
}

.skills_group {
  display: grid;
  align-content: flex-start;
  row-gap: 1rem;
}

.skills_data {
  display: flex;
  column-gap: 0.5rem;
  transition: 0.3s;
}

.skills_data:hover {
  transform: translateX(10%);
}

.skills_data i {
  font-size: 1rem;
  color: var(--first-color);
}

.skills_name {
  font-size: var(--normal-font-size);
  font-weight: 500;
  line-height: 18px;
}

.skills_level {
  font-size: var(--smaller-font-size);
}

/* Hide and show projecs & skills */
.filters [data-content] {
  display: none;
}

.filters_active[data-content] {
  display: grid;
}

/* Activate button filter */
.filter-tab-active {
  background: var(--body-color);
}

/* FOOTER */
.footer_copy {
  display: block;
  margin: 2.5rem 0 2rem;
  text-align: center;
  font-size: var(--small-font-size);
  color: var(--text-color);
  /* cursor: pointer; */
  transition: 0.3s;
}

/* .footer_copy:hover {
    color: var(--footer-color);
} */

/* SCROLL BAR */
::-webkit-scrollbar {
  width: 0.6rem;
  border-radius: 0.5rem;
  background: hsla(var(--hue), 8%, 66%);
}

::-webkit-scrollbar-thumb {
  border-radius: 0.5rem;
  background: hsla(var(--hue), 8%, 54%);
}

::-webkit-scrollbar-thumb:hover {
  background: hsla(var(--hue), 8%, 44%);
}

/* BREAKPOINTS */
/* For small devices */
@media screen and (max-width: 320px) {
  .container {
    margin-left: 1rem;
    margin-right: 1rem;
  }

  .profile_info {
    column-gap: 1.5rem;
  }

  .profile_buttons {
    flex-direction: column;
    row-gap: 1rem;
  }

  .skills_box {
    column-gap: 1rem;
  }
}

/* For medium devices */
@media screen and (min-width: 576px) {
  .projects_content {
    grid-template-columns: 332px;
    justify-content: center;
  }

  .filters_content {
    width: 332px;
    margin: 3rem auto;
  }
}

@media screen and (min-width: 776px) {
  .projects_content,
  .skills_content {
    grid-template-columns: repeat(2, 332px);
  }

  .skills_content {
    justify-content: center;
    column-gap: 3rem;
  }
}

/* For large devices */
@media screen and (min-width: 992px) {
  .container {
    margin-left: auto;
    margin-right: auto;
  }

  .change-theme {
    top: 2.5rem;
    right: 2.5rem;
  }

  .profile {
    padding-top: 4rem;
  }

  .profile_border {
    width: 135px;
    height: 135px;
    margin-bottom: 1rem;
  }

  .profile_profile {
    width: 120px;
    height: 120px;
  }

  .profile_profession {
    margin-bottom: 1.5rem;
  }

  .profile_info {
    column-gap: 3rem;
  }

  .profile_info-description {
    font-size: var(--small-font-size);
  }

  .profile_buttons {
    column-gap: 2rem;
  }

  .projects_content {
    gap: 2rem 3rem;
  }

  .projects_modal {
    padding: 1.5rem;
  }

  .skills_title {
    font-size: var(--normal-font-size);
    margin-bottom: 2.5rem;
  }

  .footer_copy {
    margin: 4.5rem 0 2.5rem;
  }
}

.text_warning {
  color: #fb6340;
}

.footer_link {
  letter-spacing: -0.025rem;
  color: var(--text-color);
  font-weight: 500;
}

.footer_link:hover {
  color: var(--first-color);
}

.please_click_me {
  display: inline-block;
  animation: mover 1s infinite alternate;
}

@keyframes mover {
  0% {
    transform: translateY(0);
  }

  to {
    transform: translateY(-10px);
  }
}

.projects_flex {
  display: flex;
  justify-content: space-between;
}