/*#f73e5e*/
/*6B778D*/
html, * {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

h1 {
  margin: 1.5rem 0;
}

h2 {
  margin: 0.625rem 0 3.125rem 0;
}

h3 {
  margin-bottom: 1rem;
}

h4 {
  margin-top: 0.625rem;
}

a {
  text-decoration: none;
}

li {
  list-style-type: none;
}

/* 
    * General typo rules only
    * Component typography rules are in the respective component file
*/
body, input, textarea, button {
  font-family: "Montserrat", sans-serif;
}

h1, h2, h3, h4 {
  font-weight: 400;
}

h1 {
  font-size: clamp(2rem, 8vw, 4rem);
}

h2 {
  font-size: clamp(2rem, 8vw, 3rem);
}

h3 {
  font-size: 1.25rem;
}

h4 {
  font-size: 1.125rem;
}

p {
  line-height: 1.6;
  text-align: justify;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #082032;
  color: #DBEDF3;
}

main {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

section {
  width: clamp(20rem, 80vw, 43.75rem);
  margin-bottom: 6.25rem;
}

.accent {
  color: rgb(97.249218528%, 31.5743108838%, 42.9212844558%);
}

#large-header {
  position: fixed;
  height: 100vh;
  width: 100vw;
  z-index: -1;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  padding: 0 clamp(0.5rem, 10%, 2rem);
  top: 0;
  transition: 0.3s;
  width: 100%;
  background-color: #082032;
  height: 4.375em;
  z-index: 2;
}
header img {
  max-height: 3.125em;
}

/************************************************************************/
/******************************HERO SECTION******************************/
/************************************************************************/
#hero {
  padding-top: 11.875rem;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 4.375rem);
}

#hero-intro {
  color: rgb(97.249218528%, 31.5743108838%, 42.9212844558%);
  letter-spacing: 1px;
  font-size: 1.125rem;
}

#hero-followup {
  color: #97a0b0;
  font-size: clamp(1.625rem, 8vw, 2.75rem);
}

#hero-description {
  margin: 4.375rem 0;
  letter-spacing: 1px;
  width: clamp(20rem, 60vw, 31.25rem);
}

/************************************************************************/
/*****************************ABOUT SECTION******************************/
/************************************************************************/
#technology {
  display: flex;
  flex-direction: column;
}
#technology .description {
  font-size: clamp(1.125rem, 8vw, 1.75rem);
  color: #6B778D;
  margin: 50px 0;
}

.bio {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.bio a {
  margin: 1.875rem 0;
}

.about {
  margin: 1.875rem 0;
  letter-spacing: 1px;
  position: relative;
  width: clamp(20rem, 60vw, 28.125rem);
}
.about::before {
  content: "";
  position: absolute;
  width: 1.25rem;
  height: 1.25rem;
  top: -1.875rem;
  left: 0;
  background-image: url("../img/left-quote-svgrepo-com.svg");
}
.about::after {
  content: "";
  position: absolute;
  width: 1.25rem;
  height: 1.25rem;
  bottom: -1.875rem;
  right: 0;
  background-image: url("../img/right-quote-svgrepo-com.svg");
}

.skill-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.tool-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

/************************************************************************/
/*****************************PARCOURS SECTION****************************/
/************************************************************************/
#parcours {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.timeline-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
}

.timeline-item {
  background-color: #2C394B;
  border-left: 0.1875rem solid rgb(97.249218528%, 31.5743108838%, 42.9212844558%);
  border-radius: 5px;
  padding: 1.25rem 1.875rem;
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}

.timeline-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
}
.timeline-header h3 {
  margin-bottom: 0;
}

.timeline-date {
  color: rgb(97.249218528%, 31.5743108838%, 42.9212844558%);
  font-weight: 600;
  font-size: 0.875rem;
  white-space: nowrap;
}

.timeline-place {
  color: #97a0b0;
  font-style: italic;
  margin: 0.25rem 0 0.75rem 0;
}

