@import url(fontawesome-all.min.css);
@import "https://fonts.googleapis.com/css?family=Roboto+Mono:100";
@import url("https://fonts.googleapis.com/css?family=Source+Sans+Pro:300italic,600italic,300,600");

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}

body {
  line-height: 1;
}

/* Scrollbar custom */
body::-webkit-scrollbar {
  background-color: #090a0c;
  width: 15px;
}

body::-webkit-scrollbar-track {
  box-shadow: inset 0 0 6px rgba(255, 255, 255, 0.3);
  cursor: pointer;
}

body::-webkit-scrollbar-thumb {
  height: 1px;
  background-color: #3c4043;
}
/* For firefox browsers */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(168, 212, 226, 0.4) #0a182ba9;
}

ol,
ul {
  list-style: none;
}

blockquote,
q {
  quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
  content: "";
  content: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

body {
  -webkit-text-size-adjust: none;
}

mark {
  background-color: transparent;
  color: inherit;
}

input::-moz-focus-inner {
  border: 0;
  padding: 0;
}

input,
select,
textarea {
  -moz-appearance: none;
  -webkit-appearance: none;
  -ms-appearance: none;
  appearance: none;
}

/* Basic */

@-ms-viewport {
  width: device-width;
}

html {
  box-sizing: border-box;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

body {
  background: #1b1f22;
}

body.is-preload *,
body.is-preload *:before,
body.is-preload *:after {
  -moz-animation: none !important;
  -webkit-animation: none !important;
  -ms-animation: none !important;
  animation: none !important;
  -moz-transition: none !important;
  -webkit-transition: none !important;
  -ms-transition: none !important;
  transition: none !important;
}

/* Type */

html {
  font-size: 16pt;
}

body,
input,
select,
textarea {
  color: #ffffff;
  font-family: "Source Sans Pro", sans-serif;
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.65;
}

a {
  -moz-transition: color 0.2s ease-in-out, background-color 0.2s ease-in-out,
    border-bottom-color 0.2s ease-in-out;
  -webkit-transition: color 0.2s ease-in-out, background-color 0.2s ease-in-out,
    border-bottom-color 0.2s ease-in-out;
  -ms-transition: color 0.2s ease-in-out, background-color 0.2s ease-in-out,
    border-bottom-color 0.2s ease-in-out;
  transition: color 0.2s ease-in-out, background-color 0.2s ease-in-out,
    border-bottom-color 0.2s ease-in-out;
  border-bottom: dotted 1px rgba(255, 255, 255, 0.5);
  text-decoration: none;
  color: inherit;
}

a:hover {
  border-bottom-color: transparent;
}

strong,
b {
  color: #ffffff;
  font-weight: 600;
}

em,
i {
  font-style: italic;
  font-size: 1.1rem;
  line-height: 2.5rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: #ffffff;
  font-weight: 600;
  line-height: 1.5;
  margin: 0 0 1rem 0;
  text-transform: uppercase;
  letter-spacing: 0.2rem;
}

h1 a,
h2 a,
h3 a,
h4 a,
h5 a,
h6 a {
  color: inherit;
  text-decoration: none;
}

h1.major,
h2.major,
h3.major,
h4.major,
h5.major,
h6.major {
  border-bottom: solid 1px #ffffff;
  width: -moz-max-content;
  width: -webkit-max-content;
  width: -ms-max-content;
  width: max-content;
  padding-bottom: 0.5rem;
  margin: 0 0 2rem 0;
}

h1 {
  font-size: 2.25rem;
  line-height: 1.3;
  letter-spacing: 0.5rem;
}

h2 {
  font-size: 1.5rem;
  line-height: 1.4;
  letter-spacing: 0.5rem;
}

h3 {
  font-size: 1rem;
}

h4 {
  font-size: 0.8rem;
}

h5 {
  font-size: 0.7rem;
}

h6 {
  font-size: 0.6rem;
}

sub {
  font-size: 0.8rem;
  position: relative;
  top: 0.5rem;
}

sup {
  font-size: 0.8rem;
  position: relative;
  top: -0.5rem;
}

blockquote {
  border-left: solid 4px #ffffff;
  font-style: italic;
  margin: 0 0 2rem 0;
  padding: 0.5rem 0 0.5rem 2rem;
}

code {
  background: rgba(255, 255, 255, 0.075);
  border-radius: 4px;
  font-family: "Courier New", monospace;
  font-size: 0.9rem;
  margin: 0 0.25rem;
  padding: 0.25rem 0.65rem;
}

pre {
  -webkit-overflow-scrolling: touch;
  font-family: "Courier New", monospace;
  font-size: 0.9rem;
  margin: 0 0 2rem 0;
}

pre code {
  display: block;
  line-height: 1.75;
  padding: 1rem 1.5rem;
  overflow-x: auto;
}

hr {
  border: 0;
  border-bottom: solid 1px #ffffff;
  margin: 2.75rem 0;
}

.align-left {
  text-align: left;
}

.align-center {
  text-align: center;
}

.align-right {
  text-align: right;
}

/* Box */

.box {
  border-radius: 4px;
  border: solid 1px #ffffff;
  margin-bottom: 2rem;
  padding: 1.5em;
}

.box > :last-child,
.box > :last-child > :last-child,
.box > :last-child > :last-child > :last-child {
  margin-bottom: 0;
}

.box.alt {
  border: 0;
  border-radius: 0;
  padding: 0;
}

/* Icon */

.icon {
  text-decoration: none;
  border-bottom: none;
  position: relative;
}

.icon:before {
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  display: inline-block;
  font-style: normal;
  font-variant: normal;
  text-rendering: auto;
  line-height: 1;
  text-transform: none !important;
  font-family: "Font Awesome 5 Free";
  font-weight: 400;
}

.icon > .label {
  display: none;
}

.icon:before {
  line-height: inherit;
}

.icon.solid:before {
  font-weight: 900;
}

.icon.brands:before {
  font-family: "Font Awesome 5 Brands";
}

/* IMAGES */

.image {
  border-radius: 4px;
  border: 0;
  display: inline-block;
  position: relative;
}

.image:before {
  pointer-events: none;
  background-image: url("../../images/background_img/overlay.png");
  background-color: rgba(19, 21, 25, 0.5);
  border-radius: 4px;
  content: "";
  display: block;
  height: 100%;
  left: 0;
  opacity: 0.5;
  position: absolute;
  top: 0;
  width: 100%;
}

.image img {
  border-radius: 4px;
  display: block;
}

.image.left,
.image.right {
  max-width: 40%;
}

.image.left img,
.image.right img {
  width: 100%;
}

.image.left {
  float: left;
  padding: 0 1.5em 1em 0;
  top: 0.25em;
}

.image.right {
  float: right;
  padding: 0 0 1em 1.5em;
  top: 0.25em;
}

.image.fit {
  display: block;
  margin: 0 0 2rem 0;
  width: 100%;
}

.image.fit img {
  width: 100%;
}

.image.main img {
  width: 100%;
}

/* ? ==== HOME PAGE + NAVBAR ==== */

#navbox:has(.nav-button:hover) > .nav-button:not(:hover) {
  background-color: rgba(195, 195, 195, 0.8);
}

li.nav-button {
  background-color: rgba(238, 238, 238, 0.1);
  transition: background-color 200ms;
}

/*? ==== HOME PAGE SECRET CODE ANIMATION ==== */

.container-animation {
  height: 100%;
  width: 100%;
  justify-content: center;
  align-items: center;
  display: flex;
}

.text-animation {
  font-weight: 900;
  font-family: "Roboto Mono", monospace;
  /* background: #212121; */
  font-size: 28px;
  color: #fafafa;
}

.dud {
  color: #757575;
}

button#secret-code {
  margin-top: 1rem;
}

