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

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

  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  --first-color: hsl(14, 98%, 50%);
  --black-color: hsl(0, 0%, 0%);
  --black-color-light: hsl(0, 0%, 40%);
  --white-color: hsl(0, 0%, 95%);
  --title-color: hsl(0, 0%, 0%);
  --text-color: hsl(0, 0%, 35%);
  --text-color-light: hsl(0, 0%, 64%);
  --body-color: hsl(0, 0%, 83%);
  --container-color: hsl(0, 0%, 83%);

  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: "Montserrat", sans-serif;
  --biggest-font-size: 1.75rem;
  --h2-font-size: 1.25rem;
  --normal-font-size: .938rem;
  --small-font-size: .875rem;

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

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

/*========== Responsive typography ==========*/
@media screen and (min-width: 1024px) {
  :root {
    --biggest-font-size: 2.75rem;
    --normal-font-size: 1rem;
    --small-font-size: .938rem;
  }
}

/*=============== 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);
  font-weight: var(--font-medium);
  background-color: var(--body-color);
  color: var(--text-color);
  transition: background-color .4s, color .4s;
}

.cv {
  background-color: var(--container-color);
  transition: background-color .4s;
}

h1, h2, h3, h4 {
  color: var(--title-color);
  font-weight: var(--font-semi-bold);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

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

/*=============== THEME ===============*/
.change-theme {
  background: none;
  border: 0;
  font-size: 1.25rem;
  color: var(--title-color);
  cursor: pointer;
}

/*========== Variables Dark theme ==========*/
body.dark-theme {
  --first-color: hsl(14, 80%, 50%);
  --black-color: hsl(0, 0%, 18%);
  --black-color-light: hsl(0, 0%, 30%);
  --title-color: hsl(0, 0%, 95%);
  --text-color: hsl(0, 0%, 70%);
  --text-color-light: hsl(0, 0%, 50%);
  --body-color: hsl(0, 0%, 8%);
  --container-color: hsl(0, 0%, 12%);
}

/*========== 
	Color changes in some parts of 
	the website, in dark theme
==========*/
.dark-theme :is(.nav__menu, .scrollup) {
  background-color: var(--container-color);
}

.dark-theme :is(.home__arrow, .home__line) {
  filter: none;
}

.dark-theme .home__profession {
  text-shadow: none;
}

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

.dark-theme::-webkit-scrollbar-thumb {
  background-color: hsl(0, 0%, 20%);
}

.dark-theme::-webkit-scrollbar-thumb:hover {
  background-color: hsl(0, 0%, 30%);
}

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

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

.section {
  padding-block: 5rem 1rem;
}

.section__title {
  width: max-content;
  margin: 0 auto 2.5rem;
  font-size: var(--h2-font-size);
  font-weight: var(--font-semi-bold);
  border-bottom: 2px solid var(--first-color);
  padding-bottom: .75rem;
}

/*=============== CV ===============*/
.cv__title {
  font-size: var(--normal-font-size);
  display: inline-flex;
  align-items: center;
  margin-bottom: 0.25rem;
}

.cv__title i {
  font-size: 1.5rem;
  font-weight: initial;
}

.cv__data {
  display: grid;
  row-gap: 0.5rem;
  padding-left: 1.5rem;
  font-size: var(--small-font-size);
  min-width: 0;
}

/* Multi-line body text: summary, work and project descriptions */
.about__container p,
.cv__data p {
  text-align: justify;
  hyphens: auto;
}

.cv__button-link {
  width: max-content;
  color: var(--text-color);
  /* display: inline-flex; */
  column-gap: 0.25rem;
  font-weight: var(--font-semi-bold);
}

.cv__button-link:hover {
  color: var(--first-color);
}


/*=============== HEADER & NAV ===============*/
.header {
  position: fixed;
  width: 100%;
  background-color: var(--container-color);
  top: 0;
  left: 0;
  z-index: var(--z-fixed);
  transition: background 0.4s;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-height);
  border-bottom: 2px solid var(--title-color);
}

.nav__logo {
  color: var(--title-color);
  font-weight: var(--font-semi-bold);
}

.nav__actions {
  display: flex;
  align-items: center;
  column-gap: 1rem;
}

