@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,600;1,400;1,600;1,700&family=Rubik:wght@300&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Jost:ital,wght@0,100..900;1,100..900&display=swap');

*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

:root{
    --white-color: #fff;
    --black-color: #1c1c1c;
    --gris-color: #888;
    --main-color: #ddd;
    --second-color :#987750;
    --border-color: #333;
    --transition: all 1s ease;
}
a {
    text-decoration: none;
    color: var(--white-color);
}
 i {
     outline: none;
     border: none;
     background-color: none;
     transition: var(--transition);
     font-size: 1.3em;
     padding: 12px;
     color: var(--main-color);
 }
ul{
    list-style: none;
}
html{
    scroll-behavior: smooth;
      scrollbar-width: thin;
      scrollbar-color: var(--main-color)
}
body{
    /* font-family: 'Poppins', sans-serif; */
    font-family: "Jost",
    sans-serif;
    font-size: 1.1em;
    /* min-height: 1000vh; */
    color: var(--white-color);
  
    overflow-x: hidden;
    background-color: var(--black-color);
}
body.active{
    overflow-y: hidden;
}
img{
    max-width: 100%;
    height: auto;
}
.flex{
    display: flex;
    align-items: center;
}
.d-n{
    display: none;
}

/* loader */
.loader {
    width: 100vw;
    position: absolute;
    z-index: 444664;
    top: 0;
    left: 0;
    background-color: #181715;
    height: 100vh;
    display: flex;
    justify-content: center;
    overflow-x: hidden;
    align-items: center;
}

.sk-cube-grid {
    display: block;
    position: relative;
    z-index: 444444;
    width: 40px;
    height: 40px;
    margin: 100px auto;
}

.sk-cube-grid .sk-cube {
    width: 33%;
    height: 33%;
    background-color: var(--second-color);
    float: left;
    -webkit-animation: sk-cubeGridScaleDelay 1.3s infinite ease-in-out;
    animation: sk-cubeGridScaleDelay 1.3s infinite ease-in-out;
}

.sk-cube-grid .sk-cube1 {
    -webkit-animation-delay: 0.2s;
    animation-delay: 0.2s;
}

.sk-cube-grid .sk-cube2 {
    -webkit-animation-delay: 0.3s;
    animation-delay: 0.3s;
}

.sk-cube-grid .sk-cube3 {
    -webkit-animation-delay: 0.4s;
    animation-delay: 0.4s;
}

.sk-cube-grid .sk-cube4 {
    -webkit-animation-delay: 0.1s;
    animation-delay: 0.1s;
}

.sk-cube-grid .sk-cube5 {
    -webkit-animation-delay: 0.2s;
    animation-delay: 0.2s;
}

.sk-cube-grid .sk-cube6 {
    -webkit-animation-delay: 0.3s;
    animation-delay: 0.3s;
}

.sk-cube-grid .sk-cube7 {
    -webkit-animation-delay: 0s;
    animation-delay: 0s;
}

.sk-cube-grid .sk-cube8 {
    -webkit-animation-delay: 0.1s;
    animation-delay: 0.1s;
}

.sk-cube-grid .sk-cube9 {
    -webkit-animation-delay: 0.2s;
    animation-delay: 0.2s;
}

@-webkit-keyframes sk-cubeGridScaleDelay {

    0%,
    70%,
    100% {
        -webkit-transform: scale3D(1, 1, 1);
        transform: scale3D(1, 1, 1);
    }

    35% {
        -webkit-transform: scale3D(0, 0, 1);
        transform: scale3D(0, 0, 1);
    }
}

@keyframes sk-cubeGridScaleDelay {

    0%,
    70%,
    100% {
        -webkit-transform: scale3D(1, 1, 1);
        transform: scale3D(1, 1, 1);
    }

    35% {
        -webkit-transform: scale3D(0, 0, 1);
        transform: scale3D(0, 0, 1);
    }
}



.grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 700px;
    /* Flexible column + fixed column */
    height: 100vh;
    /* Full viewport height */
    gap: 20px;
    /* Space between the columns */
}
.grid.edit{
     grid-template-columns: minmax(0, 1fr) 500px;
}


.container .wrapper{
    padding: 1em 1.6em;
    /* width: 100%; */
}
/***************header************/

.header{
    /* width: 100%; */
    height: 100vh;
    display: flex;
    align-items: center;
}
.title{
    text-transform: uppercase;
    color: var(--second-color);
}
.main-title {
    position: relative;
    color: var(--main-color);
    font-size: 2.5em;
    margin: 1.3em 0;
    text-transform: capitalize;
}
.main-title::after{
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 180px;
    height: 2px;
    background-color: var(--gris-color);
}
.main-title span{
    text-transform: uppercase;
}
.header .logos{
    width: 170px;
    height: 170px;
}
.info{
    line-height: 1.9;
    color: var(--gris-color);
    font-size: 1.3em;
    font-weight: 300;
}

/****************** biography ***************/
.biography  .flex{
    margin-top: 1.2em;
    
}
.biography .wrap{
    flex-wrap: wrap;
}
.biography  .flex {
    justify-content:space-between;
    gap: 20px;
}
.biography  .flex .box,
.biography  .flex .fath{
    flex: 1;
}
.biography .flex .first p{
    text-transform: uppercase;
    margin: 0.9em;
    color: var(--gris-color);
}
.fath > .flex .answer p{
    margin: 0.9em;
    font-size: 1em;
    text-transform: capitalize;
    align-self: flex-start;
}
.biography .flex .box{
    margin-left: 12px;
}

.box  div{
    border:  2px solid rgb(70, 70, 70);
    padding: 5em;
    display: flex;
    width: auto;
    height: auto;
    justify-content: center;
    transition: var(--transition);
    cursor: pointer;
}
.box  div:hover{
    border-color: var(--second-color);
}
.box  div a {
    position: relative;
}

.box div .en-ver::after{
    content: 'Download  CV' !important;
}
.box  div a::after{
    margin-top: 6px;
    content: 'TELECHARGER CV';
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;

    color:var(--gris-color) ;
    font-size: 1.2em;
}
.box  div a i {
    color: var(--main-color);
    font-size: 3em;
}

/***************education***************/
.education {
    margin-top: 5.3em;
}
.education .title {
    display: inline-block;
    position: relative;
    margin-right: 40px;
    cursor: pointer;
    /* color: var(--main-color) !important; */
    color: var(--gris-color);
}
.education .title.active {
    color: var(--second-color);
}
.education .title:not(:last-of-type)::after{
    content:'';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: -35px;
    width: 30px;
    height: 2px;
    background-color: var(--gris-color);
}
.education .tab-content {
    margin-top: 2.8em;
    display: none;
    transition: var(--transition);
    opacity: 0;
}
.education .tab-content.active{
    display: block;
    opacity: 1;
}
.education .sec{
    padding: 2.2em;
    background-color: #181715;
    margin-bottom: 1.2em;
    position: relative;
}
.education .sec h3{
    letter-spacing: 1.1px;
    font-size: 1.1em !important;
    color: var(--main-color);
}
.education .sec::before{
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    width: 2px;
    height: 40px;
    background-color: var(--gris-color);
}
.education .sec  p{
    margin: 0.8em 0;
    color: var(--gris-color);
}
.education .sec .titre{
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--main-color);
}
.education .sec .titre span{
    color: var(--gris-color);
    font-size: 0.8em;
    margin-left: 0.6em;
}
.education .sec h3{
    font-size: 1.4em;
    font-weight: 400;
}

.skills .class {
    position: relative;
     border: 2px solid var(--second-color);
     padding: 30px;
     margin-bottom: 42px;
     text-align: center;
}
.skills .head{
    position: absolute;
    top: -12px;
    left: 22px;
    z-index: 12;
    font-size: 1.1em;
    padding: 0 12px;
    background-color: var(--black-color);
}


