@import url('https://fonts.googleapis.com/css2?family=Righteous&display=swap');



:root{
    --bgColorSkills:#CFBABA;
    --bgColorIntro:#16222D;
    --bgColor:var(--bgColorIntro);
    --flashLightX:50px;
    --flashLightY:50px;
    --grabbedLetterY:0;
    --grabbedLetterX:0
}

body{
    /* background-image: url('images/bg.png'); */
    background-color: var(--bgColor);
    /* z-index: 1; */
    margin: 0;

    /* background-blend-mode: overlay; */
    
}
header{
    position: fixed;
    width: 100%;

  text-align: center;
  /* justify-self: center; */
  /* transform: translateX(90%); */
  /* left: 400px; */
    /* margin-left: auto;
    margin-right: auto; */
    z-index: 100;
}
header ul{
    display: flex;
    flex-direction: row;
z-index: 100;
    justify-content:center;
    gap:80px;

    /* color: white; */
& li{
    color: white;
    font-size: 14px;
    list-style: none;
font-weight: bolder;
cursor: pointer;

}

}


.Intro{
    z-index: 2;
    display: grid;
    background-image: linear-gradient(45deg,var(--bgColorIntro),var(--bgColorSkills));
    /* margin-top: 85px; */
    grid-template-columns:1fr 500px 500px 1fr;
    grid-template-rows: 100px 200px;
    
    /* text-align: center; */
    & article{
        width: 500px;
        /* max-width: 40%; */
            margin-top: 105px;

    }
& article:first-child{
    grid-column-start: 2 ;
    grid-column-end: 3;
    text-align: left;
    & span:not(span:first-child,span:nth-child(2)){
        color: red;
    }
    
& h1{
    
    font-family: Righteous,sans-serif;
    font-size: 4rem;
    color: aliceblue;

}
& p{
    margin-top: -50px;
    color:  white      ;
}

}


& article:last-child{
  
& img{
    position: absolute;
    margin-left: 10%;
    /* width: 470px; */
    height:45% ;
    border-radius: 50%;
    /* filter: grayscale(50%); */
    /* position: fixed; */
    /* transform: scale(1.2); */
    
}
}
}
main{
        
    /* 
    display: flex ; */
    width: 100%;
    /* margin-left: 0%;
    margin-right: 0%; */
    /* background-color: antiquewhite; */
}
main section{
    z-index: 1;
    width: 100%;
    height: 100vh;
    position: fixed;
    inset: 0 0 0 0;
    overflow: hidden;
    
}

.Skill{ 
    /* clip-path: circle(200% at 55% 33%); */
    /* background-color: aqua; */
   
    background-image: linear-gradient(45deg,rgb(172, 53, 53),rgb(37, 53, 158),red);
    background-size: cover;
    z-index: 0;
    /* margin-top: 6%; */
    width: 100%;
    /* align-self: center; */
    text-align: center;
    justify-content: center;
    display: grid;
    grid-template-columns: auto auto auto ;
    /* column-gap: 20px;
    row-gap: 20px; */
grid-template-rows: auto;

& h2, p, img {
    text-align: center;
    justify-self:middle ;
    margin: 2px;
    

}
& article{
    margin-top: 75px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    flex-wrap: nowrap;
    /* padding: 20; */
    
    /* gap: -2px; */
    /* width: 100%; */
    max-width: 100%;
    min-height: max-content;
    /* height: auto;  */
    color: white;
    /* border-width: 1px; */
    & div{
        background-color: rgb(255, 255, 255);
        width: 60px;
        text-align: center;
        display: flex;
        height: 60px;
        justify-content: center;
        border-radius: 10px;
align-self: center;  

}
    & img{
        /* text-align: center; */
        /* justify-self:middle ; */
        /* margin-left:45%; */
        filter: hue-rotate(red)    grayscale(20%) ;
        /* color: red; */
        transform: scale(0.7);
        /* padding: 80; */
        /* background-color: rgb(214, 18, 60); */
        width: 50px;
        height: auto;
    }
}
& article:nth-child(2n){

    background-color:#3F2525;
    
    
}

}

