:root {
  --primary-color: #0f8bff;
  --primary-color-dark: #102AD2;
  --primary-color-darkest: #0a1d98;
  --black: #191919;
  --white: #edeee9;
  --pure-white: #ffffff;
  --gray-dark: #434343;
  --gray: #5a5959;
  --gray-light: #bbbbb9;
  --gray-lightest: #C0C0BD;
  --font-primary: 'PlayFair', serif;
  --font-secondary: 'Montserrat', sans-serif;
  --font-terciary: 'Raleway', sans-serif;
  --font-size-large: 4vw;
  --font-size-medium: 2vw;
  --font-size-small: 1rem;
}

@font-face {
  font-family: 'PlayFair';
  src: url("./Fonts/PlayfairDisplay-VariableFont_wght.ttf") format('truetype');
  font-display: swap;
}


@font-face {
  font-family: 'Montserrat';
  src: url("./Fonts/Montserrat-SemiBold.ttf") format('truetype');
  font-weight: normal;
  font-display: swap;
}


@font-face {
  font-family: 'Montserrat';
  src: url("./Fonts/Montserrat-Bold.ttf") format('truetype');
  font-weight: bold;
  font-display: swap;
}


@font-face {
  font-family: 'Raleway';
  src: url("./Fonts/Raleway-VariableFont_wght.ttf") format('truetype');
  font-weight: normal;
  font-display: swap;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  user-select: none;
  cursor: none;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  overflow-x: hidden !important;
  overflow-y: auto;
}

body {
  color: var(--black) !important;
  font-size: var(--font-size-small) !important;
  font-family: var(--font-terciary) !important;
  font-weight: normal;
  scrollbar-width: none;
  -ms-overflow-style: none;
  background: var(--white) url(./Images/bg.png) !important;
}

::-webkit-scrollbar {
  width: 0;
  height: 0;
}


/* Hide the content until the loader disappears */
#content {
  display: none;
  opacity: 0;
  transition: opacity 1s ease;
}

#content.show {
  display: block;
  opacity: 1;
}



/*LOADER*/
/*LOADER DIV*/
.loader {
  width: 100vw;
  height: 100vh;
  animation: loader 4.5s;
  animation-fill-mode: forwards;
  overflow: hidden !important;
}

@keyframes loader {
  100% {
    display: none;
  }
}

/*LOADER TEXT*/
.loader-text {
  border-right: solid 3px;
  overflow: hidden !important;
  position: relative;
  top: 45%;
  left: 48%;
  letter-spacing: 5px;
  animation: animated-text 0.8s steps(4, end) 1.1s 1 normal both,
    animated-cursor 800ms steps(4, end) infinite;
  font-size: 2.1875rem !important;
}

@keyframes animated-text {
  from {
    width: 0;
  }

  to {
    width: 86px;
  }
}

@keyframes animated-cursor {
  from {
    border-right-color: #f07400;
  }

  to {
    border-right-color: transparent;
  }
}

/*LOADER TEXT EN*/
.loader-text-en {
  font-size: 2.1875rem !important;
  border-right: solid 3px;
  overflow: hidden !important;
  position: relative;
  top: 45%;
  left: 48%;
  letter-spacing: 5px;
  animation: animated-text-en 0.8s steps(5, end) 1.1s 1 normal both,
    animated-cursor 800ms steps(5, end) infinite;
}

@keyframes animated-text-en {
  from {
    width: 0;
  }

  to {
    width: 7.875rem;
  }
}




.cursor {
  background-color: var(--primary-color);
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  mix-blend-mode: difference;
  width: 3.125rem;
  height: 3.125rem;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(.3);
  z-index: 10000 !important;
  transition: all 50ms ease-out;
  transition: transform 300ms ease-out;
  will-change: transform;
}

.animation {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.5s ease-out;
  transition-delay: 0.5s;
}

.scroll-animation {
  opacity: 1;
  transform: translateX(0);
}



nav {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 4vh 5vh;

  h3 {
    margin-right: 0vh !important;
  }

  .lang-color {
    color: var(--gray-dark);
  }

  .lang-color:hover {
    mix-blend-mode: difference !important;
    font-weight: 400 !important;
    color: var(--primary-color-dark);
  }
}

a {
  text-decoration: none !important;
  cursor: none !important;
}

img {
  border-radius: 10px;
}

button {
  border: none;
  cursor: none !important;
  display: flex;
  align-items: center;
}


