/* ####################################### Common ######################################## */

body {
  background-color: #f6f6f8;
}

.mobile-menu-active {
  height: 100%;
  overflow: hidden;
}

.mobile-menu-active section:not(#navbar-mobile) {
  filter: blur(3px);
}

.mobile-menu-active footer:not(#navbar-mobile) {
  filter: blur(3px);
}

.link {
  color: #c60021;
  border: 1px solid #c60021;
  font-family: "SF Mono", "Fira Code", "Fira Mono", "Roboto Mono", monospace;
  padding: 0.5rem 1.25rem;
  border-radius: 4px;
}

.link:hover {
  text-decoration: none;
  color: #c60021;
  background-color: rgba(198, 0, 33, 0.1);
}

.text_link {
  color: #c60021;
  position: relative;
}

.text_link:hover {
  text-decoration: none;
  color: #c60021;
}

.text_link:after {
  content: "";
  display: block;
  width: 0px;
  height: 1px;
  position: absolute;
  bottom: -2px;
  background-color: #c60021;
  transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
  opacity: 0.5;
  left: 0px;
}

.text_link:hover:after {
  width: 100%;
}

.title-section {
  padding: 2em 0 1em 0;
  font-family: "Calibre", "Inter", "San Francisco", "SF Pro Text", -apple-system,
  system-ui, sans-serif;
  font-size: clamp(26px, 5vw, 32px);
  color: rgba(0, 0, 0, 0.9);
  position: relative;
  width: 100%;
}

.company-section-container {
  padding: 0 0 2em 0 ;
}

.company-section {
  font-family: "Calibre", "Inter", "San Francisco", "SF Pro Text", -apple-system,
  system-ui, sans-serif;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 300;
  color: rgba(0, 0, 0, 0.6);
  width: 100%;
}

.company-logos {
  display: flex;
  width: 100%;
  justify-content: space-between;
  padding: 2em 0;
}

.company-logo-link {
  display: inline-flex;
  min-width: 0;
  padding: 0 1em;
}

.company-logo {
  max-height: 50px;
  height: fit-content;
  min-width: 50px;
  display: block;
}

.title-section span {
  color: #c60021;
  font-family: "SF Mono", "Fira Code", "Fira Mono", "Roboto Mono", monospace;
  font-size: clamp(26px, 3vw, 20px);
}

.title-section:after {
  content: "";
  display: block;
  position: absolute;
  top: 86px;
  width: 200px;
  height: 1px;
  left: 280px;
  background-color: rgba(0, 0, 0, 0.9);
}

code {
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 3px;
  font-family: courier, monospace;
  padding: 3px;
  color: #c60021;
}

@keyframes slide-right {
  0% {
    display: none;
    opacity: 0;
    transform: translateX(-300px);
  }
  1% {
    opacity: 0;
    display: block;
  }
  100% {
    display: block;
    opacity: 1;
    transform: translateX(0px);
  }
}

@keyframes drop-in {
  0% {
    display: none;
    opacity: 0;
    transform: translateY(-100px);
  }
  1% {
    opacity: 0;
    display: block;
  }
  100% {
    display: block;
    opacity: 1;
    transform: translate(0px);
  }
}

@keyframes show {
  0% {
    display: none;
    opacity: 0;
  }
  1% {
    opacity: 0;
    display: block;
  }
  100% {
    display: block;
    opacity: 1;
  }
}

@keyframes slide-top {
  0% {
    display: none;
    opacity: 0;
    transform: translateY(200px);
  }
  1% {
    opacity: 0;
    display: block;
  }
  100% {
    display: block;
    opacity: 1;
    transform: translateY(0);
  }
}

/* ####################################### Navbar ######################################## */

.navbar-nav {
  align-items: baseline;
}

.navbar {
  background-color: #f6f6f8;
  max-width: 1500px;
}

.navbar.mobile-active {
  margin-left: 50%;
  background-color: #dddddf;
}

.navbar-mobile-container {
  display: flex;
  background-color: #dddddf;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  transition-timing-function: linear;
  transition-duration: 0.15s;
  transition-property: opacity, filter;
}

.navbar-mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.navbar-mobile-nav a {
  padding: 3px 20px 20px;
  font-size: 1rem;
  color: rgba(0, 0, 0, 0.6);
}