.nav__download {
  display: inline-flex;
  align-items: center;
  column-gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  border: 2px solid var(--title-color);
  border-radius: 999px;
  color: var(--title-color);
  font-size: var(--small-font-size);
  font-weight: var(--font-semi-bold);
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.nav__download:hover {
  background-color: var(--first-color);
  border-color: var(--first-color);
  color: var(--white-color);
}

/* Navigation for mobile devices */
@media screen and (max-width: 1023px) {
  .nav__download {
    padding-inline: 0.75rem;
    font-size: 0.75rem;
  }

  .nav__menu {
    position: fixed;
    bottom: 1.5rem;
    left: 0;
    right: 0;
    background-color: var(--container-color);
    box-shadow: 0 4px 24px hsla(40, 48%, 4%, 0.25);
    margin-inline: 1.5rem;
    border-radius: 0.5rem;
    padding: 1.25rem 3rem;
    transition: background 0.4s;
  }
  
}

@media screen and (max-width: 1239px) {
  body {
    background-color: var(--container-color);
  }
}

.nav__list {
  display: flex;
  justify-content: space-between;
}

.nav__link {
  position: relative;
  font-size: 1.25rem;
  color: var(--title-color);
}

.nav__link::after {
  content: '';
  position: absolute;
  width: 32px;
  height: 2px;
  background-color: var(--first-color);
  left: -6px;
  bottom: -8px;
  transition: transform 0.3s, opacity 0.3s;
  opacity: 0;
}

.nav__link:hover::after {
  transform: translateY(-4px);
  opacity: 1;
}

/* Active link */
.active-link::after {
  opacity: 1;
  transform: translateY(-4px);
}

/*=============== HOME ===============*/
.home__container {
  padding-top: 7.5rem;
  text-align: center;
  row-gap: 0;
}

.home__name,
.home__profession {
  font-size: var(--biggest-font-size);
  font-weight: var(--font-semi-bold);
  letter-spacing: 2px;
}

.home__profession {
  color: var(--title-color);
  text-shadow: none;
  margin-top: 1.5rem;
}

.home__name {
  margin-bottom: 0.25rem;
}

.home__info {
  justify-self: center;
  margin-top: 1rem;
  padding: .75rem 1rem;
  border-left: 3px solid var(--first-color);
  background: linear-gradient(90deg, hsla(14, 98%, 50%, .09), transparent);
  color: var(--title-color);
  font-size: var(--small-font-size);
  line-height: 1.6;
  text-align: left;
}

.home__info strong {
  font-weight: var(--font-semi-bold);
}

.home__info a {
  color: var(--first-color);
  font-weight: var(--font-semi-bold);
}

.home__blob {
  position: relative;
  justify-self: center;
}

.home__profile {
  width: 230px;
  height: 270px;
  background: linear-gradient(132deg,
              hsl(45, 6%, 70%) 25%,
              hsl(30, 12%, 50%) 105%);
  border-radius: 15rem 15rem 0 0;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  overflow: hidden;
}

.home__img {
  width: 280px;
  transform: translateY(50px);
}

.home__arrow,
.home__line {
  position: absolute;
  width: 50px;
  filter: invert(1);
  transition: filter 0.4s;
}

.home__arrow {
  left: 10%;
  bottom: 8rem;
}

.home__line {
  right: -2rem;
  bottom: 1.5rem;
}

/*=============== ABOUT ===============*/
.about__button {
  width: max-content;
  color: var(--title-color);
  font-size: var(--small-font-size);
  font-weight: var(--font-semi-bold);
  display: flex;
  align-items: center;
  column-gap: 0.5rem;
}

.about__button i {
  font-size: 1rem;
}

.about__button:hover,
.about__social-link:hover {
  color: var(--first-color);
}

.about__social {
  display: flex;
  column-gap: 1rem;
}

.about__social-link {
  color: var(--title-color);
  font-size: var(--small-font-size);
  font-weight: var(--font-semi-bold);
}

/*=============== SKILLS ===============*/
.skills__content,
.skills__list {
  display: grid;
}

.skills__content {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: baseline;
  column-gap: 3rem;
  row-gap: 1.5rem;
}

.skills__list {
  row-gap: 0.5rem;
  min-width: 0;
}

.skills__list li {
  margin: 0;
}

.projects__container,
.projects__container > div,
.projects__container .cv__title,
.projects__container .cv__data p {
  min-width: 0;
}

.projects__container .cv__title,
.projects__container .cv__data p {
  overflow-wrap: anywhere;
}

/*=============== EDUCATION ===============*/ 
/* To add code or make changes to the section */


/*=============== WORK ===============*/ 
/* To add code or make changes to the section */


/*=============== CERTIFICATES ===============*/ 
/* To add code or make changes to the section */


/*=============== PROJECTS ===============*/ 
/* To add code or make changes to the section */


/*=============== FOOTER ===============*/
.footer {
  padding-block: 2.5rem 8rem;
}

.footer__container {
  border-top: 2px solid var(--title-color);
  padding-top: 1.5rem;
  grid-template-columns: repeat(2, max-content);
  justify-content: space-between;
  row-gap: 2.5rem;
}

.footer__title {
  font-size: var(--normal-font-size);
  margin-bottom: 0.5rem;
}

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

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

/*=============== SCROLL BAR ===============*/
::-webkit-scrollbar {
  width: 0.6rem;
  border-radius: 0.5rem;
  background-color: hsl(0, 0%, 65%);
}

::-webkit-scrollbar-thumb {
  border-radius: 0.5rem;
  background-color: hsl(0, 0%, 55%);
}

::-webkit-scrollbar-thumb:hover {
  background-color: hsl(0, 0%, 45%);
}

/*=============== SCROLL UP ===============*/
.scrollup {
  position: fixed;
  right: 1rem;
  bottom: -50%;
  background-color: var(--container-color);
  box-shadow: 0 4px 16px hsla(40, 48%, 4%, 0.15);
  display: inline-flex;
  padding: 6px;
  font-size: 1.25rem;
  color: var(--title-color);
  border-radius: 0.25rem;
  z-index: var(--z-tooltip);
  transition: bottom 0.4s, transform 0.4s, background 0.4s;
}

.scrollup:hover {
  background-color: var(--first-color);
  color: var(--white-color);
  transform: translateY(-0.25rem);
}

/* Show Scroll Up */
.show-scroll {
  bottom: 7rem;
}

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

  .nav__menu {
    padding-inline: 2rem;
  }

  .home__star-1 {
    left: 0;
  }

  .home__star-2 {
    right: -0.5rem;
  }

  .skills__content {
    grid-template-columns: max-content;
    row-gap: 1rem;
  }

  .footer__container {
    grid-template-columns: max-content;
    row-gap: 1.5rem;
  }
}