h1 {
  font-family: var(--font-primary);
  font-size: 2.1875rem !important;
  font-weight: 400 !important;
  line-height: 60px !important;
  margin: 0 !important;
}

h2 {
  font-family: var(--font-primary);
  font-size: 13.5rem !important;
  font-weight: 600 !important;
  margin: 0 !important;
  color: var(--primary-color-dark) !important;
  text-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
}

h3 {
  font-size: 1.125rem !important;
  font-weight: 500 !important;
  color: var(--gray-lightest) !important;
  margin: 0 3.4375rem 0 0 !important
}

h4 {
  font-size: 1.0625rem !important;
  padding-right: 5rem;
  line-height: 25px !important;
}

h5 {
  font-family: var(--font-secondary);
  font-size: 1.0625rem !important;
  font-weight: normal;
  line-height: 22px !important;
  margin: 2.8125rem 0 0 0;
}

h6 {
  font-size: 1.0625rem !important;
}

.container {
  padding: 0% 2% !important;
  min-height: 100vh;
  align-items: center;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  overflow: hidden;
}

.row {
  width: 100%;
}

.box-container {
  border-radius: 20px;
  border: 1.5px solid #b1b0b0;
  padding: 0.0525rem 1rem;
  margin-right: 0.4rem;
  color: var(--gray);
  font-size: 0.9175rem;
}



/*HOME*/
.container-home {
  min-height: 90vh !important;
  padding-bottom: 5vh !important;

  .floating-image {
    width: 80%;
    max-width: 600px;
    margin: 0 auto;
    min-height: 560px;
    position: relative;
    overflow: hidden;
    padding: 0px 160px !important;
    border-radius: 10px !important;
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
    transform-style: preserve-3d;
    display: flex;
    justify-content: center;
    align-items: center;
    will-change: transform;

    .floating-image:nth-child(1) {
      transform: translate3d(0, -15%, 70px) rotateX(-10deg);
    }

    .cover-img {
      width: 100%;
      height: 100%;
      position: absolute;
      top: 0;
      left: 0;
      background-size: cover;
      background-position: top left;
      background-repeat: no-repeat;
      background-image: url('./Images/Tatiana\ Pereira.webp');
    }
  }

  .col-7 {
    padding-right: 4rem;
  }

  .container-text-animation {
    width: 100vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: start;
    height: 95%;

    .space {
      height: 5.3125rem !important;
    }

    .line {
      width: 70%;
      height: 62px;
      position: relative;
      overflow: hidden;

      span {
        position: absolute;
      }
    }
  }

  .centering-text {
    display: none;
  }

  .name-title {
    display: none;
  }

  .buttons-container {
    display: flex;
    justify-content: space-between;
  }

  button {
    font-family: var(--font-secondary);
    font-size: 0.96875rem !important;
    height: 32px;
    gap: 0.25rem;
    border-radius: 50px !important;
    padding: 0.1875rem 1rem;
    box-shadow: 0 0px 4px rgba(0, 0, 0, 0.2);
    transition: color 0.4s cubic-bezier(0.07, 0.51, 0.18, 0.96), background-color 0.4s cubic-bezier(0.07, 0.51, 0.18, 0.96);
    background: #ecede85e;
  }

  button:hover {
    box-shadow: 0px 1px 14px rgba(0, 0, 0, 0.2);
  }

  .bi::before,
  [class*=" bi-"]::before,
  [class^=bi-]::before {
    font-weight: 600 !important;
  }

  button i {
    font-size: 20px;
    display: inline-block;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform: translateX(0);
  }

  button:hover i {
    transform: translateX(5px);
    opacity: 0.8;
  }
}


/*TICKERS*/
.container-internship-tickers {
  height: 50vh;
  overflow: visible;
  margin: 0;
  padding: 0;

  #internship {
    rotate: 4deg;
    margin: 0.875rem 0rem -5rem -1vw;
  }

  #internship2 {
    rotate: -5deg;
    margin: 0 0 0 -1vw;
  }

  #internship,
  #internship2 {
    width: 102vw;
    position: relative;
    overflow: hidden;
    padding: 2rem 0;
    background-color: var(--black);
    color: var(--white);
    font-size: clamp(20px, 1.2rem, 70px);
    will-change: transform;
    transition: 0s !important;

    .container-fluid {
      display: flex;
      flex-wrap: nowrap;
      width: 102vw;
    }

    span {
      white-space: nowrap;
      margin-right: 9vw;
    }
  }
}


