*{
    padding: 0;
    margin: 0;
    font-family: 'M PLUS Rounded 1c', sans-serif;
    /* font-family: 'Playfair Display', serif; */
    letter-spacing: 0.07em;
    text-decoration: none;
}
body{
    background: #111111;
}
.socials{
    padding: 20px 10px 30px;
}
.social-icon{
    font-size: 28px;
    padding: 10px;
    transition: all 0.4s ease-in-out;
    color: #ffffff8c;
}
.social-icon:hover{
    color: #ffffff;
}
.bg-slide>.img {
    animation: imageAnimation 30s linear infinite 0s;
    backface-visibility: hidden;
    background-size: cover;
    background-position: center;
    color: transparent;
    height: 382px;
    left: 0px;
    opacity: 0;
    position: absolute;
    top: 0px;
    width: 100%;
    z-index: -9999999;
}

.bg-slide>.img:nth-child(1) {
    background-image: url('../assets/img/moleculebond.png');
}

.bg-slide>.img:nth-child(2) {
    animation-delay: 6s;
    background-image: url('../assets/img/airbank.png');
}

.bg-slide>.img:nth-child(3) {
    animation-delay: 12s;
    background-image: url('../assets/img/medlab.png');
}
.bg-slide>.img:nth-child(4) {
    animation-delay: 18s;
    background-image: url('../assets/img/neuron.png');
}

@keyframes imageAnimation {
    0% {
        animation-timing-function: ease-in;
        opacity: 0;
    }

    8% {
        animation-timing-function: ease-out;
        opacity: 1;
    }

    17% {
        opacity: 1
    }

    25% {
        opacity: 0
    }

    100% {
        opacity: 0
    }
}
  .primary-button{
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px);
    padding: 15px 40px;
    border-radius: 10px;
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 700;
    font-size: 18px;
    line-height: 24px;
    /* identical to box height */
    text-decoration: none;
    transition: all 0.4s ease-in-out;
    text-align: center;
    color: #FFFFFF;
    margin: 10px;
  }
 .primary-button:hover{
    background: rgba(255, 255, 255, 0.582);
    box-shadow: 0px 8px 16px rgba(255,255,255, .4);
    border: 1px solid rgba(255, 255, 255, 0.699);
    
 }
.banner{
    width: auto;
    height: 380px;
    top: 0px;
    transition: all 1.5s ease-in-out;
    background: rgba(0, 0, 0, 0.701);
   
}
.banner:hover{
    background: rgba(0, 0, 0, 0.452);
}
.profile-card{
    max-width: 500px;
    background: rgba(255, 255, 255, 0.2);
    height: auto;
    top: 180px;
    padding:20px 35px;
    border-radius: 20px;
    position: absolute;
}
.center{
    display: grid;
    place-items: center;
}
.main-card{
    padding:350px 50px 150px 50px;
}
.sub-text{
    font-family: 'M PLUS Rounded 1c', sans-serif;
    font-style: normal;
    font-weight: 200;
    font-size: 25px;
    line-height: 46px; 
    color: #444444;
}
img{
    transition: 0.9s ease-in-out;
}
img:hover{
    scale: 1.07;
}
.sub-icon{
    font-size: 85px;
    color: #444444;
}
.bx-wrapper {
    background-color: rgba(0, 0, 0, 0);
    border: 0px rgba(0, 0, 0, 0);
    box-shadow: 0px 0px 0px rgba(0, 0, 0, 0);
}
.categories-grid{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    padding: 5px 10px;
    max-width: 400px;
}

.categories{
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(0, 0, 0, 0.247);
    backdrop-filter: blur(20px);
    padding: 5px 10px;
    border-radius: 5px;
    font-style: normal;
    font-weight: 700;
    font-size: 14px;
    max-width: 100px;
    /* identical to box height */
    text-decoration: none;
    transition: all 0.4s ease-in-out;
    text-align: center;
    color: #FFFFFF;
  }
 
.projects-grid{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    padding: 10px 20px;
}
.projects-card{
    margin: 10px ;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(40px);
    max-width: 426px;
    border-radius: 20px;
}
.project-image{
    border-radius: 10px;
    width: 100%;
}
.project-title,.project-description{
    color: #FFFFFF;
    text-align: left;
    padding: 10px;
}
.project-title{
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 700;
    font-size: 24px;
    line-height: 64px;
    font-family: 'Playfair Display';
}
.project-description{
    font-family: 'M PLUS Rounded 1c', sans-serif;
    font-style: normal;
    font-weight: 200;
    font-size: 18px;
    line-height: 46px;
}

.resources-card{
    margin: 10px 15px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(40px);
    max-width:3000px;
    padding: 5px 15px;
    border-radius: 20px;
}

