
:root{
    /*colors*/

    --clr-moymar: 28 41% 60%;
    --clr-lightmar:33 46% 81%;
    --clr-dark:312 13% 15%;
    --clr-darkmar:24 66% 61%;
    --clr-lightblue: 159 10% 49%;
    --clr-light: 179 38% 79%;
    --clr-rgblightViolet: rgba(169, 175, 192, 0.8);

    /* font size */

    --fs-900: 9.375rem;
    --fs-800: 6.25rem;
    --fs-700: 3.5rem;
    --fs-600: 2rem;
    --fs-500: 1.75rem;
    --fs-400: 1.125rem;
    --fs-300: 1rem;
    --fs-200: 0.875rem;

     /* font-families*/

    --ff-serif: "Bellefair", serif;
    --ff-sans-cond: "Barlow Condensed", sans-serif;
    --ff-sans-normal: "Barlow", sans-serif;
}

/* -------------------- resets            */
*,
*::after,
*::before{
    box-sizing: border-box;
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
p{
    margin:0;
}

body{
    min-height: 100vh;
    font-weight:400;
    overflow-x: hidden;
}

img{
    max-width: 100%;
    display: block;
}


input,
button,
textarea,
select {
   font: inherit;
}


/* remove animations for people who've turned them off */
@media (prefers-reduced-motion: reduce) {  
    *,
    *::before,
    *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
      scroll-behavior: auto !important;
    }
  }

/*--------------------- utility classes */

/* background colors */
.bg-moy{
    background-color: hsl(var(--clr-moymar));
}
.bg-dark{
    background-color: hsl(var(--clr-dark));
}
.bg-darkmar{
    background-color: hsl(var(--clr-darkmar));
}
.bg-lightblue{
    background-color: hsl(var(--clr-lightblue));
}
.bg-lightmar{
    background-color: hsl(var(--clr-lightmar));
}

.bg-lightViolet{
    background-color: var(--clr-rgblightViolet);
}
/* text colors */
.text-moy{
    color: hsl(var(--clr-moymar));
}
.text-dark{
    color: hsl(var(--clr-dark));
}
.text-darkmar{
    color: hsl(var(--clr-darkmar));
}
.text-lightblue{
    color: hsl(var(--clr-lightblue));
}
.text-lightmar{
    color: hsl(var(--clr-lightmar));
}

/* font size */


@media( max-width: 860px){


    :root{
        --fs-900: 6.25rem;
        --fs-800: 3.5rem;
        --fs-700: 2rem;
        --fs-600: 1.75rem;
        --fs-500: 1.125rem;
        --fs-400: 1rem;
        --fs-300: 0.875rem;
        --fs-200: 0.2rem;
    }

    .container-grid--home{
        grid-template-columns: auto;
        grid-template-rows: 1.5fr 1fr;
        
    }

    
    
    }
    
    @media( max-width: 400px){
    
    
    }

.fs-200{
    font-size: var(--fs-200);
}

.fs-300{
    font-size: var(--fs-300);
}

.fs-400{
    font-size: var(--fs-400);
}

.fs-500{
    font-size: var(--fs-500);
}

.fs-600{
    font-size: var(--fs-600);
}

.fs-700{
    font-size: var(--fs-700);
}

.fs-800{
    font-size: var(--fs-800);
}


.fs-900{
    font-size: var(--fs-900);
}

/* text fonts */

.ff-serif{
    font-family: var(--ff-serif);
}

.ff-sans-cond{
    font-family: var(--ff-sans-cond);
}

.ff-sans-normal{
    font-family: var(--ff-sans-normal);
}

.uppercase{
    text-transform: uppercase;
}

/* letter spacing*/

.letter-spacing-1 { 
    letter-spacing: 4.75px; 
} 
.letter-spacing-2 { 
    letter-spacing: 2.7px;
 } 
.letter-spacing-3 {
     letter-spacing: 2.35px; 
    } 


.center{
    text-align: center;
}



/* layout */

.grid{
    display: grid;
    gap:var(--gap, 2rem);
}


.flex{
    display: flex;
    gap:var(--gap, 2rem);
}

.container{
    padding-inline: 2em;
    max-width: 80rem;
    margin-inline: auto;
}

.container-grid{
    margin:0;
    min-height: 100vh;
    text-align: left;
    display: grid;
    
 }
 
 
 .container-grid--home{
     column-gap: var(--container-gap, 2rem);
     place-items: center;
     padding-inline: 1rem;
     grid-template-columns: minmax(2rem, 1fr) repeat(2, minmax(0, 30rem)) minmax(2rem, 1fr);
     padding-bottom: max(6rem, 20vh);
     align-items: end;
 }
 
 
 .container-grid--home *{
     max-width:50ch;
     padding-bottom: 50px;
 }
 
 .container-grid--home > *:first-child{
     grid-column: 2;
 
 }
 
 .container-grid--home > *:last-child{
     grid-column: 3;
 
 }
 
 
 .container-grid--card{
     grid-template-columns: 1fr 1fr;
     grid-template-rows: auto;
     row-gap: var(--container-gap, 1rem);
     column-gap: var(--container-gap, 1rem);
     justify-items: center;
     align-self: center;
 
 }