/*PORTFOLIO*/
.container-portfolio {
  min-height: 100vh;
  overflow: hidden;
  position: relative;
  margin: 0;
  padding: 0;

  .gallery-wrapper {
    padding: 1.875rem 0rem 1.875rem 16.8rem !important;
  }

  .gallery {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 32px;
    will-change: transform;
    margin: 0;
    padding: 0;
  }

  .carousel-slide {
    max-width: 28.75rem;
  }

  .carousel-slide img {
    width: 28.75rem;
    height: 15rem;
    filter: saturate(0);
    margin: 1rem 0rem 1rem 0rem;
    box-shadow: rgba(63, 63, 63, 0.2) 0px 8px 24px;
  }

  .carousel-slide img:hover {
    filter: saturate(1);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.2);
    transform: scale(1.01);
  }

  .carousel-slide h5 {
    margin-right: 10px;
    display: inline-block;
    vertical-align: middle;
  }

  .project-count-div {
    display: none !important;
  }

  p {
    margin-bottom: 0;
  }

  h2 {
    margin: 0 0 0 9.375rem !important;
    transition: 400ms ease-in-out;
  }

  h5 {
    font-family: var(--font-secondary);
    font-weight: bold;
  }

  .description {
    line-height: 25px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--gray);
  }
}


#modal.show {
  display: flex;
  opacity: 1;
}

html.no-scroll {
  overflow: hidden;
  height: 100%;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 5000;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  --bs-modal-border-color: none !important;

  .modal-content {
    background-color: var(--white) !important;
    border-radius: 0px !important;
    height: 100% !important;
    background-clip: initial !important;
    overflow: scroll;
    align-items: center;
  }

  .modal-infos {
    padding: 1.25rem 1.25rem 0 1.25rem;
  }

  .modal-images-container img {
    width: 100%;
    height: auto;
    margin-bottom: 1rem;
  }

  .col-12 {
    display: grid;
    grid-template-rows: auto auto;
    grid-template-columns: 50% auto minmax(auto, 1fr);
    padding: 6rem 4.2rem 0rem 4.2rem;
  }

  .project-title {
    font-family: var(--font-secondary);
    font-weight: bold;
    font-size: 3.125rem !important;
    font-weight: 900 !important;
    color: var(--gray-dark);
    grid-row: 1;
    grid-column: 1;
    align-self: baseline;
  }

  .project-year {
    grid-row: 1;
    grid-column: 3;
    align-self: baseline;
    justify-self: end;
    color: var(--gray);
  }

  .project-description {
    font-size: 1.2rem;
    grid-row: 3;
    grid-column: 1;
    margin: 6rem 0 2rem 0;
  }

  .project-tags {
    grid-row: 3;
    grid-column: 3;
    justify-self: end;
    margin: 6rem 0 2rem 0;
  }

  .title-tags {
    font-size: 0.96875rem;
    font-weight: bolder;
    margin-bottom: 0.25rem;
    color: var(--gray);
  }

  .box-container {
    margin-right: 0.25rem;
  }

  button {
    border-radius: 15px !important;
    box-shadow: inset 0px 0 0 0 #0f8bff8d;
    -webkit-transition: ease-out 0.2s;
    -moz-transition: ease-out 0.2s;
    transition: ease-out 0.2s;
    padding: 0.1875rem 2rem 0.1875rem 1.5rem;
    gap: 0.5rem;
    background-color: unset !important;
    font-family: var(--font-primary);
    font-size: 1.2rem !important;
    justify-content: flex-start;
  }


  .button-wrap i {
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .button-wrap:hover i {
    transform: translateX(-5px);
  }

  .bi::before,
  [class*=" bi-"]::before,
  [class^=bi-]::before {
    font-weight: 600 !important;
  }

  #close {
    margin-top: 2.3rem;
    color: var(--primary-color-dark) !important;
  }

  #close2 {
    position: absolute;
    top: 3.125rem;
    left: 1rem;
    color: var(--white);
    font-weight: lighter;
  }

  .container-other-projects {
    width: 100%;
    min-height: 100vh;
    background-color: var(--primary-color-dark);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;

    .other-projects {
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;

      p {
        font-family: var(--font-primary);
        font-weight: normal;
        font-size: 3.4375rem;
        margin: 2rem 0 0 0;
        color: var(--white);
        transition: transform 0.3s cubic-bezier(0.075, 0.82, 0.165, 1), color 0.3s;
        z-index: 5020;
        position: relative;
      }

      p:hover {
        transform: scale(1.05);
        color: var(--gray-light);
      }

      p.selected {
        color: #A3B0FF;
        transform: none;
      }

      p.selected:hover {
        color: #A3B0FF;

      }

      .project-item {
        position: relative;
      }

      .project-item p {
        position: relative;
      }

      /* Estilo para a imagem */
      .project-item img {
        will-change: opacity, transform;
        position: absolute;
        width: 100px;
        transition: opacity 0s ease, transform 0.2s ease;
        top: 0;
        left: 0;
        opacity: 0;
        pointer-events: none;
        user-select: none;
        z-index: 5015;
      }
    }
  }
}


