@import url(https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600&display=swap);

:root {
  --maxContainer: 1140px;
  --container: 90%;
  --header: #0d0d14;
  --background1: #1a2029;
  --background2: #131820;
  --background3: #11161d;
  --background4: #5779a8;
  --primary: #3BADCB;
  --secondary: #3BADCB25;
  --tertiary: #0e343d;
  --emphasis: #ffffff;
  --default: #dddddd;
  --sub: #aaaaaa;
  --dark: #00000030;
  --svgColor: invert(71%) sepia(1%) saturate(167%) hue-rotate(129deg) brightness(96%) contrast(90%);
  --svgColorSec: brightness(0) saturate(100%) invert(20%) sepia(21%) saturate(1911%) hue-rotate(146deg) brightness(90%) contrast(84%);
}

.light-mode:root {
  --header: #f2f6ff;
  --background1: #eceff5;
  --background2: #e2e6ec;
  --background3: #d2dae7;
  --background4: #b6c6e3;
  --primary: #0d6d85;
  --secondary: #0d6d8525;
  --tertiary: #154652;
  --emphasis: #000000;
  --default: #000001;
  --sub: #000001;
  --dark: #00000030;
  --svgColor: brightness(0);
  --svgColorSec: brightness(0);
}

::-webkit-scrollbar {
  width: 3px;
  height: 3px
}

::-webkit-scrollbar-track {
  background-color: var(--background2)
}

::-webkit-scrollbar-thumb {
  background: var(--tertiary)
}

html {
  font-size: 14px;
  scroll-behavior: smooth
}

* {
  box-sizing: border-box;
  font-family: Montserrat, sans-serif
}

body {
  margin: 0;
  padding: 0;
}

section {
  overflow-x: hidden
}

li,
ul {
  list-style: none
}

a {
  text-decoration: none;
  color: var(--primary);
  transition: color .25s
}

a:hover {
  opacity: .75
}

h1 {
  text-transform: uppercase;
  font-size: 3rem;
  font-weight: 400;
  letter-spacing: .5rem;
  color: var(--emphasis);
  margin-bottom: 0
}

input,
textarea {
  outline: 0;
  background: 0 0;
  border: none;
  padding: .5rem
}

.loadingScreen {
  z-index: 1500;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  position: fixed;
  width: 100%;
  height: 100%;
  background-color: var(--background1);
  transition: all .5s;
}

.loadingScreen p {
  font-size: 3rem;
  color: var(--default)
}

.loadingIcon {
  width: 50px;
  height: 50px;
  border-radius: 999px;
  border: 3px solid var(--primary);
  border-bottom: 3px solid var(--secondary);
  animation: loading 1s infinite linear
}

@keyframes loading {
  0% {
    transform: rotate(360deg)
  }

  100% {
    transform: rotate(0)
  }
}

.loadingScreen.loaded {
  transform: translateY(-100%)
}

[data-animation] {
  opacity: 0;
  transition: 1s
}

[data-animation=left] {
  transform: translate3d(-50px, 0, 0)
}

[data-animation=right] {
  transform: translate3d(50px, 0, 0)
}

[data-animation=bottom] {
  transform: translate3d(0, 50px, 0)
}

[data-animation=arrow] {
  opacity: 1
}

[data-animation].animationDone {
  opacity: 1;
  transform: translate3d(0, 0, 0)
}

[data-animation=arrow].animationDone {
  opacity: 0
}

.portfolio-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  background-color: #000000dd;
  height: 100%;
  width: 100%;
  z-index: 1000;
  overflow-x: auto;
}

.portfolio-modal span {
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  top: 10px;
  right: 10px;
  font-size: 4rem;
  font-weight: 300;
  width: 40px;
  height: 40px;
  color: var(--emphasis);
  cursor: pointer;
  z-index: 1000
}

.portfolio-modal span:hover {
  border-radius: 5px;
  background-color: #aaaaaa25;
  border: 1px solid #aaa
}

.portfolio-modal img {
  position: absolute;
  margin: 50px 0;
  left: 50%;
  transform: translate(-50%, 0);
  border: 1px solid var(--secondary);
  border-radius: 5px;
  max-width: 90%;
}

.btn {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: .75rem;
  color: var(--default);
  cursor: pointer;
  border: 1px solid #aaaaaa99;
  background-color: transparent;
  border-radius: 999px;
  backdrop-filter: blur(1px);
  text-transform: uppercase
}

html.light-mode .btn img {
  filter: brightness(0);
}

form .btn:hover {
  opacity: .75
}

