/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Syne:wght@400..800&display=swap");

/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 3.5rem;
  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  /* 
        Change favorite color
        Default: hsl(230, 55%, 55%)
        Purple: hsl(245, 55%, 55%) - Blue: hsl(210, 55%, 55%)
        Pink: hsl(340, 55%, 55%) - Green: hsl(162, 55%, 55%)
        Orange: hsl(14, 55%, 55%)

        For more colors visit: https://colors.dopely.top/color-pedia
        -> Choose any color 
        -> Click on tab (Color Conversion)
        -> Copy the color mode (HSL)
  */
  --hue: 230;
  --first-color: hsl(var(--hue), 55%, 55%);
  --first-color-light: hsl(var(--hue), 55%, 65%);
  --first-color-alt: hsl(var(--hue), 50%, 50%);
  --title-color: hsl(var(--hue), 30%, 95%);
  --text-color: hsl(var(--hue), 20%, 80%);
  --text-color-light: hsl(var(--hue), 20%, 70%);
  --body-color: hsl(var(--hue), 40%, 16%);
  --container-color: hsl(var(--hue), 40%, 20%);
  /* RESUME */
  --resumeBackgroundGray: #bebdbd;
  --resumeTextColor: rgb(22, 22, 22);
  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: "Syne", sans-serif;
  --biggest-font-size: 3rem;
  --big-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;

  /*========== Font weight ==========*/
  --font-regular: 400;
  --font-semi-bold: 600;
  --font-bold: 700;

  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
}

/*========== Responsive typography==========*/
@media screen and (min-width: 1150px) {
  :root {
    --biggest-font-size: 5.5rem;
    --big-font-size: 2.75rem;
    --h1-font-size: 2.25rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1.125rem;
    --small-font-size: 0.875rem;
  }
}

/*=============== BASE ===============*/
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body,
input,
textarea,
button {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  border-radius: 5px;
}

body {
  background-color: var(--body-color);
  color: var(--text-color);
}

input,
button,
textarea {
  border: none;
  outline: none;
  border-radius: 5px;
}

h1,
h2,
h3 {
  color: var(--title-color);
  font-weight: var(--font-semi-bold);
}

p {
  line-height: 130%;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
  max-width: 1120px;
  margin-inline: 1.5rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.section {
  padding-block: 5rem 2rem;
}

.section__title {
  text-align: center;
  font-size: var(--h1-font-size);
  font-weight: var(--font-bold);
  margin-bottom: 2rem;
}

.main {
  overflow: hidden;
}

/*=============== HEADER & NAV ===============*/
.header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  background-color: transparent;
  z-index: var(--z-fixed);
  transition: 0.4s;
}

.nav {
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo {
  color: var(--title-color);
  font-weight: var(--font-bold);
}
.nav__logo a {
  display: flex;
  letter-spacing: 0.2em;
}
.nav__logo span:nth-child(even) {
  overflow: hidden;
  letter-spacing: -1em;
  transition: 1s;
  color: var(--title-color);
  margin-top: 6px;
}
.nav__logo:hover span:nth-child(even) {
  letter-spacing: 0.2em;
}
button {
  outline: 0;
  background-color: transparent;
  color: var(--title-color);
  border: none;
  display: flex;
  align-items: center;
  column-gap: 1.25rem;
  cursor: pointer;
  border-radius: 5px;
}

.dark-mode {
  --hue: 230;
  --first-color: hsl(var(--hue), 55%, 55%);
  --first-color-alt: hsl(var(--hue), 40%, 60%);
  --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%, 87%);
  --container-color: hsl(0, 0%, 83%);
}
@media screen and (max-width: 767px) {
  .nav__menu {
    position: fixed;
    bottom: 0;
    left: 0;
    background-color: var(--container-color);
    box-shadow: 0 4px 12px hsla(var(--hue), 30%, 40%, 1);
    width: 100%;
    height: 4rem;
    padding: 0 1rem;
    display: grid;
    align-content: center;
    border-radius: 1.25rem 1.25rem 0 0;
    transition: 0.4s;
  }
  /* .nav__menu .nav__name{
    display: none;
  } */
}

.nav__list,
.nav__link {
  display: flex;
}

.nav__link {
  flex-direction: column;
  align-items: center;
  row-gap: 4px;
  color: var(--title-color);
  font-weight: 600;
}

.nav__list {
  justify-content: space-around;
}

.nav__name {
  font-size: var(--tiny-font-size);
}

.nav__icon {
  font-size: 1.5rem;
}

.nav__link:hover {
  color: var(--text-color-light);
}

/*Active link*/
.active-link {
  position: relative;
  color: var(--first-color);
  transition: 0.3s;
}

/* Add blur header */
.blur-header::after {
  content: "";
  position: absolute;
  width: 1000%;
  height: 100%;
  background-color: hsla(var(--hue), 70%, 4%, 0.2);
  backdrop-filter: blur(200px);
  --webkit-backdrop-filter: blur(200px);
  top: 0;
  left: 0;
  z-index: -1;
}

/* Active link */
.active-link {
  color: var(--first-color-light);
}

.active-link::after {
  width: 30%;
}

/* Animate scroll icon */

@keyframes scroll-down {
  0% {
    transform: translateY(-1rem);
    opacity: 0;
  }
  50% {
    transform: translateY(0);
    opacity: 1;
  }
  100% {
    transform: translateY(0.6rem);
    opacity: 0;
  }
}