.background-aboutme {
  background: var(--black) url(./Images/bg.png);
  color: var(--white);
  position: relative;
  margin: 0;
  padding: 0;

  .container-aboutme {
    display: flex;
    height: 100%;
    width: 100%;
    overflow: visible;
    /*Visible because of image on download cv hover*/
    position: relative;
    z-index: 1;

    .col-4 {
      width: 48%;
    }

    h2 {
      color: #3646AC !important;
    }

    .col-7 {
      width: 54%;
      padding: 9.17rem 0 6rem 0 !important;
      margin-left: -30px;
      z-index: 5000;
    }

    .fixe-column {
      padding-top: 4rem !important;
      height: 600px;
      z-index: 100;
    }

    h2 {
      line-height: 0.66;
      text-shadow: rgba(47, 48, 49, 0.2) 0px 8px 24px;
    }

    h4 {
      margin-top: 2.5rem;
    }

    p {
      margin: 0;
      font-size: var(--font-size-small);
    }

    .first {
      margin-top: 0px;
    }

    .box-container {
      border: 1px solid var(--gray-light);
      color: var(--gray-light);
    }

    .container-cv {
      display: flex;
      justify-content: flex-end;
      position: relative;
      z-index: 10;
      margin-bottom: 9rem !important;
    }

    .container-info-cv {
      position: relative;
      font-weight: bolder;
    }

    #cv {
      will-change: opacity, transform;
      position: absolute;
      width: 100px;
      transform: translateX(-50%) translateY(-50%);
      transition: opacity 0.2s ease, transform 0.2s ease;
      top: 0;
      left: 0;
      opacity: 0;
      pointer-events: none;
      z-index: 20;
      user-select: none;
    }

    a {
      position: relative;
      z-index: 30;
      color: #93A2D2;
    }

    i {
      font-size: 18px;
      margin-left: 0.625rem;
      color: #848685;
    }

    h5 {
      margin-bottom: 0 !important;
    }

    table {
      width: 100%;
      margin-bottom: 4rem;

      tr {
        font-size: 0.96875rem;
      }

      thead {
        border-bottom: 2px solid var(--gray-light);

        th {
          margin: 0;
          font-weight: 500;
          font-family: var(--font-secondary);
          font-size: 1.0625rem;
          line-height: 22px;
          padding-bottom: 0.6rem;
        }
      }

      tbody {
        .first-tr {
          padding-top: 1.3rem;
        }

        .first-tr-one {
          padding-top: 1.3rem;
        }

        .first-tr-second {
          padding-top: 1.3rem;
        }


        td {
          position: relative;
        }

        .title {
          font-weight: bolder;
          font-size: 0.89rem;
        }

        .level {
          display: none;
          position: absolute;
          right: 0;
          color: #848685;
        }

        td:hover .level {
          display: inline;
        }

        .dots-mobile-only {
          display: none;
        }
      }
    }

    .wrap-tables {
      width: 100%;
      display: flex;
      justify-content: space-between;
    }

    table#skills,
    table#software {
      width: 45% !important;
    }

  }
}

/*CONTACTS*/
.container-contacts {
  margin-top: 3rem;
  min-height: 90vh;

  h2 span {
    display: inline-block;
    position: relative;
    color: gray;
  }

  .title-div {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-bottom: 12.5rem;
  }

  table {
    width: 100%;
    margin: 1.5rem 0 3rem 0;

    tr {
      line-height: 3;
    }

    .td-one {
      text-align: start;
      width: 4%;
    }

    h6 {
      margin: 0;
    }

    i {
      font-size: 20px;
      color: var(--black);
    }


    a {
      color: var(--black);
      font-family: var(--font-terciary);
      font-size: 1.0625rem;
    }

    a:hover {
      color: var(--primary-color);
    }


    #mail,
    #mail * {
      user-select: text !important;
      caret-color: transparent;
    }

    #mail a:focus {
      outline: none;
      box-shadow: none;
    }

  }
}