.theme-switcher {
  display: flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid #aaaaaa99;
  background-color: var(--dark);
  width: 54px;
  padding: 3px 5px;
  backdrop-filter: blur(1px);
  cursor: pointer;
}

.theme-switcher::before {
  content: "";
  display: flex;
  background-color: var(--primary);
  background-image: url(../img/icons/dark.svg);
  background-size: 80%;
  background-repeat: no-repeat;
  background-position: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  margin-right: 3px;
  transition: transform .25s;
}

.theme-switcher.light-mode::before {
  background-image: url(../img/icons/light.svg);
  transform: translateX(100%) rotate(90deg);
}

.hello {
  background-image: url(../img/wallpapers/circles.png);
  background-color: var(--background1);
  background-position: -300px;
  background-size: cover
}

header {
  position: fixed;
  width: 100%;
  transition: all .25s;
  z-index: 999
}

.fix {
  background-color: var(--header);
  box-shadow: 5px 5px 5px var(--dark)
}

.header {
  max-width: var(--maxContainer);
  width: var(--container);
  margin: auto;
  color: var(--default);
  height: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center
}

.logo {
  font-size: 2rem;
  color: var(--default)
}

.logo span {
  color: var(--emphasis);
  font-weight: 700
}

.header .logo:hover {
  animation: animeLogo .25s 2
}

@keyframes animeLogo {
  0% {
    transform: rotate(1deg)
  }

  50% {
    transform: rotate(-1deg)
  }

  100% {
    transform: rotate(0)
  }
}

.header-menu ul {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 0;
}

.header-menu li a {
  text-transform: uppercase;
  font-size: .8rem;
  margin: 0 15px;
  color: var(--default);
  text-shadow: 5px 0 10px #00000050;
}

.header-menu li a.active {
  color: var(--primary)
}



.header-menu img {
  width: 1rem;
  margin-left: 6px
}

.header-right {
  display: flex;
  justify-content: center;
  align-items: center
}

.percent {
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #3badcb, #954aea 25%, #4b8aff 50%, #01feff 100%);
  background-size: 300% 100%;
  animation: bgMove 5s linear infinite;
  transition: .3s ease-out
}

.intro {
  padding-top: 100px;
  max-width: var(--maxContainer);
  width: var(--container);
  margin: auto;
  height: calc(95vh - 45px);
  min-height: 550px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-shadow: 5px 0 10px #00000050;
}

.intro-left {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-direction: column;
  width: 500px;
  margin-right: 30px
}

.intro-left h2 {
  color: var(--default);
  font-size: 1rem;
  margin-bottom: -30px;
  font-weight: 400
}

.intro-left h2 span {
  color: var(--primary);
  margin: 0 5px;
  font-weight: 600
}

.intro-left h2 img {
  width: 34px;
  margin-bottom: -5px
}

.intro-left p {
  color: var(--sub);
  font-size: 1.2rem;
  font-weight: 300
}

.intro-left a {
  margin: 40px 0
}

.intro-right {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 490px
}

.intro-right img {
  width: 80%;
  height: auto;
  opacity: .8;
  transition: all .25s
}

.intro-right img:hover {
  opacity: .85;
  transform: scale(1.01)
}

.arrowDown {
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 100%;
  bottom: 15px;
  animation: arrowDown 1.5s infinite;
  flex-direction: column
}

.arrowDown span {
  color: var(--sub);
  font-size: .6rem;
  font-weight: 700;
  margin-bottom: 3px
}

.arrowDown img {
  width: 2rem
}

@keyframes arrowDown {

  0%,
  100% {
    transform: translateY(3px)
  }

  50% {
    transform: translateY(-7px)
  }
}

.about {
  background-color: var(--background2)
}

.section-title {
  font-size: 2.5rem;
  font-weight: bold;
  letter-spacing: .3rem;
  color: var(--emphasis);
  padding-top: 4rem;
  text-align: center
}

.section-body p {
  display: block;
  margin-top: 0;
  color: var(--default);
}

.section-body {
  max-width: var(--maxContainer);
  width: var(--container);
  margin: auto;
  display: flex;
  justify-content: center;
  align-items: stretch;
  padding: 60px 0
}

.section-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.about-box {
  width: 340px;
  height: 120px;
  background-color: var(--background1);
  margin: 5px 0;
  padding: 30px;
  cursor: pointer;
  transition: all .25s;
  border-radius: 5px;
  border: 1px solid #00000099;
}

