@import url('https://fonts.googleapis.com/css2?family=Bitcount+Prop+Single:wght@100..900&family=Dancing+Script:wght@400..700&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
@import url("https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css");
@import url('https://fonts.googleapis.com/css2?family=Bungee&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');



*{
    margin:0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Montserrat", sans-serif;
    scroll-behavior: smooth;
}

html{
    scroll-behavior: smooth;
}

#header{
    position: sticky;
    top:20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding:20px;
    background-color: rgba(127, 255, 212, 0.381);
    border-radius: 50px;
    margin:20px;
}

#header a{
    color:black;
    text-decoration: none;
    text-align: center;
    font-size: 20px;
    font-weight: bold;
}

#header a:hover{
    color:red;
}

#loader{
    position:fixed;
    top:0;
    left:0;
    height:100vh;
    width:100vw;
    display: flex;
    align-items: center;
    color: white;
    flex-direction: column;
    gap:40px;
    justify-content: center;
    background-color: black;
}

#circle{
    height:50px;
    width:50px;
    border-radius: 50px;
    border:5px solid grey;
    border-top:5px solid white;
    animation:circle 2s linear infinite; 
}


@keyframes circle{
    from{
        transform:rotate(0deg);
    }to{
        transform:rotate(360deg);
    }
}

#home,#aboutme,#skills,#projects,#contactme{
    height:100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background-color: white;
}

#home{
    background:transparent;
    gap: 20px;
}

#home-display{
    text-align: center;
    border-radius: 50px;
    border:2px solid black;
    height:40px;
    background-color: rgba(127, 255, 212, 0.381);
}

#home-bar{
    display: flex;
    align-items: center;
    justify-content: center;
    gap:40px;
    flex-direction: column;
    padding:20px;
    width:80vw;
    border-radius: 50px;
    background-color: rgba(255, 255, 255, 0.381);
}


#vid{
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: -1;
}

#footer{
    display:flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color:black;
    background-color: whitesmoke;
    padding:20px;
    border-radius: 50px;
    margin:20px;
}


#skills{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    flex-wrap: wrap;
    gap:80px;
    width:100%;
    background-color:rgba(255, 255, 255, 0.381) ;
}

.skill-bar{
    width:25vw;
    height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    gap:40px;
    background-color: rgba(255, 255, 255, 0.761);
    border-radius: 50px;
}

.skill-bar:hover{
    transform: translateY(-10px);
    background-color:  rgba(255, 255, 255, 0.561);
}
.contactme-img{
    width:64px;
    height:64px;
}

#contactme{
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #23c8ff6f;
}

#contactme-bar{
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-direction: row;
    background-color: #7cc6fe88;
    width:40vw;
    height:30vh;
    border-radius: 50px;
}


#home-text{
    font-size: 60px;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    border-right: 3px solid black;
    width: 0;
    animation: typing 4s steps(20) infinite,
               blink 0.7s step-end infinite;
}

@keyframes typing{
    0%{ width: 0 }
    50%{ width: 21ch }
    100%{width: 10ch}
}

@keyframes blink{
    50%{ border-color: transparent }
}

#home-para{
    font-size: 20px;
}

#aboutme{
    background-color: #1986a17d;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    gap:20px;
}

#aboutme-pic{
    width:21vw;
    height:41vh;
    background-color: #1986a1af;
    display: flex;
    align-items: center;
    justify-content: center; 
    border-radius: 50px;
}

#aboutme-text{
    width:40vw;
    height:40vh;
    background-color: #1986a1af;
    display:flex;
    align-items: center;
    justify-content: center;
    padding:20px;
    border-radius: 50px;
    line-height: 1.5rem;
}

span{
    font-weight: bold;
}

#mobile{
    display: none;
}

#aboutme-pic img{
    border-radius: 125px;
    width:256px;
    height:256px;
    border:5px solid black;
}

/* #################################################################### */