/***********Button TOP***********/
.blok:nth-of-type(odd) {
  background-color: var(--pure-white);
}

.blok:nth-of-type(even) {
  background-color: var(--black);
}


@keyframes border-transform {

  0%,
  100% {
    border-radius: 63% 37% 54% 46% / 55% 48% 52% 45%;
  }

  14% {
    border-radius: 40% 60% 54% 46% / 49% 60% 40% 51%;
  }

  28% {
    border-radius: 54% 46% 38% 62% / 49% 70% 30% 51%;
  }

  42% {
    border-radius: 61% 39% 55% 45% / 61% 38% 62% 39%;
  }

  56% {
    border-radius: 61% 39% 67% 33% / 70% 50% 50% 30%;
  }

  70% {
    border-radius: 50% 50% 34% 66% / 56% 68% 32% 44%;
  }

  84% {
    border-radius: 46% 54% 50% 50% / 35% 61% 39% 65%;
  }
}

.progress-wrap {
  position: fixed;
  right: 30px;
  bottom: 30px;
  height: 46px;
  width: 46px;
  display: block;
  border-radius: 50px;
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  -webkit-transition: all 200ms linear;
  transition: all 200ms linear;
}

.progress-wrap.active-progress {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.progress-wrap::after {
  position: absolute;
  font-family: 'bootstrap-icons';
  content: '\F148';
  text-align: center;
  line-height: 46px;
  font-size: 24px;
  color: rgba(0, 0, 0, 0.3);
  left: 0;
  top: 0;
  height: 46px;
  width: 46px;
  display: block;
  z-index: 1;
  -webkit-transition: all 200ms linear;
  transition: all 200ms linear;
}

.progress-wrap:hover::after {
  opacity: 0;
}

.progress-wrap::before {
  position: absolute;
  font-family: 'bootstrap-icons';
  content: '\F148';
  text-align: center;
  line-height: 46px;
  font-size: 24px;
  opacity: 0;
  background: var(--black);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  left: 0;
  top: 0;
  height: 46px;
  width: 46px;
  display: block;
  z-index: 2;
  -webkit-transition: all 200ms linear;
  transition: all 200ms linear;
}

.progress-wrap:hover::before {
  opacity: 1;
}

.progress-wrap svg path {
  fill: none;
}

.progress-wrap svg.progress-circle path {
  stroke: rgba(0, 0, 0, 0.2);
  stroke-width: 4;
  box-sizing: border-box;
  -webkit-transition: all 200ms linear;
  transition: all 200ms linear;
}

/* Estilo adicional para o botão na secção preta */
.progress-wrap.dark-mode {
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.5);
  /* Muda a cor da borda */
}

.progress-wrap.dark-mode::after {
  color: rgba(255, 255, 255, 0.5);
  /* Muda a cor do ícone */
}

.progress-wrap.dark-mode::before {
  background: var(--pure-white);
  /* Muda o gradiente do texto */
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}







@media (max-width: 767.9px) and (pointer: coarse) {
  .cursor {
    display: none;
  }

  *:hover {
    cursor: none;
  }

}




/********************MEDIA QUERIES*******************/

