body{
    background-color: #050505;
    font-family: "Montserrat", sans-serif;
    color: white;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    
}


.bg{
    position: fixed;
    z-index: -1;
    top: -50%;
    left: -50%;
    right: -50%;
    bottom: -50%;
    width: 200%;
    height: 200vh;
    background: transparent url(/web_Images/noise-transparent.png) repeat 0 0;
    background-repeat: 0;
    animation: bg-animation .2s infinite;
    opacity: .9;
    visibility: visible;
    pointer-events: none;
}
@keyframes bg-animation {
    0% { transform: translate(0,0) }
    10% { transform: translate(-5%,-5%) }
    20% { transform: translate(-10%,5%) }
    30% { transform: translate(5%,-10%) }
    40% { transform: translate(-5%,15%) }
    50% { transform: translate(-10%,5%) }
    60% { transform: translate(15%,0) }
    70% { transform: translate(0,10%) }
    80% { transform: translate(-15%,0) }
    90% { transform: translate(10%,5%) }
    100% { transform: translate(5%,0) }
}

h1{
    font-family: "BBH Sans Bartle", sans-serif;
    font-size: 104px;
    line-height: 104px;
    letter-spacing: -1px;
}

.navMenu{
    margin-left: 35%;
    margin-right: 30%;
    border: 1px white;
    position: fixed;
    top: 0;
    z-index: 1;
}
.navMenu .icon {
    display: none;
    max-width: 100%; 
}

header ul{
    list-style-type: none;
    display: flex;
    background-color: white;;
    border-radius: 30px;
    color: #1A1A1A;
    justify-content: center;
    padding: 0;
}
header ul li{
    padding: 15px;
    border: 1px #1A1A1A;
    border-radius: 50px;
}
header ul li:hover{
    color: white;
    background-color: #1A1A1A;
    cursor: pointer;
}

header ul li a{
    display: block;
    text-decoration: none;
    color: #1A1A1A;
}
header ul li a:hover{
    color: white;
}

.hero_section{
    display: flex;
    flex-direction: column;
    align-items: center;
}

#firstname{
    color: white;
    margin-bottom: 8px;
}
#firstname:hover{
    font-size: 104px;
    paint-order: stroke fill;
    -webkit-text-stroke: 1px white;
    color: transparent;
    margin-bottom: 8px;
}
#lastname{
    font-size: 104px;
    paint-order: stroke fill;
    -webkit-text-stroke: 1px white;
    color: transparent;
    margin-bottom: 8px;
}
#lastname:hover{
    color: #D80808;
    font-style: italic;
    -webkit-text-stroke: 0px ;
}
#portfolio_text{
    color: #D80808;
    font-style: italic;
    animation: SlideHeader;
    margin-bottom: 8px;
}
#portfolio_text:hover{
    color: white;
}

@keyframes SlideHeader{
    from{
        transform: translateX(-100px);
        opacity: 0;
    }
    to{
        transform: translatex(0);
        opacity: 1;
    }
}

#work_heading{
    font-family: "BBH Sans Bartle", sans-serif;
    animation: SlideHeader both; /*use 'both' for smoother eperience*/
    animation-timeline: view(10% 5%); /*(When animation completes, when ann starts)*/
}
#projects_heading{
    font-family: "BBH Sans Bartle", sans-serif;
    animation: SlideHeaderUp both;
    animation-timeline: view(10% 5%);
}

@keyframes SlideHeaderUp{
    from{
        transform: translateY(100px);
        opacity: 0;
    }
    to{
        transform: translateY(0);
        opacity: 1;
    }
}

.hero_section{
    text-align: center;
    height: 100vh;
}


#work_heading{
    text-align: center;
}

.work_container{
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin: 0 32px 0 32px;
    animation: ShowAnimation ;
    animation-timeline: view(20% 5%);
}

@keyframes ShowAnimation{
    from{
        opacity: 0;
    }
    to{
        opacity: 100%;
    }
}

.work_card{
    width: 25%;
    height: 400px;
    line-height: 1.5rem;
}
.work_card img{
    display: block;
    margin: auto;
    width: 100%;
}
.work_card h4{
    margin: 0;
    padding: 0%;
}
.work_card h5{
    margin: 0;
}
.work_card p{
    margin: 0 0 8px 0;
}
h4{
    color: #505050;
}
h5{
    color: #D80808;
}