.education .skills .class img{
    width: 110px;
    height: 110px;
    object-fit: cover;
    border-radius: 12px;
    margin: 0 8px;
    transition: all .8 ease;
}
.education .skills .class img:hover{
    transform: scale(1.1) rotateZ(10deg);
    
}
.education .skills .boxs{
    margin: 12px 0;
}
.education .skills .boxs p{
    font-size: 1em;
}
.education .skills .flex{
    flex-wrap: wrap;
    justify-content: space-between;
}

/**************project *********/
.projects{
    margin-top: 5em;
}
.projects .flex{
    flex-wrap: wrap;
    gap:22px;
    /* overflow-x: hidden;   */
}

.projects .project{
    position: relative;
    width: max-content;
    max-width: 430px;
    border-radius: 12px;
    border:2px solid var(--second-color) ;
    padding: 22px;
    margin-left: 12px;
    text-align: center;
}
.projects .project img{
    position: relative;
    width: 100%;
    transition: var(--transition);
}
.projects .project:hover img{
    
    transform: scale(1.1);
}
/*  */
.projects .project .explore {
    padding:2px 8px;
    outline: none;
    cursor: pointer;
    border-radius: 12px;
    border: 2px solid var(--black-color);
    color: var(--white-color);
    background-color: #464646;
    font-size: 16px;
    /* font-family: "poppins"; */
    font-family: "Jost",
    sans-serif;

    text-align: center;
    margin-top: 12px;
    transition: var(--transition);

}
.projects .project .explore:hover{
    background-color: transparent;
    border-color: var(--second-color);
}

.projects .project .explore i{
    padding: 5px;
    margin-top: 2px;
    margin-left: -23px;
}
.projects .details {
    align-items: center !important;
    justify-content: space-between;
    height: auto;
}
.projects .project p{
    margin-top: 12px;
    font-size: 1.1em;
    transition: var(--transition);
}
.projects .project p:hover{
    color: var(--second-color);
}
/* ************contact********** */
.contact{
    margin-top: 5em;
}
.contact .flex input:first-child {
    margin-right: 12px;
}
.contact form input,
.contact form button,
.contact form textarea {
    width: 100%;
    padding: 1.1em;
    margin-top: 12px;
    border: 2px solid var(--border-color);
    background-color: transparent;
    resize: none;
    font-weight: 300;
    /* font-family: "poppins"; */
    font-family: "Jost",
    sans-serif;

    font-size: 1em;
    color: var(--white-color);
}
.contact form button{
    color: var(--white-color);
    cursor: pointer;
    transition: var(--transition);
}
.contact p{
    line-height: 34px;
    font-weight: 300;
    color: var(--gris-color);
    font-size: 1.3em;
    margin: 22px 0;
}

.contact form input:focus,
.contact form button:hover,
.contact form textarea:focus{
    border: 2px solid var(--second-color) !important;
    color: var(--white-color);
    outline: none;
      /* Remove default browser outline, if any */
    box-shadow: none;
}
/**************** footer ****************/
.footer {
    border-top: 2px solid #464646;
    margin-top: 5em;
    padding: 3em 12px;
    position: relative;
}
.footer p{
    line-height: 32px;
    color: var(--gris-color);
    font-size: 1.1em;
}
.footer a{
    color: var(--white-color);
}
.up-btn{
    position: absolute;
    top: -30px;
    width: 60px;
    height: 60px;
    cursor: pointer;
    border-radius: 12px;
    padding: 22px;
    display: flex;
    z-index: 2;
    justify-content: center;
    align-items: center;
    border: none;
    right: 20px;
    background-color: var(--black-color);
    transition: var(--transition);
}

.up-btn i:hover{
    border: 2px solid var(--second-color);
}

