#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--grey2);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 50;
  transition: opacity 1s ease, visibility 1s ease;
}

#loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid rgba(255, 255, 255, 0.1);
  border-top: 5px solid var(--green);
  border-radius: 50%;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

html {
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  text-size-adjust: none;
  -webkit-text-size-adjust: none;
}

* {
  cursor: none;
  -webkit-tap-highlight-color: transparent;
}

@font-face {
  font-family: "CQ_Mono";
  src: url("CQ_Mono.otf");
  font-display: swap;
}

@font-face {
  font-family: "Extenda";
  src: url("Extenda-30-Deca.otf");
  font-display: swap;
}

::-webkit-scrollbar {
  width: var(--s);
}

::-webkit-scrollbar-track {
  background: #242424;
}

::-webkit-scrollbar-thumb {
  background: var(--grey4);
  border-radius: var(--s);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--white);
}

::selection {
  background-color: var(--grey4);
  color: var(--white);
}

::-moz-selection {
  background-color: var(--grey4);
  color: var(--white);
}

:root {
  --grey1: #050505;
  --grey2: #161616;
  --grey3: #323232;
  --grey4: #555555;
  --white: #ffffff;
  --green: #aeff00;
  --s: 8px;
  --m: 16px;
  --l: 32px;
  --font-size-base: 1rem;
}

body {
  padding-top: 1px;
  border-top: 0px;
  margin: 0px;
  color: var(--white);
  text-transform: uppercase;
  font-family: "CQ_Mono", sans-serif;
  color: var(--white);
  font-size: var(--font-size-base);
  background-color: var(--grey2);
}

h1 {
  font-weight: normal;
  margin-top: 0;
  font-size: 1.75rem;
  text-transform: uppercase;
  color: var(--green);
}

a {
  color: var(--white);
  text-decoration: none;
}

p,
label {
  font-size: var(--font-size-base) !important;
}

a:focus,
a:active {
  outline: none;
  box-shadow: none;
}

button:not(.burger-toggle):not(.close-modal) {
  text-transform: uppercase;
  font-family: "CQ_Mono", sans-serif;
  padding: var(--m);
  border-radius: var(--s);
  border: 0;
  background-color: rgba(0, 0, 0, 0.3);
  color: var(--white);
  font-size: var(--font-size-base);
}

button:not(.burger-toggle):not(.close-modal):hover {
  background-color: rgba(255, 255, 255, 0.2);
}

button.active {
  background-color: var(--green) !important;
  color: var(--grey1) !important;
}

label {
  display: block;
  margin-bottom: var(--s);
}

input,
textarea {
  width: 100%;
  padding: var(--m);
  margin-bottom: 12px;
  border: 0px;
  border-radius: var(--s);
  font-family: "CQ_Mono", sans-serif;
  font-size: var(--font-size-base);
  box-sizing: border-box;
  background-color: rgba(0, 0, 0, 0.3);
  color: var(--white);
}

input:hover,
textarea:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

textarea {
  resize: none;
}

input:focus,
textarea:focus {
  outline: solid 2px;
  outline-color: var(--green);
  outline-offset: -2px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.menu {
  display: flex;
  position: fixed;
  padding: var(--m);
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: var(--m);
  backdrop-filter: blur(var(--s));
  -webkit-backdrop-filter: blur(var(--s));
  width: calc(100% - 128px);
  justify-content: space-between;
  align-items: flex-start;
  z-index: 3;
  transition: all 200ms ease-in-out;
  margin-top: 63px;
  max-width: 2432px;
  min-width: 673px;
}

.menu-container {
  position: relative;
  max-width: 2560px;
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 0 auto;
}

.sub-menu {
  display: flex;
  gap: var(--s);
}

.sub-menu:first-child {
  margin-right: var(--m);
}

.logo-text {
  line-height: 1.05;
  padding-left: 1px;
  padding-top: 9px;
}

.menu.scrolled {
  width: 680px;
}

.logo {
  width: 48px;
  height: 48px;
}

.hero-container {
  display: flex;
  width: 100%;
  margin: 0 auto;
  justify-content: center;
  background-color: var(--grey2);
  background-size: 256px 256px;
  background-repeat: repeat;
  background-position: 0 0;
  background-attachment: fixed;
  position: relative;
}

.hero {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  box-sizing: border-box;
  gap: var(--l);
  margin-left: var(--l);
  margin-right: var(--l);
  margin-bottom: var(--l);
  padding: clamp(var(--l), 5vw, 96px);
  border-radius: var(--m);
  width: 100%;
  max-width: calc(2560px - (2 * 32px));
  background-image: url("images/bg-cross.svg"), url("images/hero-bg2.webp");
  background-repeat: repeat, repeat;
  background-position: center center, center center;
  background-size: 64px, 100%;
  background-attachment: fixed, scroll;
  mix-blend-mode: screen;
}

.hero-message {
  padding-top: 142px;
  font-size: clamp(3rem, 8vw, 15rem);
  font-family: "Extenda";
  line-height: 0.8;
  letter-spacing: 1px;
  z-index: 99;
}

#hero-btn {
  background-color: rgb(0, 0, 0);
  backdrop-filter: blur(var(--s));
  -webkit-backdrop-filter: blur(var(--s));
  outline: solid 2px;
  outline-color: var(--green);
  outline-offset: -2px;
  color: var(--green);
}