.about-box.selected {
  box-shadow: 1px 5px 5px 1px rgba(0, 0, 0, .3);
  transform: scale(1.03)
}

.about-box.selected .about-box-title {
  color: var(--primary);
  font-weight: 700
}

.about-box.selected .about-box-title h3 {
  color: var(--primary)
}

.about-box.selected svg {
  fill: var(--primary)
}

.about-box-title h3 {
  display: inline;
  color: var(--default);
  font-size: 1.5rem;
  margin-bottom: 10px;
  transition: all .25s;
  margin: 0
}

.about-box svg {
  float: right;
  fill: var(--sub)
}

.about-box-desc {
  color: var(--sub)
}

.section-right {
  flex: 1;
  display: flex;
  justify-content: center;
  flex-direction: column;
  margin-left: 30px;
  text-shadow: 5px 0 10px #00000050;
}

.animation {
  opacity: 0
}

.about-title {
  color: var(--default);
  font-size: 2rem;
  margin-bottom: 2rem
}

.about-type {
  color: var(--primary);
  font-weight: 700
}

.about-desc {
  color: var(--sub);
  display: flex;
  flex-wrap: wrap;
  max-width: 400px;
  text-align: justify;
  
}

.about span.blink {
  animation: blink 2s infinite;
  color: var(--primary)
}

@keyframes blink {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: 0
  }
}

.about-desc .infos {
  display: none
}

.about-desc .skills {
  display: none
}

.about-desc .skills ul {
  padding: 0;
  width: 100%
}

.about-desc .skills li {
  margin-bottom: 2rem
}

.about-desc .skills li:last-child {
  margin-bottom: 0
}

.about-desc .skills li h2 {
  padding: 0;
  margin: .5rem 0;
  text-transform: uppercase;
  font-size: 1.2rem
}

.about-desc .skills li .progressBar {
  width: 100%;
  height: 3px;
  background-color: var(--secondary)
}

.about-desc .skills li .progressBar .progress {
  width: 10%;
  height: 3px;
  background: linear-gradient(90deg, #3badcb, #4a6fea 25%, #4b8aff 50%, #01feff 100%);
  background-size: 300% 100%;
  display: flex;
  justify-content: end;
  transition: all 1s linear;
  animation: bgMove 5s linear infinite
}

@keyframes bgMove {
  0% {
    background-position: 100%
  }

  50% {
    background-position: 0
  }

  100% {
    background-position: 100%
  }
}

.about-desc .skills li .progressBar .progress span {
  display: block;
  position: relative;
  background-color: var(--secondary);
  top: -30px;
  right: -30px;
  padding: 0 6px;
  height: 1.4rem;
  border-radius: 8px;
  color: var(--default);
  font-weight: 700;
  font-size: .75rem;
  padding-top: 3px
}

.about-desc .skills li .progressBar .progress span::after {
  content: '';
  position: absolute;
  bottom: -7px;
  left: 15px;
  width: 0;
  height: 0;
  border-left: .5rem solid transparent;
  border-right: .5rem solid transparent;
  border-top: .5rem solid var(--secondary)
}

.about-desc-item {
  margin: 10px 0;
  width: 180px
}

.about-desc-item p {
  font-weight: 700;
  margin-bottom: .2rem;
  display: flex;
  align-items: center
}

.about-desc-item p img {
  width: 1.2rem;
  margin-right: .2rem;
  display: inline
}

.about-desc-item span {
  margin: 0
}

.stacks {
  background-color: var(--background3);
  border-top: 1px solid var(--background1)
}

.stacks .section-body {
  color: var(--primary);
  padding: 0;
  padding-top: 30px;
  flex-direction: column;
  max-width: var(--maxContainer);
  width: var(--container);
}

.stack-display {
  width: 100%;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow-x: hidden;
  transition: all 1s
}

.stack {
  text-align: center;
  height: 4rem;
  width: 4.5rem;
  margin: 0 20px;
  display: flex;
  justify-content: center;
  align-items: center
}

.stack img {
  height: 80%;
  width: 80%;
  filter: var(--svgColorSec)
}

.stack img:hover {
  transform: scale(1.1)
}

.all-stacks-display {
  display: grid;
  grid-template-columns: repeat(6, auto);
  row-gap: 10px;
  justify-items: center;
  justify-content: space-between;
  transition: .5s ease-out;
  height: 0;
  transform: scaleY(0);
  transform-origin: top;
}

.all-stacks-display p {
  grid-column: span 6;
  font-size: 1.2rem;
  color: var(--sub);
}

.all-stacks-display .stack {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  font-size: .5rem;
  text-transform: uppercase;
  color: var(--sub);
  font-weight: bold;
}

.all-stacks-display.active {
  border-top: 1px solid var(--secondary);
  padding-top: 20px;
  margin-top: 50px;
  margin-bottom: 20px;
  height: auto;
  transform: scaleY(1);
}

.stacks-chevron {
  margin: 0 auto 10px auto;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.stacks-chevron span {
  font-size: .6rem;
  color: var(--sub);
  text-transform: uppercase;
}

.stacks-chevron img {
  filter: var(--svgColor);
  margin-top: -5px;
  transition: all .5s;
}

.stacks-chevron.active img {
  transform: rotate(180deg);
}

.stacks-chevron.active span {
  display: none;
}

.portfolio {
  background-color: var(--background4);
  background-image: url(../img/wallpapers/graphy.png);
}

.portfolio .section-body {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column
}

.portfolio .section-title {
  color: var(--emphasis);
  font-weight: 500;
  margin: 0
}

.portfolio-grid {
  width: 100%;
  margin: 50px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap-reverse;
  flex-direction: row-reverse
}

.grid-item {
  height: 500px;
  min-width: 300px;
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 25px 10px;
  flex-direction: column;
  background-color: var(--background2);
  padding: 1px;
  padding-top: 0;
  border-radius: 5px;
  box-shadow: 2px 5px 10px 2px rgba(0, 0, 0, .5);
  text-shadow: 5px 0 10px #00000050;
}

.grid-item img {
  margin-top: -5px;
  width: 100%;
  height: 100%;
  max-height: 300px;
  object-fit: cover;
  object-position: 50% 0%;
  border-radius: 5px 5px 0 0;
  cursor: pointer;
}

.grid-item img:hover {
  opacity: .9
}

.grid-item-container {
  width: 80%;
  padding: 15px 0
}

.grid-item-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  border-bottom: 1px solid #aaaaaa50;
  padding-bottom: 5px
}

.grid-item-title p {
  color: var(--default);
  font-size: 1.5rem;
  flex: 1;
  margin: 0
}

.grid-item-stacks {
  display: flex;
  justify-content: center;
  /* align-items: s; */
  flex-wrap: wrap;
}

.grid-item-stack {
  width: 1.5rem;
  margin: 0 .4rem;
}

.grid-item-stack img {
  width: 100%;
  filter: var(--svgColor);
}

.grid-item-stack img:hover {
  transform: scale(1.1)
}

.grid-item-desc {
  color: var(--sub);
  margin: 20px 0;
  width: 100%;
  height: 60px;
}

.grid-item-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%
}

