@font-face {
  font-family: "atkinson";
  src: url("fonts/atkinson.ttf") format("woff2");
  font-display: swap;
}

*::-webkit-scrollbar {
  width: 5px;
}

*::-webkit-scrollbar-track {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  background: var(--green);
  border-radius: 10px;
}

:root {
  --black: #141615;
  --light-dark: #383e3c;
  --mid-dark: #242726;
  --green: #27fb6b;
  --white: #e9f5ed;
  --gray: #a3ada6;
}

::selection {
  background: var(--green);
  color: var(--black);
}

@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

@keyframes spin {
  from {
    --angle: 0deg;
  }
  to {
    --angle: 360deg;
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100dvh;
  background: var(--black);
  color: var(--white);
  font-family: "atkinson", sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow-x: hidden;
  padding: 50px 0;
}

#click-me {
  position: absolute;
  opacity: 0;
  transform: translate(10px, 15px);
  background: var(--mid-dark);
  border: solid 1px var(--light-dark);
  padding: 5px 15px;
  border-radius: 50px;
  font-size: 0.85rem;
  text-wrap: nowrap;
  transition: opacity 500ms;
  z-index: 10;
}

#canvas-container {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

#loading-page {
  position: fixed;
  overflow: hidden;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--black);
  top: 0;
  left: 0;
  z-index: 10;
  color: var(--green);
  opacity: 0;
  animation: loading 2s forwards ease-in-out;
  animation-play-state: paused;
}

#text-wrapper {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: start;
  font-size: 1.25rem;
}

.letter {
  display: inline-block;
  position: relative;
  animation: floatUp 1.5s infinite cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.letter:nth-child(3) {
  padding-right: 5px;
}

@keyframes floatUp {
  0% {
    transform: translateY(0);
  }
  30%,
  100% {
    transform: translateY(-100%);
  }
}

@keyframes loading {
  0%,
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

#main {
  display: grid;
  grid-template-columns: 1fr 4fr;
  width: 100%;
  padding: 0 11%;
  gap: 25px;
}

#infos {
  display: flex;
  flex-direction: column;
  align-items: start;
  max-width: fit-content;
  width: 100%;
  padding: 40px;
  border-radius: 25px;
  border: solid 1px var(--light-dark);
  background: var(--mid-dark);
  position: relative;
  height: 800px;
}

.animated {
  opacity: 0;
  animation: translateIn 250ms forwards ease-in-out;
}

@keyframes translateIn {
  0% {
    transform: translateY(30px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

#status {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  padding-bottom: 25px;
  border-bottom: solid 1px var(--light-dark);
}

.status-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

#status img {
  width: 100%;
  max-width: 200px;
  background: linear-gradient(
    45deg,
    var(--mid-dark),
    var(--light-dark),
    var(--mid-dark)
  );
  border-radius: 20px;
  aspect-ratio: 1/1;
  object-fit: cover;
  border: solid 1px rgba(233, 245, 237, 0.1);
}

#status h1 {
  font-size: 2.125rem;
}

.tag {
  background-color: var(--light-dark);
  font-size: 1.1rem;
  padding: 8px 15px;
  border-radius: 5px;
  color: var(--green);
}

#contacts {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 25px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 25px;
}

.icon-wrapper {
  background: var(--light-dark);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  aspect-ratio: 1/1;
  min-width: 46px;
}

.contact-text {
  display: flex;
  flex-direction: column;
  align-items: start;
}

.contact-text h2 {
  font-size: 0.875rem;
  color: var(--gray);
  text-transform: uppercase;
}

.contact-text p {
  font-size: 1.05rem;
  text-wrap: nowrap;
}

.ancre {
  text-decoration: none;
  padding: 2px;
  color: var(--white);
  position: relative;
  transition: 300ms;
  text-wrap: nowrap;
  outline: none;
}

.ancre::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 1px;
  width: 0;
  background: var(--green);
  transition: 300ms;
}

.ancre:hover,
.ancre:active,
.ancre:focus-visible {
  color: var(--green);
}

.ancre:hover::after,
.ancre:active::after,
.ancre:focus-visible::after {
  width: 100%;
}

.arrow {
  transition: opacity 300ms;
  font-family: "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS", sans-serif;
  font-size: 0.8rem;
  margin-right: 3px;
  color: var(--green);
}

#socials {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 15px;
  padding-top: 25px;
}

.social {
  width: 18px;
  height: 18px;
  box-sizing: content-box;
  padding: 5px;
  outline: none;
  border-bottom: solid 2px transparent;
}

