/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Lora:wght@400;500;600&family=Roboto:wght@400;500&display=swap");

/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 3.5rem;

  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  --first-color: hsl(207, 65%, 65%);
  --title-color: hsl(207, 4%, 16%);
  --text-color: hsl(207, 4%, 28%);
  --text-color-light: hsl(207, 4%, 56%);
  --body-color: hsl(207, 4%, 99%);
  --container-color: hsl(207, 4%, 95%);

  /* Change the first number */
  /* Blue: 207 - Purple: 250 - Pink: 356 - Teal: 174 */
  --gradient-color: linear-gradient(
    180deg,
    hsla(207, 48%, 72%, 0),
    hsla(207, 65%, 65%, 1)
  );

  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: "Roboto", sans-serif;
  --title-font: "Lora", serif;
  --biggest-font-size: 1.5rem;
  --h1-font-size: 1.5rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1rem;
  --normal-font-size: 0.938rem;
  --small-font-size: 0.813rem;
  --smaller-font-size: 0.75rem;
  --tiny-font-size: 0.625rem;

  /*========== Font weight ==========*/
  --font-medium: 500;
  --font-semi-bold: 600;

  /*========== z index ==========*/
  --z-normal: 1;
  --z-tooltip: 10;
  --z-fixed: 100;
}

/* Responsive typography */
@media screen and (min-width: 1024px) {
  :root {
    --biggest-font-size: 3rem;
    --h1-font-size: 2.25rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: 0.875rem;
    --smaller-font-size: 0.813rem;
    --tiny-font-size: 0.688rem;
  }
}

/*=============== BASE ===============*/
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--body-color);
  color: var(--text-color);
  transition: background 0.4s;
  /* for dark mode animation */
}