.grid-item-buttons a {
  color: var(--default);
  border: 1px solid var(--default);
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 999px;
  padding: 5px;
  flex: 1;
  margin: 0 10px
}

.grid-item-buttons img {
  width: 20px;
  margin-right: 5px;
  filter: var(--svgColor);
}

.divider {
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, #3badcb, #954aea 25%, #4b8aff 50%, #01feff 100%);
  background-size: 300% 100%;
  animation: bgMove 5s linear infinite
}

footer {
  background-color: #06060a
}

.footer {
  background-color: var(--header)
}

.footer .section-body {
  align-items: center;
  flex-direction: column
}

.network {
  margin: 10px;
  display: flex;
  justify-content: center;
  align-items: center
}

.network img {
  width: 24px;
  margin: 0 3px
}

.footer-email {
  margin-top: 40px;
  width: 80%
}

form {
  width: 100%
}

.form-line {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px 0
}

.form-line button {
  width: 60%;
  padding: 10px
}

.form-line input,
.form-line textarea {
  flex: 1;
  border-bottom: 1px solid var(--secondary);
  margin: 0 10px;
  color: var(--default);
  transition: all .25s
}

.form-line input:focus,
.form-line textarea:focus {
  border-bottom: 1px solid var(--primary)
}

.footer-infos {
  padding-top: 20px;
  border-top: 1px solid var(--secondary);
  width: 100%;
  margin-top: 30px;
  color: var(--sub);
  display: flex;
  justify-content: space-between;
  align-items: center
}

.footer-left,
.footer-right {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  margin: 0 10px;
  text-shadow: 5px 0 10px #00000050;
}

.footer-right {
  align-items: center
}

.footer-contact {
  display: flex;
  align-items: center;
  margin: 20px 0;
  font-size: 1.2rem
}

.footer-contact img {
  margin: 0 20px;
  background-color: var(--secondary);
  border-radius: 999px;
  padding: 5px
}