/* ? ==== FADE-IN TEXT ANIMATION ==== */

div.contact-link,
div.experience-text,
div.experience-infos,
div.formation-year,
div.formation-text,
section#gallery-box,
div#graphic-box {
  animation: fadein 1.5s;
  -moz-animation: fadein 1.2s; /* Firefox */
  -webkit-animation: fadein 1.2s; /* Safari and Chrome */
  -o-animation: fadein 1.2s; /* Opera */
}
@keyframes fadein {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@-moz-keyframes fadein {
  /* Firefox */
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@-webkit-keyframes fadein {
  /* Safari and Chrome */
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@-o-keyframes fadein {
  /* Opera */
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* ==== SCHOOL PAGE ==== */

img.school-logo {
  border-radius: 100%;
  width: 3.27rem;
}

section.about-box {
  display: flex;
  /* flex-direction: row; */
  align-items: center;
}

figure.school-img {
  display: flex;
  flex-direction: column;
  gap: 2.3rem;
  margin-bottom: 4.5rem;
}

div.about-year {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  margin-left: 2rem;
  margin-top: 0.5rem;
}

div.formation-text {
  display: flex;
  flex-direction: column;
  margin-left: 1.5rem;
  margin-top: 0.6rem;
  gap: 2rem;
  flex-wrap: wrap;
}

div.formation-text p {
  font-size: 1.1rem;
}

time {
  font-style: italic;
  font-weight: 600;
  font-size: 1.1rem;
}

p.last {
  margin-top: 1rem;
}

#oclock-link {
  padding-left: 1rem;
}

/* ==== WORK PAGE ==== */

/*? ==== I WORK WITH SKILL ANIMATION ==== */

div#skillanim {
  display: flex;
  justify-content: flex-start;
  height: 6.5rem;
}

h2#skill-title {
  font-family: Inconsolata, source code pro, consolas, monospace;
  font-size: 1.5rem;
  font-weight: bold;
  border-bottom: none;
}

section.workbox {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 1.5rem;
}

div.workbox-block {
  display: flex;
  gap: 1rem;
  width: 100%;
}

div.experience-infos {
  display: flex;
  justify-content: center;
  align-items: center;
}

div.experience-infos span {
  text-align: center;
}

div.experience-infos time {
  font-weight: 500;
  font-size: smaller;
  font-style: normal;
}

h4.title-job {
  margin-bottom: 0;
  font-size: 1rem;
}

div.experience-text {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 80%;
}

a.linkedin-link {
  border-bottom: none;
  box-shadow: none;
}

a.linkedin-link i {
  font-family: "Courrier New", monospace;
}

/*? ==== GRADIENT COLOR ANIMATION LEARN MORE ==== */
.arrow {
  transition: margin-left 0.5s ease;
  letter-spacing: 0;
}

/* ul {
  margin-bottom: -0.5em;
} */

:is(.linkedin-link, div.inner h1):hover {
  color: transparent;
  background: linear-gradient(
    315deg,
    rgb(250, 7, 3),
    rgb(1, 46, 245)
  );
  -webkit-background-clip: text;
  background-clip: text;
  animation: bg-hue 2s linear infinite;
}

.linkedin-link:hover .arrow {
  margin-left: 0.5em;
}

@keyframes bg-hue {
  100% {
    filter: hue-rotate(-360deg);
  }
}

div.work-img img {
  width: 6rem;
}

div.work-img img.circle-logo {
  width: 4rem;
  margin-left: 1.5rem;
  border-radius: 100%;
}

div.work-img {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  margin-right: 1rem;
  margin-top: 1rem;
}

/* ==== SKILLS PAGE ==== */

section.skillbox {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

figure#front-end,
#back-end,
#dev-tools,
#other-tools,
div#soft-skills {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: wrap;
}

.skill-category,
.other-tools {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25rem;
  margin-bottom: 1.5rem;
}

div.other-tools {
  margin-top: 3rem;
}

div.soft-skills-category {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}

img.skill-logo {
  width: 7rem;
  padding: 0.5rem;
  border-radius: 1rem;
  filter: drop-shadow(1px 10px 2px #15111a);
}

img.soft-skills-icon {
  width: 11rem;
  border-radius: 1.5rem;
  margin-right: 1rem;
  filter: drop-shadow(0 10px 2px #15111a);
}

/*? === Fading skills icons animation === */
img.fade {
  -webkit-animation-name: fade;
  -webkit-animation-duration: 1.5s;
  animation-name: fade;
  animation-duration: 1.5s;
}

@-webkit-keyframes fade {
  from {
    opacity: 0.4;
  }
  to {
    opacity: 1;
  }
}

@keyframes fade {
  from {
    opacity: 0.4;
  }
  to {
    opacity: 1;
  }
}

/*? ==== BLUE LIGHT ICONS ANIMATION ==== */

:is(
    button#secret-code,
    button#download-pdf,
    button#graphic-btn,
    ul.icons li a,
    img.circle-logo,
    img.square-logo,
    img.skill-logo,
    img.school-logo
  ):hover {
  transition: all 0.3s ease-in-out;
  color: #f3f4f4;
  background: transparent;
  box-shadow: 0 0 78px 4px #f6f9f9, 0 0 12px 6px #eef1f1,
    inset 0 0 12px 6px #9a9d9e;
  filter: drop-shadow(0 0 30px #7dbdbd);
}

/*? ==== PROJECT GALLERY ==== */
#gallery-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gallery-container {
  margin-top: 50px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  width: 90vw;
}

.item {
  position: relative;
  float: left;
  overflow: hidden;
  margin: 10px 1%;
  min-width: 320px;
  max-width: 410px;
  width: 100%;
  text-align: center;
  box-shadow: 14px 14px 36px 7px rgb(0, 0, 0);
  border-radius: 0.3rem;
  box-sizing: border-box;
}

.item:hover {
  cursor: pointer;
}

.item * {
  transition: all 0.35s ease-in-out;
}

.gallery-img {
  max-width: 100%;
  vertical-align: top;
  height: 310px;
}

.item:hover img {
  opacity: 0;
}

.text {
  width: 80%;
  height: 90%;
  position: absolute;
  top: -100px;
  left: 10%;
  color: rgb(255, 255, 255);
}

.text h3 {
  color: rgb(255, 255, 255);
}

.item:hover .text {
  top: 20%;
}

.item:hover .project-button {
  bottom: 20%;
}

.item .project-button {
  position: absolute;
  bottom: -100px;
  left: 25%;
  width: 50%;
  border: 3px solid #ffffff;
  border-radius: 4px;
  color: #f5f5f5;
  padding: 15px;
  box-sizing: border-box;
  transition: all 0.3s ease-in-out;
}

.project-button:hover {
  background-color: #ffffff;
  color: rgb(31, 31, 31);
}

/* Modal */
.modal {
  visibility: hidden;
  position: fixed;
  height: 100%;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100000000;
  padding: 1rem 1.2rem;
  background: rgb(9 9 9 / 89%);
  display: flex;
  justify-content: center;
  cursor: pointer;
}

.modal .modal-content {
  opacity: 1;
  transform: none;
  height: 700px;
  width: 700px;
  position: fixed;
  width: 100%;
  max-width: 700px;
  max-height: 90vh;
  border-radius: 1rem;
  overflow: hidden;
  background: rgb(239 239 239);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  cursor: auto;
}

.scale {
  animation: scale 0.5s;
  animation-fill-mode: forwards;
}

@keyframes scale {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}

#img {
  width: 100%;
  height: 450px;
}

#details {
  display: none;
  padding: 25px;
  text-align: left;
  position: relative;
  height: 264px;
  box-sizing: border-box;
  color: rgb(255, 255, 255);
}

#details * {
  transition: all 0.3s;
}