/******************** project showing ************* */
.data{
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    z-index: 66463;
    height: 100%;
    background-color: #181715;
    display: grid;
    align-items: center;
    justify-content: center;
    /* overflow-x: hidden; */
    overflow-y: auto;
    display: none;
    transition: var(--transition);
}

.data.active{
    display: grid !important;
    opacity: 1 !important;
    width: 100%;
    height: 100vh !important;
}
.data>div{
    width: fit-content;
    max-width: 900px;
    position: relative;
    padding: 52px;
    max-height: 600px;
    border: 1px solid rgba(255,255,255, 0.2);
    overflow-y: scroll;
    
    font-weight: 300;
    color: var(--gris-color);
    /* font-family: "poppins"; */
    font-family: "Jost",
    sans-serif;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) #111;

}
.data .date{
    margin-bottom: 42px;
    font-size: 1em;

}
.data .information {
   color: var(--gris-color);
   margin: 30px 0;
   /* font-family: 'Jost',Arial, Helvetica,sans-serif; */
   line-height: 1.9;
}

.data .information span{
    color: var(--main-color);
}
  .image img {
      width: 100%;
      height: auto;
      opacity: 0;
      transition: opacity 0.5s ease-in-out;
      /* Transition for image opacity */
  }

  .date,
  .information {
      opacity: 0;
      transition: opacity 0.5s ease-in-out;
      /* Transition for text opacity */
  }
.data .buttons{
    display: flex;
    justify-content: space-between;
    border: 1px solid var(--gris-color);
    padding: 12px;
}
.data .btn:nth-child(1){
    justify-content: flex-start;
    border-right: 1px solid var(--gris-color) ;
}
.data .btn{
    width: 50%;
    background-color: transparent;
    height: 80px;
    font-size: 1em;
    outline: none;
    font-weight: 100 !important;
    cursor: pointer;
    /* font-family: "poppins"; */
    font-family: "Jost",
    sans-serif;

    border: none;
    color: var(--white-color);
    justify-content: flex-end;
    
}
  .data .btn:disabled {
      /* background-color: #ccc; */
      cursor: not-allowed;
  }
.data .btn:hover i{
    margin: 0 20px;
    border: 1px solid var(--second-color);
}
.data  .close {
    position: absolute;
    top: 32px;
    right: 22px;
    color: var(--white-color);
    background-color: transparent;
    border: none;
    z-index: 1223;
    cursor: pointer;
}
.data .close:hover i {
    margin: 0 ;
    border: 2px solid var(--second-color);
}
.data .close i{
    color: var(--white-color);
    font-size: 1.5em;
}

/*************** links *************/
.links{
    position: fixed;
    top: 0;
    right: -500%;
    z-index: 5555;
    width: 0%;
    opacity: 0;
    transition:all .7s ease;
    overflow-x: hidden;
    overflow-y: hidden;
    /* transform: translate(100%); */
    /* Animate both opacity and right */
    height: 100%;
    visibility: hidden;
    background-color: #181715;
     
}
.links.active{
    /* transform: translateX(-0%); */
    /* transition: opacity 1s ease; */
    width: 100%;
    visibility: visible;
    opacity: 1;
    right: 0;
}
.links .flex{
    align-items: flex-start;
}
.links > div{
    padding: 4em !important;
    background-color: #111;
    width: 50%;
    height: 100%;
    position: absolute;
    text-align: left;
    right: 0;
    top: 0;
    justify-content: center;
    flex-direction: column;
}

.links>div p{
    font-weight: bold;
    margin-bottom: 22px;
    color: var(--gris-color)
}
.links>div .deve{
    margin-top: 5rem;
    justify-self: flex-end;
}
.links>div .deve span{
    color: var(--white-color);
}
.links>div ul{
    flex-direction: column;
}
.links>div li {
    margin: 20px 0;
    font-size: 1.1em;
    font-weight: 300;
    /* letter-spacing: 1px; */
    cursor: pointer;
}

