@font-face {
    font-family: "Cabin";
    src: url(../fonts/Cabin-VariableFont.ttf);
}

@font-face {
    font-family: "Bacalisties";
    src: url(../fonts/Bacalisties.ttf);
}


@keyframes slideInUp{
    0%{
        translate: 0 100px;
        filter: blur(4px);
        opacity: 0;
    }

    70%{
        opacity: 0.4;
    }

    100%{
        translate: 0 0;
        filter: blur(0px);
        opacity: 1;
    }
}

@keyframes slideInDown{
    0%{
        translate: 0 -100px;
        filter: blur(4px);
        opacity: 0;
    }

    70%{
        opacity: 0.4;
    }

    100%{
        translate: 0 0;
        filter: blur(0px);
        opacity: 1;
    }
}

@keyframes shine {

    0%{
        -webkit-mask-position: -50%;
    }

    40% {
      -webkit-mask-position: 150%;
    }
    
    60% {
      -webkit-mask-position: -50%;
    }

    80% {
        -webkit-mask-position: -50%;
    }

    100% {
    -webkit-mask-position: -50%;
    }
}

@keyframes rotateItself{
    0%{
        scale: 1;
        opacity: 1;
    }

    50%{
        scale: 0.8;
        opacity: 0.5;
    }

    100%{
        scale: 1;
        opacity: 1;
    }
}