#title {
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  color: rgb(31, 31, 31);
}

#info {
  color: rgb(31, 31, 31);
}

#details .project-button {
  position: absolute;
  background-color: #202324;
  color: #f5f5f5;
  text-align: center;
  margin-top: 1rem;
  left: 25px;
  padding: 10px;
  border-radius: 4px;
}

#details i {
  position: absolute;
  bottom: 30px;
  right: 25px;
  font-size: 3rem;
  color: #01a2ac;
}

#details .project-button:hover {
  cursor: pointer;
  opacity: 0.5;
}

/* Modal Close Button */
.modal-close {
  background: none;
  box-shadow: none;
  border: none;
  color: white;
  font-size: 25px;
  position: absolute;
  top: 0.8rem;
  right: 0;
  cursor: pointer;
}

.modal-close:hover,
.modal-close:focus {
  color: #363638;
  text-decoration: none;
  cursor: pointer;
}

/* ? ==== CONTACT PAGE ==== */

div.contact-box {
  display: flex;
  justify-content: flex-start;
  gap: 4rem;
}

div.contact-text {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 1.5rem;
}

p.contact-infos {
  display: flex;
  justify-content: flex-start;

  font-weight: 300;
  font-size: 1.1rem;
}

div.contact-link {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

a.contact-email {
  font-weight: 700;
  font-size: 1.1rem;
}

.contact-box img {
  display: flex;
  width: 8rem;
  height: 8rem;
  margin: 2rem;
  border-radius: 100%;
}

a.contact-linkedin,
a.contact-map,
a.contact-github,
a.contact-email {
  text-decoration: none;
  border-bottom: none;
  box-shadow: none;
  font-size: 1.1rem;
}

.download {
  display: flex;
  justify-content: center;
  width: 30rem;
  height: 10rem;
  box-shadow: none;
}

#download-pdf a {
  border-bottom: none;
  box-shadow: none;
}

