/*****************
Font Faces
*****************/

@font-face {
  font-family: "Montserrat Regular";
  src: url("../fonts/Montserrat-Regular.ttf");
}

@font-face {
  font-family: "Montserrat Bold";
  src: url("../fonts/Montserrat-Bold.ttf");
}

/*****************
HTML &&  Body
*****************/

* {
  box-sizing: border-box;
}

html {
  font-family: sans-serif;
}

body {
  font-family: "Montserrat Regular", sans-serif;
}

a:link,
a:visited {
  color: white;
  text-decoration: none;
}

/*****************
Body -> Header
*****************/

header {
  display: flex;
  background-color: #252a30;
  color: white;
  flex-direction: column;
  padding: 0 20px;
}

header img {
  width: 90px;
  padding: 30px 20px 90px;
  margin: 0 auto;
}

header h1 {
  font-size: 1.3rem;
  margin: 0 auto;
  text-align: center;
  margin-bottom: 50px;
}

header h1,
header a {
  font-family: "Montserrat Bold";
}

header a:link,
header a:visited {
  text-decoration: none;
  color: white;
}

header a {
  border: 2px solid #fed766;
  border-radius: 33px;
  flex-grow: 1;
  margin: 0 auto;
  padding: 10px;
  margin: 0 auto 70px;
  transition-property: all;
  transition-duration: 0.5s;
}

header a:hover {
  background: #fed766;
  color: #252a30;
  padding: 10px 25px;
  border-color: transparent;
  transition-property: all;
  transition-duration: 0.5s;
}

header span,
header i {
  margin: 0 auto;
}

header i {
  margin: 10px auto 60px;
}

/*****************
Body -> Main
*****************/

/*****************
Section -> Introduction
*****************/

.introduction {
  display: flex;
  flex-direction: column;
  width: 90%;
  margin: 0 auto;
}

.introduction h2 {
  font-family: "Montserrat Bold";
  margin: 20px auto;
}

.introduction p:first-of-type {
  margin: 15px auto 50px;
}

/*****************
Introduction -> Strategy && UX-UI && Code
*****************/

.strategy,
.ux-ui,
.code {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  text-align: center;
}

.strategy i,
.strategy h3,
.ux-ui i,
.ux-ui h3,
.code i,
.code h3 {
  margin: 0 auto;
}

.strategy i,
.ux-ui i,
.code i {
  color: #fed766;
  margin-bottom: 20px;
}

.strategy h3,
.ux-ui h3,
.code h3 {
  margin-top: 20px;
  margin-bottom: 20px;
  font-family: "Montserrat Bold";
}

.strategy p,
.ux-ui p,
.code p {
  line-height: 1.7;
}

/*****************
Section -> Professional Projects
*****************/

.professional-projects-background {
  background: #eee;
}

.professional-projects {
  display: flex;
  flex-direction: column;
  width: 90%;
  margin: 0 auto;
  background: #eee;
}

.professional-projects h2 {
  margin: 0 auto;
  margin-top: 50px;
}

.professional-projects a {
  color: #4288dc;
  border-bottom: 1px dotted;
}

.professional-projects p {
  margin: 0 auto;
  margin-top: 40px;
}

.project-container {
  margin-top: 50px;
  text-align: center;
}

.project-container img {
  width: 100%;
  border-radius: 10px;
}

.project-container h3 {
  text-align: center;
  margin-bottom: 7px;
}

.fa-circle {
  color: orange;
}

.project-container span {
  display: block;
  text-align: center;
  font-size: 0.8em;
}

.project-container p {
  line-height: 1.5;
  text-align: center;
  font-size: 0.8rem;
  margin-top: 20px;
}

.project-container a {
  display: inline-block;
  color: #000;
  border: 1px solid orange;
  padding: 10px 15px;
  margin: 20px 0;
  border-radius: 33px;
  transition: all 0.5s;
}

.project-container a:hover {
  background: #000;
  color: orange;
  border-color: transparent;
  padding: 10px 25px;
  transition: all 0.5s;
}

.testimonials {
  display: flex;
  flex-wrap: wrap;
  border-top: 1px solid #d6e1e5;
  border-bottom: 1px solid #d6e1e5;
  padding-bottom: 20px;
}

.testimonials.last-testimonial {
  border-bottom-color: transparent;
  padding-bottom: 30px;
}

.testimonials p {
  font-size: 1rem;
  flex: 1 100%;
  margin-bottom: 20px;
}

.testimonials img {
  width: 50px;
  height: 50px;
  border-radius: 100%;
  margin-right: 5px;
  margin-left: auto;
}

.testimonials span {
  width: 80%;
  align-self: center;
  margin-right: auto;
}