.social svg {
  width: 100%;
  height: 100%;
}

.social svg path {
  fill: var(--gray);
  transition: 300ms;
}

.social:hover svg path,
.social:active svg path,
.social:focus svg path {
  fill: var(--green);
}

.social:focus {
  border-color: var(--green);
}

#socials .social-text {
  display: none;
}

#about {
  background: var(--mid-dark);
  border-radius: 25px;
  border: solid 1px var(--light-dark);
  position: relative;
  padding: 60px 60px 0px 120px;
  height: 800px;
}

#about::after,
#about::before,
#infos::after,
#infos::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  background: conic-gradient(
    from var(--angle),
    var(--light-dark) 60%,
    var(--green),
    var(--light-dark)
  );
  inset: -3px;
  z-index: -1;
  border-radius: 26.5px;
  animation: spin 8s infinite linear;
}

#about::before,
#infos::before {
  filter: blur(12px);
  opacity: 0.15;
}

@keyframes spinDelayed {
  from {
    --angle: -180deg;
  }
  to {
    --angle: 180deg;
  }
}

#infos::after,
#infos::before {
  animation: spinDelayed 8s infinite linear;
}

#nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 10px 25px;
  background: var(--light-dark);
  backdrop-filter: blur(10px);
  width: fit-content;
  border-radius: 15px;
  position: absolute;
  left: 50%;
  top: 40px;
  transform: translateX(-50%);
  border: solid 1px rgba(233, 245, 237, 0.1);
  z-index: 1;
}

.nav-border {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  background: var(--green);
  transition: 500ms;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
}

.nav-button {
  padding: 5px 10px;
  text-transform: capitalize;
  cursor: pointer;
  transition: 300ms;
}

.nav-button.active,
.nav-button:active,
.nav-button:focus-visible {
  color: var(--green);
}

.nav-button:hover {
  color: var(--green);
}

.card:not(.active) {
  visibility: hidden;
  position: absolute;
  opacity: 0;
  top: 0;
  width: calc(100% - 180px);
  overflow: hidden;
}

.card {
  display: flex;
  flex-direction: column;
  margin-top: 60px;
  position: relative;
  height: 100%;
  max-height: fit-content;
  width: fit-content;
}

.card#projects {
  overflow-y: scroll;
  height: 90%;
  padding-right: 20px;
}

.card#projects:not(.active) {
  position: fixed;
}

#langues {
  display: flex;
  align-items: start;
  flex-wrap: wrap;
  max-width: 400px;
  gap: 20px;
}

.langue {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 15px;
  width: 80px;
}

.level {
  width: 70px;
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: conic-gradient(
    from 0deg,
    var(--green) 0deg var(--level-angle),
    var(--light-dark) var(--level-angle) 360deg
  );
  border-radius: 50%;
  position: relative;
  cursor: default;
}

.level::after {
  content: "";
  position: absolute;
  width: 90%;
  height: 90%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--mid-dark);
  border-radius: 50%;
}

.level:hover .percent-text {
  color: var(--green);
}

.percent-text {
  position: relative;
  z-index: 4;
  transition: 300ms;
}

.progress {
  position: absolute;
  height: 0%;
  width: 2px;
  background: var(--green);
  left: -52px;
}

.card h2 {
  font-size: 2rem;
  position: relative;
  padding-bottom: 40px;
}

.card h2::after {
  content: "";
  position: absolute;
  left: -52px;
  top: 10px;
  height: 100%;
  width: 1px;
  background: var(--light-dark);
}

.card h2::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 32px;
  background: var(--green);
  width: 50px;
  height: 4px;
}

.card-icon {
  width: 50px;
  color: var(--green);
  position: absolute;
  left: -75px;
  top: 50%;
  transform: translateY(calc(-50% - 20px));
  background: var(--light-dark);
  padding: 15px;
  border-radius: 5px;
  aspect-ratio: 1/1;
  z-index: 1;
}

.time-card {
  padding-bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 5px;
  position: relative;
}

.bar {
  position: absolute;
  left: -52px;
  top: 8px;
  height: 100%;
  width: 1px;
  background: var(--light-dark);
  transition: 300ms;
}

.time-card:last-child .bar {
  display: none;
}

.circle {
  position: absolute;
  left: -56px;
  top: 8px;
  width: 10px;
  aspect-ratio: 1/1;
  background: var(--light-dark);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--mid-dark), 0 0 0 5px var(--green);
  z-index: 1;
  transition: 300ms;
}