.gallery-container {
  display: flex;
  width: 100%;
  margin: 0 auto;
  justify-content: center;
  background-color: var(--grey2);
  background-size: 256px 256px;
  background-repeat: repeat;
  background-position: 0 0;
  background-attachment: fixed;
}

.gallery {
  position: relative;
  box-sizing: border-box;
  padding: var(--l);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s);
  width: 100%;
  max-width: 2560px;
  margin-top: -48px;
  margin-bottom: -16px;
  justify-content: center;
  align-items: flex-start;
}

.column {
  flex: calc(25% - var(--m));
  box-sizing: border-box;
  margin-bottom: -8px;
}

.gallery-item {
  position: relative;
  width: 100%;
  border-radius: var(--m);
  overflow: hidden;
  margin-bottom: var(--s);
}

.noise {
  background: url(images/noise.gif) repeat;
  pointer-events: none;
  position: fixed;
  mix-blend-mode: screen;
  z-index: 49;
  width: 100%;
  height: 100%;
  opacity: 0.4;
}

.cursor {
  visibility: hidden;
  opacity: 0;
  position: fixed;
  width: var(--m);
  height: var(--m);
  background-color: var(--white);
  border-radius: 50%;
  pointer-events: none;
  z-index: 52;
  transition: opacity 0.2s ease, transform 0.2s ease, scale 0.2s ease;
  mix-blend-mode: difference;
}

.cursorGrow {
  scale: 2.5;
}

.cursor-svg {
  position: fixed;
  width: 74px;
  height: 74px;
  pointer-events: none;
  background: url("images/click-me.svg") no-repeat center center;
  background-size: contain;
  visibility: hidden;
  z-index: 51;
  animation: none;
  mix-blend-mode: difference;
  margin: -29px 0 0 -29px;
}

.cursor-svg.rotate {
  animation: spin 10s linear infinite;
  visibility: visible;
}

.note1 {
  pointer-events: none;
  position: absolute;
  z-index: 1;
  top: 44px;
  left: 49px;
}

.note2 {
  pointer-events: none;
  position: absolute;
  z-index: 1;
  top: 44px;
  right: 47px;
  text-align: right;
}

.bandeau {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 48px;
  overflow: hidden;
  background-color: var(--grey1);
  display: flex;
  align-items: center;
  z-index: 47;
}