h1,
h2,
h3 {
  color: var(--title-color);
  font-family: var(--title-font);
  font-weight: var(--font-medium);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

/*=============== THEME ===============*/
.navButtons {
  display: flex;
  align-items: center;
  column-gap: 1.5rem;
}

.changeTheme {
  font-size: 1.25rem;
  color: var(--title-color);
  cursor: pointer;
  transition: color 0.3s;
}

/*========== Variables Dark theme ==========*/
body.dark-theme {
  --title-color: hsl(207, 4%, 95%);
  --text-color: hsl(207, 4%, 65%);
  --body-color: hsl(207, 4%, 10%);
  --container-color: hsl(207, 4%, 12%);
}

/*========== 
    Color changes in some parts of  the website, in light theme
==========*/
.dark-theme .nav,
.dark-theme .navMenu,
.dark-theme .scrollUp {
  background-color: var(--container-color);
  box-shadow: 0 4px 20px hsla(207, 24%, 8%, 0.4);
}

.dark-theme .homeShapeCircle,
.dark-theme .homeShapeWaves {
  filter: invert(1);
}

.dark-theme .homeSocialLink {
  color: var(--title-color);
}

.dark-theme.sectionBorder {
  border-bottom: 1px solid hsl(207, 4%, 32%);
}

.dark-theme::-webkit-scrollbar {
  background-color: hsl(207, 4%, 10%);
}

.dark-theme::-webkit-scrollbar-thumb {
  background-color: hsl(207, 4%, 25%);
}

.dark-theme::-webkit-scrollbar-thumb:hover {
  background-color: hsl(207, 4%, 35%);
}

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
  max-width: 1024px;
  margin-inline: 1.5rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.section {
  padding-block: 2.5rem;
}

.sectionBorder {
  border-bottom: 1px solid var(--title-color);
  padding-bottom: 3.5rem;
}

.sectionTitle,
.sectionSubtitle {
  text-align: center;
}

.sectionTitle {
  font-size: var(--h1-font-size);
  font-weight: var(--font-semi-bold);
  margin-bottom: 0.25rem;
}

.sectionSubtitle {
  display: block;
  font-size: var(--small-font-size);
  color: var(--text-color-light);
  margin-bottom: 3rem;
}

.main {
  overflow: hidden;
  /* For animation */
}

/*=============== HEADER & NAV ===============*/
.header {
  width: 100%;
  position: fixed;
  bottom: 2rem;
  left: 0;
  z-index: var(--z-fixed);
}

.nav {
  height: calc(var(--header-height) + 0.5rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--body-color);
  box-shadow: 0 4px 20px hsla(207, 24%, 35%, 0.1);
  padding-inline: 1.5rem;
  border-radius: 3rem;
  transition: background 0.4s;
  /* For dark mode animation */
}

.navLogo,
.navToggle,
.navClose {
  color: var(--title-color);
}

.navLogo {
  font-family: var(--title-font);
  font-weight: var(--font-medium);
}

.navToggle {
  display: flex;
  font-size: 1.25rem;
  cursor: pointer;
}

@media screen and (max-width: 1023px) {
  .navMenu {
    position: fixed;
    width: 88%;
    left: 0;
    right: 0;
    bottom: -60%;
    margin: 0 auto;
    background-color: var(--body-color);
    box-shadow: 0 4px 20px hsla(207, 24%, 35%, 0.1);
    padding: 2rem 1.5rem 5rem;
    border-radius: 2rem;
    transition: bottom 0.3s;
  }
}

.navList {
  grid-template-columns: repeat(3, max-content);
  justify-content: center;
  gap: 2rem 3rem;
}

.navLink {
  display: flex;
  flex-direction: column;
  align-items: center;
  row-gap: 0.25rem;
  font-size: var(--smaller-font-size);
  color: var(--text-color-light);
  transition: color 0.3s;
}

.navLink:hover {
  color: var(--title-color);
}

.navLink i {
  font-size: 1.25rem;
}

.navClose {
  position: absolute;
  right: 1.5rem;
  bottom: 0.7rem;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Show menu */
.showMenu {
  bottom: 2rem;
}

/* Active link */
.activeLink {
  color: var(--title-color);
}

/*=============== HOME ===============*/
.homeContainer {
  row-gap: 4rem;
  padding-top: 2rem;
}

.homeData {
  row-gap: 1.5rem;
}

.homeTitle {
  text-align: center;
  font-size: var(--biggest-font-size);
  letter-spacing: 0.3px;
  margin-bottom: 0.5rem;
}

.homeBlob {
  position: relative;
  width: 200px;
  height: 290px;
  background-color: var(--body-color);
  border: 2px solid var(--text-color-light);
  justify-self: center;
  border-radius: 6.25rem;
  place-items: center;
  transition: background 0.4s;
  /* For dark mode animation */
}

.homePrefil {
  width: 170px;
  height: 260px;
  background: var(--gradient-color);
  border-radius: 5.5rem;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.homePrefil img {
  width: 150px;
}

.homeShapeWaves,
.homeShapeCircle {
  position: absolute;
  opacity: 0.1;
}

.homeShapeWaves {
  width: 50px;
  left: -1.5rem;
  top: 8rem;
}

.homeShapeCircle {
  width: 150px;
  bottom: -2rem;
  right: -3rem;
  transform: rotate(15deg);
  z-index: -1;
}

.homeSocial {
  justify-self: center;
  display: flex;
  column-gap: 1.25rem;
}

.homeSocialLink {
  font-size: 1.25rem;
  color: var(--text-color-light);
  transition: color 0.3s;
}

.homeSocialLink:hover {
  color: var(--title-color);
}

.homeInfo {
  display: grid;
  row-gap: 2rem;
}

.homeInfoTitle {
  font-family: var(--body-font);
  font-size: var(--smaller-font-size);
  font-weight: 400;
  color: var(--text-color-light);
  margin-bottom: 1rem;
}

.homeInfoTitle a {
  font-size: var(--normal-font-size);
  color: var(--title-color);
}

.homeInfoTitle a:hover {
  color: var(--first-color);
}

.homeInfoDescription {
  font-family: var(--title-font);
  color: var(--title-color);
  padding-right: 4rem;
  display: contents;
  text-align: justify;
}

/*=============== SKILLS ===============*/
.skillsContainer {
  row-gap: 3.5rem;
}

.skillTitle {
  display: flex;
  justify-content: center;
  align-items: center;
  column-gap: 0.5rem;
  font-size: var(--small-font-size);
  font-weight: var(--font-semi-bold);
  margin-bottom: 2.5rem;
}

.skillTitle i {
  font-size: 1rem;
  font-weight: initial;
}

.skillInfo,
.skillData,
.skillBlob {
  display: grid;
}

.skillInfo {
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem 2rem;
}

.skillsData {
  justify-content: center;
  text-align: center;
}

.skillBlob {
  width: 80px;
  height: 100px;
  border-color: var(--container-color);
  border-radius: 3rem;
  place-items: center;
  margin-bottom: 1rem;
  transition: background 0.4s;
  /* For dark mode animation */
}

.skillBlob img {
  width: 60px;
}

.slillName {
  font-size: var(--small-font-size);
  margin-bottom: 0.25rem;
}

.skillSubtitle {
  padding-top: 2px;
  font-size: var(--tiny-font-size);
  color: var(--text-color-light);
}

/* Animation skills */
.skillBlob:hover img {
  animation: bounceSkill 0.6s;
}

@keyframes bounceSkill {
  0% {
    transform: translate(0);
  }

  20% {
    transform: translateY(-6px);
  }

  40% {
    transform: translate(0);
  }

  60% {
    transform: translateY(-3px);
  }

  80% {
    transform: translate(0);
  }
}

/*=============== QUALIFICATION ===============*/
.qualification {
  position: relative;
}

.qualificationContainer {
  row-gap: 3.5rem;
}

.qualificationTitle {
  display: flex;
  justify-content: center;
  align-items: center;
  column-gap: 0.5rem;
  font-size: var(--small-font-size);
  font-weight: var(--font-semi-bold);
  margin-bottom: 2rem;
}

.qualificationTitle i {
  font-size: 1rem;
  font-weight: initial;
}

.qualificationName {
  font-size: var(--normal-font-size);
  margin-bottom: 1.25rem;
}

.qualificationCity,
.qualificationYear {
  display: block;
  font-size: var(--small-font-size);
  color: var(--text-color-light);
}

.qualificationCity,
.qualificationYear {
  margin-bottom: 0.75rem;
}

/*=============== KNOWLEDGE ===============*/
.knowledgeContainer {
  row-gap: 2.5rem;
  justify-content: center;
}

.knowledgeCard {
  position: relative;
  width: 228px;
  height: 322px;
  background-color: var(--container-color);
  text-align: center;
  padding: 3.5rem;
  border-radius: 7.25rem;
  transition: background 0.4s;
  /* For dark mode animation */
}

.knowledgeCard i {
  display: block;
  font-size: 2rem;
  color: var(--title-color);
  margin-bottom: 0.75rem;
  transition: transform 0.6s;
}

.knowledgeTitle {
  font-size: var(--h2-font-size);
  font-weight: var(--font-semi-bold);
  margin-bottom: 1.5rem;
}

.knowledgeBorder {
  width: 248px;
  height: 342px;
  border: 1.8px solid var(--text-color-light);
  border-radius: 7.75rem;
  position: absolute;
  inset: 0;
  left: -10px;
  margin: auto;
  z-index: -1;
  transition: opacity 0.6s;
  opacity: 0;
}

.knowledgeCard:hover i {
  transform: rotateY(360deg);
}

.knowledgeCard:hover .knowledgeBorder {
  opacity: 1;
}

/*=============== PROJECTS ===============*/
.projectContainer {
  overflow: initial;
}

.projectContent {
  display: grid;
  justify-content: center;
}

.projectImage {
  width: 250px;
  border-radius: 0.75rem;
  margin-bottom: 1.25rem;
}

.projectSubtitle {
  font-size: var(--small-font-size);
  color: var(--text-color-light);
}

.projectTitle {
  font-size: var(--h2-font-size);
  margin-bottom: 1.25rem;
  margin: 0.5rem 0 1.25rem;
}

.projectButton {
  display: inline-flex;
  align-items: center;
  column-gap: 0.5rem;
  color: var(--title-color);
  font-size: var(--small-font-size);
}

.projectButton i {
  font-size: 1rem;
  transition: transform 0.3s;
}

.projectButton:hover i {
  transform: translateX(0.25rem);
}

/* Swiper class */
.projectContainer .swiper-button-prev::after,
.projectContainer .swiper-button-next::after {
  content: "";
}

.projectContainer .swiper-button-prev,
.projectContainer .swiper-button-next {
  width: initial;
  height: initial;
  margin: initial;
  font-size: 2.5rem;
  color: var(--title-color);
}

.projectContainer .swiper-button-prev {
  left: -1rem;
  top: 4.5rem;
}

.projectContainer .swiper-button-next {
  right: -1rem;
  top: 4.5rem;
}

.projectContainer .swiper-slide {
  margin-bottom: 4.5rem;
}

.projectContainer .swiper-pagination-bullets {
  bottom: 0;
}

.projectContainer .swiper-pagination-bullet {
  background-color: var(--text-color-light);
  opacity: initial;
}

.projectContainer .swiper-pagination-bullet-active {
  background-color: var(--title-color);
}

/*=============== FOOTER ===============*/
.footerContainer {
  padding: 3rem 0 7rem;
  text-align: center;
}

.footerTitle {
  font-size: var(--h1-font-size);
  font-weight: var(--font-semi-bold);
  margin-bottom: 1rem;
}

.footerList,
.footerSocial {
  display: flex;
  justify-content: center;
}

.footerList {
  margin: 2.5rem 0;
  column-gap: 2.5rem;
}

.footerLink {
  color: var(--title-color);
}

.footerLink:hover {
  text-decoration: underline;
}

.footerSocial {
  column-gap: 1.2rem;
}

.footerSocialLink {
  font-size: 1.25rem;
  color: var(--title-color);
  transition: transform 0.3s;
}

.footerSocialLink:hover {
  transform: translateY(-0.15rem);
}

.footerCopy {
  display: block;
  margin-top: 4.5rem;
  font-size: var(--small-font-size);
  color: var(--text-color-light);
}

.footerCopy a {
  text-decoration: none;
  color: var(--title-color);
}
.footerCopy a:hover {
  color: var(--first-color);
}
/*=============== SCROLL BAR ===============*/
::-webkit-scrollbar {
  width: 0.6rem;
  border-radius: 0.5rem;
  background-color: hsl(207, 4%, 99%);
}

::-webkit-scrollbar-thumb {
  background-color: hsl(207, 4%, 65%);
  border-radius: 0.5rem;
}

::-webkit-scrollbar-thumb:hover {
  background-color: hsl(207, 4%, 55%);
}

/*=============== SCROLL UP ===============*/
.scrollUp {
  position: fixed;
  right: 1rem;
  bottom: -30%;
  background-color: var(--body-color);
  box-shadow: 0 4px 12px hsl(207, 24%, 35%, 0.15);
  display: inline-flex;
  padding: 0.35rem;
  border-radius: 0.25rem;
  font-size: 1.1rem;
  color: var(--title-color);
  z-index: var(--z-tooltip);
  transition: bottom 0.3s transform 0.3s;
}

.scrollUp:hover {
  transform: translateY(-0.25rem);
}

/* Show Scroll Up*/
.showScroll {
  bottom: 7.5rem;
}

/*=============== BREAKPOINTS ===============*/
/* For small devices */
@media screen and (max-width: 340px) {
  .container {
    margin-inline: 1rem;
  }

  .navMenu {
    padding-bottom: 4rem;
  }

  .navList {
    gap: 1rem 1.25rem;
  }

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

  .projectImage {
    width: 200px;
    justify-self: center;
  }
}

/* For medium devices */
@media screen and (min-width: 576px) {
  .nav,
  .navMenu {
    width: 380px;
  }

  .nav {
    margin: 0 auto;
  }

  .skillsContainer {
    justify-content: center;
  }

  .projectContainer {
    width: 400px;
    overflow: hidden;
  }

  .projectContainer .swiper-button-prev {
    left: 1rem;
  }

  .projectContainer .swiper-button-next {
    right: 1rem;
  }
}

@media screen and (min-width: 767px) {
  .homeContainer {
    grid-template-columns: 2fr 2fr;
  }

  .homeInfo {
    margin-top: 10rem;
  }

  .homeInfoDescription {
    padding-right: 0;
  }

  .skillsContainer,
  .qualificationContainer,
  .knowledgeContainer {
    grid-template-columns: repeat(2, max-content);
  }

  .skillsContainer,
  .knowledgeContainer {
    column-gap: 5rem;
  }

  .qualificationContainer,
  .contactContainer {
    justify-content: center;
  }

  .projectContainer {
    width: 500px;
  }

}

/* For large devices */

@media screen and (min-width: 1023px) {
  .header {
    top: 0;
    bottom: initial;
    background-color: var(--body-color);
    transition: 0.4s;
  }

  .nav {
    width: initial;
    height: calc(var(--header-height) + 1.5rem);
    box-shadow: none;
    border-radius: 0;
    column-gap: 3rem;
    margin-inline: 1.5rem;
    padding: 0;
  }

  .navLink i,
  .navToggle,
  .navClose {
    display: none;
  }

  .navMenu {
    width: initial;
    margin-left: auto;
    background-color: var(--body-color);
    transform: background 0.4s;
  }

  .navList {
    display: flex;
    column-gap: 3rem;
  }

  .navLink {
    font-size: var(--normal-font-size);
  }

  .dark-theme .nav,
  .dark-theme .navMenu {
    background-color: var(--body-color);
    box-shadow: none;
  }

  .changeTheme {
    color: var(--text-color-light);
  }

  .changeTheme:hover {
    color: var(--title-color);
  }

  .section {
    padding-block: 8rem 0;
  }

  .homeTitle {
    font-size: 2.25rem;
  }

  .scrollUp {
    right: 3rem;
  }

  .showScroll {
    bottom: 5rem;
  }

  /* Change background header */
  .backgroundHeader {
    box-shadow: 0 4px 20px hsla(207, 24%, 35%, 0.1);
  }

  .dark-theme .backgroundHeader {
    box-shadow: 0 6px 24px hsla(207, 24%, 8%, 0.6);
  }
}

@media screen and (min-width: 1048px) {
  .container {
    margin-inline: auto;
  }
}

@media screen and (min-width: 1200px) {
  .sectionBorder {
    padding-bottom: 6rem;
  }

  .sectionSubtitle {
    margin-bottom: 5rem;
  }

  .homeTitle {
    font-size: var(--biggest-font-size);
  }

  .homeBlob {
    width: 400px;
    height: 580px;
    border-radius: 12.5rem;
  }

  .homePrefil {
    width: 340px;
    height: 520px;
    border-radius: 10.6rem;
  }

  .homePrefil img {
    width: 300px;
  }

  .homeShapeWaves {
    width: 100px;
    left: -7rem;
    top: 10rem;
  }

  .homeShapeCircle {
    width: 250px;
    bottom: -1rem;
    right: -5rem;
  }

  .homeData {
    row-gap: 2.5rem;
  }

  .homeSocial {
    column-gap: 2rem;
  }

  .homeSocialLink {
    font-size: 1.5rem;
  }

  .homeInfo {
    /* grid-template-columns: repeat(3, 130px); */
    /* row-gap: 4rem; */
    margin-top: 16rem;
  }

  .skillsContainer {
    column-gap: 10rem;
  }

  .skillTitle {
    margin-bottom: 3rem;
  }

  .skillTitle i {
    font-size: 1.25rem;
  }

  .skillName {
    font-size: var(--normal-font-size);
  }

  .skillInfo {
    gap: 3rem;
  }

  .qualificationTitle {
    margin-bottom: 3rem;
  }

  .qualificationTitle i {
    font-size: 1.25rem;
  }

  .qualificationName {
    font-size: var(--h3-font-size);
  }

  .knowledgeContainer {
    grid-template-columns: repeat(3, max-content);
  }

  .knowledgeCard {
    width: 245px;
    height: 345px;
    border-radius: 7.6rem;
    padding: 3.5rem 1.5rem;
  }

  .knowledgeCard i {
    font-size: 2.5rem;
  }

  .knowledgeBorder {
    width: 265px;
    height: 365px;
    border-radius: 8.25rem;
  }

  .projectContainer {
    width: 900px;
  }

  .projectContainer .swiper-button-next,
  .projectContainer .swiper-button-prev {
    font-size: 3rem;
  }

  .projectContainer .swiper-button-next {
    right: -1rem;
  }

  .projectContainer .swiper-button-prev {
    left: -1rem;
  }

  .projectContainer .swiper-slide {
    margin-bottom: 6.5rem;
  }

  .projectImage {
    width: 320px;
    margin-bottom: 2rem;
  }

  .footerContainer {
    padding: 4rem 0 3rem;
  }

  .footerList {
    column-gap: 3rem;
    margin: 3rem 0;
  }

  .footerSocial {
    column-gap: 2rem;
  }

  .footerSocialLink {
    font-size: 1.5rem;
  }

  .footerCopy {
    margin-top: 5rem;
  }
}