.copyright {
  width: var(--container);
  max-width: var(--maxContainer);
  color: #aaa;
  padding: .5rem;
  margin: auto
}

.mobile-modal {
  display: none;
  position: fixed;
  height: 100vh;
  width: 100vw;
  background-color: #000000dd;
  z-index: 500
}

.header-mobile {
  display: none;
  transform: translate3d(100vw, 0, 0);
  margin: 83px 0;
  right: 0;
  min-width: 40vw;
  height: calc(100vh - 83px);
  position: fixed;
  background-color: var(--header);
  z-index: 999;
  transition: all .3s
}

.header-mobile.active {
  transform: translate3d(0, 0, 0)
}

.header-mobile p {
  color: var(--default);
  font-size: 3rem;
  font-weight: 700;
  margin: 30px auto
}

.header-mobile ul {
  padding: 50px
}

.header-mobile ul li {
  margin: 20px 0
}

.header-mobile ul li a {
  color: var(--sub);
  font-size: 2rem;
  margin: 20px
}

.header-mobile ul li a.active {
  color: var(--primary)
}

.header-mobile .btn {
  width: 60%;
  margin: auto
}

.menu-opener {
  display: none;
  cursor: pointer
}

.menu-opener--hamb,
.menu-opener--hamb::after,
.menu-opener--hamb::before {
  height: 4px;
  width: 32px;
  background-color: var(--primary);
  border-radius: 5px;
  transition: all .5s ease-in-out
}

.menu-opener--hamb::after,
.menu-opener--hamb::before {
  content: "";
  position: absolute
}

.menu-opener--hamb::before {
  transform: translateY(-10px)
}

.menu-opener--hamb::after {
  transform: translateY(10px)
}

.menu-opener.open .menu-opener--hamb {
  transform: translateX(-50px);
  background: 0 0
}

.menu-opener.open .menu-opener--hamb::before {
  transform: rotate(45deg) translate(35px, -35px)
}

.menu-opener.open .menu-opener--hamb::after {
  transform: rotate(-45deg) translate(35px, 35px)
}

@media (max-width:770px) {
  .portfolio-modal-container {
    width: 95%;
    max-height: 95%
  }

  .hello {
    background-position: center
  }

  .header-menu ul {
    display: none
  }

  .menu-opener {
    display: block
  }

  .header-right {
    display: none
  }

  .mobile-modal.active {
    display: block
  }

  .header-mobile {
    display: flex;
    flex-direction: column
  }

  .theme-switcher {
    margin: 0px auto;
  }

  .intro {
    flex-direction: column-reverse;
    height: 100%
  }

  .intro-right {
    margin-bottom: 30px;
    width: 90%
  }

  .intro-right img {
    width: 90%;
    height: auto
  }

  .intro-left {
    width: initial
  }

  .section-left {
    flex: none;
    align-items: flex-start;
    width: 100px
  }

  .section-right {
    flex: 1;
    margin-right: 20px
  }

  .about-box {
    width: 100px;
    height: 100%;
    padding: 30px;
    display: flex;
    justify-content: center;
    align-items: center
  }

  .about-box-title {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    flex-direction: row
  }

  .about-box svg {
    float: none
  }

  .about-box-title h3 {
    font-size: 1rem
  }

  .about-box-desc {
    display: none
  }

  .about-desc {
    max-width: 500px
  }

  .about-desc-item {
    width: 50%
  }

  .all-stacks-display {
    grid-template-columns: repeat(5, auto);
  }

  .all-stacks-display p {
    grid-column: span 5;
  }

  .footer-infos {
    flex-direction: column-reverse
  }
}

@media (max-width:500px) {
  html {
    font-size: 12px
  }

  .intro-left {
    margin: 15px
  }

  [data-stack="5"],
  [data-stack="6"] {
    display: none
  }

  .about-title {
    margin-bottom: 1rem
  }

  .about-desc-item {
    width: 100%;
    margin: 0
  }

  .about-desc .skills li .progressBar .progress span {
    position: inherit
  }

  .about-desc .skills li .progressBar .progress span::after {
    display: none
  }

  .all-stacks-display {
    grid-template-columns: repeat(3, auto);
  }

  .all-stacks-display p {
    grid-column: span 3;
  }


  .portfolio-modal img {
    max-width: 97%;
  }


  .form-line {
    flex-direction: column;
    margin: 0
  }

  .form-line .btn,
  .form-line input,
  .form-line textarea {
    margin: 10px 0;
    width: 100%
  }
}