/* List */

ol {
  list-style: decimal;
  margin: 0 0 2rem 0;
  padding-left: 1.25em;
}

ol li {
  padding-left: 0.25em;
}

ul {
  list-style: disc;
  margin: 0 0 2rem 0;
  padding-left: 1em;
}

ul li {
  padding-left: 0.5em;
}

ul.alt {
  list-style: none;
  padding-left: 0;
}

ul.alt li {
  border-top: solid 1px #ffffff;
  padding: 0.5em 0;
}

ul.alt li:first-child {
  border-top: 0;
  padding-top: 0;
}

dl {
  margin: 0 0 2rem 0;
}

dl dt {
  display: block;
  font-weight: 600;
  margin: 0 0 1rem 0;
}

dl dd {
  margin-left: 2rem;
}

/* Actions */

ul.actions {
  display: -moz-flex;
  display: -webkit-flex;
  display: -ms-flex;
  display: flex;
  cursor: default;
  list-style: none;
  margin-left: -1rem;
  padding-left: 0;
}

ul.actions li {
  padding: 0 0 0 1rem;
  vertical-align: middle;
}

ul.actions.special {
  -moz-justify-content: center;
  -webkit-justify-content: center;
  -ms-justify-content: center;
  justify-content: center;
  width: 100%;
  margin-left: 0;
}

ul.actions.special li:first-child {
  padding-left: 0;
}

ul.actions.stacked {
  -moz-flex-direction: column;
  -webkit-flex-direction: column;
  -ms-flex-direction: column;
  flex-direction: column;
  margin-left: 0;
}

ul.actions.stacked li {
  padding: 1.3rem 0 0 0;
}

ul.actions.stacked li:first-child {
  padding-top: 0;
}

ul.actions.fit {
  width: calc(100% + 1rem);
}

ul.actions.fit li {
  -moz-flex-grow: 1;
  -webkit-flex-grow: 1;
  -ms-flex-grow: 1;
  flex-grow: 1;
  -moz-flex-shrink: 1;
  -webkit-flex-shrink: 1;
  -ms-flex-shrink: 1;
  flex-shrink: 1;
  width: 100%;
}

ul.actions.fit li > * {
  width: 100%;
}

ul.actions.fit.stacked {
  width: 100%;
}

/* Icons */

ul.icons {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.98rem;

  cursor: default;
  list-style: none;
  padding-left: 0;
}

ul.icons li {
  display: inline-block;
  padding: 0 0.75em 0 0;
}

ul.icons li:last-child {
  padding-right: 0;
}

ul.icons li a {
  border-radius: 100%;
  box-shadow: inset 0 0 0 1px #ffffff;
  display: inline-block;
  width: 3rem;
  height: 3rem;
  line-height: 3rem;
  text-align: center;
}

ul.icons li a:hover {
  background-color: rgba(255, 255, 255, 0.075);
}

ul.icons li a:active {
  background-color: rgba(255, 255, 255, 0.175);
}

/* Button */