.contenu {
  position: absolute;
  top: 0;
  height: 100%;
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.contenu span {
  padding: 0 8px;
  color: var(--white);
}

.gallery img {
  display: block;
  width: 100%;
  height: auto;
}

.middle {
  transition: 0.5s ease;
  opacity: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.brand {
  display: flex;
  position: absolute;
  bottom: var(--m);
  left: var(--m);
  right: var(--m);
  justify-content: space-between;
  opacity: 1;
  transition: 0.5s ease;
}

.brand-name {
  text-transform: uppercase;
  color: var(--white);
  border-radius: var(--s);
  background-color: rgba(0, 0, 0, 0.5);
  display: inline-block;
  padding: var(--s) 12px;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
}

.name-badge {
  text-transform: uppercase;
  color: var(--white);
  border-radius: var(--s);
  background-color: rgba(255, 255, 255, 0.2);
  display: inline-block;
  padding: var(--s) 12px;
}

.gallery-item .image {
  transition: transform 0.5s ease, filter 0.5s ease;
  transform: scale(1);
}

.gallery-item:hover .image {
  filter: blur(4px) brightness(0.5) grayscale(100%);
  transform: scale(1.1);
}

.gallery-item:hover .middle {
  opacity: 1;
}

.name-project {
  color: var(--grey1);
  border-radius: var(--s);
  background-color: var(--green);
  display: inline-block;
  padding: var(--m);
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  justify-content: center;
  align-items: center;
  z-index: 48;
  backdrop-filter: blur(var(--s));
  -webkit-backdrop-filter: blur(var(--s));
}

.modal-content {
  position: relative;
  max-width: 100%;
  max-height: 100%;
  margin: var(--l);
  border-radius: var(--s);
  overflow: hidden;
  justify-content: center;
  align-items: center;
  background: transparent;
}

.modal img {
  max-height: 90vh;
  max-width: 100%;
  display: block;
  object-fit: scale-down;
}

.close-modal {
  position: fixed;
  top: var(--l);
  right: var(--l);
  background: var(--grey3);
  color: var(--white);
  border: none;
  border-radius: var(--s);
  font-size: 48px;
  line-height: 1;
  font-family: "CQ_Mono", sans-serif;
  height: 48px;
  width: 48px;
  padding-left: 4px;
  padding-right: 0px;
  padding-top: 1px;
}

.close-modal:hover {
  background: var(--grey4);
  background-color: var(--green);
  color: var(--grey1);
}

.contact-container {
  width: 100%;
  background-color: var(--grey2);
  display: flex;
  justify-content: center;
  box-sizing: border-box;
  background-size: 256px 256px;
  background-repeat: repeat;
  background-position: 0 0;
  background-attachment: fixed;
}

.contact {
  background-color: var(--grey3);
  border-radius: var(--m) var(--m) 0 0;
  width: calc(100% - 64px);
  max-width: 2496px;
  display: flex;
  flex-wrap: wrap;
  gap: var(--l);
  padding: var(--l);
  box-sizing: border-box;
}

.contact-column {
  flex: calc(33.33% - var(--l));
  box-sizing: border-box;
  margin-bottom: -var(--s);
  min-width: 540px;
  height: auto;
  margin-bottom: 0px;
}

.skill {
  text-transform: uppercase;
  border-radius: var(--s);
  background-color: rgba(0, 0, 0, 0.3);
  display: inline-block;
  margin-right: 4px;
  margin-bottom: 4px;
  padding: var(--m);
}

.skill2 {
  text-transform: uppercase;
  border-radius: var(--s);
  background-color: rgba(0, 0, 0, 0.3);
  display: inline-block;
  margin-right: 4px;
  margin-bottom: 4px;
  padding: var(--m);
  color: var(--green);
  outline: solid 2px;
  outline-color: var(--green);
  outline-offset: -2px;
}

.name {
  text-transform: uppercase;
  color: var(--grey1);
  border-radius: var(--s);
  background-color: var(--green);
  display: inline-block;
  margin-right: 4px;
  margin-bottom: 4px;
  padding: var(--m);
}

.separator {
  height: 4px;
  width: 100%;
  border-radius: var(--s);
  background-color: var(--grey4);
  margin-top: -11px;
}

.about {
  text-align: justify;
  text-transform: none;
  line-height: 1.4;
}

.footer-container {
  width: 100%;
  background-color: var(--grey1);
  display: flex;
  justify-content: center;
}

.footer {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 2560px;
  padding: var(--l) 0px;
  color: var(--white);
  z-index: 900;
}

.footer div {
  display: flex;
  align-items: center;
  gap: var(--s);
}

.legal-container {
  width: 100%;
  display: flex;
  justify-content: center;
  box-sizing: border-box;
  background-color: var(--grey2);
  background-size: 256px 256px;
  background-repeat: repeat;
  background-position: 0 0;
  background-attachment: fixed;
}

.legal {
  background-color: var(--grey3);
  border-radius: var(--m) var(--m) 0 0;
  width: calc(100% - 64px);
  max-width: 2496px;
  box-sizing: border-box;
  padding: var(--l);
  text-transform: none;
  margin: 0 var(--l) 0 var(--l);
  width: 100%;
  max-width: 2496px;
}

.gallery-item:hover .injected-svg .cls-2,
.gallery-item:hover .injected-svg .cls-1 {
  animation: move-out-in 0.3s ease-in-out;
}

.bg-container {
  pointer-events: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  height: 100%;
  width: calc(100% - 64px);
  max-width: calc(2560px - (2 * 32px));
  opacity: 0.2;
  z-index: 1;
  mix-blend-mode: screen;
  margin-top: -32px;
  border-radius: var(--m);
  overflow: hidden;
}

#green {
  background-color: #aeff00;
  z-index: 5;
  mix-blend-mode: color;
}

#gradient1 {
  background: linear-gradient(
    70deg,
    rgb(0, 0, 0) 0%,
    rgb(75, 75, 75) 50%,
    rgb(0, 0, 0) 100%
  );
  z-index: 3;
  animation: hero-scroll 8s ease-in-out infinite;
  background-size: 400% 200%;
}