@media (max-width: 767.9px) {

  *:hover {
    box-shadow: none;
  }

  .loader-text {
    left: 41%;
  }

  .loader-text-en {
    left: 30%;
  }

  nav {
    padding: 16px;
    margin-bottom: 1rem;

    .lang-color {
      color: var(--gray);
    }
  }

  h1 {
    font-size: 1.5rem !important;
    text-align: center;
    line-height: 40px !important;
  }

  h2 {
    font-size: 4rem !important
  }

  h5 {
    font-size: 1rem !important;
    margin-bottom: 0.3rem !important;
  }

  hr {
    margin: 0.6rem 0 1rem 0 !important;
  }

  .container {
    padding: 0 15px !important;
  }

  .box-container {
    padding: 0.0525rem 0.7rem;
    font-size: 0.8125rem;
  }

  .container-home {
    padding: 0 !important;

    .col-5 {
      width: 100%;
      padding: 0;
      display: flex;
      flex-direction: column;
      align-items: center;
    }

    .col-7 {
      width: 100%;
      padding: 0 !important;
    }

    .container-text-animation {
      display: none;
    }

    .centering-text {
      display: flex !important;
      min-height: 33vh;
      align-items: flex-start;
      padding: 1.5rem 1.8rem;
    }

    .name-title {
      display: block;
      font-size: 3.9rem !important;
      text-align: center;
      padding-bottom: 0.8rem;
    }

    .floating-image {
      width: 65%;
      min-height: 46vh;
      border-radius: 5px !important;
      padding: 0 !important;
      margin: 0 !important;
      opacity: 0.95 !important;
      box-shadow: rgba(63, 63, 63, 0.2) 4px 0px 20px 13px;

      .cover-img {
        transform: scale(1.3);
        background-position: center;
      }
    }

    h1 {
      line-height: 30px !important;
      font-size: 1.2rem !important;
    }

    .buttons-container {
      display: none;
    }
  }

  .container-internship-tickers {
    height: 25vh;

    #internship2 {
      display: none;
    }

    #internship {
      font-size: 1rem !important;
      margin: 0rem 0rem 8rem -2vw;
      width: 103vw;
    }
  }


  .container-portfolio {
    height: 100vh;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;

    overflow: hidden;
    position: relative;


    h2 {
      padding: 3rem 0rem 2rem 0rem;
      margin: 0 !important;
      text-align: center;
    }

    .gallery {
      gap: 3rem;
      flex-direction: column;
    }

    .gallery-wrapper {
      padding: 0rem !important;
      display: flex;
    }

    .containers {
      display: flex;
      flex-direction: row;
      flex-wrap: wrap;
      align-content: flex-start;
      align-content: center;
    }

    .box-container {
      font-size: 0.75rem;
      padding: 0.0525rem 0.5rem;
      margin-bottom: 0.5rem;
    }

    .carousel-slide {
      width: 17rem;
      padding: 2rem 2rem;
      border-radius: 5px;
      box-shadow: rgba(63, 63, 63, 0.2) 0px 8px 24px;
      background-color: #e0e0dc;
      max-height: 425px;
      transition: transform 0.5s ease;
      transform-origin: center center;
      transition: transform 0.5s ease;
    }

    .carousel-slide:nth-of-type(odd) {
      transform: rotate(-2deg);
    }

    .carousel-slide:nth-of-type(even) {
      transform: rotate(2deg);
    }

    .carousel-slide img {
      width: 13rem;
      height: 7rem;
      margin: 0.3rem 0rem 0.8rem 0rem;
      border-radius: 5px;
      filter: saturate(1);
    }

    .project-count-div {
      display: inline-block !important;
      font-family: var(--font-secondary);
      font-size: 0.6rem;
      margin-bottom: 2rem;
      color: #975020;
      width: 100%;
    }

    .project-divisor {
      margin: -10px 0px;
    }

    .carousel-slide:first-of-type .description {
      -webkit-line-clamp: 5;
      line-clamp: 5;
    }

    .description {
      line-height: var(--bs-body-line-height);
      font-size: 0.86rem;
      -webkit-line-clamp: 6;
      line-clamp: 6;
    }
  }


  .modal {
    .modal-infos {
      padding: 1.25rem 0.5rem 0 0.5rem
    }

    .col-12 {
      grid-template-columns: 1fr;
      grid-template-rows: auto;
      padding: 3rem 1.2rem 0rem 1.2rem;
    }

    .project-title {
      font-size: 2.1rem !important;
      grid-column: 1;
      grid-row: auto;
      align-self: end;
      color: #323232;
    }

    .project-year {
      grid-column: 1;
      grid-row: auto;
      justify-self: start;
    }

    .project-description {
      font-size: 1.125rem;
      grid-column: 1;
      grid-row: auto;
      margin: 45vh 0 0rem 0;
    }

    .wrap-tags {
      display: flex;
    }

    .project-tags {
      grid-column: 1;
      grid-row: auto;
      justify-self: start;
      margin: 3rem 0 2rem 0;
    }

    .title-tags {
      font-size: 0.9375rem;
      margin-right: 1rem;
    }

    button {
      padding: 3px 0.5rem 3px 0px !important;
      font-size: 1rem !important;
    }

    #close {
      margin: 1rem 0 0 0.5rem;
    }

    #close2 {
      top: 2.125rem;
    }

    .box-container {
      font-size: 0.8125rem;
      margin-right: 0.1rem;
    }


    .container-other-projects {
      .other-projects {
        p {
          font-size: 2.1875rem;
          margin: 1rem 0 0 0;
        }
      }
    }
  }


  .background-aboutme {
    .container-aboutme {

      h4 {
        padding: 0;
      }

      .col-4 {
        width: 100%;
      }

      .fixe-column {
        height: fit-content;
        margin-bottom: 4rem;
      }

      .box-container {
        display: inline-block;
      }

      .col-7 {
        width: 100%;
        margin-left: 0;
        padding-top: 1rem !important;
        padding-bottom: 2rem !important;
        padding-left: calc(var(--bs-gutter-x) * .5) !important;
        padding-right: calc(var(--bs-gutter-x) * .5) !important;
      }

      table {

        thead {
          th {
            font-size: 0.9375rem;
          }
        }

        tbody {
          tr {
            display: block;
          }

          td {
            font-size: 0.8125rem !important;
            line-height: 1.3;
            display: inline;
          }

          .text-end {
            color: #848685;
            font-family: var(--font-secondary);
            font-size: 0.7rem !important;
            display: inline;
            padding-left: 5px;
            text-align: left !important;
          }

          .first-tr {
            display: block;
          }

          .first-tr-two-columns {
            padding-top: 1.3rem;
            display: block;
          }

          .level {
            color: #848685;
            font-family: var(--font-secondary);
            font-size: 0.7rem !important;
            display: inline;
            padding-left: 5px;
            text-align: left !important;
            position: unset;
          }

          .dots-mobile-only {
            display: inline;
          }


        }

      }

      .wrap-tables {
        flex-direction: column;
      }

      table#skills,
      table#software {
        width: 100% !important;
      }

    }
  }

  .container-contacts {
    min-height: 100vh;

    .title-div {
      flex-wrap: wrap;
      align-content: center;
    }

    h4 {
      padding-right: 1rem;
    }

    h6 {
      padding-right: 0;
      font-size: 1rem !important;
    }

    table {
      margin: 1.5rem 0 1.5rem 0;

      h6,
      a {
        font-size: 0.875rem !important;
      }

      .td-one {
        padding-right: 1rem;
      }
    }
  }
}