button,
.button {
  -moz-appearance: none;
  -webkit-appearance: none;
  -ms-appearance: none;
  appearance: none;
  -moz-transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
  -webkit-transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
  -ms-transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
  transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
  background-color: transparent;
  border-radius: 4px;
  border: 0;
  box-shadow: inset 0 0 0 1px #ffffff;
  color: #ffffff !important;
  cursor: pointer;
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 300;
  height: 2.75rem;
  letter-spacing: 0.2rem;
  line-height: 2.75rem;
  outline: 0;
  padding: 0 1.25rem 0 1.35rem;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

/* BG */

#bg {
  -moz-transform: scale(1);
  -webkit-transform: scale(1);
  -ms-transform: scale(1);
  transform: scale(1);
  -webkit-backface-visibility: hidden;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 1;
}

#bg:before,
#bg:after {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

#bg:before {
  -moz-transition: background-color 2.5s ease-in-out;
  -webkit-transition: background-color 2.5s ease-in-out;
  -ms-transition: background-color 2.5s ease-in-out;
  transition: background-color 2.5s ease-in-out;
  -moz-transition-delay: 0.75s;
  -webkit-transition-delay: 0.75s;
  -ms-transition-delay: 0.75s;
  transition-delay: 0.75s;
  background-image: linear-gradient(
      to top,
      rgba(19, 21, 25, 0.5),
      rgba(19, 21, 25, 0.5)
    ),
    url("../../images/overlay.png");
  background-size: auto, 256px 256px;
  background-position: center, center;
  background-repeat: no-repeat, repeat;
  z-index: 2;
}

#bg:after {
  -moz-transform: scale(1.125);
  -webkit-transform: scale(1.125);
  -ms-transform: scale(1.125);
  transform: scale(1.125);
  -moz-transition: -moz-transform 0.325s ease-in-out,
    -moz-filter 0.325s ease-in-out;
  -webkit-transition: -webkit-transform 0.325s ease-in-out,
    -webkit-filter 0.325s ease-in-out;
  -ms-transition: -ms-transform 0.325s ease-in-out,
    -ms-filter 0.325s ease-in-out;
  transition: transform 0.325s ease-in-out, filter 0.325s ease-in-out;

  /* BACKGROUNG IMAGE SETTINGS */
  background-image: url("../../images/background_img/background03.jpg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  z-index: 1;
}

body.is-article-visible #bg:after {
  -moz-transform: scale(1.0825);
  -webkit-transform: scale(1.0825);
  -ms-transform: scale(1.0825);
  transform: scale(1.0825);
  -moz-filter: blur(0.2rem);
  -webkit-filter: blur(0.2rem);
  -ms-filter: blur(0.2rem);
  filter: blur(0.2rem);
}

body.is-preload #bg:before {
  background-color: #000000;
}

/* Wrapper */

#wrapper {
  display: -moz-flex;
  display: -webkit-flex;
  display: -ms-flex;
  display: flex;
  -moz-flex-direction: column;
  -webkit-flex-direction: column;
  -ms-flex-direction: column;
  flex-direction: column;
  -moz-align-items: center;
  -webkit-align-items: center;
  -ms-align-items: center;
  align-items: center;
  -moz-justify-content: space-between;
  -webkit-justify-content: space-between;
  -ms-justify-content: space-between;
  justify-content: space-between;
  position: relative;
  min-height: 100vh;
  width: 100%;
  padding: 4rem 2rem;
  z-index: 3;
}

#wrapper:before {
  content: "";
  display: block;
}

/* Header */

#header {
  display: -moz-flex;
  display: -webkit-flex;
  display: -ms-flex;
  display: flex;
  -moz-flex-direction: column;
  -webkit-flex-direction: column;
  -ms-flex-direction: column;
  flex-direction: column;
  -moz-align-items: center;
  -webkit-align-items: center;
  -ms-align-items: center;
  align-items: center;
  -moz-transition: -moz-transform 0.325s ease-in-out,
    -moz-filter 0.325s ease-in-out, opacity 0.325s ease-in-out;
  -webkit-transition: -webkit-transform 0.325s ease-in-out,
    -webkit-filter 0.325s ease-in-out, opacity 0.325s ease-in-out;
  -ms-transition: -ms-transform 0.325s ease-in-out,
    -ms-filter 0.325s ease-in-out, opacity 0.325s ease-in-out;
  transition: transform 0.325s ease-in-out, filter 0.325s ease-in-out,
    opacity 0.325s ease-in-out;
  background-image: -moz-radial-gradient(
    rgba(0, 0, 0, 0.25) 25%,
    rgba(0, 0, 0, 0) 55%
  );
  background-image: -webkit-radial-gradient(
    rgba(0, 0, 0, 0.25) 25%,
    rgba(0, 0, 0, 0) 55%
  );
  background-image: -ms-radial-gradient(
    rgba(0, 0, 0, 0.25) 25%,
    rgba(0, 0, 0, 0) 55%
  );
  background-image: radial-gradient(
    rgba(0, 0, 0, 0.25) 25%,
    rgba(0, 0, 0, 0) 55%
  );
  max-width: 100%;
  margin-top: 5rem;
  text-align: center;
}

