/* Epilogue, sans-serif */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: sans-serif;
}

html{
    scroll-behavior: smooth;
}

body{
    position: relative;
    width: 100%;
}

main{
    width: 100%;
}

.loader{
    position: fixed;
    top: -100%;
    width: 100%;
    height: 100%;
    background-color: black;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    font-size: 50px;
    z-index: 5;
    animation: gone 1.5s cubic-bezier(0.86, 0, 0.07, 1);
}

.pointer{
    pointer-events: none;
    position: fixed;
    min-height: 10px;
    min-width: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.8);
    transform: translate(-50%, -50%);
    z-index: 1000;
}

.pointer.hover{
    min-height: 55px;
    min-width: 55px;
    background-color: rgba(255, 255, 255, 0.3);
    transition: min-width .2s ease,  min-height .2s ease;
}

nav{
    position: fixed;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #fff;
    font-family: sans-serif;
    top: 0;
    right: 0;
    width: 100%;
    padding: 10px 30px;
    z-index: 3;
    transition: 0.3s;
}

nav.thick{
    background-color: rgb(3, 4, 10);
    box-shadow: 0px 3px 15px black;
}

nav ul{
    display: flex;
    justify-content: space-between;
    list-style: none;
}

nav .logo{
    font-size: 40px;
    color: goldenrod;
}

.nav-link{
    position: relative;
    text-decoration: none;
    color: #fff;
    padding: 5px 10px;
    margin: 10px 30px;
}

.nav-link:hover, .nav-link.current{
    color: goldenrod;
    text-shadow: 1px 1px 0px black;
}

.nav-link::after{
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: goldenrod;
    border-radius: 20px;
    transition: 0.3s;
}

.nav-link:hover::after, .nav-link.current::after{
    width: 100%;
}

nav .contactBtn{
    display: block;
    min-width: fit-content;
    padding: 10px;
    border: 1px solid goldenrod;
    border-radius: 5px;
    color: #fff;
    box-shadow: 1px 1px 5px black;
    text-decoration: none;
    cursor: pointer;
    transition: 0.3s;
}

nav .contactBtn:hover{
    transform: translateY(-5px);
}

#home{
    padding: 0 70px;
    position: relative;
    overflow: hidden;
    align-items: center;
    justify-content: space-between;
    display: flex;
    background-color: rgb(12, 12, 12);
    height: 650px;
    border-bottom: 1px solid grey;
    background-image: url(../bg_3.jpg);
    background-position: center;
    background-size: cover;
}

.bck-txt{
    font-size: 150px;
    color: rgb(26, 26, 26);
    filter: drop-shadow(2px 3px 2px rgb(20, 20, 20));
    font-weight: bolder;
}

.dp-container{
    align-self: flex-end;
    display: flex;
    align-items: center;
    animation: slideup 1.3s 0.6s cubic-bezier(0.785, 0.135, 0.15, 0.86);
}

.dp{
    width: 450px;
    filter: saturate(0) brightness(0.7);
}

.main-content{
    color: white;
    font-size: 1.2rem;
    z-index: 1;
    margin-top: 50px;
    width: 500px;
    animation: slideleft 1.3s cubic-bezier(0.86, 0, 0.07, 1);
}

.main-txt{
    font-size: 2rem;   
    line-height: 70px;    
}

.changing-txt{
    max-width: fit-content;
    height: 60px;
    border-right: 1px solid white;
    font-family: 'Quicksand';
}
.btn{
    position: relative;
    display: inline-block;
    padding: 10px 20px;
    margin-top: 20px;
    text-decoration: none;
    color: white;
    border: 1px solid goldenrod;
    box-shadow: 2px 3px 5px black;
    border-radius: 3px;
    transition: 0.2s;
    cursor: pointer;
}

.cv-btn::before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;    
    height: 100%;
    width: 100%;
    background-color: goldenrod;
    transition: 0.1s;
    z-index: -1;
}

.cv-btn:hover::before{
    border-radius: inherit;
    width: 0%;
}

.bars{
    display: none;
}