.view_more_work_btn{
    text-decoration: none;
    color: white;
    font-size: 10px;
    background-color: #D80808;
    border: 1px #D80808;
    padding: 10px;
    border-radius: 15px;
}

.projects_section h1{
    margin-top: 128px;
    text-align: center;
}

.projects_container{
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    overscroll-behavior: contain;
    margin: 0 16px 0 16px;
}

.project{
    display: flex;
    width: 20%;
    height: 100%;
    border: 1px #D80808;
    border-radius: 25px;
    background-color: chartreuse;
    box-shadow: 2px -2px 5px black;
    height: 75vh;
}

.project a{
    background-color: #1A1A1A;
    color: white;
    position: absolute;
    text-decoration: none;
    margin: 16px 0 0 16px;
    border: 1px #1A1A1A;
    border-radius: 15px;
    font-size: 10px;
    padding: 8px;
}

.project a:hover{
    background-color: #D80808;
}

.projects_text_container{
    position: relative;
    top: 85%;
    margin: 0 0 8px 8px;
    color: white;
    bottom: 0;
}

.projects_text_container h5{
    bottom: 0;
    color: white;
    margin: 0;
}

.projects_text_container p{
    bottom: 0;
    margin: 8px 0 8px 0;
    font-weight: light;
}

#project1{
    background-image: url(/web_Images/Agridone\ power\ bi\ MacBook\ with\ Dog\ Mockup\ full.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

#project2{
    background-image: url(/web_Images/premier\ league\ power\ bi\ macbook\ on\ bed\ full.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

#project3{
    background-image: url(/web_Images/premier\ league\ power\ bi\ mackbook\ on\ concrete\ full.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

#project4{
    background-image: url(/web_Images/premier\ league\ power\ bi\ mackbook\ on\ concrete\ full.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.short_description{
    width: 50%;
    height: 70vh;
    font-size: x-large;
    margin: 256px 0 64px 32px;
    animation: SlideHeader both;
    animation-timeline: view(20% 5%);
    animation-range: entry 20% cover 60vh;
}

.about_container{
    display: grid;
    grid-template-columns: auto auto auto;
    gap: 16px;
    margin: 64px 64px 64px 64px;
    background-image: url(/web_Images/About-Background.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: scroll;
    background-position: center;
}

.about1{
    grid-row: 1 / span 2;
    padding: 32px;
    border: 1px solid white;
    border-radius: 25px;
}

.about2{
    grid-column: 3;
    grid-row: 1 / span 2;
    padding: 32px;
    border: 1px solid white;
    border-radius: 25px;
}

.about3{
    padding: 32px;
    border: 1px solid white;
    border-radius: 25px;
}

.about4{
    padding: 32px;
    border: 1px solid white;
    border-radius: 25px;
}

.about3_detail{
    display: grid;
    grid-template-columns: auto auto;
    gap: 16px;
}

.stack_section h1{
    text-align: center;
    animation: SlideHeaderUp both;
    animation-timeline: view(10% 5%);
}

.stack_elements{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1px;
    margin: 0 128px 0 128px;
}

.stack_elements img{
    width: 50px;
    height: 50px;
    border: 1px;
    border-radius: 15px;
}

.contact_section{
    margin: 128px 25% 64px 25%;
}

#contact_button{
    display: flex;
    justify-content: center;
    padding: 75px;
    background-color: white;
    font-size: 40px;
    font-family: "BBH Sans Bartle", sans-serif;
    text-decoration: none;
    color: #1A1A1A;
    border-top: 5px solid #D80808;
    border-right: 5px solid #D80808;
    border-bottom: 5px solid #D80808;
    border-left: 5px solid #D80808;
    border-radius: 150px;
    animation: SlideHeaderUp both;
    animation-timeline: view(10% 5%);
}

#contact_button:hover{
    transition: 0.5s;
    border-top: 5px solid #D80808;
    border-right: 25px solid #D80808;
    border-bottom: 25px solid #D80808;
    border-left: 5px solid #D80808; 
}

.cv_View{
    display: none;
}
.contact_container{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

#email_head{
    background-color: white;
    color: #1A1A1A;
    height: 60px;
    text-align: right;
    padding-right: 32px;
}
#email_detail{
    background-color: #D80808;
    color: white;
    height: 60px;
    text-align: left;
    padding-left: 32px;
}
#project_head{
    background-color: #D80808;
    color: white;
    height: 60px;
    text-align: right;
    padding-right: 32px;
}
#project_links{
    background-color: white;
    color: #1A1A1A;
    height: 60px;
    text-align: left;
    padding-left: 0px;
    display: inline;
}
#project_links li{
    display: inline;
    margin-right: 16px;
}
#project_links li a{
    color: #1A1A1A;
}
#project_links li a:hover{
    color: #D80808;
}
#socials_head{
    background-color: white;
    color: #1A1A1A;
    height: 60px;
    text-align: right;
    padding-right: 32px;
}
#socials_links{
    background-color: #D80808;
    color: white;
    height: 60px;
    text-align: left;
    padding-left: 0px;
}