.timeline-item ul {
  margin-top: 0.5rem;
  padding-left: 1.125rem;
}
.timeline-item ul li {
  list-style-type: disc;
  color: #97a0b0;
  margin-bottom: 0.5rem;
}
.timeline-item ul li::marker {
  color: rgb(97.249218528%, 31.5743108838%, 42.9212844558%);
}

/************************************************************************/
/*****************************PROJECT SECTION****************************/
/************************************************************************/
#showcase {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/************************************************************************/
/****************************CONTACT SECTION*****************************/
/************************************************************************/
#contact {
  gap: 2rem;
}
#contact p {
  margin-bottom: 1.875rem;
  color: #DBEDF3;
}

.contact-submit, .btn {
  text-align: center;
  font-size: 1rem;
  position: relative;
  letter-spacing: 1px;
}

.socials-link {
  display: flex;
  justify-content: space-around;
}
.socials-link a img {
  width: 1.875rem;
  transition: 0.1s ease-in-out;
}
.socials-link a img:hover {
  transform: scale(1.2);
}

footer {
  padding: 1.25rem 2.5rem;
  color: #97a0b0;
  border-top: 1px solid rgb(97.249218528%, 31.5743108838%, 42.9212844558%);
}

.thank-you-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  min-height: 100vh;
  width: clamp(18rem, 90vw, 40rem);
}
.thank-you-wrapper h1 {
  font-size: 3rem;
  font-weight: bold;
}
.thank-you-wrapper p {
  font-size: 1.5rem;
}

.skill-card {
  background-color: #2C394B;
  min-width: 20rem;
  max-width: 22.5rem;
  padding: 1.25rem 1.875rem;
  border-radius: 5px;
  position: relative;
  margin: 1.25rem;
  /*
   TODO: Find a better way to get the same height
   TODO: Grid on col flow ?
  */
  min-height: 245px;
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}
.skill-card h3 {
  text-align: center;
  font-size: 1.5rem;
}
.skill-card p {
  margin-top: 1.25rem;
  color: #97a0b0;
}
.skill-card:before, .skill-card:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  border: 3px solid rgb(97.249218528%, 31.5743108838%, 42.9212844558%);
}
.skill-card:before {
  clip-path: inset(0 calc(100% - 5rem) calc(100% - 2.5rem) 0);
}
.skill-card::after {
  clip-path: inset(calc(100% - 2.5rem) 0 0 calc(100% - 5rem));
}

.tool-card {
  position: relative;
  min-width: 20rem;
  max-width: 22rem;
  background-color: #2C394B;
  padding: 1.25rem 1.875rem;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
  margin: 1.25rem;
}
.tool-card h3 {
  color: rgb(97.249218528%, 31.5743108838%, 42.9212844558%);
}
.tool-card .tool {
  position: absolute;
  width: 18.75rem;
}
.tool-card p {
  position: relative;
}

.portfolio-card {
  display: flex;
  flex-direction: column;
  width: clamp(20rem, 90vw, 28.125rem);
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 2.5rem;
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}
.portfolio-card .card-info {
  display: flex;
  flex-direction: column;
  background-color: #2C394B;
  padding: 1.25rem;
}
.portfolio-card .project-cover {
  position: relative;
  width: 100%;
  min-height: 11.25rem;
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2C394B, #082032);
  box-shadow: 0 4px 4px -2px rgba(0, 0, 0, 0.24);
}
.portfolio-card .project-cover img {
  width: 3.75rem;
  opacity: 0.85;
}

.app-presentation {
  color: #97a0b0;
}

.tech-used {
  font-weight: 600;
  display: flex;
  justify-content: space-evenly;
}

.tech {
  padding: 0.5rem;
  background-color: rgb(97.249218528%, 31.5743108838%, 42.9212844558%);
  border-radius: 2rem;
  font-size: 0.75rem;
  margin: 1.875rem 0;
  box-shadow: rgba(0, 0, 0, 0.15) 0px 5px 15px 0px;
}

