:root {
  --text-color: #fff;
  --green-color: #43b641;
}

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

@font-face {
  font-family: 'Fresh Script';
  src: url('../fonts/Fresh Script.eot');
  src: local('☺'), url('../fonts/Fresh Script.woff') format('woff'),
    url('../fonts/Fresh Script.ttf') format('truetype'),
    url('../fonts/Fresh Script.svg') format('svg');
  font-weight: normal;
  font-style: normal;
}

html,
body {
  overflow: hidden;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  min-height: 100vh;
  background-image: url(../images/background.jpg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
  position: relative;
  font-size: 16px;
}

h1 {
  font-family: 'Fresh script';
}

.container {
  padding: 60px 10px 0px 100px;
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  flex-wrap: wrap;
}

.main {
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: start;
  max-width: 700px;
  margin-bottom: 80px;
}

.main-name {
  font-family: 'Fresh script';
  font-size: 9.5rem;
  line-height: 11rem;
  font-weight: 400;
  margin-bottom: 100px;
}

.main-about {
  font-size: 2rem;
  font-weight: 700;
  z-index: 4;
}

.info {
  display: flex;
  flex-direction: row;
  justify-content: space-between;

  z-index: 4;
  align-items: center;
  flex-wrap: wrap-reverse;
}

button, a {
  letter-spacing: 0.05em;
  text-transform: capitalize;
  border-radius: 40px;
  padding: 20px;
  min-width: 15rem;
  font-size: 1.5rem;
  line-height: 1.5rem;
  border: none;
  font-weight: bold;
  cursor: pointer;
  margin: 0.5rem;
  text-decoration: none;
  text-align: center;
}

.btn {
  display: flex;
  flex-direction: row;
  margin: -0.5rem;
  align-items: center;
}

.btn-project {
  background-color: var(--green-color);
  color: var(--text-color);
}

.btn-project:hover {
  background-color: Transparent;
  border: 1px solid var(--green-color);
  color: var(--green-color);
  font-weight: bold;
}

.btn-contacts {
  color: var(--green-color);
  border: 1px solid var(--green-color);
  background: Transparent no-repeat;
}

.btn-contacts:hover {
  color: var(--text-color);
  background: var(--green-color);
}

h4 {
  font-weight: 700;
}

.quote {
  font-family: 'Montserrat', sans-serif;
  color: #fff;
  font-weight: 600;
  font-style: italic;
  font-size: 1.4rem;
  line-height: 29px;
  max-width: 350px;
}

figcaption {
  padding-left: 100px;
}

.image {
  position: absolute;
  right: 0;
  bottom: 0;
  height: calc(100% - 60px);
  max-height: calc(100% - 60px);
  z-index: 2;
}
.thierry {
  object-fit: cover;
  max-height: 100%;
}

@media (max-width: 1080px) {
  .main {
    max-width: 600px;
  }

  .main-about {
    font-size: 1.3rem;
    font-weight: 700;
  }
}

@media (max-width: 986px) {
  .main-about {
    font-size: 1rem;
    font-weight: 700;
  }

  .info {
    flex-wrap: wrap-reverse;
  }

  .quote {
    font-family: 'Montserrat', sans-serif;
    color: #fff;
    font-weight: 600;
    font-style: italic;
    font-size: 1.2rem;
    line-height: 20px;
    max-width: 300px;
    margin-bottom: 60px;
  }

  .image {
    height: calc(100% - 80px);
    max-height: calc(100% - 80px);
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    margin-right: -15%;
  }

  .thierry {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 14px;
  }

  .container {
    padding: 30px 0px 0px 30px;
  }

  .main {
    max-width: 300px;
    margin-bottom: 35px;
  }

  .main-name {
    font-size: 5rem;
    line-height: 5rem;
  }
  .main-about {
    font-size: 1rem;
  }

  .info {
    flex-wrap: wrap-reverse;
  }

  button {
    font-size: 20px;
    padding: 20px 50px;
    line-height: 14px;
    min-width: 500px;
  }

  .btn {
    display: flex;
    flex-direction: column;
    margin: -0.5rem;
    justify-content: center;
    align-items: center;
    width: 100%;
  }

  .quote {
    font-size: 1rem;
    max-width: 200px;
    margin-bottom: 120px;
  }

  .image {
    position: absolute;
    right: 0;
    bottom: 0;
    height: calc(100% - 80px);
    max-height: calc(100% - 80px);
    margin-right: -25%;
  }
}

@media (max-width: 545px) {
  .main {
    margin-bottom: 50px;
  }

  .main-name {
    font-family: 'Fresh script';
    font-size: 4rem;
    line-height: 3rem;
    font-weight: 400;
  }

  .container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-content: center;
    padding: 0px 20px;
    margin: 30px auto;
  }

  .info,
  .main,
  .btn {
    width: 100%;
  }

  button {
    min-width: 100%;
  }

  .quote {
    font-family: 'Montserrat', sans-serif;
    color: #fff;
    font-weight: 600;
    font-style: italic;
    font-size: 1rem;
    line-height: 20px;
    max-width: 120px;
    margin-bottom: 100px;
  }

  figcaption {
    padding-left: 15px;
  }

  .image {
    height: calc(100% - 160px);
    max-height: calc(100% - 160px);
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    margin-right: -35%;
  }

  .thierry {
    max-width: 100%;
    height: auto;
  }
}
