*{
    margin:0;
    padding:0;
    box-sizing: border-box;
    text-decoration: none;
    border:none;
    outline: none;
    scroll-behavior: smooth;
    font-family: "Poppins",sans-serif;
}
:root{
    --bg-color:#080808;
    --second-bg-color:#fafafa;
    --text-color:white;
    --text-color2:black;
    --main-color:#fafafa; 
    --span-color2: #a6a6a6; 
    --span-color:#fafafa;
    
}

html{
    font-size:60%;
    overflow-x:hidden;
}
body{
    background:var(--bg-color);
    color:var(--text-color);
}

.header{
    position: fixed;
    width:100%;
    top:0;
    left:0;
    padding:4rem 5%;
    padding-right: 40%;
    background:rgba(0,0,0,0.03);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index:1000;
}
#menu-icon{
    margin-top: 4.5rem;
    font-size: 3.5rem;
    color:var(--main-color);
    display:none;
}



span{
    background: linear-gradient(
        270deg,
         var(--span-color) 10%,
         var(--span-color2) 100%
    );
    background-clip: text;
    color: transparent;
}

/*.logo{
    
    font-size: 3rem;
    color: var(--text-color);
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s ease-in-out;
}
.logo:hover{
    transform: scale(1.1);
}

.navbar a{
    font-size: 1.8rem;
    color:var(--text-color);
    margin-right: 3.5rem;
    font-weight: 500;
    transition: 0.3s ease-in-out;
    border-bottom: 3px solid transparent;
}
.navbar a:hover{
    color: var(--main-color);
    border-bottom: 3px solid var(--main-color);
}*/
.space{
    width: 5rem;
}
.nav-bar
{
    position: fixed;
    width: 100%;
    height: 3.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.nav-container
{
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-around;
}
.nav-logo
{
    width: 40%;
    font-size: 3rem;
    color: var(--text-color);
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s ease-in-out;
}
.nav-logo:hover{
    transform: scale(1.1);
}
.nav-items
{
    width: 60%;
    display: flex;
    gap: 1rem;
}

.nav-items a{
    font-size: 1.8rem;
    color:var(--text-color);
    margin-right: 3.5rem;
    font-weight: 500;
    transition: 0.3s ease-in-out;
    border-bottom: 3px solid transparent;
}
.nav-items a:hover{
    color: var(--main-color);
    border-bottom: 3px solid var(--main-color);
}

.gradiant-btn{
    font-size: 1.8rem;
    padding:1rem 2rem;
    border-radius: 3rem;
    background: linear-gradient(
        270deg,
        var(--span-color) 10%,
        var(--span-color2) 100%
    );
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.3s ease-in-out;
    color: white;
    border: none;
    text-wrap: nowrap;
}
.gradiant-btn:hover{
    transform: scale(1.05);
}

section{
    min-height: 100vh;
    padding: 10rem 15%;
}
.home{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15rem;
}

.home-content{
    display: flex;
    flex-direction: column;
    align-items: baseline;
    text-align: left;
    /*justify-content: center;
    margin-top: 3rem;*/
}

.home-content h1{
    font-size: 8rem;
    font-weight: 700;
    margin-top: 1.5rem;
    line-height: 1;
}
.home-content h3{
    /*margin-bottom: 2rem;
    margin-top: 1rem;*/
    margin: 1rem 0;
    font-size: 4rem;
}
.home-content p{
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.8;
}
.home-img{
    border-radius: 50%;
}
.home-img img{
    top:3rem;
    width:17vw;
    border-radius: 50%;
    box-shadow: 0 0 25px var(--main-color);
    transition: 0.4s ease-in-out;
}
.home-img img:hover{
    box-shadow: 0 0 25px var(--main-color),
                0 0 50px var(--main-color),
                0 0 100px var(--main-color);
}

.social-icons a{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    padding: 1rem;
    background: transparent;
    border: 2px solid var(--main-color);
    border-radius: 50%;
    /*width: 4.5rem;
    height: 4.5rem;*/
    color: var(--main-color);
    margin: 3rem 0.5rem;
    transition: 0.3s ease-in-out;
}
.social-icons a:hover{
    color: var(--text-color);
    transform: scale(1.2)translateY(-5px);
    box-shadow: 0 0 10px var(--bg-color);
    background-color:var(--bg-color); 
}
.btn-group{
    display: flex;
    /*align-items: center;*/
    gap: 1.5rem;
}
.btn{
    display: inline-block;
    padding: 1rem 3rem;
    background-color: var(--main-color);
    box-shadow: 0 0 15px var(--second-bg-color);
    border-radius: 3rem;
    font-size: 1.8rem;
    color: var(--text-color2);
    border: 2px solid transparent;
    letter-spacing: 0.1rem;
    font-weight: 600;
    transition: 0.3s ease-in-out;
    cursor: pointer;
}
.btn:hover{
    transform: scale(1.05);
    box-shadow: 0 0 10px var(--second-bg-color),
                0 0 20px var(--second-bg-color);
}

.btn-group a:nth-of-type(2){
    background-color: var(--bg-color);
    color: var(--main-color2);
    border: 2px solid var(--main-color);
    box-shadow: 0 0 15px transparent;
} 
.btn-group a:nth-of-type(2):hover{
    box-sizing: 0 0 25px var(--main-color);
    background-color: var(--main-color);
    color: var(--text-color2);
}
.text-animation{
    font-size: 34px;
    font-weight: 600;
    min-width: 280px;
}
.text-animation span{
    position: relative;
}
.text-animation span::before{
    content: "Web Devloper";
    color:var(--main-color);
    animation: words 20s infinite;
}
.text-animation span::after{
    content: "";
    background-color: var(--bg-color);
    position: absolute;
    width: calc(100% + 8px);
    height: 100%;
    border-left: 3px solid var(--bg-color);
    right: -8px;
    animation: cursor 0.6s infinite, typing 20s infinite;
}
@keyframes cursor{
    to{
        border-left: 2px solid var(--main-color);
    }
}
@keyframes words{
    0%,
    20%{
        content: "Nigger";
    }
    21%,
    40%{
        content: "Digger at Minecraft";
    }
    41%,
    60%{
        content: "Sprayer at CS2";
    }
    61%,
    80%{
        content: "Driver at ETS2";
    }
    81%,
    100%{
        content: "Wood Cutter at The Forest";
    }
}
@keyframes typing{
    10%,
    15%,
    30%,
    35%,
    50%,
    55%,
    70%,
    75%,
    90%,
    95%{
        width: 0;
    }
    5%,
    20%,
    25%,
    40%,
    45%,
    60%,
    65%,
    80%,
    85%{
        width: calc(100% + 8px);
    }
}
.about{
    margin-top: 20%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 10rem;
    background: var(--bg-color);
    /*width: 100%;*/
}
.about-content{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.about-content h2{
    font-size: 5.5rem;
}
.about-content p{
    margin-top: 5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 50%;
    font-size: 1.8rem;
}
.about-content .btn{
    margin: 3rem 0;
}
::-webkit-scrollbar{
    width: 2px;
}
::-webkit-scrollbar-thumb{
    background-color:var(--main-color) ;
}
::-webkit-scrollbar-track{
    background-color: var(--bg-color);
}
.all-titles{
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-direction: column;
    color: var(--text-color);
    font-size: 3.5rem;
    
}
.container{
    margin-top: 5rem;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    flex-flow: wrap;
    font-size: 1.2rem;
}
.skill-box{
    padding: 1rem;
    color: var(--text-color);
    cursor: pointer;
}
.skill-box:hover .img{
    transform: translateY(-10px);
}
.skill-title{
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
}
.skill-title h3{
    color: var(--text-color);
    margin: 0.5rem;
}
.img{
    width: 90px;
    height: 90px;
    position: relative;
    border-radius: 45px;
    background-color: var(--second-bg-color);
    display: flex;
    justify-content:center ;
    align-items: center;
    transition: 0.5s ease;
}
.skill-icon{
    width: 50px;
}
.projects{
    
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background-color: var(--bg-color);
}
.projects-box{
    margin-top: 5%;
     display: grid;
     grid-template-columns: repeat(auto-fit,minmax(100px,1fr));
     place-items: center;
    gap: 3rem;
    row-gap: 5rem;
}
.project-card{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: var(--bg-color);
    border: 2px solid var(--second-bg-color);
    border-radius: 3rem;
    gap:3rem;
    padding: 5rem 2rem;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 0 5px var(--second-bg-color);
    transition: 0.3s ease;
}
.project-card:hover{
    box-shadow: 0 0 10px var(--second-bg-color),
                0 0 10px var(--second-bg-color);
    transform: scale(1.02);
}
.project-card img{
    max-width: 300px;
    border-radius: 2rem;
    object-fit: cover;
}
.project-card p{
    font-size: 1.6rem;
}

.contact{
    padding-top: 3%;
    background-color: var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 2rem;
}
.contact form{
    padding-top: 3%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    text-align: center;
}
.contact form .input-box input,
.contact form textarea{
    width: 100%;
    padding: 2.15rem;
    font-size: 1.8rem;
    color: var(--text-color);
    background-color: var(--bg-color);
    border-radius: 2rem;
    border: 2px solid var(--main-color);
    margin: 1.5rem 0;
    resize: none;
}
.footer{
    background-color: var(--bg-color);
    padding: 50px 0;
}
.footer .social-icons{
    text-align: center;
}
.footer ul{
    display: flex;
    justify-content: center;
    /*text-align: center;*/
    font-size: 1.8rem;
}
.footer ul li{
    display: inline-block;
    margin-left: 20px;
}
.footer ul li a{
    color: var(--text-color);
    border-bottom: 3px solid transparent;
    transition: 0.3s ease-in-out;
}
.footer ul li a:hover{
    border-bottom: 3px solid var(--main-color);
}
.footer .copyright{
    text-align: center;
    margin-top: 40px;
    font-size: 16px;
}
label{
    position: absolute;
    width: 45px;
    height: 22px;
    right: 20rem;
    top: 0rem;
    border: 2px solid;
    border-radius: 20px;
}
label:before{
    position: absolute;
    content: '';
    width:15px;
    height: 15px;
    left: 1px;
    top: 1px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    transition: 0.4s;
}
label.active:before{
    left: 24px;
    background: #000;
}
body.night{
    --bg-color:#fafafa;
    --second-bg-color:#cecbc8;
    --text-color:black;
    --text-color2:white;
    --main-color:#080808;
    --span-color:#080808; 
    --span-color2:#d5d8dc;
}
@keyframes appear{
    from{
        opacity:0;
        scale:0.5;
    }
    to{
        opacity:1;
        scale: 1;
    }
}
.an{
    animation: appear linear;
    animation-timeline: view();
    animation-range: entry 0% cover 40%;
}

/* ------------ Break Points ------------ */

/* For 1250px */
@media screen and (max-width: 1250px) {
    .nav-bar
    {
        padding: 0 10rem;
    }
}


/* For 1000px */
@media screen and (max-width: 1000px) {
    
    .nav-items
    {
        position: absolute;
        top: -50rem;
        width: 100%;
        height: 15rem;
        padding-top:2rem ;
        display: block;
        transition: 0.3s ease-in-out;
        background:rgba(0,0,0,0.03);
        backdrop-filter: blur(10px);
    }
    .nav-items.active
    {
        top: 5.85rem;
    }

    #menu-icon
    {
        margin-top: 1rem;
        margin-right: 5rem;
        display: block;
    }
   
   .nav-list{
    display: flex;
    align-items:center;
    justify-content: center;
    flex-direction: column;
   }
   label{
    top:6rem;
   }
}