.btn, .contact-submit {
  background-color: #082032;
  border: 0.125rem solid rgb(97.249218528%, 31.5743108838%, 42.9212844558%);
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
  z-index: 1;
  border-radius: 5px;
  color: rgb(97.249218528%, 31.5743108838%, 42.9212844558%);
  padding: 1rem 1.25rem;
  width: clamp(20rem, 100%, 28.125rem);
  transition: 0.4s ease-in-out;
  cursor: pointer;
  overflow: hidden;
}
.btn:hover, .contact-submit:hover {
  color: #DBEDF3;
}
.btn:hover::before, .contact-submit:hover::before {
  transform: scaleX(1.1);
}
.btn::before, .contact-submit::before {
  content: "";
  z-index: -1;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background-color: rgb(97.249218528%, 31.5743108838%, 42.9212844558%);
  transition: transform 0.3s ease-in-out;
  transform: scaleX(0);
  transform-origin: left;
}

.contact-submit {
  width: 100%;
}

.link-wrapper {
  display: flex;
  align-items: center;
  align-self: flex-end;
  margin: 0.5rem;
}
.link-wrapper a {
  color: #DBEDF3;
  position: relative;
  overflow: hidden;
  background: linear-gradient(to right, rgb(97.249218528%, 31.5743108838%, 42.9212844558%), rgb(97.249218528%, 31.5743108838%, 42.9212844558%) 50%, #DBEDF3 50%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 100%;
  background-position: 100%;
  transition: background-position 275ms ease;
  transition: 0.2s ease-in-out;
  font-size: 0.938rem;
  font-weight: 600;
}
.link-wrapper:hover a {
  background-position: 0 100%;
  transform: scale(1.1);
}
.link-wrapper:focus a {
  background-position: 0 100%;
  transform: scale(1.1);
}
.link-wrapper:hover img {
  transform: scale(1.3) rotateZ(360deg) translateX(0.25rem);
}
.link-wrapper img {
  width: 1.875rem;
  transition: 0.2s ease-in-out;
}

#external-icon {
  height: 1.25rem;
  margin: 0 0.5rem;
}

/************************************************************************/
/***************************LOADING ANIMATION****************************/
/************************************************************************/
/*
 * Loading animation made of 2 cube rotating, one of wich scaling down and up
*/
.loader-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
}
.loader-wrapper p {
  font-size: 1.75rem;
  margin: 3.125em 0;
  text-align: center;
}

.loader {
  animation: loader-rotation 1s infinite ease-in-out;
}
@keyframes loader-rotation {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(90deg);
  }
}

.large-cube, .small-cube {
  height: 4.375rem;
  width: 4.375rem;
  background-color: rgb(97.249218528%, 31.5743108838%, 42.9212844558%);
  border-radius: 5px;
}

.small-cube {
  background-color: #082032;
  animation: small-box-animation 1s alternate infinite ease-in-out;
}
@keyframes small-box-animation {
  0% {
    transform: scale(0.6);
  }
  100% {
    transform: scale(0.8);
  }
}

.loading {
  opacity: 0;
  display: none;
}

html {
  scrollbar-color: rgb(97.249218528%, 31.5743108838%, 42.9212844558%) rgb(2.3096686951%, 9.2386747803%, 14.4354293442%);
  scrollbar-width: thin;
}
html ::-webkit-scrollbar {
  width: 0.5rem;
}
html ::-webkit-scrollbar-track {
  border-radius: 0.625rem;
}
html ::-webkit-scrollbar-thumb {
  border-radius: 0.5rem;
  background-color: rgb(97.249218528%, 31.5743108838%, 42.9212844558%);
}

nav ul {
  display: flex;
  align-items: center;
  justify-content: center;
}
nav ul li {
  margin: 0.625rem;
  cursor: pointer;
  transition: 0.2s ease-in-out;
  position: relative;
}
nav ul li:hover:after {
  width: 100%;
  left: 0;
}
nav ul li:after {
  content: "";
  height: 0.125rem;
  left: 50%;
  display: block;
  position: absolute;
  background: rgb(97.249218528%, 31.5743108838%, 42.9212844558%);
  transition: width 0.3s ease 0s, left 0.3s ease 0s;
  width: 0;
  transform: translateY(0.3125rem);
}