.links .close {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: transparent;
    border: none;
    cursor: pointer;
        border: none;
        z-index: 1223;
        cursor: pointer;
}

.links .close:hover i {
        margin: 0;
        border: 2px solid var(--second-color);
    }

    .links .close i {
        color: var(--white-color);
        font-size: 1.9em;
    }

.links>div li:hover a{
    color: var(--second-color);
}
.links .social {
    margin-top: 5em;
    display: flex;
    margin-bottom: -3em;
}
.links .social a {
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    color: var(--gris-color);
    background-color: var(--border-color);
    width: 50px;
    height: 50px;
    margin-right: 12px;
    transition: all .8s ease;
    /* display: inline-block; */
}
.links .social a:hover{
    background-color: var(--gris-color);
}
.links .social a:hover i{
    color: var(--white-color);
}
.links .social a i{
    font-size: 1.4em;
    color: var(--main-color);
}
/********** fixed nav ***************/
.fixed {
    position: fixed;
    top: 0;
    right: 0;
    width: 700px;
    height: 100vh;
    text-align: center;
    padding: 2em;
    border-left: 1px solid rgb(70, 70, 70);
    transition: all 2s ease;
}
.fixed.small{
    max-width: 520px;
    padding: 1em;
    transition:var(--transition);
}
.fixed .menu {
    position: absolute;
    margin-bottom: 83px;
    top: 22px;
    right: 30px;

}
.fixed .menu button {
    text-align: center;
    background-color: transparent;
    border: none;
    color: var(--gris-color);
    font-size: 1em;
    /* font-family: "poppins"; */
    font-family: "Jost",sans-serif;

    cursor: pointer;

}
.fixed .menu button i{
    /* padding-top: 23px; */
    font-size: 1.6em;
}
.fixed> div{
    height: 100%;
    display: grid;
    place-items: center;
    justify-content: center;
}

.fixed .freelancer{
    margin-top: 12px;
    letter-spacing: 1.2px;
    position: relative;
    text-transform: uppercase;
    font-weight: 500;
}
.fixed .freelancer::after{
    position: absolute;
    content: '';
    top: 0;
    right: -10px;
    width: 4px;
    height:30px;
    background-color: green;
    border-radius: 16px;
    z-index: 3223;
}
.fixed .freelancer::before{
    position: absolute;
    content: '';
    top: 0;
    left: -10px;
    width: 4px;
    border-radius: 16px;
    height: 30px;
    background-color: green;
    z-index: 3223;
}
.fixed > div .img-container{
    margin-top: 2.2em;
    position: relative;
    width: 70%;
    min-height: 57%;
    padding: 2em;
    border: 1px solid rgb(70, 70, 70);
}
.fixed > div .sub-container {
    border: 1px solid rgb(70, 70, 70);
    position: absolute;
    top: 15px;
    right: -20px;
    width: calc(100% + 40px);
    height: calc(100% - 30px);
    padding: 1em;
}
.fixed > div .hi{
    margin-top: 12px;
}
.fixed > div .hi p {
    font-size: 1em;
    font-weight: 400;
    text-transform: uppercase;
    color: var(--gris-color);
    letter-spacing: 1px;
    text-align: center;
}
.fixed .hire a {
    text-align: center;
    color: #ccc;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}
@keyframes moveRight {
    0% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(20px);
        /* Change this value for more/less movement */
    }

    100% {
        transform: translateX(0);
    }
}
@keyframes moveLeft {
    0% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(-20px);
        /* Change this value for more/less movement */
    }

    100% {
        transform: translateX(0);
    }
}


