body {
  font-family: "coolvetica", sans-serif;
  font-weight: 400;
  font-style: italic;
}

h1, h2, h3, h4, p {
  font-family: "coolvetica", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.h1 {
  font-size: 36px;
  line-height: 1.4;
  letter-spacing: 1px;
  color: #222222;
  font-weight: 500;
  font-style: normal;
}

.h2 {
  font-size: 30px;
  line-height: 1.4;
  letter-spacing: 1px;
  margin-top: 0;
  margin-bottom: 16px;
  color: #222222;
  font-weight: 500;
  font-style: normal;
}

.h3 {
  font-size: 26px;
  line-height: 1.4;
  letter-spacing: 1px;
  margin: 0;
  color: var(--main-text-color);
  font-weight: 400;
  font-style: normal;
}

.h4 {
  font-size: 20px;
  line-height: 1.4;
  letter-spacing: 1px;
  color: var(--main-text-color);
  font-weight: 400;
  font-style: italic;
}

.p {
  font-size: 26px;
  letter-spacing: 1px;
  color: var(--main-text-color);
  font-weight: 400;
  font-style: normal;
}

:root {
  --main-text-color: #333333;
  --background-color: #FAFAFA;
  --orange-color: #E08900;
  --orange-bg-color: #FFEFD6;
  --orange-active-color: #e2a43f;
  --green-color: #408C35;
  --green-bg-color: #E5F2E4;
  --green-active-color: #4f9e43;
  --purple-color: #66408C;
  --purple-bg-color: #F0EDFD;
  --purple-active-color: #6452ca;
  --nav-bg-color: #333333;
  --nav-text-color: #FFFFFF;
  --nav-contact-bg: #e2a43f;
  --disabled-bg-color: #EBEBEB;
}

.landing-page {
  margin-top: 240px;
  margin-bottom: 32px;
  margin-left: 5vw;
  margin-right: 5vw;
  display: flex;
  align-items: center;
  flex-direction: column;
  min-height: 100vh;
}

body {
  margin: 0;
  transition: color 0.3s;
  background-color: var(--background-color);
}
  
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: #FAFAFA;
}


::-moz-scrollbar-track {
  background: #FAFAFA; 
}

::-webkit-scrollbar-thumb {
  background: #333333; 
}

::-moz-scrollbar-thumb {
  background: #333333; 
}

.card-project {
  position: relative;
  display: flex;
  width: 48vw;
  height: 280px;
  flex-direction: column;
  border-radius: 32px;
  overflow: hidden;
  align-items: flex-start;
  transition: transform 0.5s;
}

.card-project.next {
  margin-top: 24px;
}

.card-project:hover {
  transform: scale(1.04);
  transition: transform 0.5s;
}

.card-project:active {
  transform: scale(1.04);
  transition: transform 0.5s;
}

.card-project.peppl {
  background-color: var(--purple-bg-color);
}

.card-project.airup {
  background-color: var(--orange-bg-color);
}

.card-project.nantes {
  background-color: var(--green-bg-color);
}

.card-project.narrow {
  background-color: var(--purple-bg-color);
}

.card-project.ia {
  background-color: var(--orange-bg-color);
}

.card-header {
  z-index: 2;
  position: absolute;
  top: 32px;
  left: 32px;
  display: flex;
  flex-direction: column;
  flex-direction: start;
  text-align: left;
}

.background-image {
  width: 100%;
  height: 280px;
  opacity: 60%;
  position: absolute;
}

.project-image {
  position: absolute;
  right: 0;
}

.project-image.peppl {
  max-width: 100%;
  max-height: 100%;
}

.project-image.airup {
  width: 270px;
  height: 215px;
  position: absolute;
  right: 100px;
  top: 32px;
}

.project-image.nantes {
  width: 466px;
  height: 350px;
}

.project-image.narrow {
  width: 256px;
  right: 100px;
  top: 8px;
}

.project-image.ia {
  width: 488px;
  top: 16px;
  right:-96px;
}

.card-button {
  z-index: 2;
  position: absolute;
  bottom: 32px;
  left: 32px;
  display: flex;
  padding: 12px 20px;
  justify-content: center;
  align-items: center;
  border-radius: 20px;
  background-color: #333333;
  color: #FFFFFF;
  text-decoration: none;
  border: none;
  transition: background-color 0.3s, transform 0.5s;
  cursor: pointer;
  font-family: 'coolvetica';
  font-style: normal;
  font-size: 24px;
  line-height: 1.4;
  letter-spacing: 1px;
}

