*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

h1,h2,h3,h4,h5,h6{
    color: royalblue;
}

p{
    color: gray;
}

a{
    text-decoration: none;
}

li{
    list-style: none;
}

html{
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    scroll-behavior: smooth;
}

header{
    z-index: 1000;
    position: fixed;
    width: 100%;
    transition: .2s;
}

header.scroll{
    background: white;
    color: royalblue;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    transition: .2s ease-in-out;
}

header nav {
    display: flex;
    padding: 0em;
}

nav .nav-brand{
    align-self: center;
    font-size: 1.1em;
    color: white;
    font-weight: bold;
    margin: 0 2em;
}

.nav-brand.scroll{
    color: royalblue;
}

.nav-brand:hover{
    text-decoration: none;
    color: white;
}

nav .nav-bar{
    margin-left: auto;
    align-self: center;
    display: flex;
}

.nav-bar .nav-link{
    text-transform: uppercase;
    position: relative;
    font-weight: 600;
    margin: 1em;
    color: white;
    padding: 10px 0px;
}

.nav-link.scroll {
    color: royalblue;
}

.nav-link::before{
    content: '';
    position: absolute;
    margin: 10px 0;
    width: 0%;
    bottom: 0;
    left: 0;
    height: 2px;
    transition: all 500ms ease;
    background-color: white;
}
.nav-link.scroll::before{
    background: royalblue;
}
.nav-link:hover:before{
    width: 100%;
}

.navbar-toggler{
    position: relative;
    display: none;
}


.navbar-toggler div{
    display: block;
    background-color: white;
    height: 3px;
    width: 25px;
    margin-top: 4px;
    margin-bottom: 4px;
    transform: rotate(0deg);
    left: 0;
    border: none;
    opacity: 1;
    transition: 0.2s;
}

.navbar-toggler div.active, div.scroll{
    background: royalblue;
}

.navbar-toggler div.active:nth-child(3){
    background: inherit;
}

.navbar-toggler div.active:nth-child(1){
    transform: rotate(45deg);
    position: absolute;
    margin: 10px;
}

.navbar-toggler div.active:nth-child(2){
    transform: rotate(-45deg);
    position: absolute;
    margin: 10px;
}

@media screen and (max-width: 640px){
    header nav{
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        
    }

    header nav .nav-brand, .nav-bar .nav-link{
        margin: 1rem 1rem;
    }

    header nav .nav-bar{
        display: flex;
        flex-direction: column;
        text-align: center;
        margin: 0;
        height: 0;
        overflow: hidden;
        transition: 0.2s;
        align-self: initial;
    }

    header nav .nav-bar .nav-link{
        margin: 0em;
        padding: 1em;
    }

    header nav .nav-bar .nav-link:hover{
        background: whitesmoke;
    }

    header nav .nav-bar .nav-link:before{
        visibility: hidden;
    }

    header .navbar-toggler{
        display: block;
        position: absolute;
        top: .8rem;
        right: 1rem;
        border: none;
    }
}

.intro{
    height: 100vh;
    position: relative;
    color: white;
    background-size: 100% 100% ;
    background-attachment: fixed ;
}

.intro-content{
    display: flex;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.288);
    height: 100%;
    justify-content: center;
}

.intro-content .container{
    margin: 20;
    text-align: center;
    font-size: 1.2em;
}

.intro-title{
    font-family: cursive;
    font-size: 5em;
    color: white;
}

main .profile{
    margin: 4em;
}


main .about{
    margin: 0em;
    box-shadow: 0 2px 10px rgba(128, 128, 128, 0.5);
    padding: 1em;
    overflow: auto;
    border-radius: 0.5rem;
    display: flex;
}

main .about-info{
    margin: 1em;
}

main .info{
    /* background: whitesmoke; */
    padding: 2em;
    width: max-content;
    display: flex;
    margin-bottom: 1em;
}

main .about .about-info .info div{
    margin: .2em;
}

main .img{
    align-self: center;
    margin: 0 1em 0 0em;
}

main img{
    width: 10em;
    height: 10em;
    border-radius: 50%;
    border: 5px solid royalblue;
}

main .data{
    align-self: center;

}

main .about-me{
    border: 2px solid whitesmoke;
    /* border-radius: 10px; */
    width: 100%;
    height: max-content;
}

main .about-me h5{
    padding: .5em;
    background: whitesmoke;
}

.about-me p{
    padding: 1em;
}

.about-me #projects{
    width: 100%;
    height: 100%;
}

.info:hover, .about-skill:hover, .about-me:hover{
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-radius: .5em;
}

