/* HEADER STYLE */

header {
  height: 13vh;
  width: 100%;
  position: fixed;
  background-color: var(--dark-transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

header nav ul {
  display: flex;
}

header nav ul li a {
  color: var(--light);
  font-size: 1.2em;
  padding: 10px 25px;
}

header nav ul li a {
  border-bottom: 2px solid var(--dark);
  transition: 0.2s;
}

header nav ul li a:hover {
  border-bottom: 1px solid var(--beige);
}

header nav ul li .selected {
  border-bottom: 1px solid var(--orange);
}

/* MAIN STYLE */

main {
  width: 70%;
  margin: auto;
}

main section {
  position: relative;
}

/* INTRODUCTION STYLE */

@keyframes puff-in-center {
  0% {
    -webkit-transform: scale(1.2);
    transform: scale(1.2);
    -webkit-filter: blur(2px);
    filter: blur(2px);
    opacity: 0;
  }
  100% {
    -webkit-transform: scale(1);
    transform: scale(1);
    -webkit-filter: blur(0px);
    filter: blur(0px);
    opacity: 1;
  }
}

@keyframes heartbeat {
  from {
    -webkit-transform: scale(1);
    transform: scale(1);
    -webkit-transform-origin: center center;
    transform-origin: center center;
    -webkit-animation-timing-function: ease-out;
    animation-timing-function: ease-out;
  }
  10% {
    -webkit-transform: scale(0.91);
    transform: scale(0.91);
    -webkit-animation-timing-function: ease-in;
    animation-timing-function: ease-in;
  }
  17% {
    -webkit-transform: scale(0.98);
    transform: scale(0.98);
    -webkit-animation-timing-function: ease-out;
    animation-timing-function: ease-out;
  }
  33% {
    -webkit-transform: scale(0.87);
    transform: scale(0.87);
    -webkit-animation-timing-function: ease-in;
    animation-timing-function: ease-in;
  }
  45% {
    -webkit-transform: scale(1);
    transform: scale(1);
    -webkit-animation-timing-function: ease-out;
    animation-timing-function: ease-out;
  }
}

@keyframes blink-1 {
  0%,
  50%,
  100% {
    opacity: 1;
  }
  25%,
  75% {
    opacity: 0;
  }
}

main .introduction {
  color: var(--light);
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  animation-name: puff-in-center;
  animation-duration: 2s;
}

main .introduction .introduction-container {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

main .introduction .introduction-container .subtitle {
  display: flex;
  align-items: center;
  gap: 5px;
}

main .introduction .introduction-container .subtitle span {
  animation-name: blink-1;
  animation-duration: 1s;
  animation-iteration-count: infinite;
  color: var(--orange);
  font-size: 2em;
}

main .introduction .introduction-container .social-medias {
  min-width: 150px;
  display: flex;
  justify-content: space-between;
}

main .introduction .introduction-container .introduction-image .less-than-icon {
  transform: rotate(180deg);
}

main
  .introduction
  .introduction-container
  .introduction-image
  .introduction-icon {
  animation-name: heartbeat;
  animation-duration: 2s;
  animation-delay: 1s;
  animation-iteration-count: infinite;
}

/* ABOUT STYLE */

main .about {
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

main .about .cards {
  margin-top: 10%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-column-gap: 32px;
  justify-content: center;
}

main .about .cards .article-image {
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
  min-height: 150px;
  display: flex;
  justify-content: center;
  align-items: center;
}

main .about .cards .education-image {
  background-image: linear-gradient(180deg, #00b37e, #00291d);
}

main .about .cards .work-image {
  background-image: linear-gradient(180deg, #ffb920, #5f4100);
}

main .about .cards .hobbie-image {
  background-image: linear-gradient(180deg, #42d3ff, #065e7c);
}

main .about .cards .article-image img {
  max-width: 80%;
  margin-top: -32px;
}

main .about .cards .article-content {
  min-height: 250px;
  position: relative;
  padding: 40px 24px 24px;
  border-style: solid;
  border-width: 1px;
  border-color: var(--light) var(--black) var(--black);
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
  background-color: var(--black);
  text-align: center;
}

main .about .cards .article-content p {
  margin-top: 16px;
  font-size: 1em;
}

main .about .cards .article-content .card-icon {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: auto;
  height: 50px;
  margin-top: -25px;
  margin-bottom: 0;
}

/* SKILLS STYLE */

main .skills {
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

main .skills p {
  margin-top: 30px;
}

main .skills p a {
  color: var(--orange);
  font-weight: bold;
}

main .skills .skills-container {
  margin-top: 30px;
}

main .skills .skills-container .technologies {
  margin-top: 30px;
}

main .skills .skills-container .technologies ul {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-gap: 25px;
}

main .skills .skills-container .technologies ul li {
  box-shadow: rgb(0 0 0 / 50%) 0px 4px 16px;
  background-color: var(--black);
  border-radius: 5px;
  transition: 0.2s;
}

main .skills .skills-container .technologies ul li:hover {
  box-shadow: rgb(0 0 0 / 50%) 0px 4px 16px;
  background-color: var(--dark-transparent);
  border-radius: 5px;
}

main .skills .skills-container .technologies ul li .technology {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 25px;
}

/* CONNECT STYLE */

main .connect {
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

main .connect p {
  margin-top: 30px;
}

main .connect p a {
  color: var(--orange);
  font-weight: bold;
}

main .connect .email-area {
  max-width: 750px;
  width: 100%;
  min-height: 200px;
  margin-top: 30px;
  background-color: var(--black);
  box-shadow: rgb(0 0 0 / 50%) 0px 4px 16px;
  display: flex;
  border-radius: 5px;
  padding: 35px;
  justify-content: space-between;
}

main .connect .email-area .connect-form {
  display: flex;
  flex-direction: column;
  row-gap: 10px;
  width: 100%;
}

main .connect .email-area .connect-form input {
  height: 50px;
}

main .connect .email-area .connect-form textarea {
  height: 150px;
  resize: none;
}

main .connect .email-area .connect-form input,
main .connect .email-area .connect-form textarea {
  background: var(--dark);
  color: var(--light);
  border: 1px solid var(--gray);
  border-radius: 4px;
  padding: 12px;
  text-align: left;
}

main .connect .email-area .connect-form input:focus,
main .connect .email-area .connect-form textarea:focus {
  border-color: var(--orange);
}

main .connect .email-area .connect-form input::placeholder,
main .connect .email-area .connect-form textarea::placeholder {
  color: var(--light);
  opacity: 0.3;
}

main .connect .email-area .connect-form button {
  background: var(--orange);
  color: var(--black);
  font-weight: bold;
  height: 45px;
  width: 20%;
  min-width: 175px;
  border-radius: 4px;
  border: 1px solid var(--gray);
}

main .connect .email-area .connect-form #connect_name {
  background-image: url(../images/icons/name-icon.png);
  background-repeat: no-repeat;
  padding: 12px 0px 12px 50px;
  background-position: 10px 10px;
}

main .connect .email-area .connect-form #connect_email {
  background-image: url(../images/icons/email-icon.png);
  background-repeat: no-repeat;
  padding: 12px 0px 12px 50px;
  background-position: 15px 15px;
}

main .connect .email-area .connect-form .submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

main .connect .email-area .connect-form .submit p {
  margin-top: 0;
  font-size: 1em;
  font-weight: bold;
}

@keyframes jello-horizontal {
  0% {
    -webkit-transform: scale3d(1, 1, 1);
    transform: scale3d(1, 1, 1);
  }
  30% {
    -webkit-transform: scale3d(1.25, 0.75, 1);
    transform: scale3d(1.25, 0.75, 1);
  }
  40% {
    -webkit-transform: scale3d(0.75, 1.25, 1);
    transform: scale3d(0.75, 1.25, 1);
  }
  50% {
    -webkit-transform: scale3d(1.15, 0.85, 1);
    transform: scale3d(1.15, 0.85, 1);
  }
  65% {
    -webkit-transform: scale3d(0.95, 1.05, 1);
    transform: scale3d(0.95, 1.05, 1);
  }
  75% {
    -webkit-transform: scale3d(1.05, 0.95, 1);
    transform: scale3d(1.05, 0.95, 1);
  }
  100% {
    -webkit-transform: scale3d(1, 1, 1);
    transform: scale3d(1, 1, 1);
  }
}

main .connect #modal.show {
  background-color: #0e0a14ef;
  height: 100vh;
  width: 100vw;
  position: fixed;
  top: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 400ms;
  z-index: 9999;
}

main .connect #modal.show .content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

main .connect #modal.show .content img {
  animation-name: jello-horizontal;
  animation-duration: 1s;
}

main .connect #modal.show .content p {
  margin-top: 0;
}

main .connect #modal.hide {
  display: none;
}
