@keyframes fade-in {
    100% { opacity: 1; }
}

@keyframes video-transform {
    0% {}

    100% {
        transform: scaleX(0.8) scaleY(0.7) translateY(-5em);
    }
}

@keyframes text-transition {
    0% {
        width: 100%;
    }

    100% {
        width: 0%;
    }
}

@keyframes hrline {
    0% {
        width: 90%;
    }

    100% {
        width: 70%;
    }
}

@keyframes project-overlay-in {
    0% {
        background-color: transparent;
    }

    100% {
        background-color: #2b2b33e3;
    }
}

@keyframes project-overlay-out {
    0% {
        background-color: #2b2b33e3;
    }

    100% {
        background-color: transparent;
    }
}

@keyframes blur-filter {
    0% {filter: blur(0px);}
    100% {filter: blur(8px);}
}

@keyframes transition-layer {
    0% { width: 50%; transform: skewx(50deg) translateX(-300px); }
    50% { width: 600%; transform: skewx(50deg) translateX(-250px); }
    100% { transform: skewx(50deg) translateX(3000px); width: 500%; }
}

@keyframes rainbow-text-simple-animation {
    0% {
        background-size: 100%;
    }
    80% {
        background-size: 650%;
    }
    100% {
        background-size: 650%;
    }
}

@keyframes rainbow-text-simple-animation-rev {
    0% {
        background-size: 650%;
    }
    40% {
        background-size: 650%;
    }
    100% {
        background-size: 100%;
    }
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Mulish', sans-serif;
}

body {
    position: relative;
    overflow-x: hidden;
}

.body-overflow {
    overflow: hidden;
}

.page-loading-screen {
    height: 100vh;
    width: auto;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-loading-screen p {
    display: inline-block;
    margin-top: 5em;
    font-size: 5em;
    font-weight: 800;
    color: rgba(0, 0, 0, 0.7);
    padding-left: 0.5em;
    letter-spacing: 0.5em;
    opacity: 0;
    animation: fade-in 1s forwards;
}

.page-loading-screen p:nth-child(1) {
    animation-delay: 0.5s;
}

.page-loading-screen p:nth-child(2) {
    animation-delay: 0.7s;
}

.page-loading-screen p:nth-child(3) {
    animation-delay: 1.0s;
}

.page-loading-screen p:nth-child(4) {
    animation-delay: 1.3s;
}

.page-loading-screen p:nth-child(5) {
    animation-delay: 1.6s;
}

.welcome-text {
    position: relative;
    color: rgba(0, 0, 0, 0.7);
}

.welcome-text-cover {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    animation: text-transition 7s forwards;
}

.welcome-text h1 {
    margin-top: 0.5em;
    font-size: 2em;
    letter-spacing: 0.2em;
}

.transition {
    position: absolute;
    background-color: skyblue;
    width: 20%;
    height: 100%;
    top: 0;
    left: -500px;
    animation: transition-layer 2.5s forwards;
    animation-delay: 3s;
}

#banner-container {
    text-align: center;
    position: relative;
    height: 100vh;
    width: 100%;
}

#banner-bg {
    object-fit: cover;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    animation: video-transform 3.5s forwards;
}

#banner-content {
    position: absolute;
    top: 38%;
    right: 0;
    left: 0;
    font-size: 4em;
    color: white;
    font-weight: 700;
    letter-spacing: 0.1em;
}

#intro-overlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: white;
}

#intro-container {
    display: flex;
    justify-content: center;
    right: 1em;
    left: 1em;
    position: relative;
}

#intro-text-container {
    width: 50%;
    height: auto;
    max-width: 600px;
    position: relative;
    margin-right: 8em;
}

#portrait {
    width: 100%;
    max-width: 300px;
    height: auto;
    margin-top: 2em;
    margin-left: 2em;
    box-shadow: 5px 5px 15px 5px #00000069;
}

.intro-heading {
    font-size: 3.5em;
    font-family: 'Hind Siliguri', sans-serif;
    font-weight: 800;
    line-height: 1.2em;
    color: rgba(0, 0, 0, 0.7);
}

#intro-content {
    font-size: 1.2em;
    line-height: 1.5em;
    margin-top: 3em;
}

#icons-container {
    display: flex;
    flex-wrap: wrap;
    position: absolute;
    justify-content: space-around;
    margin-top: 80px;
    width: 550px;
}

.fab {
    font-size: 5em;
    color: rgba(0, 139, 139, 0.7);
}

.language {
    color: darkcyan;
    font-weight: 700;
    margin-top: 5px;
}

#project-container {
    margin-top: 200px;
}

#project-heading {
    text-align: center;
    font-size: 3.5em;
    font-family: 'Hind Siliguri', sans-serif;
    color: rgba(0, 0, 0, 0.7);
    font-weight: 600;
    letter-spacing: 0.1em;
}

#project-content-container {
    color: #f3f2f9;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 300px;
    height: 800px;
}

#project-list {
    counter-reset: index;
    color: rgba(0, 0, 0, 0.7);
    font-family: 'Hind Siliguri', sans-serif;
    width: 30%;
    font-size: 2em;
    font-weight: 600;
    z-index: 99;
}

#project-list li {
    color: #f3f2f9;
    cursor: pointer;
    counter-increment: index;
    list-style: none;
    padding: 1rem 0;
    background:
        linear-gradient(to right,
        #f3f2f9,
        #f3f2f9
        ),
        linear-gradient(to right,
            rgba(255, 0, 0, 1),
            rgba(255, 0, 180, 1),
            rgba(0, 100, 200, 1));
    background-size: 100% 3px, 0 3px;
    background-position: 100% 100%, 0 100%;
    background-repeat: no-repeat;
    transition: background-size 400ms;
}