.header{
    position: relative;
    display: inline-block;
    color: white;
    margin-bottom: 80px;
    font-size: 2rem;
    transform: translateY(300px);
    opacity: 0;
    transition: 1s;
}

.header.enter{    
    transform: translateY(0px);
    opacity: 1;
}

.header span{
    color: goldenrod;
}
.header::after{
    content:"";
    position: absolute;
    width: 70%;
    height: 1px;
    bottom: -10px;
    right: 50%;
    transform: translateX(50%);
    border-radius: 20px;
    background-color: goldenrod;
}

section{
    padding-top: 150px;
    padding-bottom: 100px;
    overflow: hidden;
}

/* about section */
#about{
    position: relative;
    background-color: rgb(27, 27, 27);
    color: white;
    text-align: center;
    padding-bottom: 0px;
    border-bottom: 1px solid grey;
}

.about-container{
    position: relative;
    width: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 80px;
    margin-top: 30px;
}

.about-container .img{
    display: flex;
    align-items: flex-end;
    border: 1px solid grey;
    border-radius: 10px;
    box-shadow: 1px 1px 5px black;
    background-color: rgb(6, 6, 8);
    overflow: hidden;
    height: 380px;
    width: 350px;
    box-shadow: 15px 15px rgb(20, 20, 20);
    transition: .8s;
}

.about-container .img:hover{
    border-color: goldenrod;
}

.about-container img{
    width: 350px;
    margin-bottom: -4px;
}

.about-txt{
    width: 500px;
    text-align: start;
    line-height: 30px;
    padding: 10px;
}

.about-txt h3{
    margin-bottom: 20px;
    font-size: 1.6rem;
    color: goldenrod;
}

#about .btn{
    transform: translate(0);
    overflow: hidden;
    padding: 5px 30px;
}

#about .btn::before{
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: goldenrod;
    z-index: -1;
    transition: 0.4s cubic-bezier(.5, 0.5, .5, .3);
}

#about .btn:hover{
    border: 1px solid black;
}

#about .btn:hover::before{
    opacity: 1;
    width: 200px;
    height: 200px;
}

/* skills */ 
.skills{
    transition: 1s;
    opacity: 0;
    padding: 100px 0px;
    margin-top: 40px;
    background-color: rgb(17, 17, 17);
    background-image: url(../bg_3.jpg);
    background-size: cover;
    background-position: center;
}

.skills h2{
    font-size: 2rem;
    margin-bottom: 50px;
    color: goldenrod;
}

.skills.enter{
    transform: translate(0);
    opacity: 1;
}

.skills-container{
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 30px 150px;
    font-size: 15px;
    padding: 30px;
}

.skill{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    border: 0.5px solid grey;
    border-radius: 20px;
    width: 200px;
    height: 200px;
    transform: translateY(150px);
    opacity: 0;
    transition: 1s;
    cursor: default;
}

.skill:hover{
    transform: translateY(-3px);
    border-color: goldenrod;
}

.skills.enter .skill{
    transition: 2s;
    transform: translateY(0);
    opacity: 1;
}

.skill img{
    width: 100px;
    margin-bottom: 10px;
    filter: saturate(0);
    transition: .4s;
}

.skill:hover img{
    filter: saturate(1);
}



.progress.html::after{
    width: 85%;
}
.progress.css::after{
    width: 80%;
}
.progress.javascript::after{
    width: 70%;
}
.progress.react::after{
    width: 50%;
}

/* services section */
#services{
    position: relative;
    background-color: rgb(26, 26, 26);
    text-align: center;
}

.bck-txt.services{
    position: sticky;
    top: 40%;
    transform: translateX(0);
}

#services .container{
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    overflow: hidden;
}

#services .container .box{
    line-height: 1.6rem;
    width: 300px;
    padding: 20px 10px;
    background-color: rgb(14, 14, 14);
    border: .5px solid grey;
    color: white;
    margin: 20px;
    box-shadow: 0px 0px 3px black;
    cursor: default;
    transition: 1.5s, box-shadow 0.4s;
    z-index: 2;
}