/* initialy active */
.Skill{
    /* clip-path: circle(300px at 40% 50%); */
}
.Intro img{
    width: 300px;
    border-radius: 150px;
}
@media screen and (max-width:756px) {
      
    body{
    }
    .Intro{
        grid-template-columns: auto auto;
        /* grid-template-rows: auto auto auto ; */
        & article{
/* width: 200px; */
max-width: 300px;
            /* background-color:#3F2525; */
            
            font-size: 12px;
 & img{  width: 300px;
    display: none;
    border-radius: 150px;}
        }
    
        & article:nth-child(3n){

            background-color:#3F2525;
            
            
        }
        & article:nth-child(2n){

            background-color:unset;
            
            
        }
    }
    
}


.hangingLetter{
    position: absolute;
    animation: broken_letter;
    animation-duration: 3s;
    animation-iteration-count: 1;
    animation-delay: 0.5s;
    animation-fill-mode: forwards;
    transform-origin: 50% 70%;
    animation-timing-function: cubic-bezier(0.5, 0.8,0 , 1.5);
     


}
@keyframes broken_letter {
    0%{
        /* background-color: rgb(169, 106, 23); */
        transform: rotateZ(0deg) ;
    }50%{
        transform: rotateZ(185deg)  ;
        /* background-color: rgb(105, 66, 14); */
        /* transform: ; */

    }100%{
        transform: translateY(1000px);
    }
    
}
.description{
    position: relative;
margin-left: 47px;
}
.Intro{
    /* z-index: 9; */

}
.darkMode{
    width: 100vw;
    height: 100vh;
    background-color: black;
    z-index: -7;
    position: fixed;
    display: none;
}


.flashLight{
    clip-path: circle(100px at var(--flashLightX) var(--flashLightY));

}

.Contact{
& input{
    width: 170px;
    height: 40px;
}
& video{
    width: 100vw;
    height: 100vh;
    /* text-align: center; */
    position: absolute;
    /* z-index: -40; */
    display: none;

    /* margin-top: -100%; */
    /* display: none; */
}
button{
    border-radius: 20px;
    margin-top: 8%;
    width: 45%;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    /* border: w; */
}
    background-image: linear-gradient(45deg,rgb(197, 198, 171),rgb(37, 53, 158));
    background-size: cover;
    /* z-index: 5; */
    /* margin-top: 6%; */
    width: 100%;
    /* align-self: center; */
    text-align: center;
    justify-content: center;
    display: grid;
    grid-template-columns: auto auto auto ;
    /* column-gap: 20px;
    row-gap: 20px; */
grid-template-rows: auto;

& article:first-child{
position: absolute;
top: 50%;
display: flex;
flex-direction: column;
left: 30%;
}
& article:last-child{
    position: absolute;
    display: grid;
    grid-template-columns: auto auto auto auto;
    column-gap: 25%;
    color: aliceblue;
    top: 50%;
    cursor: grab;

    left: 50%;
  
    }
}

.letterGravity{
    position: absolute;
    left: var(--grabbedLetterX);
    top: var(--grabbedLetterY);
    font-size: 20px;
    pointer-events: none; /* Prevent element from blocking mouse events */


    /* transform: translateX(1000px);
    animation: ; */
}
.letterdisposed{
    position: absolute;
  animation: disposed;
  animation-duration: 1s;
  animation-iteration-count: 1;
    

    /* transform: translateX(1000px);
    animation: ; */
}
@keyframes disposed {
    from{
position: absolute;
left: var(--grabbedLetterX);
top: var(--grabbedLetterY);
    }
    to{
        display: none;
        position: absolute;

        visibility: hidden;
        transform: translateY(2000px);
    }
    
}