.fixed .hire a i{
    margin-top: 12px;
    position: relative;
    color: #ccc;
    transition: transform 1s ease;
    top: 5px;
    animation:  move 1s ease infinite;
}
.fixed .hire a i:nth-child(1){
    animation: moveLeft 1s ease infinite;
}
.fixed .hire a i:nth-child(2){
    animation: moveRight 1s ease infinite;
}
.fixed .hire a:hover i{
    animation: none;
}
.fixed .hire{
    margin-top: 12px;
    color: var(--gris-color);
    font-family: 300 !important;
    display: inline-block;
    position: relative;
    text-align: center;
}
.fixed .hire::before{
    content: '';
    position: absolute;
    left: -24px;
    top: 4%;
    /* transform: translateY(-50%); */
    background-color:green;
    width: 18px;
    height: 18px;
    border-radius:50%;
}

#languageSelect {
    position: fixed;
    top: 28px;
    right: 80px;
    width: 60px;
    z-index: 3244;
    padding: 5px;
    border: 2px solid #ccc;
    border-radius: 5px;
    background-color: transparent;
    font-size: 16px;
    color: var(--gris-color);
    cursor: pointer;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    transition: border-color 0.3s, box-shadow 0.3s;
}




select option {
    cursor: pointer !important;
    background-color: #111 !important;
    padding: 10px;
    font-size: 16px;
}

#languageSelect option:hover {
    background-color: var(--second-color) !important;
}







@media (max-width: 768px) {
    body{
        font-size: 1.1em;
    }
    .grid {
       grid-template-columns: minmax(0, 1fr);
        /* Single column layout */
    }
    .grid.edit{
        grid-template-columns: minmax(0, 1fr);
    }

    .fixed {
        order: -1;
        position: relative;
        /* Make the fixed element stack below the container */
        width: 100%;
        /* Full width on small screens */
        top: unset;
        right: unset;
        border-left: none;
        border-top: 1px solid rgb(70, 70, 70);
        /* Change border position if needed */
    }
    .fixed>div .img-container {
        margin-top: 2.2em;
        position: relative;
        width: 80%;
    }

    .education .skills .boxs p {
        font-size: .8em;
    }
    .main-title {
        font-size: 1.7em;
    }
    .info{
        font-size: 1.1em;
    }
    .education .title{
        font-size: 0.9em;
    }
    .data .buttons {
        padding: 2px;
        flex-wrap: wrap;
    }
    .data .btn {
        height: 60px;
    }
    .data .btn:hover i {
        margin: 0 12px;
    }
    .footer p{
           font-size: 1em;
    }
    .contact form input,
    .contact form button,
    .contact form textarea {
        padding: 1em;
        font-size: 1em;
    }
     .links ul.flex{
        align-items: flex-start;
     }
    .links > div{
        padding: 2.6em  !important;
        align-items: flex-start;
        text-align: left;
        width: 100%;
    }
    .fixed .menu {
        z-index: 43434;
        position: fixed;
        top: 20px;
        opacity: 1;
        visibility: visible;
        transition: all .7s ease;

    }
    .fixed .menu.inactive{
         visibility: hidden;
         opacity: 0;
        
    }
    .contact p{
        font-size: 1.1em;
    }
}



.cursor {
    width: 40px;
    height: 40px;
    border: 1px solid white;
    border-radius: 50%;
    position: absolute;
    transition-duration: 200ms;
    z-index: 334333;
    transition-timing-function: ease-out;
    animation: cursorAnim .5s infinite alternate;
    pointer-events: none;
}

.cursor::after {
    content: "";
    width: 40px;
    height: 40px;
    position: absolute;
    border: 8px solid gray;
    border-radius: 50%;
    opacity: .5;
    top: -8px;
    left: -8px;
    z-index: 334333;
    animation: cursorAnim2 .5s infinite alternate;
}

@keyframes cursorAnim {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(.7);
    }
}

@keyframes cursorAnim2 {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(.4);
    }
}

@keyframes cursorAnim3 {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(3);
    }
    100% {
        transform: scale(1);
        opacity: 0;
    }
}
.expand {
    animation: cursorAnim3 .5s forwards;
    border: 1px solid red;
}