#services .container .box:hover{
    transform: translateY(-5px);
    box-shadow: 2px 2px 15px black;
    border: 1px solid goldenrod;
}

#services .container .box:nth-child(even){
    transform: translateX(100vw);
    opacity: 0;
}
#services .container .box:nth-child(odd){
    transform: translateX(-100vw);
    opacity: 0;
}


#services .container .box:nth-child(even).enter, #services .container .box:nth-child(odd).enter{
    transform: translateX(0);
    opacity: 1;
}

.box i{
    font-size: 30px;
    color: goldenrod;
    filter: drop-shadow(2px 2px 3px black);
}

.box h4{
    margin: 15px 0px;
    font-size: 1.3rem;
}

/* projects section */
#projects{
    position: relative;
    text-align: center;
    padding-left: 40px;
    padding-right: 40px;
    background-color: black;
    background-image: url(../bg_3.jpg);
    background-position: center;
    background-size: cover;
}

.projects-container{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 100px 70px;
    margin-top: 70px;
}

.project{
    color: white;
    width: 550px;
    max-height: 400px;
    transform: translateY( 100px);
    opacity: 0;
    transition: transform 1s, opacity 2s;
    z-index: 1;
}

.project.enter{
    opacity: 1;
    transform: translateY(0);
}

.project:hover{
    transform: scale(1.02);
}

.project img{
    border-radius: 3px;
    width: 100%;
}

.project-info{
    margin-top: 15px;
    font-size: 1.1rem;
}

.project a{
    display: inline-block;
    color: white;
    color: goldenrod;
    text-decoration: none;
    margin-top: 6px;
    font-size: 1.25rem;
    border-bottom: 1px solid silver;
    transition: .3s;
}

.project a:hover{
    transform: translateY(-3px);
}

#projects .btn{
    margin-top: 100px;
}

/* contact styling */
#contact{
    position: relative;
    background-color: rgb(26, 26, 26);
    background-image: url(../bg_1.jpg);
    background-position: center;
    background-size: cover;
    color: white;    
    text-align: center;
    border-top: .5px solid silver;
}

.contact-container{
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-details{
    padding: 20px;
    margin: 40px 40px 0px 40px;
    box-shadow: 2px 0px 5px black;
    background-color: rgb(24, 24, 24);
    transform: translateY(100%);
    opacity: 0;
    /* cubic-bezier(0.3, 0.885, 0.5, 2); */
    transition: 1s cubic-bezier(0.3, 0.885, 0.5, 1.5);
}

.contact-details.enter{
    transform: translate(0);
    opacity: 1;
}

.contact-details .detail{
    padding: 20px 5px;
    margin-top: 20px;
    display : flex;
}

.contact-details .detail:hover{
    background-color: black;
}

.contact-details .detail i{
    font-size: 20px;
    padding: 0px 10px;
    color: goldenrod;
}

.socials{
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 50px;
}

.socials i{
    margin: 0px 30px;
    font-size: 30px;
    color: goldenrod;
    filter: brightness(0.7) drop-shadow(2px 2px 1px black);
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.socials i:hover{
    transform: scale(1.2);
    filter: brightness(1) drop-shadow(2px 2px 3px black);
}

#contact-form{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 3.5rem;
    background-color: rgb(24, 24, 24);
    box-shadow: 1px 2px 5px black;
    padding: 30px 50px;
    margin: 10px 30px;
    transform: translateX(100vw);
    opacity: 0;
    transition: 1s ease;
}

#contact-form input, #contact-form textarea{
    border: 1px solid goldenrod;
    outline: none;
    margin: 7px 0px;
    padding: 20px 20px;
    width: 300px;
    height: 50px;
    background-color: rgb(14, 14, 14);
    color: silver;
    box-shadow: 2px 3px 5px black;
}

#contact-form input[type="submit"]{
    background: goldenrod;
    width: auto;
    height: auto;
    padding: 10px 25px;
    font-size: 16px;
    border-radius: 2px;
    color: white;
    cursor: pointer;
    transition: 0.4s;
}