.flow{
    margin: 3rem  2em;

}


.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap; /* added line */
    border: 0;
  }

  /*    header Styling */
  .main-header{
     /* position: fixed;*/
      display:none;
      width: 100vw;
      height: 7.2vh;
      border-bottom: 2px solid var(--clr-rgblightViolet);
  }
  
.main-header > *:last-child{
    margin-left: auto;
    margin-right: 1em;
}
  .icon{
      width:3rem;
      height: 2rem;
  }
  .main-nav{

     list-style: none;
     padding: 0;
     margin: 0;
     margin-top: 5px;
     --gap:5rem;

  }

  a{
      text-decoration: none;
  }

  .active{
      color: hsl(var(--clr-light)) ;
      border-bottom:2px solid hsl(var(--clr-light));
      padding-bottom: 0.4rem;
  }

  .main-nav > * a:hover,
  .main-nav > * a:focus{
    color: hsl(var(--clr-light )/ .7) ;
    border-bottom:2px solid hsl(var(--clr-light) / .7);
    padding-bottom: 0.4rem;
 }

 
 @media (max-width: 650px){
    .main-header .icon{
        display:none;
    }

    .main-nav{
      gap:6vw;
    }

    

 }

 /* the explore button */

 .btn-explore{
    cursor: pointer;
    position: relative;
    text-align: center;
    display: inline-grid;
    place-items: center;
    padding: 0 2em;
    margin:90px ;
    padding:80px 25px ;
    border-radius: 50%;
    z-index: 1;
 }

 .btn-explore::after{
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-color: hsl(var(--clr-lightmar) / .3);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 500ms linear, transform 750ms ease-in-out;
 }

.btn-explore:hover::after,
.btn-explore:focus::after {
    opacity: 1;
    transform: scale(1.3);
}


@media( max-width: 860px){
    .container-grid{
        display: flex;
    }
    .container-grid--home{
        flex-direction:column;
        max-width:50vw;
        margin-left: 25vw;
        margin-right:25vw;
        
    }
     
  
    
    
    }


/*background image*/
body {
    background-size: cover;
    background-position: bottom center;
    background-repeat: no-repeat;
    /*overflow-y: hidden;*/
}
/* home */
.bg{
    min-width: 50vw;
    background-image: url(./assets/bg.png);
}

.home{
    background-color:transparent;
}

.break{
    border-bottom: 0.5em solid hsl(var(--clr-dark));
    padding-top: 2em;
}
/* about section */

.about, .Projects{
    background-color: white;
    min-height: 100vh;
    width: 100vw;
    padding: 2em;
    padding-top:6em ;
}

.ligne1, .ligne2{
    width: 7vw;
    border:3px solid black;
    border-radius: 10%;
}

.ligne2{
   margin-left:5vw ;
   margin-top: 5px;
   margin-bottom: 10px;
}

.part1{
    max-width: 50vw;
    min-height: 90vh;
}

.part1 a{
    color: white;
    border: 1px solid hsl(var(--clr-dark));
    background-color: hsl(var(--clr-lightblue));
    border-radius: 90px;
    padding: 5px 10px;
    margin-left: 25vw;
}


.part1 a:hover{
    color: hsl(var(--clr-lightblue));
    border: 1px solid hsl(var(--clr-dark));
    background-color: hsl(var(--clr-darkmar));
}

@media(max-width:786px){
    .part1 a{
        color: white;
        border: 1px solid hsl(var(--clr-dark));
        background-color: hsl(var(--clr-lightblue));
        border-radius: 90px;
        padding: 5px 8px;
        margin-left: 5vw;
    }
    
}


.f{
    display: flex;
    min-height:100vh;
    flex-direction:row;
}


@media(max-width:630px){
   .f{
       display: flex;
       min-height:100vh;
       flex-direction:column;
   }
    

}


.part1 p{
    padding-bottom: 3rem;
    padding-top: 3rem;
}

.part2, .section1{
    position: relative;
    width: 50vw;
    height: 100vh;
}

.part2 .number{
    position: absolute;
    
}
.part2 img, .section1 img{
   width: 35vw;
   height:25vh;
}

p.scrolldown{
    word-wrap: break-word;
    writing-mode: vertical-lr;
    text-orientation: upright;
    margin-top: 30vh;

}

.scrolldown:after {
    content: "";
    display:inline-block; 
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid black;
    vertical-align: middle;
}

/* about: who am i*/


.who{
    width: 100vw;
    min-height: 100vh;
    padding:2em;
}

.who h3{
    width: 60vw;
}

.numberedTitle .number{
    letter-spacing: 4.72px; 
    padding-right: 10vw;
}

.numberedTitle .number::before{
    content: "";
    display:inline-block;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 10px solid black;
    vertical-align: middle;
    margin-right: 3vw;
}

.who .p2{
    max-width: 40vw;
}

.who .p2 span{
   font-weight: bold;
}
.who .p2 img{
    width: 40vw;
    height: 40vh;
    margin-top: 4vh;
    box-shadow: 5px 5px 5px 0px hsl(var(--clr-moymar));
}