/*****************
Section -> Personal Projects
*****************/

.personal-projects-background {
  width: 80%;
  margin: 0 auto;
}

.personal-projects {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  padding-bottom: 30px;
}

.personal-projects h2 {
  margin: 40px auto 30px;
  flex-basis: 100%;
}

.personal-projects p {
  margin: 0 auto;
  flex-basis: 100%;
  font-size: 0.9rem;
  line-height: 1.5;
}

.project-wrapper {
  display: flex;
  flex-direction: column;
}

.project-wrapper img {
  width: 100%;
  border-radius: 10px;
  margin: 30px 0;
}

.project-wrapper p {
  text-align: center;
}

/*****************
Section -> Work Together
*****************/

.work-together-background {
  background: orange;
}

.work-together {
  width: 90%;
  margin: 0 auto;
  padding: 30px 0;
  display: flex;
  flex-direction: column;
}

.work-together h2 {
  font-family: "Montserrat Bold";
  margin: 0 auto;
}

.work-together p {
  text-align: center;
  line-height: 1.5;
}

.work-together a {
  font-family: "Montserrat Bold";
  border: 1px solid black;
  color: black;
  margin: 10px auto;
  padding: 10px 20px;
  border-radius: 33px;
  transition: all 0.5s;
}

.work-together a:hover {
  background: black;
  color: orange;
  border-color: transparent;
  padding: 10px 35px;
  transition: all 0.5s;
}

/*****************
Footer
*****************/

.footer-wrapper {
  background: #252a30;
}

footer {
  width: 90%;
  margin: 0 auto;
  display: flex;
  color: white;
  flex-direction: column;
}

footer img {
  width: 36px;
  margin: 20px auto 10px;
}

footer p {
  margin: 20px auto;
}

.icons {
  display: flex;
  margin: 20px auto;
}

.icons a {
  background: rgba(0, 0, 0, 0.3);
  padding: 10px;
  border-radius: 100%;
  margin: 0 4px;
  opacity: 0.5;
  transition: all 0.5s;
}

.icons a:hover {
  opacity: 1;
  transition: all 0.5s;
}

/*****************
Media Queries
*****************/

@media screen and (min-width: 550px) {
  header {
    background: linear-gradient(rgba(0, 0, 0, 0.5) 100%, transparent),
      center / cover no-repeat url("../img/hero-bg.jpg");
  }

  header a {
    font-size: 1.3em;
    padding: 13px 10px;
  }

  header a:hover {
    padding: 13px 25px;
  }

  .introduction {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .introduction h2 {
    width: 100%;
    flex: 100%;
    text-align: center;
  }

  .introduction p {
    width: 100%;
    flex: 100%;
    text-align: center;
  }

  .strategy,
  .ux-ui,
  .code {
    width: 33%;
    padding-left: 20px;
    padding-right: 20px;
  }

  .project-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .container-right,
  .container-left {
    max-width: 50%;
    flex: 1 100%;
    align-content: flex-start;
  }

  .container-left {
    padding: 20px;
    font-size: 1.3em;
  }

  .container-right {
    padding: 20px;
  }

  .container-left h3 {
    margin-top: 0;
  }

  .project-container.first .container-left,
  .project-container.third .container-left {
    order: -1;
  }

  .personal-projects {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .personal-projects h2,
  p {
    text-align: center;
  }

  .project-wrapper {
    width: 33%;
    padding: 10px;
    line-height: 1.7;
  }

  .project-wrapper p {
    text-align: left;
  }

  .work-together {
    width: 80%;
  }
}

@media screen and (min-width: 750px) {
  header h1,
  span head {
    font-size: 2em;
  }
}

@media screen and (min-width: 1000px) {
  header h1 {
    font-size: 3em;
  }
}

.professional-projects {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.project-container {
  margin: 40px auto;
  text-align: center;
}

.container-left {
  display: inline-block;
  text-align: center;
  max-width: 700px;
}
.project-wrapper {
  width: 300px;
  margin: 0 auto;
  text-align: center;
  display: inline-block;
  vertical-align: top;
}

.project-wrapper img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 8px;
}


/*****************
Custom Overlay for Personal Projects
*****************/

.project-wrapper {
  position: relative;
}

.project-wrapper .project-btn {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #4a3aff;
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: bold;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-wrapper:hover .project-btn {
  opacity: 1;
}

.project-wrapper img {
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.project-wrapper:hover img {
  filter: grayscale(0%);
}


/* Positionne le bouton au centre de l'image */
.project-wrapper .project-btn {
  top: 50%;
  bottom: unset;
  transform: translate(-50%, -50%);
}


/*****************
Sticky Footer Fix
*****************/

html, body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