@media (min-width: 768px) and (max-width: 991.9px) {

  nav {
    padding: 2.5vh 5vh 1rem 0vh;
  }

  h1 {
    font-size: 1.5rem !important;
  }

  h2 {
    font-size: 9.5rem !important
  }

  h5 {
    font-size: 1rem !important;
  }

  hr {
    margin: 0.6rem 0 1rem 0 !important;
  }

  .row>* {
    padding: 0 !important;
  }

  .container {
    padding: 0% 1.5% !important;
  }

  .box-container {
    padding: 0.0525rem 0.7rem;
  }

  .container-home {

    overflow: visible;

    .col-7 {
      width: 63%;
      padding: 0;
    }

    .container-text-animation {
      padding-bottom: 2rem;
      height: 92%;

      .space {
        height: 4.5rem !important;
      }

    }

    button {
      font-size: 0.875rem !important;
    }

    .bi::before,
    [class*=" bi-"]::before,
    [class^=bi-]::before {
      font-weight: normal !important;
    }

    .col-5 {
      width: 37%;
    }

    .centering-text {
      display: none !important;
    }

    .floating-image {
      width: 93%;
      min-height: 400px;
      padding: 0 !important;
      margin: 0 !important;

      .cover-img {
        transform: scale(1.2);
        background-position: bottom left;
      }
    }
  }

  #internship,
  #internship2 {
    font-size: 1rem !important;
  }

  .container-portfolio {
    h2 {
      margin: 0 0 2rem 4.5rem !important;
    }

    .gallery {
      gap: 16px;
    }

    .carousel-slide img {
      width: 26.5rem;
      height: 14rem;
    }

    .description {
      line-height: var(--bs-body-line-height);
      font-size: 0.96875rem;
    }
  }


  .modal {
    .col-12 {
      grid-template-columns: 61% 5% auto;
      padding: 3rem 0rem 0rem 1.5rem !important;
    }

    button {
      font-size: 1rem !important;
      padding: 0.1875rem 2rem 0.1875rem 0.9rem;
    }

    #close {
      margin-top: 1.125rem;
    }

    #close2 {
      top: 2.125rem;
    }

    .project-title {
      font-size: 2.625rem !important;
    }

    .project-description {
      font-size: 1.125rem;
    }

    .box-container {
      font-size: 0.875rem;
      margin-right: 0.2rem;
    }

    .container-other-projects {
      .other-projects {
        p {
          margin: 0;
          font-size: 2.9375rem;
        }
      }
    }
  }

  .background-aboutme {
    .container-aboutme {

      h4 {
        padding: 0;
      }

      .col-4 {
        width: 100%;
      }

      .fixe-column {
        height: fit-content;
      }

      .boxes-aboutme {
        display: flex;
        justify-content: flex-end;
        margin: -180px 50px 100px 0;
      }

      .col-7 {
        width: 100%;
        margin-left: 0;
      }
    }
  }

  .container-contacts {
    h6 {
      padding-right: 0;
    }

    table {
      margin: 1.5rem 0 1.5rem 0;
    }
  }

}