#header > * {
  -moz-transition: opacity 0.325s ease-in-out;
  -webkit-transition: opacity 0.325s ease-in-out;
  -ms-transition: opacity 0.325s ease-in-out;
  transition: opacity 0.325s ease-in-out;
  position: relative;
  margin-top: 3.5rem;
}

#header > *:before {
  content: "";
  display: block;
  position: absolute;
  top: calc(-3.5rem - 1px);
  left: calc(50% - 1px);
  height: calc(3.5rem + 1px);
  background: #ffffff;
}

#header > :first-child {
  margin-top: 0;
}

#header > :first-child:before {
  display: none;
}

#header .logo {
  width: 8rem;
  height: 8rem;
  line-height: 5.5rem;
  border-radius: 100%;
  box-shadow: 5px 5px 17px 6px #000000;
  transition: 1.5s ease-in;
}

#header .logo .icon:before {
  font-size: 2rem;
}

#header .content {
  border-style: solid;
  border-color: #ffffff;
  border-top-width: 1px;
  border-bottom-width: 1px;
  max-width: 100%;
}

#header .content .inner {
  -moz-transition: max-height 0.75s ease, padding 0.75s ease,
    opacity 0.325s ease-in-out;
  -webkit-transition: max-height 0.75s ease, padding 0.75s ease,
    opacity 0.325s ease-in-out;
  -ms-transition: max-height 0.75s ease, padding 0.75s ease,
    opacity 0.325s ease-in-out;
  transition: max-height 0.75s ease, padding 0.75s ease,
    opacity 0.325s ease-in-out;
  -moz-transition-delay: 0.25s;
  -webkit-transition-delay: 0.25s;
  -ms-transition-delay: 0.25s;
  transition-delay: 0.25s;
  padding: 3rem 2rem;
  max-height: 40rem;
  overflow: hidden;
}

#header .content .inner > :last-child {
  margin-bottom: 0;
}

#header .content p {
  text-transform: uppercase;
  letter-spacing: 0.2rem;
  font-size: 0.8rem;
  line-height: 2;
}

#header nav ul {
  display: -moz-flex;
  display: -webkit-flex;
  display: -ms-flex;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 0;
  list-style: none;
  padding-left: 0;
  border: solid 1px #ffffff;
  border-radius: 4px;
}

#header nav ul li {
  padding-left: 0;
  border-left: solid 1px #ffffff;
}

#header nav ul li:first-child {
  border-left: 0;
}

#header nav ul li a {
  display: block;
  min-width: 7.5rem;
  height: 2.75rem;
  line-height: 2.75rem;
  padding: 0 1.25rem 0 1.45rem;
  text-transform: uppercase;
  letter-spacing: 0.2rem;
  font-size: 1.1rem;
  font-weight: 800;
  border-bottom: 0;
}

#header nav ul li a:hover {
  background-color: rgba(255, 255, 255, 0.2);
  box-shadow: none;
}

#header nav ul li a:active {
  background-color: rgba(255, 255, 255, 0.2);
}

#header nav.use-middle:after {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: calc(50% - 1px);
  width: 1px;
  height: 100%;
  background: #ffffff;
}

#header nav.use-middle ul li.is-middle {
  border-left: 0;
}

body.is-article-visible #header {
  -moz-transform: scale(0.95);
  -webkit-transform: scale(0.95);
  -ms-transform: scale(0.95);
  transform: scale(0.95);
  -moz-filter: blur(0.1rem);
  -webkit-filter: blur(0.1rem);
  -ms-filter: blur(0.1rem);
  filter: blur(0.1rem);
  opacity: 0;
}

body.is-preload #header {
  -moz-filter: blur(0.125rem);
  -webkit-filter: blur(0.125rem);
  -ms-filter: blur(0.125rem);
  filter: blur(0.125rem);
}

body.is-preload #header > * {
  opacity: 0;
}

body.is-preload #header .content .inner {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
}

/* Main */

#main {
  -moz-flex-grow: 1;
  -webkit-flex-grow: 1;
  -ms-flex-grow: 1;
  flex-grow: 1;
  -moz-flex-shrink: 1;
  -webkit-flex-shrink: 1;
  -ms-flex-shrink: 1;
  flex-shrink: 1;
  display: -moz-flex;
  display: -webkit-flex;
  display: -ms-flex;
  display: flex;
  -moz-align-items: center;
  -webkit-align-items: center;
  -ms-align-items: center;
  align-items: center;
  -moz-justify-content: center;
  -webkit-justify-content: center;
  -ms-justify-content: center;
  justify-content: center;
  -moz-flex-direction: column;
  -webkit-flex-direction: column;
  -ms-flex-direction: column;
  flex-direction: column;
  position: relative;
  max-width: 100%;
  z-index: 3;
}

#main article {
  -moz-transform: translateY(0.25rem);
  -webkit-transform: translateY(0.25rem);
  -ms-transform: translateY(0.25rem);
  transform: translateY(0.25rem);
  -moz-transition: opacity 0.325s ease-in-out, -moz-transform 0.325s ease-in-out;
  -webkit-transition: opacity 0.325s ease-in-out,
    -webkit-transform 0.325s ease-in-out;
  -ms-transition: opacity 0.325s ease-in-out, -ms-transform 0.325s ease-in-out;
  transition: opacity 0.325s ease-in-out, transform 0.325s ease-in-out;
  padding: 4.5rem 2.5rem 1.5rem 2.5rem;
  position: relative;
  width: 90vw;
  max-width: 100%;
  background-color: rgba(27, 31, 34, 0.85);
  border-radius: 4px;
  opacity: 0;
}

