@import url('https://fonts.googleapis.com/css2?family=Arimo:ital,wght@0,400..700;1,400..700&display=swap');
@font-face {
    font-family: 'Playwrite';
    src: url('../Polices/Playwrite.ttf');
}
* {
    padding: 0px;
    margin: 0px;
    font-family: 'Playwrite';
}
body {
    width: 100vw;
    height: 100vh;
    background: #fefaf1;
}
#menu {
    width: 100vw;
    height: 130px;
    box-sizing: border-box;
    padding: 0px 15vw;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}
#logo {
    width: 130px;
}
#contactme {
    font-size: 18px;
    color: #172227;
    font-style: italic;
    cursor: pointer;
    position: relative;
}
#contactme::after {
    position: absolute;
    content: '';
    bottom: -5px;
    left: 0px;
    width: 0%;
    height: 2px;
    border-radius: 5px;
    background: #172227;
    transition: all 0.4s ease;
}
#contactme:hover::after {
    width: 100%;
}
#waves {
    position: absolute;
    top: 130px;
    left: 0px;
    width: 100vw;
    height: calc(100vh - 130px);
    z-index: -1;
    overflow: hidden
}
#waves .wave {
    width: 200vw;
    opacity: var(--o);
    position: absolute;
    left: 0px;
    bottom: 0px;
    animation: infinite wave ease;
    animation-duration: var(--d);
}
@keyframes wave {
    0% {
        left: 0vw;
    }
    50% {
        left: -100vw;
    }
    100% {
        left: 0vw;
    }
}
.projects-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    width: 100vw;
    height: calc(100vh - 130px);
}
.project {
    flex: 0 0 100vw;
    height: calc(100vh - 130px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 50px;
    box-sizing: border-box;
    scroll-snap-align: start;
}

/* Texte */
.project-text {
    max-width: 45%;
}

.project-text h2 {
    font-family: "Arimo";
    font-size: 48px;
    margin-bottom: 20px;
}

.project-text p {
    font-family: "Arimo";
    font-size: 20px;
    opacity: 0.8;
}

/* Image */
.project-img {
    width: 30%;
    height: auto;
    border-radius: 15px;
    object-fit: cover;
}

@media (max-width: 900px) {
    .project {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }

    .project-text {
        max-width: 90%;
    }

    .project-img {
        width: 80%;
        margin-top: 20px;
    }
}
/* From Uiverse.io by satyamchaudharydev */ 
.button {
  position: relative;
  transition: all 0.3s ease-in-out;
  box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.2);
  padding-block: 0.5rem;
  padding-inline: 1.25rem;
  background-color: #1f7447;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffff;
  gap: 10px;
  font-weight: bold;
  border: 3px solid #ffffff4d;
  outline: none;
  overflow: hidden;
  font-size: 15px;
  cursor: pointer;
  margin: 10px;
}

.icon {
  width: 24px;
  height: 24px;
  transition: all 0.3s ease-in-out;
}

.button:hover {
  transform: scale(1.05);
  border-color: #fff9;
}

.button:hover .icon {
  transform: translate(4px);
}

.button:hover::before {
  animation: shine 1.5s ease-out infinite;
}

.button::before {
  content: "";
  position: absolute;
  width: 100px;
  height: 100%;
  background-image: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 30%,
    rgba(255, 255, 255, 0.8),
    rgba(255, 255, 255, 0) 70%
  );
  top: 0;
  left: -100px;
  opacity: 0.6;
}

@keyframes shine {
  0% {
    left: -100px;
  }

  60% {
    left: 100%;
  }

  to {
    left: 100%;
  }
}