#gradient2 {
  background: radial-gradient(
    circle,
    rgb(0, 0, 0) 0%,
    rgb(0, 0, 0) 16%,
    rgb(150, 150, 150) 18%,
    rgb(0, 0, 0) 40%,
    rgb(215, 215, 215) 50%,
    rgb(0, 0, 0) 100%
  );
  z-index: 4;
  animation: hero-scale 8s ease-in-out infinite;
  mix-blend-mode: color-dodge;
}

#green,
#gradient1,
#gradient2 {
  height: 100%;
  width: 100%;
  position: absolute;
  pointer-events: none;
}

@keyframes hero-scroll {
  0% {
    background-position: 0% 0%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 0%;
  }
}

@keyframes hero-scale {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.25);
  }
}

@keyframes move-out-in {
  0% {
    transform: translate(0, 0);
    opacity: 1;
  }
  15% {
    opacity: 0;
  }
  25% {
    transform: translate(100%, -100%);
    opacity: 0;
  }
  50% {
    transform: translate(100%, 100%);
    opacity: 0;
  }
  75% {
    transform: translate(-100%, 100%);
    opacity: 0;
  }
  85% {
    opacity: 0;
  }
  100% {
    transform: translate(0, 0);
    opacity: 1;
  }
}

@media screen and (min-width: 1081px) {
  .burger-menu {
    display: none;
  }
  .main-menu {
    display: flex;
  }
}

@media screen and (max-width: 1919px) {
  .column {
    flex: calc(50% - var(--s));
    max-width: 100%;
  }
  .contact-column {
    min-width: 496px !important;
  }
}

@media screen and (max-width: 1080px) {
  .column {
    flex: calc(100% - var(--s));
    max-width: 100%;
  }
  .cursor,
  .cursor-svg {
    display: none;
  }
  * {
    cursor: default;
  }
  .main-menu {
    display: none;
  }
  .burger-menu {
    display: flex;
  }
  #burger-button {
    background-color: rgba(0, 0, 0, 0.3);
    border: none;
    border-radius: var(--s);
    padding: 15px 10px 11px 10px;
    color: var(--white);
    cursor: pointer;
  }
  #burger-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
  }
  #burger-modal .burger-menu-items {
    display: flex;
    flex-direction: column;
    gap: var(--m);
  }
  #burger-modal {
    display: none;
    justify-content: center;
    align-items: center;
  }
  #burger-modal.active {
    display: flex;
  }
  .menu {
    min-width: 128px;
  }
  .menu.scrolled {
    width: calc(100% - 128px);
  }
  .contact-column {
    min-width: 320px !important;
  }
}

@media screen and (max-width: 480px) {
  .name,
  .skill,
  .skill2,
  .name-project {
    padding: var(--s) 12px;
  }
  .middle {
    display: none;
  }
  .menu {
    width: calc(100% - 96px);
    margin-top: 47px;
  }
  .menu.scrolled {
    width: calc(100% - 96px);
  }
  .hero {
    margin-left: var(--m);
    margin-right: var(--m);
    padding: var(--l);
  }
  .hero-message {
    padding-top: 126px;
  }
  .gallery {
    padding: var(--m);
    margin-top: -40px;
    margin-bottom: -8px;
  }
  .contact {
    gap: var(--m);
  }
  .note1 {
    left: 33px;
    top: 29px;
  }
  .note2 {
    right: 31px;
    top: 29px;
  }
  .contact-column {
    min-width: 256px !important;
  }
  .contact {
    width: calc(100% - 32px);
    padding: var(--m);
  }
  .footer {
    padding: var(--m) 0;
  }
  .about {
    line-height: 1.3;
  }
  .bandeau {
    height: var(--l);
  }
  .legal {
    margin-left: var(--m);
    margin-right: var(--m);
    width: calc(100% - 32px);
    padding: var(--m);
  }
  .bg-container {
    width: calc(100% - 32px);
    margin-left: var(--m);
    margin-right: var(--m);
    overflow: hidden;
    position: absolute;
    left: 0;
    transform: translateX(0);
  }
  h1 {
    font-size: 1.5rem;
  }
}

@media only screen and (pointer: coarse) {
  p {
    font-size: 1rem;
  }
  label {
    font-size: 1rem;
  }
}