.time-card:hover .circle,
.circle.active {
  background: var(--green);
}

.time-card h3 {
  font-size: 1.3rem;
}

.date {
  color: var(--green);
  font-size: 1.05rem;
}

.description {
  font-size: 1.1rem;
  color: var(--gray);
  font-weight: 300;
}

.skills-container {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  padding-top: 40px;
  position: relative;
}

@media screen and (max-width: 1090px) {
  .skills-container {
    padding-top: 10px;
  }
  #brand-name {
    bottom: -32px;
  }
}

.skill-wrapper {
  min-width: 60px;
  padding: 15px;
  aspect-ratio: 1/1;
  display: flex;
  justify-content: center;
  border-radius: 5px;
  background: var(--light-dark);
  position: relative;
}

#brand-name {
  position: absolute;
  bottom: -50px;
  left: 0;
  color: var(--green);
  font-size: 1rem;
}

#about:has(#projects.active) {
  padding: 75px 50px;
}

.img-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  justify-content: center;
  gap: 20px;
}

.img-wrapper {
  width: 100%;
  aspect-ratio: 2/1;
  border-radius: 15px;
  background: var(--light-dark);
  cursor: pointer;
  overflow: hidden;
  position: relative;
  border: solid 1px rgba(233, 245, 237, 0.1);
  outline: none;
}

.img-icon {
  position: absolute;
  left: 50%;
  top: 55%;
  transform: translate(-50%, -50%) translateZ(50px);
  color: var(--green);
  z-index: 1;
  transition: 300ms;
  opacity: 0;
  width: 30px;
  text-shadow: 0 3px 0 var(--black);
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: 300ms;
}

.img-wrapper:hover .img-icon,
.img-wrapper:active .img-icon,
.img-wrapper:focus .img-icon {
  opacity: 1;
  top: 50%;
}

.img-wrapper:hover .project-img,
.img-wrapper:active .project-img,
.img-wrapper:focus .project-img {
  transform: scale(1.1);
  filter: brightness(0.25);
}

#lightbox {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(20, 22, 21, 0.95);
  border-radius: 25px;
  opacity: 0;
  z-index: -1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 50px;
  transition: opacity 300ms;
}

#lightbox.open {
  opacity: 1;
  z-index: 1;
}

#lightbox img {
  max-width: 100%;
  max-height: 100%;
}

@media screen and (max-width: 1440px) {
  #main {
    padding: 0 80px;
  }
}

@media screen and (max-width: 1280px) {
  #main {
    padding: 0 30px;
    gap: 25px;
  }

  .description {
    font-size: 1rem;
  }

  .skill-wrapper {
    min-width: 50px;
    padding: 15px;
  }
}
@media screen and (max-width: 1024px) {
  body {
    height: auto;
    overflow: auto;
    padding: 0;
  }
  #canvas {
    display: none;
  }
  #main {
    display: flex;
    flex-direction: column;
    padding: 50px;
    padding-bottom: 25px;
    width: 100%;
  }

  #infos {
    max-width: 100%;
    max-height: fit-content;
    align-items: center;
    flex-direction: row;
    justify-content: center;
    gap: 35px;
  }

  #socials {
    display: none;
  }

  #status {
    padding-bottom: 0;
    padding-right: 35px;
    border-right: solid 1px var(--light-dark);
    border-bottom: none;
    align-items: start;
  }

  .status-text {
    align-items: start;
    gap: 10px;
  }

  .tag {
    text-wrap: nowrap;
  }

  #contacts {
    padding-top: 0;
  }

  #socials {
    padding-top: 35px;
  }

  #about {
    max-height: 100%;
    padding-bottom: 50px;
  }

  #brand-name {
    display: none;
  }

  .card#projects {
    overflow-y: visible;
    padding-right: 0;
  }

  .progress {
    display: none;
  }

  .skills-container {
    padding-top: 40px;
  }
  .img-container {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
  .img-wrapper {
    max-width: 100%;
  }

  #lightbox {
    position: fixed;
    padding: 20px;
  }
}