.resource-card-grid{
    display: grid;
    max-width: 1500px;
    grid-template-columns: 1fr 1fr;
    padding: 5px;
}
.resource-content{
    max-width: 1000px;
    
}
.resources-image{
    width:100%;
}
.resources-title,.resources-description{
    color: #FFFFFF;
    text-align: left;
    padding: 10px;
}
.resources-title{
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 700;
    font-size: 24px;
    line-height: 64px;
    font-family: 'Playfair Display';
}
.resources-description{
    font-family: 'M PLUS Rounded 1c', sans-serif;
    font-style: normal;
    font-weight: 200;
    font-size: 18px;
    line-height: 46px;
}
.name,.career{
    color: #FFFFFF;
    text-align: center;
}
.name{
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 700;
    font-size: 42px;
    line-height: 64px;
    font-family: 'Playfair Display';
}
.career{
    font-family: 'M PLUS Rounded 1c', sans-serif;
    font-style: normal;
    font-weight: 200;
    font-size: 20px;
    line-height: 46px;
}
.subtitle{
        
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 600;
    font-size: 36px;
    line-height: 48px;

    color: #FFFFFF;
}
.profile-pic{
    width: 180px;
    position: absolute;
    top:-100px;
    height: 180px;
    border-radius: 100px;
}
.info{
    padding: 100px 10px 10px 20px;
}
.portfolio-section,.projects-sections,.resources-section{
    max-width: 3000px;
}
footer{
    background-color: #282727;
}
.sub-link{
    color: #959595;
    font-size: 20px;
    text-align: center;
}
.sub-link a{
    color: #13969a;
    font-size: 20px;
    text-decoration: none;
    text-align: center;
}
.copyright-text{
    color: #FFFFFF;
    font-size: 20px;
    text-align: center;
}
.copyright-text a{
    color: #848484;
    font-size: 20px;
    text-decoration: none;
    text-align: center;
}
.copyright{
    padding: 20px;
}


/* The Modal (background) */
.modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    /* Stay in place */
    z-index: 1;
    /* Sit on top */
    padding-top: 20px;
    /* Location of the box */
    left: 0;
    top: 0;
    width: 100%;
    /* Full width */
    height: 100%;
    /* Full height */
    overflow: auto;
    /* Enable scroll if needed */
    background-color: rgb(0, 0, 0);
    /* Fallback color */
    background-color: rgba(30, 25, 58, 0.856);
    /* Black w/ opacity */
}

/* Modal Content */
.modal-content {
    background-color: #413C7D;
    margin: auto;
    padding: 20px;
    border-radius: 75px;
    width: 80%;
}

.modal-body {
    background-color: #A0A0A0;
    margin: auto;
    border-radius: 75px;
    padding: 20px;
}

/* The Close Button */
.close {
    color: #A0A0A0;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

#loader {
    z-index: 1;
    width: 240px;
    height: 240px;

}


#loader-bg {
    background: -webkit-linear-gradient(180deg, rgba(0, 0, 0, 0.489) 12%, rgba(0, 0, 0, 0.701)  100%);
    background-size: cover;
    box-shadow:0px 8px 16px #1718053b;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    -moz-backdrop-filter: blur(15px);
    -o-backdrop-filter: blur(15px);
    position: fixed;
    width: 100%;
    height: 100%;
    transition: all 0.4s ease-in-out;
    z-index: 999999;
}
#loader-bg:hover {
    background: -webkit-linear-gradient(180deg,rgba(0, 0, 0, 0.489) 12%, rgba(0, 0, 0, 0.701) 100%);
    background-size: cover;
    box-shadow:0px 8px 16px #1718053b;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    -moz-backdrop-filter: blur(15px);
    -o-backdrop-filter: blur(15px);
}



@-webkit-keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
    }

    25% {
        -webkit-transform: rotate(360deg);
    }

    50% {
        -webkit-transform: rotate(180deg);
    }

    100% {
        -webkit-transform: rotate(0deg);
    }
}


@keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
    }

    25% {
        -webkit-transform: rotate(360deg);
    }

    50% {
        -webkit-transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(180deg);
    }
}

/* RESPONSIVENESS */


@media only screen and (min-width: 200px) and (max-width: 519px) {

    .name{
        font-size: 35px;
    }
    .career{
        font-size: 16px;
    }.resources-image{
        width: 90%;
    }
    .copyright-text,.copyright-text a, .sub-link{
        font-size: 16px;
    }
    .projects-grid{
        grid-template-columns: 1fr;
        padding: 0px 5px;
    }
    .project-description,.resources-description{
        font-size: 14px;
    }
    .main-card{
        padding:250px 5px 50px 5px;
    }
      
.subtitle{
        
    font-size: 24px;
}
.resource-card-grid{
    grid-template-columns:  1fr;
}
}

@media only screen and (min-width: 520px) and (max-width: 898px) {
    .projects-grid{
        grid-template-columns: 1fr 1fr;
        padding: 10px 20px;
    }
    .resources-image{
        width: 90%;
    }
   
    .project-description,.resources-description{
        font-size: 15px;
    }
    .main-card{
        padding:250px 25px 100px 25px;
    }
      
.subtitle{
        
    font-size: 28px;
}
    .resource-card-grid{
        grid-template-columns: 1fr 1fr;
    }
}

@media only screen and (min-width: 899px) and (max-width: 1299px) {
    .projects-grid{
        grid-template-columns: 1fr 1fr 1fr 1fr;
        padding: 10px 20px;
    }
    .resources-image{
        width: 70%;
    }
.resource-card-grid{
    grid-template-columns: 1fr 1fr;
}
    .project-description,.resources-description{
        font-size: 16px;
    }
    .main-card{
        padding:300px 40px 140px 40px;
    }  
    .subtitle{
            
        font-size: 30px;
    }
}

@media only screen and (min-width: 1300px) {
    .projects-grid{
        grid-template-columns: 1fr 1fr 1fr 1fr;
        padding: 10px 20px;
    }
    
.subtitle{
        
    font-size: 36px;
}
.resource-card-grid{
    grid-template-columns: 1fr 1fr;
}
    .project-description,.resources-description{
        font-size: 18px;
    }
    .main-card{
        padding:350px 20px 150px 20px;
    }
    .resources-image{
        width: 50%;
    }
}