html {
  scroll-behavior: smooth;
}

body {
  margin: 0%;
  box-sizing: border-box;
  /* background-color: rgb(28, 28, 28); */
  background-color: rgb(59, 58, 58);
  /* background-image: url("https://wallpaperaccess.com/full/4174801.jpg"); */
  background-color: rgba(32, 33, 36, 255);
  color: white;
  font-family: sans-serif;
  background-size: contain;
}

*::selection {
  background-color: #f5eb27;
  color: #000;
}

*::-webkit-scrollbar {
  width: 2px;
  background-color: transparent;
}

*::-webkit-scrollbar-track {
  background-color: transparent;
}

*::-webkit-scrollbar-thumb {
  background-color: green;
  border-radius: 1px;
}

section {
  display: flex;
  justify-content: center;
  margin: auto;
  width: 80vw;
  min-height: 100vh;
  background-color: rgb(15, 15, 15);
}

section > div {
  width: 80%;
}

span {
  color: #f5eb27;
}

.home {
  min-height: 90vh;
  margin-top: 10vh;
  border-radius: 1rem 1rem 0 0;
  display: flex;
}

.home-content {
  display: flex;
  flex-direction: row-reverse;
  margin: auto;
  max-height: 50%;
  justify-content: space-between;
}

.name {
  font-size: 48px;
  color: white;
  font-weight: 700;
  transition: transform 0.2s;
  max-width: fit-content;
  letter-spacing: 1.2;
  font-family: "Montserrat", sans-serif;
  text-transform: uppercase;
  background: linear-gradient(to top, gray 0%, white 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  -moz-background-clip: text;
  -moz-text-fill-color: transparent;
  background-clip: text;
  -text-fill-color: transparent;
}

.name:hover {
  text-decoration: wavy;
  transform: scale(1.2);
}

.role {
  font-size: 1.5rem;
  color: yellowgreen;
  transition: transform 0.2s;
  white-space: nowrap;
  overflow: hidden;
  transform: translateY(-50%);
  border-right: 2px solid rgba(154, 205, 50, 0.75);
  align-items: center;
  text-align: left;
  justify-content: center;
}

.about {
  max-width: 100%;
  line-height: 1.3;
  letter-spacing: 1.1;
  color: gray;
}

.emoji {
  max-width: 25rem;
  max-height: 25rem;
}

.emoji-background {
  max-width: 15rem;
  max-height: 15rem;
  background-color: white;
  border-radius: 50%;
}

.anim-typewriter {
  animation: typewriter 2s steps(44) 1s 1 normal both, blinkTextCursor 850ms steps(44) infinite normal;
  height: 2rem;
}
@keyframes typewriter {
  from {
    width: 0;
  }
  to {
    width: 11.8em;
  }
}
@keyframes blinkTextCursor {
  from {
    border-right-color: rgba(154, 205, 50, 0.75);
  }
  to {
    border-right-color: transparent;
  }
}

.section-header {
  font-size: 2.2rem;
  color: rgb(188, 186, 186);
  letter-spacing: 1.5;
  width: fit-content;
  height: fit-content;
  position: relative;
}

.section-header:before {
  background-color: rgb(255, 51, 51);
  content: "";
  display: block;
  height: 3px;
  width: 75px;
  margin-bottom: 5px;
}
.section-header:after {
  background-color: rgb(255, 51, 51);
  content: "";
  display: block;
  position: absolute;
  right: 0;
  bottom: -5px;
  height: 3px;
  width: 75px;
}

.about-div {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid transparent;
  border-bottom: 1px solid transparent;
  border-radius: 1rem;
  border-image: linear-gradient(90deg, #dedede, #454545 27%, #dedede 36%, #a1a1a1) 1;
  height: fit-content;
  padding: 3rem 1rem;
  margin-top: 10%;
}

.about-desc {
  color: rgb(151, 150, 150);
  line-height: 1.5;
  letter-spacing: 1.3;
  padding-right: 2rem;
}

.about-img {
  height: 50vh;
  border-radius: 1.3rem;
}

.cv {
  width: 10vw;
  height: 7vh;
  margin: 2rem 0;
  color: white;
  letter-spacing: 1.3;
  font-weight: 700;
  background-color: rgb(28, 28, 28);
  border-radius: 5rem;
  cursor: pointer;
  border: 1px solid white;
}

.cv:hover {
  background-color: red;
  border: none;
}

.skill-container {
  display: flex;
}

.skill-div {
  min-height: 70vh;
  width: 100%;
  margin: auto;
  display: grid;
  grid-gap: 3rem;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  align-items: center;
  justify-items: center;
}

.icon {
  width: 8rem;
  height: 10rem;
  margin: auto 3%;
  text-align: center;
  transition: transform 0.1s;
}

.icon:hover {
  transform: translateY(-20%);
}

.icon img {
  max-width: 8rem;
  max-height: 8rem;
}

.icon p {
  justify-content: flex-end;
}

.project-list {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.project {
  display: flex;
  margin: 5rem 0;
}

.image-link {
  width: 50%;
  height: 20rem;
}

.project-img {
  background-color: white;
  width: 100%;
  height: 20rem;
  border-radius: 5px;
  object-fit: cover;
  opacity: 0.7;
  transition: 0.3s;
}

.project-img:hover {
  cursor: pointer;
  opacity: 1;
}

.project-about {
  position: relative;
  justify-content: center;
  align-items: right;
  width: 50%;
  left: -10%;
  height: 20rem;
  display: flex;
  flex-direction: column;
}

.project-head {
  font-weight: 600;
  text-align: right;
  margin: 1rem 0;
  font-size: 1.5rem;
  color: rgb(175, 177, 175);
}

.project-desc {
  padding: 1rem;
  margin: 1rem 0;
  width: fit-content;
  background-color: rgb(35, 36, 71);
  border-radius: 5px;
  color: gray;
}

.project-tools {
  text-align: right;
  color: gray;
  font-size: 0.9rem;
}

.project-links {
  display: flex;
  justify-content: right;
  align-items: center;
  margin: 1rem 0;
}

.project-icon {
  height: 1.3rem;
  margin-left: 1rem;
  transition: 0.2s;
}

.project-icon:hover {
  cursor: pointer;
  transform: scale(1.2);
}

.contact {
  flex-direction: column;
  align-items: center;
  height: 90vh;
  margin-bottom: 10vh;
  border-radius: 0 0 1rem 1rem;
}

.contact-container {
  display: flex;
  align-items: center;
  justify-content: space-around;
  height: 70vh;
}

.speech-bubble {
  position: relative;
  background: #f7f7f7;
  border-radius: 0.4em;
  color: #454545;
  width: 45%;
  margin: 0.5em 1rem;
  padding: 1em;
}

.speech-bubble:after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 0;
  height: 0;
  border: 34px solid transparent;
  border-left-color: #f7f7f7;
  border-right: 0;
  border-top: 0;
  margin-top: -17px;
  margin-right: -34px;
}

.greeting {
  position: absolute;
  top: -17%;
  font-weight: 800;
  font-size: 3rem;
  color: rgb(99, 98, 98);
  text-shadow: 1px 0 #fff, -1px 0 #fff, 0 1px #fff, 0 -1px #fff, 1px 1px #fff, -1px -1px #fff, 1px -1px #fff, -1px 1px #fff;
}

.speech-text {
  font-size: 1.3rem;
  letter-spacing: 1.3;
  line-height: 1.5;
  color: rgb(31, 31, 31);
  padding-top: 2rem;
}

.available-text {
  font-weight: 600;
  color: rgb(57, 56, 56);
  margin: 0;
  margin-bottom: 1rem;
}

.mail-link {
  color: red;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

.contact-icons {
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 1rem 0;
}

.contact-icon {
  height: 2rem;
  width: 2rem;
  margin: 0 1rem;
  transition: transform 0.1s;
}

.contact-icon:hover {
  cursor: pointer;
  transform: scale(1.2);
}

.contact-img {
  height: 50%;
  border-radius: 50%;
}

.copyrights {
  position: relative;
  bottom: -4%;
  text-align: center;
  color: gray;
}

.about-desc,
.skill-div,
.projets-list,
.speech-bubble {
  opacity: 0;
}

.fadeLeft {
  -webkit-animation: fadeLeft 1.3s both;
  -moz-animation: fadeLeft 1.3s both;
  -o-animation: fadeLeft 1.3s both;
  animation: fadeLeft 1.3s both;
}

.fadeRight {
  -webkit-animation: fadeRight 1.3s both;
  -moz-animation: fadeRight 1.3s both;
  -o-animation: fadeRight 1.3s both;
  animation: fadeRight 1.3s both;
}

.fadeUp {
  -webkit-animation: fadeUp 1.5s both;
  -moz-animation: fadeUp 1.5s both;
  -o-animation: fadeUp 1.5s both;
  animation: fadeUp 1.5s both;
}

@-webkit-keyframes fadeLeft {
  0% {
    opacity: 0;
    -webkit-transform: translateX(-50px);
  }
  100% {
    opacity: 1;
    -webkit-transform: translateX(0);
  }
}

@-moz-keyframes fadeLeft {
  0% {
    opacity: 0;
    -moz-transform: translateX(-50px);
  }
  100% {
    opacity: 1;
    -moz-transform: translateX(0);
  }
}

@-o-keyframes fadeLeft {
  0% {
    opacity: 0;
    -o-transform: translateX(-50px);
  }
  100% {
    opacity: 1;
    -o-transform: translateX(0);
  }
}

@keyframes fadeLeft {
  0% {
    opacity: 0;
    transform: translateX(-50px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@-webkit-keyframes fadeRight {
  0% {
    opacity: 0;
    -webkit-transform: translateX(50px);
  }
  100% {
    opacity: 1;
    -webkit-transform: translateX(0);
  }
}

@-moz-keyframes fadeRight {
  0% {
    opacity: 0;
    -moz-transform: translateX(50px);
  }
  100% {
    opacity: 1;
    -moz-transform: translateX(0);
  }
}

@-o-keyframes fadeRight {
  0% {
    opacity: 0;
    -o-transform: translateX(50px);
  }
  100% {
    opacity: 1;
    -o-transform: translateX(0);
  }
}

@keyframes fadeRight {
  0% {
    opacity: 0;
    transform: translateX(50px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@-webkit-keyframes fadeUp {
  0% {
    opacity: 0;
    -webkit-transform: translateY(50px);
  }
  100% {
    opacity: 1;
    -webkit-transform: translateY(0);
  }
}

@-moz-keyframes fadeUp {
  0% {
    opacity: 0;
    -moz-transform: translateY(50px);
  }
  100% {
    opacity: 1;
    -moz-transform: translateY(0);
  }
}

@-o-keyframes fadeUp {
  0% {
    opacity: 0;
    -o-transform: translateY(50px);
  }
  100% {
    opacity: 1;
    -o-transform: translateY(0);
  }
}

@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(50px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (orientation: portrait) {
  .home-content,
  .about-div,
  .contact-container {
    flex-direction: column;
  }

  .name,
  .anim-typewriter,
  .role {
    margin: 2rem auto;
  }

  .emoji {
    /* max-width: 75%;
    max-height: 75%;
    margin: auto; */
    position: relative;
    left: 50%;
    transform: translate(-50%);
    margin: 0;
  }

  .about {
    max-width: 100%;
    text-align: center;
    margin: 0;
    padding: 0%;
  }

  .about-div {
    padding: 3rem 0;
  }

  .about-desc {
    padding-right: 0;
  }

  .speech-bubble:after {
    top: 108%;
    left: 50%;
    border: 2rem solid transparent;
    border-top-color: #fff;
    border-bottom: 0;
    border-right: 0;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  body {
    font-size: 1rem;
  }

  .cv {
    width: auto;
    padding: 5%;
  }

  .about-img {
    width: auto;
  }

  .speech-bubble {
    width: 90%;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 0.85rem;
  }

  section {
    width: 90vw;
  }

  .name {
    font-size: 1.8rem;
  }

  .home-content,
  .about-div,
  .contact-container {
    flex-direction: column;
  }

  .cv {
    width: auto;
    height: auto;
    padding: 6%;
    font-size: 0.7rem;
  }

  .about-img {
    height: auto;
  }

  .skill-div {
    grid-template-columns: repeat(auto-fit, minmax(4rem, 1fr));
    margin-top: 2rem;
  }

  .icon img {
    max-height: 5rem;
  }

  .project {
    flex-direction: column-reverse;
    position: relative;
  }

  .image-link,
  .project-about {
    width: 100%;
    left: 0;
    align-items: center;
  }

  .image-link {
    position: absolute;
    opacity: 0.2;
  }

  .speech-bubble {
    width: 100%;
  }

  .greeting {
    font-size: 2rem;
    top: -10%;
  }

  .speech-text {
    font-size: 1rem;
  }

  .speech-bubble:after {
    top: 108%;
    left: 50%;
    border: 2rem solid transparent;
    border-top-color: #fff;
    border-bottom: 0;
    border-right: 0;
  }

  .contact-img {
    height: 40%;
  }
}

@media (max-width: 320px) {
  body {
    font-size: 0.4rem;
  }

  .name,
  .role {
    font-size: 1rem;
  }

  .anim-typewriter {
    height: 1rem;
  }

  .greeting {
    font-size: 1rem;
    top: -20%;
  }

  .available-text,
  .contact-icons {
    margin: 0;
  }

  .cv {
    font-size: 0.5rem;
  }

  .speech-text {
    font-size: 0.5rem;
    padding-top: 0;
  }

  .speech-bubble:after {
    border: 1rem solid transparent;
    border-top-color: #fff;
    border-bottom: 0;
    border-right: 0;
    top: 115%;
  }

  .contact-icon {
    height: 1rem;
    width: 1rem;
  }
}