.navbar-mobile-nav a.contact {
  padding: 20px 3px;
}

.navbar-mobile-nav .resume_link {
  padding: 0.5rem 1.25rem;
  margin: 1.5em 0;
  color: #c60021;
}

.navbar-mobile-nav a:before {
  display: block;
  margin-bottom: 5px;
  color: #c60021;
  font-size: 12px;
  text-align: center;
}

.navbar-mobile-nav .informations:before {
  content: "01.";
}

.navbar-mobile-nav .skills-navbar:before {
  content: "02.";
}

.navbar-mobile-nav .projects:before {
  content: "03.";
}


aside#navbar-mobile.navbar-mobile {
  display: none;
  position: absolute;
  width: 50%;
  height: 100vh;
  right: 0;
  z-index: 1;
  top: 0;
  position: fixed;
}

aside#navbar-mobile.navbar-mobile.mobile-active {
  display: block;
}

.navbar-burger-container {
  width: 50px;
  height: 50px;
  margin-left: auto;
}

.navbar-burger-inner {
  position: absolute;
  top: 2em;
  right: 2em;
  width: 34px;
  height: 2px;
  border-radius: 4px;
  background-color: #c60021;
  transition: transform 0.22s cubic-bezier(0.55, 0.055, 0.675, 0.19) 0s;
  transform: rotate(0deg);
}

.navbar-burger-inner.active {
  transition: transform 0.22s cubic-bezier(0.215, 0.61, 0.355, 1) 0.12s;
  transform: rotate(225deg);
}

.navbar-burger-inner:before {
  content: "";
  display: block;
  position: absolute;
  top: -10px;
  right: 0;
  width: 40px;
  height: 2px;
  border-radius: 4px;
  background-color: #c60021;
  transition: top 0.1s ease-in 0.25s, opacity 0.1s ease-in;
}

.navbar-burger-inner.active::before {
  opacity: 0;
  transition: top 0.1s ease-out, opacity 0.1s ease-out 0.12s;
}

.navbar-burger-inner:after {
  content: "";
  display: block;
  position: absolute;
  top: 10px;
  right: 0;
  width: 28px;
  height: 2px;
  border-radius: 4px;
  background-color: #c60021;
  transition: bottom 0.1s ease-in 0.25s,
  transform 0.22s cubic-bezier(0.55, 0.055, 0.675, 0.19);
  transform: rotate(0deg);
}

.navbar-burger-inner.active:after {
  transform: rotate(-90deg) translate(11px, 2px);
  transition: bottom 0.1s ease-out,
  transform 0.22s cubic-bezier(0.215, 0.61, 0.355, 1) 0.12s;
  width: 34px;
}

.link-navbar {
  font-family: "SF Mono", "Fira Code", "Fira Mono", "Roboto Mono", monospace;
  font-size: 0.75rem;
  animation: drop-in 1s cubic-bezier(0.645, 0.045, 0.355, 1) 100ms backwards;
}

.link-navbar:hover {
  color: rgba(0, 0, 0, 0.9);
}

.resume_link:hover {
  color: #c60021;
}

.link-navbar span {
  color: #c60021;
}

.dropdown .menu {
  margin: 0;
  padding: 0;
  overflow: hidden;
  list-style-type: none;
  position: absolute;
  right: 0;
}

.dropdown-mobile .menu {
  right: -8px;
}

.dropdown .menu li:first-child {
  padding: 0.75rem 0;
}

.dropdown .menu li {
  text-align: center;
}

.dropdown a {
  text-decoration: none;
  color: rgba(0, 0, 0, 0.6);
}

.dropdown {
  transition: all 0.2s ease-in-out;
  background: #f6f6f8;
  cursor: pointer;
  padding: 0.5rem 0.5rem;
  margin-right: 1.5rem;
}

.dropdown-mobile {
  background: #dddddf;
}

.dropdown.closed .menu {
  height: 0px;
}

.dropdown.closed .icon span {
  display: inline-block;
  transform: rotate(180deg) translate(0px, -1px);
}

.dropdown-mobile.closed .icon span {
  transform: rotate(180deg) translate(0px, -2px);
}

/* ####################################### Social links and email ######################################## */