:root {
    --background-image: url(../images/background-darkmode.webp);

    --icon-color: brightness(3);
    --icon-color-instagram: brightness(15);

    --main-text-color: #ffffff;
    --main-title-color: #ffffff;
    --opacity-shine: 0.6;

    --border-color: rgb(228, 161, 255);
    --background-box-color: #ffffff10;
    --background-box-color-hover: #ffffff20;

    --background-footer: #000000;
    --linear-gradient-background: linear-gradient(120deg, #ffa9f910, #ffffff05);
}

html{
    scroll-behavior: smooth;
    font-family: "Cabin";
    width: 100%;
    display: flex;
    justify-content: center;
}

body{
    min-height: 100vh;
    width: 100%;
    color: var(--main-text-color);
    background: var(--background-image);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: top center;
    margin: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

main{
    width: 100%;
    max-width: 1440px;
    box-sizing: border-box;
}

nav{
    width: 100%;
    max-width: 1440px;
}

a, button{
    border: none;
    font-size: 1.1rem;
    color: var(--main-text-color);
    text-decoration: none;
    font-weight: 700;
}

h1{
    font-size: 5rem;
    font-weight: 300;
    margin: 25px 0;
    letter-spacing: 1px;
    animation: slideInUp 500ms ease-out forwards;
    opacity: 0;
    font-family: Bacalisties;
    margin-left: -20px;
    color: var(--main-title-color);
}
  
h2{
    width: fit-content;
    font-size: 2.2rem;
    letter-spacing: 8px;
    font-weight: 500;
    margin: 5px 0;
    background: -webkit-linear-gradient(10deg, #99ACFF, #ff6ea4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    animation: slideInUp 500ms ease-out 200ms forwards;
}

span{
    font-size: 1.1rem;
    color: var(--main-text-color);
    font-weight: 700;
}

.button{
    display: flex;
    align-items: center;
    border-radius: 50px;
    background-color: var(--background-box-color);
    padding: 6px 15px;
    transition: all 300ms ease;
    width: fit-content;
    backdrop-filter: blur(4px);
}

.button::after, .navigation-bar li a::after, .color-theme::after{
    border-radius: 25px;
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    border: 1px solid var(--border-color);
    mask-image: linear-gradient(120deg, rgba(0,0,0,.0) 0%,rgba(0,0,0,.3) 100%);
    mask-size: 100%;
}

.button:hover{
    background-image: var(--linear-gradient-background);
    transition: all 40rgb(255, 255, 255)er(.82,0,.41,.99);
    transform: scale(1.03);
    letter-spacing: 1px;
}

#wcb span#wcb_g{
    color: black;
    border-color: #ffffff;
}

#wcb.wcb-d a#wcb_a{
    background-color: #161616;
    color: white;
    border-color: #ffffff;
}

/* NAVBAR */

.navigation-bar{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 30px 80px;
}

.navigation-bar ul:hover{
    background-color: var(--background-box-color);
}

.navigation-bar ul{
    display: flex;
    column-gap: 30px;
    margin: 0;
    padding: 10px 20px;
    border-radius: 50px;
    transition: all 300ms ease;
    opacity: 0;
    animation: slideInDown 700ms ease-out 400ms forwards;
}

.navigation-bar a{
    display: flex;
    position: relative;
    align-items: center;
    border-radius: 50px;
    background-color: var(--background-box-color);
    padding: 6px 15px;
    transition: all 300ms ease;
}

.navigation-bar li{
    list-style: none;
    cursor: pointer;
}

.navigation-bar a:hover{
    background-color: #FFFFFF;
    transition: all 400ms cubic-bezier(.82,0,.41,.99);
    transform: scale(1.05);
    letter-spacing: 2px;
}

.navigation-bar a:hover span{
    color: #000000;
    transition: all 400ms cubic-bezier(.82,0,.41,.99);
}

.navigation-bar a:hover img{
    filter: brightness(0);
    transition: all 400ms cubic-bezier(.82,0,.41,.99);
}

.navigation-bar img{
    width: 18px;
    margin-right: 8px;
    height: fit-content;
    filter: var(--icon-color);
}

.color-theme{
    display: flex;
    justify-content: start;
    border-radius: 50px;
    background-color: var(--background-box-color);
    padding: 6px;
    height: 100%;
    transition: all 300ms ease;
    cursor: pointer;
    opacity: 0;
    animation: slideInDown 700ms ease-out 200ms forwards;
}

.color-theme:hover{
    background-color: #FFFFFF;
    transform: scale(1.05);
    transition: all 400ms cubic-bezier(.82,0,.41,.99);
}

.color-theme img{
    transition: all 400ms ease-out;
    height: fit-content;
    
}

.color-theme img.dark-theme{
    width: 18px;
    transform-origin: 10px 10px;
}

.color-theme img.bright-theme{
    width: 20px;
    margin: -1px -10px -1px 0px;
    transform: rotateX(-360deg) translateX(-30px);
    opacity: 0;
    filter: var(--icon-color);
}

.color-theme.click img.bright-theme{
    animation: rotateItself 300ms ease-out;
}

.color-theme:hover img.dark-theme{
    transform: rotateX(360deg) translateX(20px);
    opacity: 0;
    filter: brightness(0);
    transition: all 400ms cubic-bezier(.82,0,.41,.99);
}

.color-theme:hover img.bright-theme{
    transform: rotateX(0deg) translateX(-10px);
    opacity: 1;
    filter: brightness(0);
    transition: all 400ms cubic-bezier(.82,0,.41,.99);
}

.popup {
    position: absolute;
    background-color: #333;
    color: #fff;
    padding: 8px 12px;
    margin-top: 10px;
    border-radius: 4px;
    font-size: 14px;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
}

.popup.show {
    opacity: 1;
    visibility: visible;
}






/* FOOTER */

footer{
    display: flex;
    justify-content: center;
    background-color: var(--background-footer);
    width: 100%;
}

footer>div{
    width: 100%;
    max-width: 1440px;
    padding: 60px 80px;
    box-sizing: border-box;
}








/* INDEX */

.index{
    padding: 2vh 80px 15vh;
    display: flex;
    justify-content: space-between;
    align-items: center;
    column-gap: 70px;
}


#myVideo{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index:-100;
    object-fit: cover;
    opacity: 0.6;
    mix-blend-mode: overlay;

    /*color burn 0.1*/
}

.background-image{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index:-99;
    object-fit: cover;
    opacity: 0.04;
    mix-blend-mode: screen;
    filter: blur(20px) brightness(1) hue-rotate(210deg);
}

.naming{
    width: 100%;
}