#project-list :hover {
    background-size: 0 3px, 100% 3px;
}

#project-list li::before {
    content: counters(index, ".", decimal-leading-zero);
    font-size: 1.5rem;
    text-align: right;
    font-weight: bold;
    min-width: 50px;
    padding-right: 12px;
    font-variant-numeric: tabular-nums;
    align-self: flex-start;
}

#project-list li:hover:before {
    background-image: linear-gradient(to bottom, aquamarine, orangered);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.links {
    text-decoration: none;
    color: #f3f2f9;
}

#project-demon-container {
    width: 40%;
    margin-left: 5%;
    height: auto;
    text-align: center;
    z-index: 99;
}

#project-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: (0, 0, 0, 0.7);
}

#project-intro {
    margin: 2em 2em 0 2em;
    font-size: 1.2rem;
    left: 0;
    right: 0;
}

.tools {
    display: inline-block;
    margin: 1rem 0.5rem;
    font-weight: 800;
    font-size: 1.2rem;
    color: rgb(3, 192, 192);
}

#project-vid {
    width: 80%;
    height: auto;
    object-fit: cover;
}

#body-overlay {
    position: absolute;
    z-index: 90;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    animation: project-overlay-in 1s ease-in forwards;
}

.hidden {
    display: none;
}

#cv-container {
    margin-top: 400px;
}

#cv-header-container {
    display: flex;
    justify-content: center;
    margin-bottom: 200px;
}

#cv-header {
    text-align: center;
    font-size: 7rem;
    font-weight: 800;
    width: 50%;
    background-color: #CA4246;
    background-image: linear-gradient(45deg, rgba(89,89,89,1) 11%, rgba(125,46,177,1) 26%, rgba(253,29,29,1) 60%, rgba(252,176,69,1) 100%);
    background-size: 100%;
    background-repeat: repeat;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; 
    animation: rainbow-text-simple-animation-rev 0.75s ease forwards;
}

#cv-header-overlay {
    background-color: white;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    z-index: 99;
}

#cv-header-bg {
    object-fit: cover;
    top: 0;
    right: 0;
    width: 99%;
    height: 90%;
    margin: 1em 1em;
}

#cv-header-text {
    position: absolute;
    color: whitesmoke;
    font-size: 5em;
    font-weight: 700;
    letter-spacing: 0.1em;
    top: 35%;
    left: 0;
    right: 0;
    z-index: 2;
}

#cv-content {
    display: flex;
    justify-content: center;
    font-size: 1.2rem;
    color: #606887;
}

.job-container {
    width: 50%;
}

.company-container {
    display: flex;
    justify-content: space-between;
    font-weight: 800;
    background-color: #f3f2f9;
    padding: 20px;
    border-radius: 15px;
}

.job-description {
    background-color: #f3f2f9;
    margin: 10px 0;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 50px;
}

.job-title {
    font-weight: 800;
    margin-bottom: 10px;
}

.job-content-container {
    margin: 20px 0 20px 25px;
}

.job-content li {
    margin: 5px 0;
}

.job-tools {
    display: flex;
}

.job-tools div {
    font-size: 1rem;
    background-color: #2c3599;
    color: white;
    padding: 5px 15px;
    margin: 15px 5px 0 0;
    border-radius: 20px;
}

footer {
    position: relative;
    text-align: center;
    margin-top: 500px;
    margin-bottom: 50px;
}

.footer-text {
    margin: 0.5em 0;
    font-size: 1em;
    font-weight: 500;
}

#footer-icons-container {
    position: absolute;
    z-index: 99;
    left: 0; 
    right: 0;
    top: -30px;
}

.footer-icons {
    font-size: 1.5rem;
    margin: 0 2px;
}

.fa-github {
    color: #171515;
}

.fa-linkedin-square {
    color: #0077b5;
}

.fa-facebook-square {
    color: #4267B2;
}

.fa-instagram {
    color: #8a3ab9;
}


@media only screen and (max-width: 1000px) {
    .page-loading-screen p {
        font-size: 2.5em;
    }

    .welcome-text h1 {
        font-size: 1rem;
    }

    #banner-content {
        font-size: 3rem;
    }
    
    #portrait {
        display: none;
    }

    #intro-container {
        right: 0;
        left: 0;
    }

    #intro-text-container {
        width: 100%;
        height: auto;
        position: relative;
        margin-right: 0;
        margin-left: 10px;
    }

    .intro-heading {
        font-size: 2.5em;
    }

    #icons-container {
        margin-top: 20px;
        width: 90%;
    }

    .icon-container {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .fab {
        font-size: 3rem;
    }

    .language {
        color: darkcyan;
        font-weight: 700;
        margin-top: 5px;
    }

    #project-heading {
        font-size: 2rem;
        margin-bottom: 0;
    }

    #project-demon-container {
        display: none;
        width: 0;
        height: 0;
    }

    #project-content-container {
        height: auto;
        margin-top: 50px;
    }

    #project-list {
        font-size: 1rem;
        width: 90%;
    }

    .tools {
        display: none;
    }

    #cv-container {
        margin-top: 100px;
    }

    #cv-header {
        font-size: 3rem;
        width: 80%;
    }

    .job-container {
        width: 90%;
    }
    
    footer {
        margin-top: 200px;
    }
}