#projects .accordion{
    width: 100%;
    background: whitesmoke;
    border: none;
    padding: 1em;
    cursor: pointer;
    color: royalblue;
    display: flex;
    justify-content: space-between;
    transition: .2s;
}

#projects .accordion:hover, .active{
    background: linear-gradient(to left, royalblue , slateblue );
    color: white;
}

.active-acc-icon{
    transform: rotate(360deg);
}

#projects .panel ul{
    margin: 0em 2em;
    padding: 1em;
    color: gray;
}


#projects .panel{
    height: 0;
    overflow: auto;
    transition: height .2s;
}

.about-me li{
    list-style: initial;
}

main .about-skill{
    border: 2px solid whitesmoke;
    /* padding: 1em; */
}

.about-skill h5{
    padding: .5em;
    background: whitesmoke;
}

main .skill{
    padding: 2em;
}

main .progress{
    height: max-content;
    border-radius: 0%;
}

main .progressbar{
    background: royalblue;
    height: 4px;
    padding: 1em 0;
}

main #my-skill h6{
    color: gray;
    text-align: center;
}

main .progressbar p{
    color: white;
    font-size: .8em;
    text-align: center;
    font-weight: bolder;
}

main #service{
    margin: 2em 0;
}

main #services{
    padding: 1em;
    display: flex;
    justify-content: center;
}

main #services .container{
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border-radius: 1em;
    width: 20em;
    height: 20em;
    text-align: center;
    padding: 1em;
    margin: 1em;
    align-self: center;
    cursor: pointer;
}

main #contact{
    margin: 2em;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border-radius: .5em;
}

main .contact{
    width: 100%;
}

main .contact form{
    padding: 2em;
    background: rgba(65, 105, 225, 0.753);
    color: white;
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    
}

main form input{
    background: inherit;
    color: whitesmoke;
    border: none;
    border-bottom: 1px solid whitesmoke;
    font-family: monospace;
    padding: .5em;
    width: 100%;
}


main .input{
    margin: 1em 0;
    width: 20em;
    align-self: center;
    padding: 0 2em;
}

main form button{
    width: max-content;
    margin: auto;
    border: 2px solid whitesmoke;
    background: rgba(65, 105, 225, 0);
    color: white;
    padding: .5em 2em;
    border-radius: 10em;
    margin-bottom: 1em;
}

main form button:hover{
    background: white;
    color: royalblue;
}

main .social-link{
    margin: 0;
}

.social-link a{
    color: white;
    margin: .2em;
}

footer{
    background: royalblue;
    color: white;
    box-shadow: 0 0 10px rgba(128, 128, 128, 1);
    margin-top: 5em;
}

footer .social-links{
    padding: 5em;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

footer .social-links a{
    margin: .5em;
}

footer address{
    padding: 1em;
    margin: auto;
    display: flex;
    justify-content: center;
    font-family: monospace;
    text-align: center;
    font-family: monospace;
    font-size: 1.2em;
}

footer p{
    color: white;
    margin: 1em;
}

footer .copy{
    padding: 1em;
    text-align: center;
    background: rgba(0, 0, 0, 0.171);
}

.scroll-up{
    position: fixed;
    bottom: 2em;
    right: 2em;
}

.scroll-up button{
    border: none;
    background: white;
    color: royalblue;
    height: 3em;
    width: 3em;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}
@media (max-width: 960px){
    main .profile{
        margin: 0em;
    }

    .about{
        flex-direction: column;
    }
    .intro-title{
        font-family: cursive;
        font-size: 1.5em;
    }

    .about .about-info{
        flex-direction: column;
        margin: 0;
    }

    .about .info{
        flex-direction: column;
    }

    .about .img{
        display: flex;
        justify-content: center;
    }

    .about div{
        width: 100%;
    }

    .about .about-me{
        text-align: center;
        margin: 1em 0;
    }

    main .about{
        align-self: center;
        margin: 1rem;
    }

    .panel ul li{
        text-align: left;
    }

    #services{
        flex-direction: column;
    }

    main #services .container{
        width: 100%;
    }
    .info{
        flex-direction: column;
    }

    footer{
        flex-direction: column;
    }

    footer address{
        flex-direction: column;
    }
}

.preloader{
    position: fixed;
    top: 0;
    height: 100%;
    width: 100%;
    z-index: 2000;
    background: white;
    display: flex;
}

.preloader .loader{
    width: 5em;
    height: 5em;
    border: whitesmoke 5px solid;
    border-top-color: royalblue;
    border-radius: 50%;
    margin: auto;
    animation: linear infinite .5s load;
}

@keyframes load{
    from{
        transform: rotate(0deg);
    }
    to{
        transform: rotate(360deg);
    }
}