/* passion */
.hobbies, .skills{
    flex-direction: column;
}

.hobbies .numberedTitle{
    height: 50vh;
}

.hobbie , .skill{
    flex-direction: row;
    gap: 5vw;
}
.hobbie .card2{
    box-shadow: 12px 12px 12px 0px hsl(var(--clr-light));
    width: 20vw;
    height: 25vw;
    text-align: center;
    position: relative;
}
.face1{
    width: 15vw;
    height: 15vw;
}
.face1 img{
    width: 10vw;
    height: 10vw;
    margin-left: 5vw;
    margin-right: 5vw;
    margin-top: 3vw;
    margin-bottom: 2vw;
}

.hiddenP{
    position: absolute;
    display: none;
    top: 5px;
    left: 5px;
    font-weight: bold;
}
.card2:hover{
    opacity: 0.5;
}

.card2:hover .hiddenP{
    display: inline-block;
}

.card2:hover .face1, .card2:hover h4{
    visibility: hidden;
}

/* skills */

.skills .numberedTitle{
    height: 15vh;
}

.skill{
    flex-direction: column;
}

  .skill figure{
       flex-direction: column;
   }

   .skill .frontend,.skill .programming, .skill .machine, .skill .technolo{
       flex-direction: column;
   }

   .skill .bar{

    padding: 0.5em 0.8em;
    text-align: center; 

   }
   .skill .bar1{
       border: 2px solid brown;
       background-color: brown;
   }

   .skill .bar2{
    border: 2px solid darksalmon;
    background-color: darksalmon;
}

.skill .bar3{
    border: 2px solid darkturquoise;
    background-color: darkturquoise;
}

.skill .bar4{
    border: 2px solid rgb(171, 209, 0);
    background-color: rgb(171, 209, 0);
}
.frontend, .programming, .machine, .technolo{
    gap: 0;
}


/*to see the experience */
.hidd1, .hidd2, .hidd3, .hidd4, .hidd5, .hidd6, .hidd11, .hidd12, .hidd12, .hidd13, .hidd14, .hidd15, .hidd16, .hidd21, .hidd22{
    display: none;
    position: absolute ;
}

.a1:hover .hidd1, .a2:hover .hidd2, .a3:hover .hidd3, .a4:hover .hidd4, .a5:hover .hidd5, .a6:hover .hidd6,
.a11:hover .hidd11, .a12:hover .hidd12, .a13:hover .hidd13, .a14:hover .hidd14, .a15:hover .hidd15, .a16:hover .hidd16,
.a21:hover .hidd21, .a22:hover .hidd22{
    display: flex;
}

.a15{
    padding-inline: 15px;
}


@media(max-width:630px){
    .skill{
        flex-direction: row;
        gap: 6%;
    }

    .skill .bar{
        
    }

    .skill .content{
        flex-direction: column;
        gap: 2px;
    }

    .skill .a{
        display:flex;
        flex-direction: row;
    }
 
    .a .hidd1, .a .hidd2, .a .hidd3, .a .hidd4, .a .hidd5, .a .hidd6,
    .a .hidd11, .a .hidd12, .a .hidd13, .a .hidd14, .a .hidd15, .a .hidd16,
    .a .hidd21, .a .hidd22{
        padding-left: 23vw;
    }
 }

/* projects */
.section2{
    padding-top: 50vh;
}


.listProject{

    width: 100vw;
    margin: 1em;
    margin-right: 4em;
    grid-template-columns: 40vw 40vw;
    grid-template-rows: auto;
    grid-column-gap: 1px;
    color: white;
    margin-left: 10vw;
}


.cardPro{
    position: relative;
}
.listProject .desc{
    display: none;

}

.cardPro:hover .desc{
    display: flex;
    position: absolute;
    top: 1em;
    left: 3em;
    flex-direction: column;

}

.cardPro:hover .image{
   display: none;
}

.cardPro:hover .desc{
    background-color: var(--clr-dark);
}


@media(max-width:630px){
  
.listProject{
    min-height:100vh;
    grid-template-columns: 80vw;
    grid-template-rows: auto ;
    grid-column-gap: 1px;
    margin-left: 10vw;

}

 }


/*footer */

footer{
    height: 30%;
}
footer .conta{
    width: 40vw;
    margin-left: 37vw;
    padding: 15px;
    padding-top: 2em;
}

.contFooter{
    position: relative;
    height: 35%;
    margin-top: 20%;
}
.arrowContai{

    border: 1px solid black;
    padding: 10px 15px;
    position: absolute;
    background-color: hsl(var(--clr-lightmar));
    top: -20px;
    left: 48%;
}

.arrow {
    border: solid black;
    border-width: 0 3px 3px 0;
    display: inline-block;
    padding: 3px;
  }
  

  
.down {
    transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
  }


  
@media(max-width:650px){
  

    footer .conta{
        width: 40vw;
        margin-left: 25vw;
        
    }
    footer svg{
        width: 30px;
        height:30px;
    }
    
    
     }