@media (max-width:768px){
    *{
        font-family: Montserrat;
    }
    #home,#aboutme,#skills,#projects,#contactme,#header,#footer{
        display:none;
    }

    #mobile{
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        background-color: #222222;
        text-align: center;
        height:100%;
    }


    /* #mobile-header{
        display: none;
        background-color:rgb(154, 230, 255);
        font-size: 10px;
        border-radius: 50px;
        border: 2px solid black;
        margin:5px;
        padding:5px;
    } */
    #mobile-home,#mobile-aboutme,#mobile-education,#mobile-skills,#mobile-experience,#mobile-contactme{
        height:80vh;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        width:100%;
    }
    #mobile-home{
        background-color:transparent;
    }
    #mobile-aboutme{
        background-color:#222222;
    }
    #mobile-education{
        background-color:#222222;
    }
    #mobile-skills{
        background-color:#222222;
    }
    #mobile-experience{
        background-color:#222222;
    }
    #mobile-contactme{
        background-color:#222222;
    }
    #mobile-home-container1{
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-direction: column;
        margin-top: 25px;
        width:100%;
        gap:20px;
        background: transparent;

        /* border: 1px solid rgba(255,255,255,0.18);

        border-radius: 60px; */
    }

    #mobile-home-display{
        text-align: center;
        border-radius: 50px;
        border:2px solid rgba(255,255,255,0.2);
        height:20px;
        font-size: 10px;
        color:white;
        background-color: black;
        margin:10px;
        animation: glow 1s alternate-reverse infinite;
    }

    @keyframes glow{
        0%{background-color: black;
        color: white;}
        100%{
            background-color: white;
            color: black;
        }
    }



    #mobile-home-text{
        font-size: 15px;
        font-weight: bold;
        white-space: nowrap;
        font-family: Inter;
        overflow: hidden;
        margin-top: 20px;
        color:white;
        border-right: 3px solid rgb(255, 255, 255);
        width: 0;
        animation: typing 4s steps(20) infinite,
                blink 0.7s step-end infinite;
    }

    @keyframes typing{
        0%{ width: 0 }
        50%{ width: 18ch }
        100%{width: 0}
    }

    @keyframes blink{
        50%{ border-color: transparent }
    }

    #mobile-welcome-text{
        margin:10px;
        padding:20px;
        font-family: Montserrat;
        font-size: 25px;
        color: white;
        text-wrap: nowrap;
    }

    span{
        color:rgb(255, 0, 0);
        font-size: 30px;
    }

    #mobile-home-para{
        color: white;
        font-family: Montserrat;
        line-height: 20px;
        font-size: 10px;
    }

    .highlight{
        color:red;
        font-size:10px;
    }
    
    #mobile-profile-1{
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    #mobile-profile-2{
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    button{
        width:50px;
        height:50px;
        background-color:transparent;
        display:flex;
        align-items:center;
        justify-content:center;
    }

    img{
        width:50px;
        height: 50px;
    }

    #mobile-link-section{
        margin:10px;
        padding:20px;
        display: flex;
        align-items: center;
        flex-direction: row;
        justify-content: space-between;
        border:1px solid rgb(73, 73, 73);
        border-radius: 80px;
        width:80vw;
    }

    #mobile-jk-logo{
        width:80px;
        border-radius: 50px;
        height:80px;
        margin:20px;
        background-color: #222222;
    }

    #mobile-resume{
        text-decoration: none;
        color: white;
        background-color: transparent;
        padding:10px;
        margin:30px;
        border: 1px solid white;
        font-family: Montserrat;
        border-radius: 80px;
    }

    #mobile-aboutme-container{
        border:1px solid rgba(255,255,255,0.2);
        border-radius: 50px;
        width:90%;
        height:40vh auto;
        padding: 20px;
    }
    #mobile-school,#mobile-college{
        color: white;
        font-family: Montserrat;
        line-height: 20px;
        font-size: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        text-align: left;
        color: white;
        width:80vw;
        margin:10px;
        padding:20px;
        border-radius: 50px;
        border: 1px solid rgba(255,255,255,0.2);
    }

    #mobile-programming-languages,#mobile-web-development,#mobile-tools-version{
        display: flex;
        align-items: center;
        justify-content: center;
        border:1px solid rgba(255,255,255,0.2);
        color: white;
        padding:20px;
        font-family: Montserrat;
        flex-direction: column;
        border-radius: 50px;
        margin:20px;
        width:80vw;
    }

    ul{
        margin: 10px;
        list-style:circle;
    }
    li{
        margin: 5px;
    }
    h2{
        text-decoration: underline;
    }
    h1{
        font-size:30px;
        font-family: Inter;
        color:red;
        margin: 30px;
    }

    #mobile-contactme{
        color: white;
    }
    #mobile-form-contactme{
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        border: 1px solid rgba(255,255,255,0.2);
        padding: 20px;
        height:30vh;
        width:60vw;
        gap:20px;
        border-radius: 80px;
        margin: 20px;
        color: white;
    }

    #mobile-header{
        position:fixed;
        top: 0;
        left: 0;
        width: 100%;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        padding: 10px 15px;
        background-color: #22222253;
        z-index: 100;
    }

    #menu-btn{
        font-size:25px;
        background:#222222;
        color:white;
        border:none;
        padding:10px 15px;
        border-radius:10px;
    }

    #mobile-menu{
        position: fixed;
        top: 0;
        left: -250px;      /* hide menu outside screen */
        width: 250px;
        height: 100vh;
        z-index: 1000;

        background: rgba(0,0,0,0.8);
        backdrop-filter: blur(10px);

        display: flex;
        flex-direction: column;
        padding: 30px;

        transition: 0.3s ease;
    }

    #mobile-menu.show{
        left: 0;
    }

    #mobile-menu a{
        font-family: Montserrat;
        color:white;
        text-decoration:none;
        padding:8px 0;
        font-size:14px;
    }

    #mobile-menu a:hover{
        color:red;
        background-color: white;
    }

    #mobile-undergraduate,
    #mobile-hacktoberfest{
        width:90%;
        background:transparent;
        border:1px solid rgba(255,255,255,0.2);
        font-family: Montserrat;
        border-radius:20px;
        padding:20px;
        margin:15px 0;
        color:white;
        display:flex;
        flex-direction:column;
        gap:6px;
        text-align:left;
    }

    #mobile-undergraduate h2,
    #mobile-hacktoberfest h2{
        font-size:12px;
        font-weight:bold;
    }

    #mobile-undergraduate h3,
    #mobile-hacktoberfest h3{
        font-size:10px;
        font-weight:600;
        color:#d0d0d0;
    }

    #mobile-undergraduate p,
    #mobile-hacktoberfest p{
        font-size:8px;
        line-height:1.4;
    }

    #mobile-hacktoberfest ul{
        padding-left:15px;
    }

    #mobile-hacktoberfest li{
        font-size:10px;
        line-height:1.4;
    }
    #mobile-github:hover{
        transform: translateY(-4px);
    }
    #mobile-instagram:hover{
        transform: translateY(-4px);
    }
    #mobile-linkedin:hover{
        transform: translateY(-4px);
    }
    #mobile-aboutme-container:hover{
        transform: translateY(-6px);
        background-color:#2222222a;
        border: 1px solid rgba(255, 255, 255, 0.701);
    }
    #mobile-school:hover{
        transform: translateY(-6px);
        background-color:#2222222a;
        border: 1px solid rgba(255, 255, 255, 0.701);
    }
    #mobile-college:hover{
        transform: translateY(-6px);
        background-color:#2222222a;
        border: 1px solid rgba(255, 255, 255, 0.701);
    }
    #mobile-programming-languages:hover{
        transform: translateY(-6px);
        background-color:#2222222a;
        border: 1px solid rgba(255, 255, 255, 0.701);
    }
    #mobile-web-development:hover{
        transform: translateY(-6px);
        background-color:#2222222a;
        border: 1px solid rgba(255, 255, 255, 0.701);
    }
    #mobile-tools-version:hover{
        transform: translateY(-6px);
        background-color:#2222222a;
        border: 1px solid rgba(255, 255, 255, 0.701);
    }
    #mobile-undergraduate:hover{
        transform: translateY(-6px);
        background-color:#2222222a;
        border: 1px solid rgba(255, 255, 255, 0.701);
    }
    #mobile-hacktoberfest:hover{
        transform: translateY(-6px);
        background-color:#2222222a;
        border: 1px solid rgba(255, 255, 255, 0.701);
    }
    #mobile-footer{
        color: white;
        margin:10px;
        padding: 10px;
        font-family: Montserrat;
    }
    #mobile-skill-section{
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: row;
        margin:20px;
    }
    .mobile-skill-bar{
        border-radius: 60px;
        max-width:60px;
        font-size: 10px;
        text-align: center;
        margin:10px;
    }
    .mobile-skill-bar:hover{
        color:red;
        background-color: black;
    }
    .mobile-mail-id{
        display: none;
        font-size: 10px;
        font-family: Montserrat;
    }
}