#contact-form input[type="submit"]:hover{
    transform: translateY(-3px);
    background: transparent;
}

#contact-form input::placeholder, #contact-form textarea::placeholder{
    color: grey;
}

#contact-form textarea{
    resize: none;
    height: 150px;
}

#contact-form.enter{
    transform: translate(0);
    opacity: 1;
}

.message-delivered{
    position: fixed;
    background-color: rgb(14, 14, 14);
    border-radius: 30px;
    border-bottom-right-radius: 0px;
    bottom: 10%;
    right: -100%;
    box-shadow: 1px 1px 10px black;
    border: 1px solid goldenrod;
    padding: 20px;
    transition: 1s cubic-bezier(1, 0, 0, 1);
}

.message-delivered.enter{
    right: 10px;
}

footer{
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background-color: rgb(3, 4, 10);
    color: #fff;
}

@media(max-width: 800px){
    nav{
        flex-direction: column;
        justify-content: start;
        align-items: center;
        height: 100vh;
        width: 200px;
        background-color: rgb(14, 14, 14);
        padding-top: 50px;
        box-shadow: 0px 0px 0px black;
        transform: translateX(100%);
        transition: 0.3s ease-in-out;
        z-index: 3;
    }
    nav.thick{
        box-shadow: none;
    }
    nav.show{
        transform: translateX(0);
        box-shadow: -2px 0px 5px black;
    }
    nav ul{
        flex-direction: column;
        align-items: center;
        margin-top: 30px;
    }

    nav ul li{
        margin: 25px;
    }

    .nav-link{
        margin:0;
        padding: 5px;
    }

    nav .logo{
        position: absolute;
        font-size: 1.5rem;
        top: 20px;
        left: 70px;
    }

    .bars{
        display: block;
    }

    .burger{
        display: block;
        position: fixed;
        color: white;
        top: 10px;
        right: 10px;
        font-size: 25px;
        padding: 5px;
        background-color: goldenrod;
        border-radius: 2px;
        box-shadow: -2px 2px 15px black;
        cursor: pointer;
        z-index: 3;
    }
    #home{
        flex-direction: column;
        text-align: center;
        align-items: center;
        padding: 0px;
        padding-top: 70px;
    }
    .dp-container{
        align-self: center;
    }
    .dp{
        width: 300px;
    }
    .bck-txt{
        top: 20%;
        font-size: 70px;
        cursor: default;
    }
    .main-content{
        font-size: 1rem;
        width: 100%;
    }
    .main-txt{
        font-size: 1.5rem;
        line-height: 50px;
    }
    .changing-txt-container{
        min-width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .changing-txt{
        height: 40px;
        font-size: 18px;
    }
    section{
        padding-top: 80px ;
        padding-bottom: 50px;
    }
    .about-txt{
        text-align: center;
        width: 300px;
    }
    .about-container .img{
        margin: 30px 0px;
        width: 250px;
        height: 320px;
    }
    .about-container .img img{
        width: 110%;
    }
    .skills{
        padding: 50px 10px;
    }
    .skills-container{
        gap: 40px 60px;
    }
    .skill{
        width: 120px;
        height: 120px;
    }
    .skill img{
        width: 50px;
    }
    .projects-container{
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
    }
    .contact-container{
        flex-direction: column-reverse;
    }
    .contact-details{
        padding: 10px;
        font-size: 0.8rem;
    }
    .socials i{
        font-size: 20px;
        margin: 0 30px;
    }

}

/* all animations */
@keyframes slideleft{
    0%{
        transform: translate(-100px, 0);
        opacity: 0;
    }
    75%{
        transform: translate(-50%, 0);
        opacity: 0;
    }
    100%{
        transform: translate(0%, 0%);
        opacity: 1;
    }
}
@keyframes gone{
    0%{
        top: 0;
    }
    30%{
        top: 0%;
    }
    100%{
        top: -100%;
    }
}
@keyframes slideup{
    0%{
        transform: translateY(200px);
        opacity: 0;
    }
    100%{
        transform: translateY(0px);
        opacity: 1;
    }
}