.card-button:hover {
  transform: scale(1.1);
  background-color: #222222;
  transition: background-color 0.3s, transform 0.5s;
}

.contact {
  justify-content: center;
  display: flex;
  align-items: flex-start;
}

.contact-buttons {
  margin: 12px;
  padding: 16px;
  border-radius: 50px;
  background: var(--nav-bg-color);
  border: none;
  height: 32px;
  width: 32px;
  display: flex;
  align-items: center;
  cursor: pointer;
  justify-content: center;
  z-index: 1;
  transition: background-color 0.3s, transform 0.5s;
}

.contact-buttons:hover {
  transform: scale(1.2);
  background-color: #222222;
  transition: background-color 0.3s, transform 0.5s;
}

.contact-buttons:active {
  transform: scale(1.2);
  background-color: #121212;
  transition: background-color 0.3s, transform 0.5s;
}

.nextProjectContainer {
  width: 100%;
  margin-top: 40px;
}

.footercontainer {
  margin-top: 32px;
}

.disclaimer-section {
  width: 100%;
}

.disclaimer-item {
  display: flex;
  text-align: right;
  justify-content: right;
}

@media (max-width: 1600px) {
  .p {
    font-size: 24px;
    letter-spacing: 0.8px;
    color: var(--main-text-color);
    font-weight: 400;
    font-style: normal;
  }
}

@media (max-width: 1400px) {
  .p {
    font-size: 22px;
    letter-spacing: 0.8px;
    color: var(--main-text-color);
    font-weight: 400;
    font-style: normal;
  }
}

@media (max-width: 1200px) {

  .textcontainer {
    flex-direction: column;
    align-items: center;
    margin-left: 32px;
    margin-right: 32px;
  }

  .textcontainer .photo-container {
    width: 32%;
    height: auto;
    margin-bottom: 32px;
    margin-top: 0;
    margin-right: 0;
  }

  .textcontainer .blockIcon.left,
  .textcontainer .blockIcon.right {
    display: flex;
    align-items: center;
    justify-content: flex-start;
  }

  .textcontainer .blockIcon.right {
    justify-content: flex-end;
  }

  .h1 {
    font-size: 28px;
  }

  .h2 {
    font-size: 22px;
    margin-bottom: 12px;
  }

  .h3 {
    font-size: 20px;
  }

  .h4 {
    font-size: 18px;
  }

  .p {
    font-size: 20px;
    line-height: 1.8;
  }

  .contactcardcontainer {
    width: 90vw;
  }

  .card-project {
    width: 60vw;
  }
}

@media (max-width: 1000px) {
  .project-image, .background-image {
    display: none;
  }
}

@media (max-width: 800px) {
  body {
    font-size: 18px;
  }

  .landing-page {
    margin-left: 10vw;
    margin-right: 10vw;
  }

  .textcontent {
    width: 100%;
    padding: 20px;
  }

  .keyword {
    padding: 4px 12px;
    font-size: 100%;
  }

  .project {
    display: block;
    margin: 20px 0;
  }

  .quote-icon {
    width: 36px;
    height: 36px;
  }

  .keyword:hover,
  .keyword:active {
    padding: 16px 32px;
    font-size: 115%;
  }

  .project-image {
    width: 180px;
    height: auto;
    right: 50px;
    top: 16px;
  }

  .card-project {
    width: 60vw;
  }

  .card-button {
    padding: 8px 16px;
    font-size: 18px;
  }

  .textcontainer {
    padding: 20px;
  }

  .topnav {
    font-size: 18px;
  }
}

@media (max-width: 1060px) {
  .topnav .signature {
    display: none;
  }
}

@media (max-width: 1200px) {
  .project-image.small {
    max-width: 200px;
  }
}

@media (max-width: 800px) {
  .project-image.small {
    max-width: 150px;
  }
}

.overlay {
  display: none;
}

.overlay-content {
  position: fixed;
  justify-content: center;
  align-items: center;
  width: 60%;
  background-color: var(--background-color);
  padding: 40px;
  border-radius: 20px;
  text-align: left;
  z-index: 21; 
  box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.1);
}

@media (max-width: 600px) {
  .overlay {
      display: flex;
      align-items: center;
      justify-content: center;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
  }

  .landing-page {
      display: none;
  }

  .topnav a {
    display: none;
  }
}