@media (min-width: 992px) and (max-width: 1399px) {

  nav {
    padding: 3vh 5vh;
  }

  h1 {
    font-size: 1.831rem !important;
  }

  h2 {
    font-size: 9.5rem !important
  }

  h5 {
    font-size: 1rem !important;
  }

  hr {
    margin: 0.6rem 0 1rem 0 !important;
  }

  .box-container {
    padding: 0.0525rem 0.7rem;
  }

  .container-home {
    button {
      font-size: 1rem !important
    }

    .col-7 {
      padding: 0;
    }

    .cover-img {
      background-position: bottom left;
    }
  }

  .container-portfolio {

    h2 {
      margin-bottom: 2rem !important;
    }

    .carousel-slide img {
      width: 26.5rem;
      height: 14rem;
    }

    .description {
      line-height: var(--bs-body-line-height);
      font-size: 0.96875rem;
    }
  }

  .modal {

    #close {
      margin-top: 1.125rem;
    }

    .col-12 {
      padding: 3rem 2.2rem 0rem 2.2rem;
      grid-template-columns: 51% auto minmax(auto, 1fr);
    }

    button {
      font-size: 1rem !important;
    }

    .project-title {
      font-size: 2.5rem;
    }

  }

  .background-aboutme {
    .container-aboutme {
      padding-bottom: 0rem !important;

      .col-7 {
        padding-bottom: 0 !important;
      }

      .container-cv {
        margin-bottom: 5rem !important;
      }
    }
  }

  .container-contacts {
    h6 {
      padding-right: 0;
    }

    table {
      margin: 1.5rem 0 1.5rem 0;
    }
  }
}


@media (min-width: 2500px) {

  .container-home .floating-image .cover-img {
    transform: scale(1.1);
  }

  .container-internship-tickers {
    height: 30vh;
  }

  .container-portfolio {
    max-width: 1320px !important;
    width: 1320px !important;
    margin-left: auto;
    margin-right: auto;

    h2 {
      margin: 11rem 0 0 9.375rem !important
    }

    h5 {
      font-size: 1.3rem !important;
    }

    .gallery-wrapper {
      padding: 8.875rem 0rem 1.875rem 14.8rem !important;
    }

    .carousel-slide {
      max-width: 30.75rem;
    }

    .carousel-slide img {
      margin: 1.5rem 0;
      width: 30.75rem;
      height: 17rem;
    }

    .carousel-slide img:hover {
      transform: scale(1.03);
    }

    .carousel-slide {
      span {
        font-size: 1.1rem;
      }
    }
  }

  .modal {
    .modal-content {
      width: 100%;
    }

    .modal-infos {
      width: 100%;
      display: flex;
      justify-content: center;
      padding: 1.25rem 1.25rem 1.25rem 1.25rem;
    }

    .col-12 {
      padding: 6rem 0rem 1rem 1rem;
      grid-template-columns: 53% auto minmax(auto, 1fr);
    }

    .project-title {
      font-size: 3.5rem !important;
    }

    .project-year {
      font-size: 1.2rem;
    }

    .project-description {
      font-size: 1.5rem;
      margin: 8rem 0 2rem 0;
    }

    .project-tags {
      margin: 8rem 0 2rem 0;
    }

    .title-tags {
      font-size: 1.2rem;
    }

    .box-container {
      font-size: 1.1rem;
    }

    button {
      font-size: 1.5rem !important;
    }

    #close {
      display: none;
    }

    #close2 {
      top: 5rem;
      left: 5rem;
    }

    .wrap-infos-project {
      max-width: 1320px;
    }

    .container-other-projects .other-projects p {
      font-size: 4.4375rem;
    }

  }

  .container-aboutme {
    margin-top: 0rem !important;

    .h2-pt {
      letter-spacing: -7px;
    }

    .h2-en {
      letter-spacing: -12px;
    }

    h4 {
      margin-bottom: 1rem
    }
  }

  .container-contacts .title-div {
    margin-bottom: 22.5rem;
  }

}