#desktop-nav {
  display: none;
}
#desktop-nav li:hover {
  color: rgb(97.249218528%, 31.5743108838%, 42.9212844558%);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  align-items: center;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  padding: 1.25rem;
}
.mobile-nav ul {
  display: flex;
  flex-direction: column;
  padding-top: 3.125rem;
}
.mobile-nav ul li {
  margin: 1.25rem;
  font-size: 1.125rem;
}
.mobile-nav ul li:hover {
  transform: scale(1.1);
}

aside {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease-in-out;
}
aside.test {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-active {
  display: flex;
}

.contact-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #DBEDF3;
  caret-color: #DBEDF3;
  min-width: 20rem;
  margin-top: 1.875rem;
}
.contact-form input, .contact-form textarea {
  color: #DBEDF3;
  font-size: 1rem;
  background-color: #2C394B;
  width: clamp(20rem, 80vw, 25rem);
  min-width: 20rem;
  padding: 0.8rem;
  margin: 0.5rem 0 0.5rem 0;
  border: none;
  border-radius: 5px;
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: 2px solid rgb(97.249218528%, 31.5743108838%, 42.9212844558%);
}
.contact-form input::placeholder, .contact-form textarea::placeholder {
  color: #DBEDF3;
  opacity: 0.8;
}
.contact-form textarea {
  resize: none;
  margin-bottom: 1rem;
}
.contact-form button {
  max-width: 25rem;
}

/*
    * Mobile menu shape
*/
.menu-bg {
  position: absolute;
  transition: 0.4s ease-in-out;
  right: 0;
  width: 0;
  height: 0;
}

.menu-bg-active {
  width: 43.75rem;
  height: 43.75rem;
  background-color: rgb(97.249218528%, 31.5743108838%, 42.9212844558%);
  border-radius: 31.25rem;
  transform: translate(31.25rem, 6.25rem);
  z-index: -2;
  visibility: visible;
  opacity: 1;
}

/*
    * Mobile menu toggle
    * Burger with span technique
*/
.burger {
  width: 2.25rem;
  height: 1.5rem;
  cursor: pointer;
  position: absolute;
  right: clamp(1rem, 50%, 2rem);
}
.burger.active span {
  background-color: transparent;
}
.burger.active span::before {
  transform: translateY(0) rotateZ(45deg);
  background-color: #DBEDF3;
}
.burger.active span::after {
  transform: translateY(0) rotateZ(-45deg);
  background-color: #DBEDF3;
}
.burger span {
  display: block;
  width: 100%;
  height: 0.25rem;
  border-radius: 0.625rem;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgb(97.249218528%, 31.5743108838%, 42.9212844558%);
}
.burger span::before, .burger span::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 0.25rem;
  background-color: rgb(97.249218528%, 31.5743108838%, 42.9212844558%);
  border-radius: 0.625rem;
  transition: 0.4s ease-in-out;
}
.burger span::before {
  transform: translateY(0.625rem);
}
.burger span::after {
  transform: translateY(-0.625rem);
}