/* For medium devices */
@media screen and (min-width: 576px) {
  .nav__menu {
    width: 320px;
    margin-inline: auto;
  }

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

  .show-scroll {
    bottom: 3rem;
  }
}

@media screen and (min-width: 768px) {
  .section {
    padding-top: 2.5rem;
  }

  .section__title {
    margin: 0 0 2rem;
  }

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

  .cv__left,
  .cv__right {
    padding-inline: 1.5rem;
    min-width: 0;
  }

  .header {
    position: initial;
  }

  .nav {
    margin: 0;
  }

  .nav__menu,
  .scrollup {
    display: none;
  }

  .home {
    grid-column: 1 / 3;
  }

  .home__container {
    padding-top: 3rem;
  }

  .footer {
    padding-block: 2.5rem 2rem;
  }
}

/* For large devices */
@media screen and (min-width: 1024px) {
  .cv__main {
    grid-template-columns: 376px 1fr;
  }

  .nav {
    height: calc(var(--header-height) + 1.5rem);
    margin-inline: 1.5rem;
  }

  .home__name {
    margin-bottom: 0.5rem;
  }

  .home__profile {
    width: 280px;
    height: 320px;
  }

  .home__img {
    width: 300px;
    transform: translateY(60px);
  }

  .home__arrow,
  .home__line {
    width: 70px;
  }

  .home__arrow {
    left: -8rem;
    bottom: 9rem;
  }

  .home__line {
    right: -7rem;
    bottom: 3rem;
  }

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

  .footer__container {
    margin-inline: 1.5rem;
    padding-top: 2rem;
  }
}

@media screen and (min-width: 1240px) {
  body {
    background-color: var(--body-color);
    margin-block: 3rem;
  }

  .cv {
    box-shadow: 0 0 48px hsla(40, 48%, 12%, 0.25);
    margin-inline: auto;
  }

  .dark-theme .cv {
    box-shadow: 0 0 48px hsla(40, 48%, 4%, 0.4);
  }
}