.social-links {
  display: none;
  position: fixed;
  bottom: 0px;
  left: 40px;
  z-index: 1;
  animation: show 1s cubic-bezier(0.645, 0.045, 0.355, 1) 1s backwards;
}

.social-links ul {
  display: flex;
  list-style: none;
  padding: 0;
  flex-direction: column;
  margin-bottom: 0;
}

.social-links li {
  padding-bottom: 1.25em;
}

.social-links svg:hover {
  transform: translateY(-3px);
  stroke: #c60021;
}

.social-links ul:after {
  content: "";
  display: block;
  width: 1px;
  height: 150px;
  margin: 0px auto;
  background-color: rgba(0, 0, 0, 0.6);
}

.social-links svg {
  width: 25px;
  height: 25px;
}

.social-links svg:hover {
  color: #c60021;
}

.email {
  display: none;
  position: fixed;
  bottom: 0px;
  right: 40px;
  z-index: 1;
  animation: show 1s cubic-bezier(0.645, 0.045, 0.355, 1) 1s backwards;
}

.email:after {
  content: "";
  display: block;
  width: 1px;
  height: 150px;
  margin: 0px 40%;
  background-color: rgba(0, 0, 0, 0.6);
}

.email a {
  writing-mode: vertical-lr;
  color: rgba(0, 0, 0, 0.6);
  padding-bottom: 1em;
}

.email a:hover {
  color: #c60021;
  transform: translateY(-3px);
  text-decoration: none;
}

/* ####################################### First section ######################################## */

.first-section-container {
  padding: 0 150px;
  height: 100vh;
  max-width: 1100px;
  margin: auto;
  animation: slide-right 1s cubic-bezier(0.645, 0.045, 0.355, 1) both;
}

.introduction-container_intro {
  color: #c60021;
  font-family: "SF Mono", "Fira Code", "Fira Mono", "Roboto Mono", monospace;
  margin: 0;
}

.introduction-container_name {
  color: rgba(0, 0, 0, 0.9);
  font-family: "Calibre", "Inter", "San Francisco", "SF Pro Text", -apple-system,
  system-ui, sans-serif;
  font-size: clamp(45px, 8vw, 65px);
  margin: 0;
}

.introduction-container_profession {
  color: rgba(0, 0, 0, 0.6);
  font-family: "Calibre", "Inter", "San Francisco", "SF Pro Text", -apple-system,
  system-ui, sans-serif;
  font-size: clamp(30px, 3vw, 50px);
  margin: 0;
}

.introduction-container_text {
  max-width: 540px;
  margin: 20px 0 0;
  color: rgba(0, 0, 0, 0.6);
}

.introduction-container_link {
  font-size: 14px;
  margin-top: 50px;
  font-family: "SF Mono", "Fira Code", "Fira Mono", "Roboto Mono", monospace;
}

/* ############################ Second section ################################### */

.second-section {
  padding-bottom: 2em;
}

.title-second-section:after {
  left: 250px;
}

.second-section-container {
  padding: 3em 150px;
  max-width: 1100px;
  margin: auto;
}