#main article.active {
  -moz-transform: translateY(0);
  -webkit-transform: translateY(0);
  -ms-transform: translateY(0);
  transform: translateY(0);
  opacity: 1;
  overflow-x: none;
}

#main article .close {
  display: block;
  position: absolute;
  top: 0;
  right: 0;
  width: 4rem;
  height: 4rem;
  cursor: pointer;
  text-indent: 4rem;
  overflow: hidden;
  white-space: nowrap;
}

#main article .close:before {
  -moz-transition: background-color 0.2s ease-in-out;
  -webkit-transition: background-color 0.2s ease-in-out;
  -ms-transition: background-color 0.2s ease-in-out;
  transition: background-color 0.2s ease-in-out;
  content: "";
  display: block;
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 100%;
  background-position: center;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='20px' height='20px' viewBox='0 0 20 20' zoomAndPan='disable'%3E%3Cstyle%3Eline %7B stroke: %23ffffff%3B stroke-width: 1%3B %7D%3C/style%3E%3Cline x1='2' y1='2' x2='18' y2='18' /%3E%3Cline x1='18' y1='2' x2='2' y2='18' /%3E%3C/svg%3E");
  background-size: 20px 20px;
  background-repeat: no-repeat;
}

#main article .close:hover:before {
  background-color: rgba(255, 255, 255, 0.075);
}

#main article .close:active:before {
  background-color: rgba(255, 255, 255, 0.175);
}


.fadeInDown {
  -webkit-animation-name: fadeInDown;
  animation-name: fadeInDown;
  -webkit-animation-duration: 1s;
  animation-duration: 1s;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
}
@-webkit-keyframes fadeInDown {
  0% {
    opacity: 0;
    -webkit-transform: translate3d(0, -100%, 0);
    transform: translate3d(0, -100%, 0);
  }
  100% {
    opacity: 1;
    -webkit-transform: none;
    transform: none;
  }
}
@keyframes fadeInDown {
  0% {
    opacity: 0;
    -webkit-transform: translate3d(0, -100%, 0);
    transform: translate3d(0, -100%, 0);
  }
  100% {
    opacity: 1;
    -webkit-transform: none;
    transform: none;
  }
}

/* Footer */

#footer {
  -moz-transition: -moz-transform 0.325s ease-in-out,
    -moz-filter 0.325s ease-in-out, opacity 0.325s ease-in-out;
  -webkit-transition: -webkit-transform 0.325s ease-in-out,
    -webkit-filter 0.325s ease-in-out, opacity 0.325s ease-in-out;
  -ms-transition: -ms-transform 0.325s ease-in-out,
    -ms-filter 0.325s ease-in-out, opacity 0.325s ease-in-out;
  transition: transform 0.325s ease-in-out, filter 0.325s ease-in-out,
    opacity 0.325s ease-in-out;
  width: 100%;
  max-width: 100%;
  margin-top: 2rem;
  text-align: center;
}

#footer .copyright {
  letter-spacing: 0.2rem;
  font-size: 0.6rem;
  opacity: 0.75;
  margin-bottom: 0;
  text-transform: uppercase;
}

body.is-article-visible #footer {
  -moz-transform: scale(0.95);
  -webkit-transform: scale(0.95);
  -ms-transform: scale(0.95);
  transform: scale(0.95);
  -moz-filter: blur(0.1rem);
  -webkit-filter: blur(0.1rem);
  -ms-filter: blur(0.1rem);
  filter: blur(0.1rem);
  opacity: 0;
}

body.is-preload #footer {
  opacity: 0;
}

/*? ======== MEDIAS QUERIES ======= */

@media screen and (max-width: 1680px) {
  html {
    font-size: 12pt;
  }

  #wrapper {
    padding: 3rem 2rem;
  }
}

@media screen and (max-width: 992px) {
  html,
  body {
    overflow-x: hidden;
  }
  body {
    position: relative;
  }

  html {
    font-size: 95%;
  }

  #header .content p br {
    display: none;
  }

  #wrapper {
    padding: 2rem 1rem;
    max-width: 100%;
  }

  .text-animation {
    height: 10rem;
    margin: auto;
  }

  div.experience-text {
    width: 100%;
    text-align: center;
  }

  div.experience-infos {
    display: none;
  }

  div.workbox-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  div.formation-year {
    display: none;
  }

  section.formation-box {
    align-items: flex-start;
  }

  figure.school-img {
    gap: 6rem;
    margin-top: 1rem;
  }

  .skill-category {
    gap: 1rem;
    margin-top: 1.2rem;
  }

  .other-tools {
    text-align: center;
  }

  section.skillbox {
    justify-content: center;
  }

  div.contact-box {
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
  }

  .contact-box img {
    width: 12rem;
    height: auto;
    margin: auto;
    padding: 1rem;
  }

  div.contact-text {
    margin-left: 0;
    gap: 0;
  }

  /*? ==== media queries for project gallery  ==== */

  article#project {
    height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    align-items: inherit;
    gap: 4rem;
  }

  .gallery-container::-webkit-scrollbar {
    width: 0;
    height: 7px;
  }

  .gallery-container::-webkit-scrollbar-thumb {
    background-color: #c4c4c4;
    border-radius: 2rem;
  }
 
  .gallery-container {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow: scroll;
  }

  .gallery-container .item {
    box-shadow: 14px 14px 36px 7px rgb(31, 31, 31);
  }

  .item .gallery-img {
    height: 250px;
  }

  .modal {
    align-items: center;
  }

  .modal .modal-content {
    width: 90%;
  }

  .modal-content #img {
    height: 50vh;
  }
}