@media screen and (max-width: 768px) {
  #main {
    padding: 25px;
  }

  #infos {
    padding: 30px;
    flex-direction: column;
    max-width: 460px;
    margin: auto;
  }
  #status {
    border-right: none;
    padding-right: 0;
    padding-bottom: 35px;
    border-bottom: solid 1px var(--light-dark);
    align-items: center;
  }

  .status-text {
    align-items: center;
    text-align: center;
  }

  section#about,
  #about:has(#projects.active) {
    padding: 35px 30px;
    max-width: 450px;
    margin: auto;
    height: 100%;
  }

  #nav {
    gap: 15px;
    position: sticky;
    top: 5px;
    left: 0;
    transform: translateX(0);
    margin: auto;
  }
  .nav-button {
    padding: 5px;
    font-size: clamp(0.9rem, 4vw, 1rem);
  }

  .card {
    margin-top: 25px;
  }

  #about {
    padding: 75px 10%;
  }

  .circle {
    left: -45px;
    display: none;
  }

  .bar,
  .card h2::after {
    left: -41px;
    display: none;
  }

  .card-icon {
    left: -65px;
    display: none;
  }

  .skill-wrapper {
    min-width: fit-content;
    padding: 10px;
  }

  .skill-wrapper svg {
    width: 20px;
    aspect-ratio: 1/1;
  }
}

@media screen and (max-width: 410px) {
  .tag {
    text-wrap: nowrap;
  }
  .contact-card {
    gap: 15px;
  }

  .icon-wrapper {
    min-width: fit-content;
    padding: 0;
    background: none;
  }

  .icon-wrapper svg {
    width: 15px;
    height: 15px;
  }

  #nav {
    gap: 8px;
    padding: 4% 8%;
    border-radius: 10px;
  }

  .nav-button {
    padding: 2%;
  }
}

@media print {
  body {
    color: #000;
    background: #fff;
    padding-top: 20px;
    align-items: start;
  }

  #main {
    display: flex;
    flex-direction: column;
    padding: 0;
    padding: 0 20px;
    gap: 0;
  }

  #infos {
    max-width: 100%;
    gap: 20px;
    justify-content: space-between;
    border: none;
    border-radius: 0;
    border-bottom: solid 1px #000;
    padding: 0;
    padding-bottom: 20px;
    background: #fff;
    height: fit-content;
  }

  #status {
    flex-direction: row;
    padding: 0;
    border-bottom: none;
    gap: 25px;
    background: #fff;
  }

  #status img {
    border-radius: 50%;
  }

  #contacts {
    flex-direction: row;
    align-items: start;
    gap: 50px;
    background: #fff;
  }

  .status-text {
    align-items: baseline;
    gap: 3px;
  }

  .ancre,
  .tag,
  .date,
  .description,
  .contact-text h2 {
    color: #000;
    padding: 0;
    background: #fff;
  }

  .arrow,
  #socials,
  .icon-wrapper,
  #nav,
  .circle,
  .bar,
  .web-link,
  #projects,
  #lightbox,
  .card-icon,
  .level::after,
  #loading-page,
  #canvas,
  #brand-name,
  #about::after,
  #about::before,
  #infos::after,
  #infos::before,
  #download-button {
    display: none;
  }

  #about {
    border: none;
    background: #fff;
    border: none;
    height: fit-content;
  }

  #about:has(#projects.active) {
    padding: 0;
  }

  #about,
  .card {
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
  }

  .card {
    gap: 10px;
    width: 100%;
  }

  #about {
    padding-top: 20px;
    gap: 10px;
  }
  .card h2::after,
  .card h2::before {
    display: none;
  }

  .cards-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
  }

  .time-card,
  #about h2 {
    padding-bottom: 0px;
    position: unset;
    font-size: 1.5rem;
  }

  .time-card {
    gap: 3px;
  }

  .time-card h3 {
    font-size: 1.15rem;
  }

  .description {
    font-size: 0.95rem;
  }

  .date {
    font-size: 0.85rem;
    font-style: italic;
  }

  .card:not(.active) {
    visibility: visible;
    position: relative;
    opacity: 1;
    width: 100%;
  }
  #education {
    order: 1;
  }

  #experience {
    position: unset;
    order: 2;
    width: 100%;
  }

  #experience .cards-container {
    grid-template-columns: 1fr 2fr;
  }
  .skills-container {
    position: absolute;
    bottom: -75px;
    width: 100%;
    left: 0;
    gap: 25px;
    padding: 0;
  }

  .skill-wrapper {
    padding: 0;
    background: #fff;
    min-width: fit-content;
  }

  .skill-wrapper svg {
    width: 25px;
    aspect-ratio: 1/1;
    padding: 0;
  }

  .skill-wrapper svg path {
    fill: #000;
    padding: 0;
    background: none;
  }

  #langues {
    padding: 20px 0;
  }

  .langue {
    gap: 5px;
  }

  .level {
    width: fit-content;
    display: block;
    background: #fff;
  }

  .percent-text {
    font-size: 1rem;
  }
}