/************************************************************************/
/*****************************MEDIA QUERIES******************************/
/************************************************************************/
/*Tablet design*/
@media only screen and (min-width: 48em) {
  .menu-bg {
    display: none;
  }
  header {
    width: 100%;
    justify-content: space-evenly;
  }
  .burger {
    display: none;
  }
  #desktop-nav {
    display: flex;
    font-size: 1.25rem;
  }
  nav {
    display: flex;
  }
  nav ul li {
    margin: 1.25rem;
  }
  #hero {
    justify-content: center;
  }
  #hero .btn {
    width: 12.5rem;
  }
  h1 {
    font-weight: 600;
  }
  /**/
  #hero-description {
    font-size: 1.25rem;
  }
  #technology {
    width: 46.25rem;
  }
  #technology .about {
    width: 31.25rem;
    align-self: center;
  }
  #technology .about + p {
    width: 31.25rem;
    align-self: center;
  }
  #technology .about::before {
    width: 2.5rem;
    height: 2.5rem;
    top: -2.5rem;
    left: -2.5rem;
  }
  #technology .about::after {
    width: 2.5rem;
    height: 2.5rem;
    bottom: -2.5rem;
    right: -2.5rem;
  }
  #technology a {
    width: auto;
  }
  .skill-wrapper {
    display: grid;
    gap: 1.25rem;
    grid-template-areas: "lang frameworks" "db sys";
  }
  .skill-wrapper #lang {
    grid-area: lang;
  }
  .skill-wrapper #frameworks {
    grid-area: frameworks;
  }
  .skill-wrapper #db {
    grid-area: db;
  }
  .skill-wrapper #sys {
    grid-area: sys;
  }
  .skill-card {
    margin: 0;
  }
  aside {
    display: none;
  }
  #showcase {
    width: clamp(47.5rem, 80vw, 75rem);
  }
  .portfolio-card {
    width: clamp(20rem, 70vw, 40rem);
    box-shadow: none;
    align-items: center;
  }
  .portfolio-card .project-cover {
    max-width: 40rem;
    transition: 0.2s ease-in-out;
  }
  .portfolio-card .project-cover:hover {
    filter: brightness(1.15);
  }
  /*
      .odd-card{

          flex-direction: row-reverse;
      }
  */
  .tech-used {
    max-width: 25rem;
    align-self: center;
    gap: 2rem;
  }
  #contact {
    display: grid;
    width: 46.875rem;
    grid-template-areas: "title form " "description form " "socials form";
    justify-items: center;
  }
  #contact h2 {
    grid-area: title;
    align-self: end;
  }
  #contact p {
    grid-area: description;
    width: 16.875rem;
    text-align: justify;
  }
  .contact-form {
    grid-area: form;
  }
  .contact-form button {
    max-width: 46.875rem;
  }
  .socials {
    grid-area: socials;
  }
}
@media only screen and (min-width: 75em) {
  #technology {
    width: 68.75rem;
    display: grid;
    justify-items: center;
    align-items: center;
    grid-template-areas: "About About" "Bio tech" "Bio skillcard" "tool tool" "toolcard toolcard";
    column-gap: clamp(3.75rem, 5vw, 5rem);
  }
  #technology h2 {
    grid-area: About;
    justify-self: start;
  }
  #technology #grid-tech {
    grid-area: tech;
  }
  #technology .about {
    width: 21.875rem;
  }
  #technology .skill-wrapper {
    grid-area: skillcard;
  }
  #technology .bio {
    grid-area: Bio;
  }
  #technology .bio a {
    width: auto;
  }
  #technology #grid-tool {
    grid-area: tool;
  }
  #technology #tool-card {
    grid-area: toolcard;
  }
  .skill-wrapper {
    gap: 1.25rem;
  }
  #showcase {
    width: clamp(75rem, 80vw, 150rem);
    gap: 3rem;
  }
  .odd-card {
    flex-direction: row;
  }
  .even-card {
    flex-direction: row-reverse;
  }
  .even-card .card-info {
    transform: translate(0);
  }
  .even-card .project-cover {
    transform: translate(-10vw);
  }
  .portfolio-card {
    width: clamp(40rem, 80%, 100rem);
    transform: translate(5vw);
  }
  .portfolio-card .project-cover {
    width: clamp(30rem, 35vw, 70rem);
    border-radius: 5px;
  }
  .card-info {
    width: clamp(25rem, 50%, 40rem);
    border-radius: 5px;
    transform: translate(-10vw);
  }
  #contact {
    width: clamp(46.875rem, 90vw, 100rem);
    gap: 1.25rem;
  }
  #contact .contact-form {
    width: clamp(21.875rem, 50vw, 31.25rem);
  }
  #contact .contact-form input, #contact .contact-form textarea {
    width: clamp(21.875rem, 50vw, 31.25rem);
  }
  #contact .contact-form textarea {
    height: 18.75rem;
  }
  #contact p {
    width: clamp(16.875rem, 40vw, 28.125rem);
    font-size: 1.25rem;
  }
}
@media only screen and (min-width: 112.5em) {
  #technology {
    width: 100rem;
  }
  #technology .about {
    width: 28.125rem;
  }
  #technology .bio {
    font-size: 1.25rem;
    width: 28.125rem;
  }
  .skill-wrapper {
    gap: 2.5rem;
  }
}
