@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@200..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap');

@media (max-width: 600px) {



  html {
    cursor: none;
    scroll-behavior: smooth;
    font-size: 16px;
  }


  * {
    margin: 0;
    cursor: none;
  }

  svg {
    position: fixed;
    top: 0;
    left: 0;

    z-index: 1500;
    height: 100%;
    width: 100%;
    pointer-events: none;

    line {
      stroke-width: 60;
      stroke-linecap: round;
    }


  }

  body {
    background: #000000;
    --gap: 5em;
    --line: 1px;
    --color: rgba(255, 255, 255, 0.2);

    background-image: linear-gradient(-90deg,
        transparent calc(var(--gap) - var(--line)),
        var(--color) calc(var(--gap) - var(--line) + 1px),
        var(--color) var(--gap)),
      linear-gradient(0deg,
        transparent calc(var(--gap) - var(--line)),
        var(--color) calc(var(--gap) - var(--line) + 1px),
        var(--color) var(--gap));
    background-size: var(--gap) var(--gap);
    touch-action: auto;
  }

  body::-webkit-scrollbar {
    width: 0.5vw;
  }

  body::-webkit-scrollbar-track {
    background: rgb(0, 0, 0, 0);
  }

  body::-webkit-scrollbar-thumb {
    background-color: #fff;
    border-radius: 20px;
    border: 1px solid rgb(255, 255, 255);
  }

  nav {
    font-family: 'Oswald', sans-serif;
    background-color: rgb(73, 73, 73, 0.4);
    width: 100%;
    height: 60px;
    position: fixed;
    top: 0;
    z-index: 150;
  }

  .list-nav {
    color: #ffffff;
    list-style-type: none;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    height: 60px;
    padding: 0 20px;
    position: relative;
  }

  .name-nav {
    font-size: 24px;
    color: rgb(122, 122, 122);
    text-decoration: none;
    z-index: 151;
  }

  .elmt {
    position: fixed;
    right: 0;
    top: 60px;
    background-color: rgba(0, 0, 0, 0.95);
    height: calc(100vh - 60px);
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 50px;
    transform: translateX(100%);
    transition: transform 0.5s ease-in-out;
  }

  .elmt.nav-active {
    transform: translateX(0%);
  }

  .elem-nav {
    opacity: 0;
    margin: 20px 0;
  }

  .elem-nav a {
    color: white;
    font-size: 20px;
    text-decoration: none;
    transition: color 0.3s ease;
  }

  .elem-nav a:hover {
    color: #888;
  }

  /* Burger Icon */
  .burger {
    display: block;
    z-index: 151;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
  }

  .burger div {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px;
    transition: all 0.3s ease;
    border-radius: 3px;
  }

  /* Burger Animation */
  .burger.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
  }

  .burger.toggle .line2 {
    opacity: 0;
  }

  .burger.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
  }

  /* Animation for links */
  @keyframes navLinkFade {
    from {
      opacity: 0;
      transform: translateX(50px);
    }
    to {
      opacity: 1;
      transform: translateX(0px);
    }
  }






  .pres {
    color: #ffffff;
    justify-content: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 0;
    width: 100%;
    height: 43.7vw;
    margin-top: 10vw;
  }

  h1.ayxxos {
    font-size: 5vw;
    font-weight: 200;
    margin: 0.4em 0;
    color: #ffffff;
    font-family: 'Oswald', sans-serif;
  }

  h1 {
    font-size: 3.5em;
  }



  /* About and skills */

  #Me {
    color: #ffffff;
    background-color: rgb(19, 19, 25);
    height: 140vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 5vw 0;
    font-family: "Lato", sans-serif;
  }

  .about {
    margin-top: 1vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .about h1 {
    color: #ffffff;
    margin-bottom: 3vw;
    font-size: 4.7vw;
    text-align: center;
  }

  .about p {
    color: #ffffff;
    font-size: 3vw;
    width: 70%;
    text-align: center;
  }
  .texts {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

  .skills {
    color: #ffffff;
    margin-top: 1vw;
    display: flex;
    justify-content: center;
  }

  .skills h1 {
    color: #ffffff;
    margin-bottom: 5vw;
    font-size: 4.7vw;
  }

  .skillBox {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3vw;
  }
  .skillBox a {
  text-decoration: none;
}


  .cardSkill {
    width: 17vw;
    height: 20vw;
    color: #ffffff;
  }

  .imgSkill img {
    width: 8vw;
    height: 8vw;
  }

  .topSkill {
    border-radius: 1vw 1vw 0 0;
    height: 12vw;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 0;
    box-shadow: 0 25px 25px rgba(0, 0, 0, 0.25);
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
  }

  .bottomSkill {
    height: 8vw;
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 0;
    border-radius: 0 0 1vw 1vw;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 2vw;

 
  }

  .bottom h2 {
    color: #fff;
  }

  /* Skill Wheel Mobile Styles */
  .skillWheel {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vw;
    margin: 0;
    position: relative;
  }

  .wheelContainer {
    position: relative;
    width: 80vw;
    height: 80vw;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .wheelTitle {
    position: absolute;
    color: #ffffff;
    font-size: 6vw;
    margin: 0;
    z-index: 10;
    text-align: center;
    pointer-events: none;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  }

  .skillIcon {
    position: absolute;
    width: 15vw;
    height: 15vw;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  }

  .skillIcon:hover {
    transform: scale(1.2);
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 12px 48px 0 rgba(255, 255, 255, 0.2);
  }

  .skillIcon.active {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
  }

  .skillIcon img {
    width: 9vw;
    height: 9vw;
    object-fit: contain;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.3));
  }

  .skillCardsContainer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 5vw;
    min-height: 30vh;
    width: 70%;
    gap: 4vw;
  }

  .backToWheel {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 2.5vw 5vw;
    font-size: 3.5vw;
    border-radius: 5vw;
    transition: all 0.3s ease;
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  }

  .backToWheel:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 12px 48px 0 rgba(255, 255, 255, 0.3);
  }

  .skillCards {
    display: none;
    justify-content: center;
    flex-wrap: wrap;
    gap: 3vw;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
    width: 100%;
  }

  /* Button cards*/
  .btn {
    background-color: #ffffff;
    color: #000;
    padding: 0.5vw 1vw;
    border-radius: 0.5vw;
    font-size: 3vw;
    text-decoration: none;
    transition: 0.3s ease-in;
    border: 0.2vw solid #000;
  }

  .btn:hover {
    background-color: #000;
    color: #ffffff;
  }

  .card1,
  .card2,
  .card6 {
    background-color: rgb(255, 255, 255);
    border-radius: 0.5vw;
    width: 25vw;
    height: 45vw;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: space-evenly;
    font-family: "Lato", sans-serif;
  }

  .projectsImgs {
    width: 20vw;
    height: auto;
  }

  .desc {
    color: #000;
    font-size: 2.7vw;
    padding: 0 1.2vw;
    text-align: center;
  }

  .line {
    color: #000;
    width: 20vw;
    height: 0.1vw;
    background-color: #000;
  }

  #Projects {
    margin: 10vw 0;
    justify-content: space-evenly;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 3vw;
  }

  .snow {
    position: absolute;
    z-index: -1;
    top: 0;
    width: 100%;
    height: 53.7vw;
    background-image: url("data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 50 50' style='enable-background:new 0 0 50 50%3B' xml:space='preserve'%3E%3Cstyle type='text/css'%3E.st1%7Bopacity:0.3%3Bfill:%23FFFFFF%3B%7D.st3%7Bopacity:0.1%3Bfill:%23FFFFFF%3B%7D%3C/style%3E%3Ccircle class='st1' cx='5' cy='8' r='1'/%3E%3Ccircle class='st1' cx='38' cy='3' r='1'/%3E%3Ccircle class='st1' cx='12' cy='4' r='1'/%3E%3Ccircle class='st1' cx='16' cy='16' r='1'/%3E%3Ccircle class='st1' cx='47' cy='46' r='1'/%3E%3Ccircle class='st1' cx='32' cy='10' r='1'/%3E%3Ccircle class='st1' cx='3' cy='46' r='1'/%3E%3Ccircle class='st1' cx='45' cy='13' r='1'/%3E%3Ccircle class='st1' cx='10' cy='28' r='1'/%3E%3Ccircle class='st1' cx='22' cy='35' r='1'/%3E%3Ccircle class='st1' cx='3' cy='21' r='1'/%3E%3Ccircle class='st1' cx='26' cy='20' r='1'/%3E%3Ccircle class='st1' cx='30' cy='45' r='1'/%3E%3Ccircle class='st1' cx='15' cy='45' r='1'/%3E%3Ccircle class='st1' cx='34' cy='36' r='1'/%3E%3Ccircle class='st1' cx='41' cy='32' r='1'/%3E%3C/svg%3E");

    animation: animatedBackground 10s linear infinite;
  }

  .snow div {
    position: absolute;
    z-index: -1;
    width: 100%;
    height: 53.7vw;
    background-image: url("data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 50 50' style='enable-background:new 0 0 50 50%3B' xml:space='preserve'%3E%3Cstyle type='text/css'%3E.st1%7Bopacity:0.7%3Bfill:%23FFFFFF%3B%7D.st3%7Bopacity:0.1%3Bfill:%23FFFFFF%3B%7D%3C/style%3E%3Ccircle class='st3' cx='4' cy='14' r='1'/%3E%3Ccircle class='st3' cx='43' cy='3' r='1'/%3E%3Ccircle class='st3' cx='31' cy='30' r='2'/%3E%3Ccircle class='st3' cx='19' cy='23' r='1'/%3E%3Ccircle class='st3' cx='37' cy='22' r='1'/%3E%3Ccircle class='st3' cx='43' cy='16' r='1'/%3E%3Ccircle class='st3' cx='8' cy='45' r='1'/%3E%3Ccircle class='st3' cx='29' cy='39' r='1'/%3E%3Ccircle class='st3' cx='13' cy='37' r='1'/%3E%3Ccircle class='st3' cx='47' cy='32' r='1'/%3E%3Ccircle class='st3' cx='15' cy='4' r='2'/%3E%3Ccircle class='st3' cx='9' cy='27' r='1'/%3E%3Ccircle class='st3' cx='30' cy='9' r='1'/%3E%3Ccircle class='st3' cx='25' cy='15' r='1'/%3E%3Ccircle class='st3' cx='21' cy='45' r='2'/%3E%3Ccircle class='st3' cx='42' cy='45' r='1'/%3E%3C/svg%3E");
    animation: animatedBackground 15s linear infinite;
  }

  @keyframes animatedBackground {
    0% {
      background-position: 0 0;
    }

    50% {
      background-position: 0px 10vw;
    }

    100% {
      background-position: 0 0;
    }
  }


  /* Glitch effect*/

  @keyframes bg-noise {
    100% {
      background-position: 50% 0, 60% 50%
    }
  }

  .glitch a{
  color: #ffffff;
}

  .glitch {
    color: #ffffff;
    position: relative;

    &::after,
    &::before {
      content: attr(data-text);
      position: absolute;
      top: 0;
      left: 0;
      text-align: center;
      color: #fff;
      background: transparent;
      overflow: hidden;
    }
  }



  @keyframes noise-anim {
    0% {
      clip: rect(44px, 9999px, 32px, 0);
      opacity: 1;
    }

    5% {
      clip: rect(70px, 9999px, 10px, 0);
    }

    10% {
      clip: rect(81px, 9999px, 10px, 0);
    }

    15% {
      clip: rect(77px, 9999px, 64px, 0);
    }

    20% {
      clip: rect(24px, 9999px, 87px, 0);
    }

    25% {
      clip: rect(40px, 9999px, 65px, 0);
    }

    30% {
      clip: rect(87px, 9999px, 90px, 0);
    }

    35% {
      clip: rect(50px, 9999px, 14px, 0);
    }

    40% {
      clip: rect(100px, 9999px, 19px, 0);
    }

    45% {
      clip: rect(16px, 9999px, 7px, 0);
    }

    50% {
      clip: rect(17px, 9999px, 91px, 0);
      opacity: .2;
    }

    55% {
      clip: rect(84px, 9999px, 2px, 0);
    }

    60% {
      clip: rect(36px, 9999px, 9px, 0);
    }

    65% {
      clip: rect(66px, 9999px, 3px, 0);
    }

    70% {
      clip: rect(25px, 9999px, 69px, 0);
    }

    75% {
      clip: rect(72px, 9999px, 67px, 0);
    }

    80% {
      clip: rect(28px, 9999px, 40px, 0);
    }

    85% {
      clip: rect(6px, 9999px, 80px, 0);
    }

    90% {
      clip: rect(58px, 9999px, 42px, 0);
    }

    95% {
      clip: rect(22px, 9999px, 87px, 0);
    }

    100% {
      clip: rect(97px, 9999px, 58px, 0);
      opacity: 1;
    }
  }


  @keyframes noise-anim-2 {
    0% {
      clip: rect(66px, 9999px, 73px, 0);
      opacity: .2;
    }

    5% {
      clip: rect(31px, 9999px, 97px, 0);
    }

    10% {
      clip: rect(91px, 9999px, 84px, 0);
    }

    15% {
      clip: rect(51px, 9999px, 72px, 0);
    }

    20% {
      clip: rect(79px, 9999px, 33px, 0);
    }

    25% {
      clip: rect(81px, 9999px, 20px, 0);
    }

    30% {
      clip: rect(86px, 9999px, 64px, 0);
    }

    35% {
      clip: rect(88px, 9999px, 98px, 0);
    }

    40% {
      clip: rect(69px, 9999px, 6px, 0);
    }

    45% {
      clip: rect(24px, 9999px, 68px, 0);
    }

    50% {
      clip: rect(91px, 9999px, 79px, 0);
      opacity: 1;
    }

    55% {
      clip: rect(75px, 9999px, 79px, 0);
    }

    60% {
      clip: rect(84px, 9999px, 32px, 0);
    }

    65% {
      clip: rect(90px, 9999px, 2px, 0);
    }

    70% {
      clip: rect(42px, 9999px, 84px, 0);
    }

    75% {
      clip: rect(48px, 9999px, 14px, 0);
    }

    80% {
      clip: rect(79px, 9999px, 91px, 0);
    }

    85% {
      clip: rect(77px, 9999px, 6px, 0);
    }

    90% {
      clip: rect(99px, 9999px, 75px, 0);
    }

    95% {
      clip: rect(76px, 9999px, 60px, 0);
    }

    100% {
      clip: rect(4px, 9999px, 50px, 0);
      opacity: .2;
    }
  }

  .glitch:before {
    left: -5px;
    text-shadow: 0.2vw 0.1vw #00f;
    clip: rect(0, 900px, 0, 0);
    animation: noise-anim-2 3s infinite linear alternate-reverse;
  }

  .glitch:after {
    left: 3px;
    text-shadow: 0.2vw 0.1vw red;
    clip: rect(0, 900px, 0, 0);
    animation: noise-anim 2s infinite linear alternate-reverse;
  }


  #Contact {
    margin: 10vw 0;
    justify-content: space-evenly;
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    gap: 5vw;

  }

  .card3,
  .card4{
    border-radius: 0.5vw;
    width: 70vw;
    height: 15vw;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
  }

  .discordLogo {
    width: 8vw;
    height: auto;
  }

  .middleCard p {
    color: #000;
    font-family: "Oswald", sans-serif;
    font-weight: 500;
    font-size: 2.7vw;
  }

  .lineCard {
    width: 0.1vw;
    height: 7vw;
    background-color: #000;
  }

  .show {
    display: none;
  }

  /* Selection de texte */
  nav::selection,
  .pres::selection,
  #Me::selection {
    background: #ffffff;
    /* couleur de surlignage */
    color: #000;
    /* couleur du texte sélectionné */
  }

  #Projects::selection,
  #Contact::selection {
    background: #1b1b1b;
    /* couleur de surlignage */
    color: #fff;
    /* couleur du texte sélectionné */
  }
}