#socials_links li{
    display: inline;
    margin-right: 16px;
}
#socials_links li a{
    color: #1A1A1A;
}
#socials_links li a:hover{
    color: white;
}
.web_end{
    text-align: center;
}

@media screen and (max-width: 992px){
    *{
        box-sizing: border-box;
        /*overflow-x: hidden;*/
    }
    .menu_items{
        display: none;
    }
    .icon {
        display: flex;
        right: 0;
        bottom: 0;
        margin-right: 16px;
        color: white;
        background-color: #D80808;
        padding: 10px;
        border: 1px solid #D80808;
        border-radius: 5px;
        height: 20px; 
        z-index: 999; 
    }
    .mobile-menu-items a{
        color: #0a0a0a;
        text-align: center;
        text-decoration: none;
        pointer-events: auto;
        z-index: 1000;
    }
    .mobile-menu-items h2{
        color: #0a0a0a;
        font-size: 50px;
        z-index: 1000;
        pointer-events: auto;
    }
    .navMenu.responsive {
        position: fixed;
        /*overflow: hidden;*/
        width: 100%;
    }
    .navMenu.responsive .icon {
        position: fixed;
    }
    .navMenu img {
        width: 20px; 
        height: 20px;
    }
    .hero_section{
        height: 750px;
        display: block;
        padding-top: 25vh;
    }
    h1{
        font-size: 32px;
    }
    #lastname{
        font-size: 32px;
    }
    .work_container{
        animation: none;
    }
    .work_card{
        height: 80vh;
        gap: 32px;
        width: 100vw;
        pointer-events: auto;
    }
    .project{
        width: 100%;
        box-shadow: 2px 2px 10px black;
        pointer-events: auto;
    }
    .about_container{
        display: flex;
        flex: 1 1 auto;
        flex-wrap: wrap;
        width: 95%;
        margin: 32px 8px 32px 8px;
        background-size: contain;
    }
    .short_description{
        width: 95%;
        height: 90vh;
        margin-right: 8px;
        margin-left: 8px;
    }
    .stack_elements{
        gap: 16px;
        justify-content: space-between;
    }
    .contact_section{
        margin: 128px 5% 64px 5%;
    }
    #contact_button{
        font-size: 32px;
        padding: 16px 8px 16px 8px;
    }
    #email_head{
        height: 10vh;
    }
    #email_detail{
        height: 10vh;
        padding-left: 16px;
        padding-right: 32px;
    }
    #project_head{
        height: 15vh;
    }
    #project_links{
        height: 15vh;
        padding-left: 16px;
        padding-right: 32px;
    }
    #socials_head{
        height: 10vh;
    }
    #socials_links{
        height: 10vh;
        padding-left: 16px;
        padding-right: 32px;
    }
    #contact_button{
        display: none;
    }
    .cv_View{
        display: flex;
        justify-content: center;
        color: white;
        font-size: 24px;
        font-weight: bold;
        padding: 10px;
        background-color: #D80808;
        margin: 20%;
        border-radius: 50px;
        text-decoration: none;
    }
}

@media screen and (max-width: 600px){
    .mobile-menu-items{
        text-align: center;
        margin-top: 45%;
        left: 50%;
        text-decoration: none;
    }
    .mobile-menu-items h2{
        color: #0a0a0a;
        font-size: 50px;
    }
    .navMenu a.icon {
        display: flex;
        justify-content: center;
        padding: 10px 12px;
        height: 50px;
        width: 50px;
        position: fixed;
        bottom: 0;
        right: 0;
        z-index: 1000;
    }
    .hero_section{
        height: 100vh;
        width: 100vw;
    }
    .hero_section h1{
        text-align: center;
    }
    #contact_button{
        display: none;
    }
}