@media screen and (max-width: 736px) {
  html {
    font-size: 11pt;
  }

  h1 {
    font-size: 1.75rem;
    line-height: 1.4;
  }

  h2 {
    font-size: 1.25em;
    line-height: 1.5;
  }

  #header > * {
    margin-top: 2rem;
  }

  #header > *:before {
    top: calc(-2rem - 1px);
    height: calc(2rem + 1px);
  }

  #header .logo .icon:before {
    font-size: 1.75rem;
  }

  #header .content .inner {
    padding: 2.5rem 1rem;
  }

  #header .content p {
    line-height: 1.875;
  }

  .modal-content #img {
    height: 30vh;
  }
}

@media screen and (max-width: 480px) {
  html,
  body {
    min-width: 320px;
  }

  #header {
    padding: 1.5rem 0;
  }

  #header .content .inner {
    padding: 2.5rem 0;
  }

  #header nav ul {
    -moz-flex-direction: column;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    min-width: 10rem;
    max-width: 100%;
  }

  #header nav ul li {
    border-left: 0;
    border-top: solid 1px #ffffff;
  }

  #header nav ul li:first-child {
    border-top: 0;
  }

  #header nav ul li a {
    height: 3rem;
    line-height: 3rem;
    min-width: 0;
    width: 100%;
  }

  #header nav.use-middle:after {
    display: none;
  }

  #main article {
    padding: 3.5rem 2rem 0.5rem 2rem;
  }

  #main article .close:before {
    top: 0.875rem;
    left: 0.875rem;
    width: 2.25rem;
    height: 2.25rem;
    background-size: 14px 14px;
  }

  #main article {
    padding: 3rem 1.5rem 0.5rem 1.5rem;
  }

  ul.actions:not(.fixed) {
    -moz-flex-direction: column;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    margin-left: 0;
    width: 100% !important;
  }

  ul.actions:not(.fixed) li {
    -moz-flex-grow: 1;
    -webkit-flex-grow: 1;
    -ms-flex-grow: 1;
    flex-grow: 1;
    -moz-flex-shrink: 1;
    -webkit-flex-shrink: 1;
    -ms-flex-shrink: 1;
    flex-shrink: 1;
    padding: 1rem 0 0 0;
    text-align: center;
    width: 100%;
  }

  ul.actions:not(.fixed) li > * {
    width: 100%;
  }

  ul.actions:not(.fixed) li:first-child {
    padding-top: 0;
  }

  ul.actions:not(.fixed) li input[type="submit"],
  ul.actions:not(.fixed) li input[type="reset"],
  ul.actions:not(.fixed) li input[type="button"],
  ul.actions:not(.fixed) li button,
  ul.actions:not(.fixed) li .button {
    width: 100%;
  }

  ul.actions:not(.fixed) li input[type="submit"].icon:before,
  ul.actions:not(.fixed) li input[type="reset"].icon:before,
  ul.actions:not(.fixed) li input[type="button"].icon:before,
  ul.actions:not(.fixed) li button.icon:before,
  ul.actions:not(.fixed) li .button.icon:before {
    margin-left: -0.5em;
  }
}

/* language switcher */
#lang-switcher {
	position: absolute;
	top: 15px; /* Adjusted position slightly */
	right: 15px;
	z-index: 1001; /* Ensure it's above other header elements */
	}
	#lang-switcher button {
	background: rgba(0, 0, 0, 0.2); /* Slightly darker background */
	border: 1px solid rgba(255, 255, 255, 0.5); /* Softer border */
	color: white;
	cursor: pointer;
	opacity: 0.7;
	transition: opacity 0.2s ease-in-out, background-color 0.2s ease-in-out;
	border-radius: 3px; /* Added slight rounding */
	}
	#lang-switcher button.active {
	opacity: 1;
	font-weight: bold;
	background-color: rgba(255, 255, 255, 0.2);
	border-color: white; /* Stronger border for active */
	}
	#lang-switcher button:hover {
	opacity: 1;
	background-color: rgba(255, 255, 255, 0.1); /* Hover effect */
	}
	/* Ensure nav doesn't overlap switcher on smaller screens if needed */
	@media (max-width: 736px) {
		#lang-switcher {
			top: 10px;
			right: 10px;
		}
		#lang-switcher button {
			padding: 3px 6px;
			font-size: 0.8em;
		}
	}