@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    font-family: 'Poppins', sans-serif;
}

html{
    font-size: 62.5%;
}

body{
    width: 100%;
    height: 100vh;
    overflow-x: hidden;
    background-color: black;
    color: white;
}

header{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 9%;
    background-color: black;
    filter: drop-shadow(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.logo{
    font-size: 3rem;
    color: #01fa04;
    font-weight: 800;
    cursor: pointer;
    transition: 0.5s ease;
}

.logo:hover{
    transform: scale(1.1);
}

nav a{
    font-size: 1.8rem;
    color: white;
    margin-left: 4rem;
    font-weight: 500;
    transition: 0.3s ease;
    border-bottom: 3px solid transparent;
}

nav a:hover,
nav a.active{
    color: #01fa04;
    border-bottom: 3px solid #01fa04;
}

@media(max-width:995px){



    
    .logo{
        display: none;
        font-size: 3rem;
        color: #01fa04;
        font-weight: 800;
        cursor: pointer;
        transition: 0.5s ease;
    }
    nav{
        position: absolute;
        display: contents;
        top: 0;
        right: 0;
        width: 40%;
        border-left: 3px solid #01fa04;
        border-bottom: 3px solid#01fa04;
        border-bottom-left-radius: 2rem;
        padding: 1rem solid;
        background-color: #161616;
        border-top: 0.1rem solid rgba(0,0,0,0.1);
    }

    nav.active{
        display: block;
    }

    nav a{
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
    }

    nav a:hover,
    nav a.active{
        padding: 1rem;
        border-radius: 0.5rem;
        border-bottom: 0.5rem solid #01fa04;
    }
}

section{
    min-height: 100vh;
    padding: 5rem 9% 5rem;
}

.home{
    margin-top: 20vh;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8rem;
    background-color:black;
}

.home .home-content h1{
    font-size: 6rem;
    font-weight: 700;
    line-height: 1.3;
}

span{
    color: #01fa04;
}

.home-content h3{
    font-size: 4rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.home-content p{
    font-size: 1.6rem;
}

.home-img{
    border-radius: 50%;
}

.home-img img{
    position: relative;
    width: 32vw;
    border-radius: 50%;
    box-shadow: 0 0 25px solid #01fa04;
    cursor: pointer;
    transition: 0.2s linear;
}

.home-img img:hover{
    font-size: 1.8rem;
    font-weight: 500;
}


.social-icons{
    display: inline-flex;
    border: 0px solid white;
    width:50vh;
    margin-top:20px;
    
 }
 .social-icons h2{
    
    font-size: 25px;
 }

.social-icons a{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background-color: transparent;
    border: 0.2rem solid #01fa04;
    font-size: 2rem;
    border-radius: 10%;
    transition: 0.3s ease;
    color: #01fa04;
}

.social-icons a:hover{
    color: white;
    transform:  translatey(-10px);
    background-color: #5ace0c;
    box-shadow: 0  0 4px #01fa04;
}

.btn{
 
    padding: 1rem 2.8rem;
    background-color: black;
    border-radius: 4rem;
    font-size: 1.6rem;
    color: #b74b4b;
    letter-spacing: 0.3rem;
    font-weight: 600;
    border: 2px solid #b74b4b;
    transition: 0.3s ease;
    cursor: pointer;
}

.btn:hover{
    transform: scale3d(1.03);
    background-color: #b74b4b;
    color: black;
    box-shadow: 0 0 2px #b74b4b;
}

.typing-text{
    font-size: 34px;
    font-weight: 600;
    min-width: 280px;
}

.typing-text span{
    position: relative;
}

.typing-text span::before{
    content: "software Developer";
    color: #01fa04;
    animation: words 8s infinite;
}
.cursor{
    font-weight: 400;
    font-size: larger;
    display: inline-block;
    color: #01fa04;
    animation: blink 0.6s infinite;
    
}

/* blinking animation */

@keyframes blink{
    0%, 100%{
        opacity: 1;
    }
    50%{
       opacity: 0;
    }
}

/*word animation*/

@keyframes words{
    0%, 20%{
        content: "Web Developer";
    }
    21%, 40%{
        content: "Developer";
    }
    41%, 60%{
        content: "Web Designer";
    }
    61%, 80% , 81%, 100%{
        content: "Student";
    }
}

@media (max-width: 1000px){
    .home{
        gap: 4rem;
    }
}

@media(max-width:995px){
    .home{
        flex-direction: column;
        margin: 5rem 4rem;
    }

    .home .home-content h3{
        font-size: 2.5rem;
    }

    .home-content h1{
        font-size: 5rem;
    }

    .home-img img{
        width: 70vw;
        margin-top: 4rem;
    }
}



@media (max-width: 1536px) {
   
}


@media (max-width: 1280px) {
    nav a{
        font-size: 1.8rem;
        color: white;
        margin-left: 4rem;
        font-weight: 500;
        transition: 0.3s ease;
        border-bottom: 3px solid transparent;
    }
    

}


@media (max-width: 1024px) {


}

@media (max-width: 768px) {


    
    nav a{
        font-size: 1.5rem;
        color: white;
        margin-left: 4rem;
        font-weight: 500;
        transition: 0.3s ease;
        border-bottom: 2px solid transparent;
    }
 
}


@media (max-width: 640px) {
    nav a{
        font-size: 1.5rem;
        color: white;
        margin-left: 1rem;
        font-weight: 500;
        transition: 0.3s ease;
        border-bottom: 1px solid transparent;
    }

}


@media (max-width: 475px) {
    nav a{
        font-size: 1.6rem;
        color: white;
        margin-left: 0rem;
        font-weight: 500;
        transition: 0.3s ease;
        border-bottom: 1px solid transparent;
    }
 
}

.home-content{
    animation: 1s appear linear;
    animation-timeline: view();
    animation-range: entry 0;
}


@keyframes appear {
    from{
       
        scale: 0.5;
        transform: translateX(-100px);
    }
    to{
        scale:1;
        transform: translateX(0px);
    }
    
}



@media (max-width: 475px) {


    
    nav{
        position: absolute;
        display: none;
        top: 0;
        right: 0;
        width: 40%;
        border-left: 3px solid #01fa04;
        border-bottom: 3px solid#01fa04;
        border-bottom-left-radius: 2rem;
        padding: 1rem solid;
        background-color: #161616;
        border-top: 0.1rem solid rgba(0,0,0,0.1);
    }
    nav a{
        font-size: 1.6rem;
        color: white;
        margin-left: 0rem;
        font-weight: 500;
        transition: 0.3s ease;
        border-bottom: 1px solid transparent;
    }
 
}


/*---------------showbar-------------*/
.showbar{

    display: none;
    align-content: center;
    flex-direction: column;
    margin-top: 0px;
    width: 40%;
    height:50%;
    background-color:black;
    border:0px solid white;
    z-index: 1000;
}
.showbar a{
    font-size: 2.5rem;
    color: white;
    margin-left: 1rem;
    font-weight: 500;
    transition: 0.3s ease;
    border-bottom: 1px solid transparent;
}
.showbar a:hover{
text-decoration: underline;
color: #01fa04;
}


.sidebar{
display: contents;
color: #01fa04;
cursor: pointer;
transition: 0.5s ease;
margin-right: auto;
}

.sidebar svg:hover{
transform: scale(1.1);
}

.sidebar1{
display: none;
color: #01fa04;
cursor: pointer;
transition: 0.5s ease;
margin-top: 20px;
opacity: 1;
}

.sidebar1 svg:hover{
transform: scale(1.1);
}
@media(max-width:475px){
.sidebar1{
    display: flex;
}
}

@media(min-width:475px){
.sidebar1{
    display: none;
}

}


::-webkit-scrollbar {
    width: 6px; 
    background-color: #000000;
  }
  
 
  ::-webkit-scrollbar-thumb {
    background-color: #3ede09;
    border-radius: 3px; 
    height: 5px;
  }
  

  ::-webkit-scrollbar-thumb:hover {
    background-color: #3ede09;
  }
  

  ::-webkit-scrollbar-track {
    background: #f1f1f1; 
    border-radius: 2px; 
  }