/*****************************************************************************************/
/*        Resume        */
.experience__content {
  row-gap: 2rem;
}

.Résumé {
  padding-block: 5rem 2rem;
}

.experience__container {
  max-width: 1120px;
  margin-inline: 1.5rem;
}

.experience__data {
  row-gap: 1rem;
}

.experience__company {
  font-size: var(--h2-font-size);
  font-weight: var(--font-bold);
}

.experience__profession {
  font-size: var(--h3-font-size);
  margin-bottom: 0.25rem;
}

.experience__date {
  display: block;
  font-size: var(--small-font-size);
  margin-bottom: 0.75rem;
}

ul.experience__description li {
  margin-bottom: 1rem;
}
.button__grid__resume {
  margin-top: 2.5rem;
  margin-bottom: 2.5rem;
}
.resume__button {
  background-color: var(--first-color);
  color: var(--title-color);
  font-weight: var(--font-semi-bold);
  padding: 1.25rem 2rem;
  transition: background-color 0.4s;
  display: block;
  margin: 0 auto;
  text-align: center;
  width: max-content;
  border-radius: 5px;
}

.resume__button:hover {
  background-color: var(--first-color-alt);
}

/*=============== FOOTER ===============*/
.footer__container {
  padding-top: 3rem;
  padding-bottom: 8rem;
  display: table;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.footer__copy {
  color: var(--title-color);
  font-size: var(--small-font-size);
  text-align: center;
}
.footer {
  background-color: var(--container-color);
}
/*=============== SCROLL BAR ===============*/
::-webkit-scrollbar {
  width: 0.6rem;
  background-color: hsl(var(--hue), 20%, 20%);
}

::-webkit-scrollbar-thumb {
  background-color: hsl(var(--hue), 20%, 30%);
}

::-webkit-scrollbar-thumb:hover {
  background-color: hsl(var(--hue), 20%, 40%);
}

/*=============== SCROLL UP ===============*/
.scrollup {
  position: fixed;
  right: 1rem;
  bottom: -50%;
  background-color: var(--container-color);
  display: inline-flex;
  padding: 6px;
  color: var(--title-color);
  font-size: 1.25rem;
  box-shadow: 0 4px 12px hsla(var(--hue), 30%, 8%, 0.3);
  transition: bottom 0.4s, transform 0.4s;
}

.scrollup:hover {
  transform: translateY(-0.5rem);
}

/* Show Scroll Up */
.show-scroll {
  bottom: 5rem;
}

/*=============== BREAKPOINTS ===============*/
/* For small devices */
@media screen and (max-width: 300px) {
  .container {
    margin-inline: 1 rem;
  }
  .nav__name {
    display: none;
  }
}

/* For medium devices */
@media screen and (min-width: 540px) {
  .experience__container {
    grid-template-columns: 380px;
    justify-content: center;
  }
  .nav__list {
    justify-content: center;
    column-gap: 3rem;
  }
}

@media screen and (max-width: 540px) {
  .nav__menu .nav__name {
    max-width: 4.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.7rem;
  }
  .contact__social-link i,
  .nav__icon {
    font-size: 1rem;
  }

  .contact__social-link span,
  .footer__copy,
  .resume__button,
  ul.experience__description li {
    font-size: 0.7rem;
  }
  .footer__container {
    padding-top: 2rem;
    padding-bottom: 6rem;
  }
}

@media screen and (min-width: 768px) {
  .nav__menu {
    width: 50%;
  }
  .experience__container {
    grid-template-columns: initial;
  }
  .experience__data {
    grid-template-columns: repeat(2, 1fr);
  }
  .nav {
    height: calc(var(--header-height) + 1.5rem); /* 4.5rem */
  }
  .nav__icon {
    display: none;
  }
  .footer__container {
    padding-bottom: 3rem;
  }
}
/* For large devices */

@media screen and (min-width: 1150px) {
  .container {
    margin-inline: auto;
  }
  .section {
    padding-block: 7rem 5rem;
  }
  .section__title {
    margin-bottom: 4rem;
  }
  .nav {
    height: calc(var(--header-height) + 2rem);
  }
  .nav__toggle,
  .nav__close {
    display: none;
  }
  .nav__menu {
    width: initial;
  }
  .nav__list {
    flex-direction: row;
    column-gap: 4rem;
  }
  .experience__content {
    row-gap: 4rem;
  }
  .experience__data {
    grid-template-columns: 120px 780px;
    column-gap: 0.5rem;
  }

  .experience__company {
    font-size: var(--h3-font-size);
  }
  .experience__profession {
    margin-bottom: 0.5rem;
  }
  .experience__data {
    font-size: var(--normal-font-size);
  }
  .info__title {
    font-size: var(--h2-font-size);
    margin-bottom: 3.5rem;
  }
  .experience__container {
    margin-left: auto;
    margin-right: auto;
    width: max-content;
    justify-self: center;
  }
  .resume__button {
    justify-self: center;
    margin-top: 1.5rem;
  }
  .footer__container {
    padding-block: 3rem;
    grid-template-columns: repeat(2, max-content);
    justify-content: space-between;
  }
  .footer__links {
    column-gap: 4rem;
    order: 1;
  }

  .scrollup {
    right: 3rem;
  }
}