h1.effect-shine::before{
    content: "Télio Garnier";
    display: block;
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    font-size: 5rem;
    font-weight: 900;
    letter-spacing: 1px;
    color: transparent;
    background: -webkit-linear-gradient(10deg, #99ACFF, #ff6ea4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    mask-image: linear-gradient(-75deg, rgba(0,0,0,.0) 30%, #FFFFFF 50%, rgba(0,0,0,.0) 70%);
    mask-size: 200%;
    animation: shine 7s infinite cubic-bezier(.82,0,.41,.99) 200ms;
    -webkit-text-stroke: 2px #ffffff;
    filter: blur(7px);
    padding: 0px 40px;
    margin-left: -40px;
    opacity: 0.4;
}



h2.effect-shine::before{
    content: "Digital Designer";
    display: flex;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    font-size: 2.2rem;
    letter-spacing: 8px;
    font-weight: 500;
    color: transparent;
    background: -webkit-linear-gradient(10deg, #99ACFF, #ff6ea4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    mask-image: linear-gradient(-75deg, rgba(0,0,0,.0) 30%, #FFFFFF 50%, rgba(0,0,0,.0) 70%);
    mask-size: 200%;
    animation: shine 7s infinite cubic-bezier(.82,0,.41,.99) 200ms;
    -webkit-text-stroke: 3px #ffffff;
    filter: blur(3px);
    padding: 40px;
    margin: -40px;
    margin-top: -45px;
    opacity: var(--opacity-shine);
    width: 100%;
}

h2.effect-shine::after{
    content: "Digital Designer";
    display: flex;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    font-size: 2.2rem;
    letter-spacing: 8px;
    font-weight: 500;
    color: transparent;
    background: -webkit-linear-gradient(10deg, #99ACFF, #ff6ea4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    mask-image: linear-gradient(-75deg, rgba(0,0,0,.0) 30%, #FFFFFF 50%, rgba(0,0,0,.0) 70%);
    mask-size: 200%;
    animation: shine 7s infinite cubic-bezier(.82,0,.41,.99) 200ms;
    -webkit-text-stroke: 3px #ffffff;
    filter: blur(3px);
    padding: 40px;
    margin: -40px;
    margin-top: -35px;
    opacity: var(--opacity-shine);
    width: 100%;
}

.button-instagram{
    margin-top: 80px;
    padding: 6px 25px;
    animation: slideInUp 500ms ease-out forwards 400ms;
    opacity: 0;
    text-wrap-mode: nowrap;
}

.button-instagram span{
    font-size: 1.2rem;
}

.button-instagram img{
    width: 25px;
    margin: 4px;
    height: fit-content;
    margin-right: 20px;
    filter: var(--icon-color-instagram);
    transition: all 200ms ease;
}

.button-instagram:hover img{
    filter: brightness(1);
    transition: all 400ms ease;
}

.items{
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    width: 100%;
    min-height: 500px;
    padding: 20px 20px;
    border-radius: 30px;
    transition: all 300ms ease;
}

.items:hover{
    background-color: var(--background-box-color);
    transition: all 300ms ease;
}

.item{
    border-radius: 25px;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-content: start;
    padding: 30px;
}

.item h3{
    margin: 0;
    margin-top: 9px;
    align-self: flex-start;
    text-wrap: nowrap;
}

.item1{
    grid-column: 1 / 2;
    grid-row: 1;
    opacity: 0;
    animation: slideInUp 500ms ease-out 800ms forwards;
}

.item2{
    grid-column: 2 / 3;
    grid-row: 1;
    opacity: 0;
    animation: slideInUp 500ms ease-out 600ms forwards;
}

.item3{
    grid-column: 1 / 3;
    grid-row: 2;
    opacity: 0;
    animation: slideInUp 500ms ease-out 1000ms forwards;
}

.editing, .graphic-creations{
    align-items: center;
    display: flex;
    width: 100%;
    height: 100%;
}

.graphic-creations img{
    transform: scale(1.18);
}

.editing img{
    transform: scale(1.06);
}

.editing img, .graphic-creations img{
    width: 100%;
    height: fit-content;
}

.web-development{
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.web-development div{
    margin-bottom: 7px;
}

.web-development pre{
    margin-top: 0;
    letter-spacing: initial;
    font-size: 18px;
    word-break: break-all;
    text-wrap: wrap;
    filter: drop-shadow(0 0 0.2rem #ffffff80);
}

.blinking-cursor {
    font-weight: bold;
    font-size: inherit;
    animation: blink 1s step-start infinite; /* Clignotement infini */
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.body-color{
    filter: drop-shadow(0 0 0.1rem #ff6ea460);
}

.inline *{
    display: inline;
}


/* WORK */

main.work-page{
    align-items: center;
    justify-content: center;
    flex-direction: column;
    display: flex;
}

.projects{
    margin: 0 auto;
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: masonry;
}

.myWork{
    text-align: center;
}

.myWork.effect-shine::before{
    content: "My Work";
}

.filters{
    display: flex;
    justify-content: center;
    margin-top: 40px;
    gap: 20px;
    opacity: 0;
    animation: slideInUp 500ms 200ms ease-out forwards;
}

button.button{
    padding: 7px 15px;
    cursor: pointer;
}

button.button.active{
    background-color: white;
    color: black;
}

/* ABOUT ME */

h1.about-me{
    text-align: center;
}

.about-me.effect-shine::before{
    content: "About Me";
}


/* PROJET */

h1.projet{
    text-align: center;
}

h1.projet.effect-shine::before{
    content: attr(data-title);
}

.projet-main{
    display: flex;
    flex-direction: column;
    align-items: center;
}

.description-projet{
    width: 45%;
    text-align: center;
    font-size: 1rem;
    margin-top: 40px;
    opacity: 0;
    animation: slideInUp 500ms 250ms ease-out forwards;
    color: #ffffffcc;
}


/* MASONRY */

.masonry {
    position: relative;
    width: 100%;
    display: flex;
    gap: 30px;
    padding: 60px 2vw;
    max-width: 80vw;
    animation: slideInUp 500ms 400ms ease-out forwards;
    opacity: 0;
  }
  
  .column-masonry {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
  }
  
  .post-masonry {
    align-items: start;
    display: flex;
    flex-direction: column;
    position: relative;
    width: 100%;
    box-sizing: border-box;
    border-radius: 25px;
    padding: 20px 20px 10px 20px;
    transition: transform 0.1s ease-out;
}

.post-masonry:hover {
    /* On ajoute un petit effet d'ombre pour renforcer l'illusion de profondeur */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transform: scale(1.05); /* Petit zoom pour attirer l'attention */
}

.post-masonry img {
    width: 100%;
    border-radius: 20px;
    transition: all 400ms ease;
    filter: brightness(0.7);
    order: 1;
}

.post-masonry img.youtube-icon{
    width: 20px;
    height: 20px;
    margin-left: 10px;
    filter: brightness(1);
}

.post-masonry video {
    width: 100%;
    border-radius: 20px;
    transition: all 400ms ease;
    filter: brightness(0.7);
    order: 1;
}

.post-masonry:hover img {
    filter: brightness(1.05);
    transition: all 400ms ease;
}

.post-masonry h3{
    order: 2;
}

  
  .overlay-masonry {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #161616;
  
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.5s;
  }

  


@media screen and (max-width:767px) {

    
    h2{
        font-size: 1.4rem;
        letter-spacing: 4px;
    }
}

@media screen and (max-width:1024px) {

/* INDEX */

    .index{
        flex-direction: column;
    }

    .naming{
        display: flex;
        align-items: center;
        flex-direction: column;
    }

    .button-instagram{
        margin-top: 40px;
        margin-bottom: 60px;
    }

    .items{
        max-width: 700px;
        width: auto;
    }

    h1{
        font-size: 4rem;
    }

    h1.effect-shine::before{
        font-size: 4rem;
    }

    h2{
        font-size: 1.8rem;
    }

    h2.effect-shine::after{
        font-size: 1.8rem;
    }

    h2.effect-shine::before{
        font-size: 1.8rem;
    }

    .item h3{
        font-size: 1rem;
    }

}

@media screen and (min-width:1920px) {}