.second-section-container.animation {
  animation: slide-top 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.information-container p {
  color: rgba(0, 0, 0, 0.6);
}

/* ############################ Skills section ################################### */


.skills-container {
  padding: 3em 150px;
  max-width: 1100px;
  margin: auto;
}

.animation .skills-container {
  animation: slide-top 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.skills-title {
  font-family: "Calibre", "Inter", "San Francisco", "SF Pro Text", -apple-system, system-ui, sans-serif;
  font-size: 1.4rem;
  font-weight: 300;
  text-align: center;
  color: rgba(0, 0, 0, 0.6);
  width: 100%;
  padding: 1em 0;
}

.title-skills:after {
  left: 300px;
}

.skills {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
}

.skills-section {
  flex-basis: 40%;
  margin-right: 25px;
  min-width: 300px;
  max-width: 400px;
  margin-bottom: 20px;
}

.skills-section-container {
  display: flex;
  padding: 12px 0;
}

.skills-section-container img {
  height: 25px;
  margin-right: 10px;
  min-width: 25px;
}

.skills-section-subtitle {
  color: rgba(0, 0, 0, 0.6);
  font-size: 0.9rem;
}



/* #################################### Third Section : Projects ##################################### */

.projects-container {
  padding: 3em 150px;
  max-width: 1100px;
  margin: auto;
}

.animation .projects-container {
  animation: slide-top 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.title-projects:after {
  width: 270px;
  left: 210px;
}

.project-introduction {
  color: rgba(0, 0, 0, 0.6);
  margin-bottom: 3em;
  font-family: "Calibre", "Inter", "San Francisco", "SF Pro Text", -apple-system,
  system-ui, sans-serif;
}

.project {
  display: flex;
  flex-direction: column;
  margin: 6em 0;
}

.project-right {
  align-items: end;
}

.project-left {
  align-items: start;
}

.project-description {
  display: flex;
}

.project-image {
  width: 50%;
  align-self: center;
}

.project-image img {
  width: 100%;
  box-shadow: 10px 8px 20px rgba(0, 0, 0, 0.6);
}

.project-description-left p {
  margin: 0 2em 0 0 ;
  order: 0;
}

.project-description-left a {
  order: 1;
}

.project-description-right p {
  margin: 0 0 0 2em ;
  text-align: end;
}

.project-description-right a {
  order: 0;
}

.project-text-container {
  width: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.project-text-container .project-link {
  max-width: fit-content;
}

.project-description-right .project-text-container .project-link {
  margin: 1em 0 0 2em;
}

.project-description-left .project-text-container .project-link {
  margin: 1em 2em 0 0;
}

.project-text {
  font-family: "Calibre", "Inter", "San Francisco", "SF Pro Text", -apple-system,
  system-ui, sans-serif;
  color: rgba(0, 0, 0, 0.6);
}

.projects-title {
  margin-bottom: 1em;
}

.projects-title a {
  cursor: pointer;
  color: #c60021;
  font-family: "SF Mono", "Fira Code", "Fira Mono", "Roboto Mono", monospace;
  position: relative;
}

.projects-title a:after {
  height: 3px;
}

/* #################################### FOOTER ##################################### */

.contact-title {
  font-family: "Calibre", "Inter", "San Francisco", "SF Pro Text", -apple-system,
  system-ui, sans-serif;
  font-size: clamp(26px, 5vw, 32px);
  color: rgba(0, 0, 0, 0.9);
}

footer {
  background-color: #f6f6f8;
  padding: 0 1em 5em 1em;
  height: 100vh;
  display: flex;
  width: 100%;
  justify-content: center;
  align-items: center;
}

.footer-container {
  height: max-content;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.animation .footer-container {
  animation: slide-top 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.contact-title-container {
  padding: 2em 0;
}

.contact-text {
  font-family: "Calibre", "Inter", "San Francisco", "SF Pro Text", -apple-system,
  system-ui, sans-serif;
  color: rgba(0, 0, 0, 0.6);
  max-width: 300px;
  text-align: center;
  margin-bottom: 2em;
}

/* ############################################################## Media queries ################################################################ */
/* ######################################## Extra small devices (portrait phones, less than 576px) ############################################# */

@media (max-width: 575.98px) {
  .title-section:after {
    top: 70px;
    left: 225px;
    width: 50px;
  }

  aside#navbar-mobile.navbar-mobile {
    width: 80%;
  }

  /* ----------------------------------------------- First section ------------------------------------------------------- */

  .first-section-container {
    flex-direction: column;
    padding: 0 1em;
    justify-content: center;
  }

  .company-section-container {
    padding: 0 0 1em 0;
  }

  .company-logos {
    flex-wrap: wrap;
    justify-content: space-around;
    padding: 2em 0 1em 0;
  }

  .company-logo-link {
    flex-basis: 45%;
    margin-bottom: 1em;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .company-logo-link:last-of-type {
    margin-right: auto;
  }

  /* ----------------------------------------------- Second section ------------------------------------------------------- */

  .second-section-container {
    align-items: center;
    vertical-align: top;
    padding: 3em 1em;
  }

  .title-second-section:after {
    width: 80px;
    left: 200px;
  }

  /* ----------------------------------------------- Skills section ------------------------------------------------------- */

  .title-skills:after {
    left: 250px;
    width: 30px;
  }

  .skills-container {
    padding: 0 1em;
  }

  /* ----------------------------------------------- Projets ------------------------------------------------------- */

  .title-projects:after {
    left: 160px;
    width: 80px;
  }

  .project-description {
    display: flex;
  }

  .project-description-right {
    flex-direction: column;
  }

  .project-description-left {
    flex-direction: column-reverse;
  }

  .project-image {
    width: 100%;
    margin-bottom: 2em;
    order: 0;
  }
  .project-description p {
    width: 100%;
    margin: 0;
    text-align: justify;
  }

  .project-text-container {
    width: 100%;
  }

  .project-text {
    width: 100%;
    margin: 0;
  }

  .projects-container {
    padding: 3em 1em;
  }

  .project-image-link.productive-today {
    width: 100%;
  }

  .project-text.productive-today {
    margin: 0;
    width: 100%;
  }
}

/* ######################################## Small devices (landscape phones, 576px and up) ######################################## */

@media (min-width: 576px) and (max-width: 767.98px) {
  /* ----------------------------------------------- First section ------------------------------------------------------- */

  .first-section-container {
    padding: 6em 1em;
    justify-content: center;
  }


  .company-section-container {
    padding: 0 0 1em 0;
  }

  .company-logos {
    flex-wrap: wrap;
    justify-content: space-around;
    padding: 2em 0 1em 0;
  }

  .company-logo-link {
    flex-basis: 33%;
    margin: 1em 0;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .company-logo-link:last-of-type {
    margin-right: auto;
  }

  /* ----------------------------------------------- Second section ------------------------------------------------------- */

  .second-section-container {
    padding: 3em 2em;
  }

  /* ----------------------------------------------- Skills section ------------------------------------------------------- */


  .skills-container {
    padding: 3em 2em;
  }

  /* ----------------------------------------------- Projets ------------------------------------------------------- */

  .projects-container {
    padding: 3em 2em;
  }

  .project-description {
    display: flex;
  }

  .project-description-right {
    flex-direction: column;
  }

  .project-description-left {
    flex-direction: column-reverse;
  }

  .project-image {
    width: 100%;
    margin-bottom: 2em;
    order: 0;
  }
  .project-description p {
    width: 100%;
    margin: 0;
    text-align: justify;
  }

  .project-text-container {
    width: 100%;
  }

  .project-text {
    width: 100%;
    margin-right: 0;
  }

  .project-text.productive-today {
    width: 100%;
    margin: 0;
  }

  .project-image-link.productive-today {
    width: 100%;
  }

}

/* ######################################## Medium devices (tablets, 768px and up) ######################################## */

@media (min-width: 768px) and (max-width: 991.98px) {
  .navbar-mobile-nav a {
    font-size: 1.5em;
  }

  .dropdown-mobile .menu {
    right: -10px;
  }

  .navbar-mobile-nav a:before {
    font-size: 0.75em;
  }

  .social-links {
    left: 20px;
    display: block;
  }

  .email {
    right: 20px;
    display: block;
  }

  /* ----------------------------------------------- First section ------------------------------------------------------- */

  .first-section-container {
    padding: 0 100px;
  }

  .company-section-container {
    padding: 0 0 1em 0;
  }

  .company-logo-link:last-of-type {
    margin-right: auto;
  }

  .company-logos {
    flex-wrap: wrap;
    justify-content: space-around;
    padding: 2em 0 1em 0;
  }

  .company-logo-link {
    flex-basis: 33%;
    margin: 1em 0;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  /* ----------------------------------------------- Second section ------------------------------------------------------- */

  .second-section-container {
    align-items: center;
    padding: 3em 100px;
  }

  /* ----------------------------------------------- Skills section ------------------------------------------------------- */


  .skills-container {
    padding: 3em 100px;
  }

  /* ----------------------------------------------- Skills section ------------------------------------------------------- */

  .skills-section {
    flex-basis: 100%;
  }

  /* ----------------------------------------------- Projets ------------------------------------------------------- */

  .projects-container {
    padding: 3em 100px;
  }

  .project-text.productive-today {
    width: 80%;
  }

  .project-image-link.productive-today {
    width: 80%;
  }

}

@media (min-width: 991.98px) {
  .navbar-burger-container {
    display: none;
  }

  .navbar-burger-inner {
    display: none;
  }

  .social-links {
    display: block;
  }

  .email {
    display: block;
  }

}