@import url('https://fonts.googleapis.com/css2?family=Playfair+Display+SC:wght@400;700&family=Raleway:ital,wght@0,300;0,400;0,500;0,700;1,400;1,500;1,700&amily=Poppins:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600;1,700display=swap');

:root{
    --primary_color: #344850;
    --secondary_color: #3795BD;
    --tertiary-color: #072b3d;
    --extra_1: #810CA8;
    --extra_2: #F4F4F4;
    --extra_3: #FDFDFD;
    --family1: 'Playfair Display SC', serif;
    --family2: 'Raleway', sans-serif;
    --family3: "Poppins", sans-serif;
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body{
    background-color: #fefbfb;
}

/* hero-section */
.nav-bar{
    position: sticky;
    top: 0;
}
.desktop{
    display: none;
}
.mobile-nav{
    background-color: var(--primary_color);
    padding: 10px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.mobile-nav .hamburger-menu{
    cursor: pointer;
}
.mobile-nav .hamburger-menu .line{
    width: 25px;
    height: 3px;
    background-color: var(--extra_3);
    margin: 5px 0;
    border-radius: 2px;
}
.mobile-logo{
    color: var(--extra_3);
    font-family: var(--family2);
}
.mobile-logo h1{
    padding: 0;
    margin: 0;
}
.off-canvas{
    width: 280px !important;   
}
.btn-close{
    background-color: white;
    margin-right: 8px;
}
.ls {
    list-style-type: none;
    row-gap: 20px;
    padding: 0;
}
.ls li{
    width: 100%;
    /* background-color: var(--secondary_color);
    padding: 10px 20px;
    border-radius: 3px;
    text-align: center; */
}
.ls li a{
    width: 100%;
    display: block;
    color: var(--extra_3);
    font-size: 18px;
    font-family: var(--family2);
    text-decoration: none;
    background-color: var(--secondary_color);
    padding: 10px 20px;
    border-radius: 3px;
    text-align: center;
}
nav hr{
    display: none;
}

/* hero-section */
.hero-section{
    /* background-color: var(--primary_color);
    color: var(--extra_3); */
    background: url("../images/hero-image1.jpg"), linear-gradient(rgba(0,0,0,0.2),rgba(0,0,0,0.4));
    background-size: cover;
    padding-bottom: 0 !important;
    /* height: 48vh; */
}
.profile-pic{
    width: 200px;
    height: 200px;
    margin: 0px auto;
}
.profile-pic img{
    width: 100%;
    height: 100%;
    border: 1px solid gray;
    border-radius: 50%;
    object-fit: cover;  
}
.intro{
    padding: 10px;
    color: var(--extra_3);
}
.intro h1{
    font-family: var(--family2);
    font-weight: 700;
}
.intro h1 span{
    display: block;
    font-size: 1.3rem;
}
.resume a button{
    background-color: var(--secondary_color);
    color: var(--extra_3);
    padding: 5px 20px;
    border: none;
    border-radius: 3px;
    font-size: 1.2rem;
}
.resume a button:active{
    background-color: #355b6b;;
}

/* About */
.sec-heading{
    font-family: var(--family3);
    /* color: var(--secondary_color); */
    font-weight: 700;
    text-align: center;
}
.sec-heading span{
    display: block;
    background-color: #617676;
    height: 3px;
    margin: 4px auto 0;
}
.sec-heading span:first-child{
    width: 125px;
}
/* .sec-heading div:last-child{
    width: 80px;
} */
.abt-content {
    background-color: var(--tertiary-color);
    color: var(--extra_3);
    font-family: var(--family2);
    padding: 10px 0;
}
.side1{
    width: 60%;
    margin: 20px auto 0;
}
.side1 img{
    object-fit: cover;
    object-position: center;
}

/* skills */
.skills .sec-heading span:first-child{
    width: 80px;
}
/* .skills .sec-heading div:last-child{
    width: 80px;
} */
.flexBox{
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}
.tech-stack h3, .project h3{
    font-family: var(--family2); 
}
.tech{
    width: 35%;
}
.tech figcaption p{
    font-size: 23px;
    font-family: var(--family2);
    font-weight: 700;
}


/* Projects */
.project .sec-heading span:first-child{
    width: 114px;
}
.html-project, .python-project{
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
}
.cards{
    border: 1px solid lightgray;
    border-radius: 5px;
    background-color: var(--extra_3);
    /* transition: 0.3s ease-in-out; */
}
/* .cards:hover{
    box-shadow: 2px 1px 2px 1px rgb(165, 164, 164);
} */
.card-img{
    border-bottom: 1px solid lightgray;
}
.card-img img{
    border-top-right-radius: 5px;
    border-top-left-radius: 5px;
}
.python-project .cards .card-img{
    width: 100%;
}
.python-project .cards .card-img img{
    object-fit: cover;
    object-position: top center;
    width: 100%;
}
.card-content{
    padding: 20px 10px;
}
.card-content h4{
    font-size: 1.4rem;
    font-weight: 600;
}
.card-content p{
    font-size: 1.1rem;
}
.btns{
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 15px 0 0;
}
.btns a{
    background-color: #3795BD;
    padding: 10px 15px;
    color: var(--extra_3);
    text-decoration: none;
    border-radius: 3px;
}

.card-content h4, .card-content ul, .btns a{
    font-family: var(--family2);
}

/* contact */
.contact{
    padding: 0 10px;
}
.contact .contact-image{
    display: none;
}
.contact .sec-heading span:first-child{
    width: 104px;
}
.contact-info{
    background-color: var(--tertiary-color);
    color: var(--extra_3);
    padding: 10px 20px;
    border-radius: 5px;
}
.contact-info div:first-child p span:last-child, .contact-info:nth-child(2) p span:last-child a{
    font-size: 18px;
    font-family: var(--family2);
    color: var(--extra_3);
    /* text-decoration: none; */
}
.left-space{
    margin-left: 10px;
}
.contact-info div:nth-child(1) p span:first-child, .contact-info div:nth-child(2) p span:first-child, .contact-info div:nth-child(3) p span:first-child{
    font-size: 20px;    
}

/* footer */
.foot{
    min-width: 100%;
    background-color: #1a1818;
    padding: 30px 20px;
}
.foot .flexBox{
    align-items: flex-start;
}
.foot-about{
    color: var(--extra_2);
    font-family: var(--family2);
}
.foot-about p:first-child, .foot-nav p:first-child, .foot-contact p:first-child{
    font-weight: bold;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.2rem;
    color: var(--extra_3);
    margin-bottom: 1rem;
}
.foot-about p{
    line-height: 31px;
}
.foot-nav ul{
    color: var(--extra_2);
    padding-left: 15px;
    text-transform: uppercase;
}
.foot-nav ul li{
    line-height: 28px;
}
.foot-nav ul li a{
    color: var(--extra_2);
}
.foot-contact{
    color: var(--extra_2);   
}
.foot-contact p,.foot-contact address{
    margin-bottom: 8px;
    font-size: 17px;
}
.online-links{
    display: flex;
    justify-content: space-around;
    width: 23%;
    column-gap: 10px;
}
.online-links p{
    width: 45%;
}
.online-links p a i{
    font-size: 25px;
}

/* Media Queries */
@media screen and (min-width: 319px) and (max-width: 322px) {
    .contact-info{
        padding: 10px 10px;
    }
}

@media screen and (min-width:411px) and (max-width: 430px) {
    .project-cards{
        padding: 0 35px;
    }
}   


/* 575 size query */
@media screen and (min-width: 575px) {
    /* about */
    .sec-heading span:first-child{
        width: 135px;
    }
    .side1{
        width: 50%;
    }
    .side2 p{
        font-size: 1.12rem !important;
    }
    .flexBox{
        flex-direction: row;
        justify-content: space-around;
        align-items: center;
    }

    /* skills */
    .skills .sec-heading span:first-child {
        width: 88px;
    }
    .tech{
        width: 34%;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }
    .tech img{
        max-width: 70%;
    }
    .tech figcaption p{ 
        font-size: 20px;
    }

    /* project */
    .project .sec-heading span:first-child {
        width: 124px;
    }
    .cards{
        width: 66%;
    }

    /* contact */
    .contact .sec-heading span:first-child {
        width: 115px;
      }
    .contact-info{
        width: 65%;
        margin: 0 auto;
    }

    /* footer */
    .foot-nav{
        width: 22%;
    }
    .foot-contact{
        width: 50%;
    }
    .foot .flexBox{
        align-items: flex-start;
        justify-content: space-between;
    }
    .foot-nav ul{
        padding: 0;
        list-style-type: none;
    }
}

/* 768 screen size */
@media screen and (min-width: 768px) {
    /* navbar */
    .mobile-nav{
        background-color: #344850; 
    }
    .off-canvas{
        width: 360px !important;
    }
    nav hr{
        display: block;
        height: 3px;
        background-color: #bfbdae;
        margin: 0;
    }

    /* hero-section */
    .hero-section{
        background: linear-gradient(rgba(0,0,0,0.2),rgba(0,0,0,0.4)), url("../images/hero-image.jpg");
        background-size: cover;
        padding-bottom: 0 !important;
        /* height: 48vh; */
    }
    .hero-section .flex{
        display: flex;
        flex-direction: row-reverse;
        justify-content: space-evenly;
        align-items: center;
        width: 100%;
        height: 100%;
    }
    .flex .profile-pic{
        width: 300px;
        height: 300px;
        display: flex;
        justify-content: center;
    }
    .flex .intro{
        width: 56%;
    }
    .flex .profile-pic img{
        margin: 0 auto;
        border-radius: 50%;
        box-shadow: 7px 9px 14px whitesmoke;
    }

    /* about */
    .side1{
        width: 40%;
    }

    /* skills */
    .tech{
        width: 30%;
    }
    .tech img{
        width: 60%;
    }

    /* project */
    .html-project, .python-project{
        flex-direction: row;
        justify-content: space-around;
    }
    .cards{
        width: 41.66%;
    }
}

@media screen and (min-width:991.9px) {
    nav{
        z-index: 1;
    }
    .mobile-nav{
        display: none
    }

    /* desktop navigation */
    .desktop{
        display: block;
        padding: 10px 20px;
        background-color: #344850;   
    }
    .desktop .flexBox{
        justify-content: space-between;
        align-items: center;
        width: 90%;
        margin: 0 auto;
    }
    .desktop-logo{
        width: 33%;
    }
    .desktop-logo h1 a{
        text-decoration: none;
        color: var(--extra_2);
        font-family: var(--family1);
    }
    .desktop-nav{
        width: 66%;
    }
    .desktop-nav ul{
        width: 100%;
        display: flex;
        justify-content: space-evenly;
        align-items: center;
        list-style-type: none;
        margin: 0;
    }
    .desktop-nav li a::before,.desktop-nav li a::after{
        content: '';
        height: 14px;
        width: 14px;
        position: absolute;
        transition: all 0.6s ease;
        opacity: 0;
    }
    .desktop-nav li a::before{
        right: 0;
        top: 0;
        border-top: 3px solid #3acece;
        border-right: 3px solid #3acece;
        transform: translate(-100%, 50%);
    }
    .desktop-nav li a::after{
        left: 0;
        bottom: 0;
        border-bottom: 3px solid #3acece;
        border-left: 3px solid #3acece;
        transform: translate(100%, -50%);
    }
    
    .desktop-nav li a:hover::before, .desktop-nav li a:hover::after {
        opacity: 1;
        transform: translate(0%,10%);
    }
  

    .desktop-nav ul li a{
        position: relative;
        text-decoration: none;
        color: var(--extra_2);
        font-size: 20px;
        font-family: var(--family2);
        font-weight: 500;
        padding: 6px;
    }

    /* hero-section */
    .hero-section{
        height: 60vh;
    }
    .hero-section .flex{
        width: 86%;
        margin: 0 auto;
    }
    .resume a button{
        background-color: #344850;
        transition: 0.2s ease-in-out;
    }
    .resume a button:hover{
        background-color: #212c31;
    }
    .main{
        max-width: 88%;
    }

    /* about-section */
    .sec-heading span:first-child{
        width: 153px;
    }
    .about{
        position: relative;
    }
    .abt-content{
        display: flex;
        justify-content: space-evenly;
        align-items: center;
        padding: 10px 20px;
        background-color: #072b3d;
    }
    .abt-content::before,.abt-content::after{
        content: '';
        width: 154px;
        height: 154px;
        position: absolute;
        transition: all 0.6s ease;
        opacity: 0;
    }
    .abt-content::before{
        left: 0;
        top: 90px;
        border-top: 6px solid #3acece;
        border-left: 6px solid #3acece;
        transform: translate(100%,70%);
    }
    .abt-content::after{
        right: 0;
        bottom: 0;
        border-bottom: 6px solid #3acece;
        border-right: 6px solid #3acece;
        transform: translate(-100%,-92%);
    }
    .abt-content:hover:after, .abt-content:hover:before{
        transform: translate(0%,0%);
        opacity: 1;
    }
    .abt-content .side2{
        width: 59%;
    }

    /* skills */
    .skills .sec-heading span:first-child{
        width: 96px;
    }
    .tech{
        row-gap: 5px;
    }
    .tech img{
        width: 50%;
    }

    /* project */
    .project .sec-heading span:first-child{
        width: 142px;
        margin-top: 7px;
    }
    .card-content:hover{
        background-color: #344850;
        color: var(--extra_3);
    }
    .btns a{
        background-color: #4c5b62;
        border: 1px solid #4c5b62;
    }
    .card-content:hover .btns a{
        background-color: transparent;
        border: 1px solid var(--extra_3);
    }
    .btns a:hover{
        background-color: var(--extra_3) !important;
        color: #4c5b62;
    }
    /* contact */
    .contact .sec-heading span:first-child{
        width: 129px;
    }
    .contact .contact-image{
        display: block;
    }
    .contact-content{
        display: flex;
        justify-content: space-around;
        align-items: center;

    }
    .contact-content .contact-info{
        width: 36%;
        margin: 0;
        background-color: #072b3d;
    }
    .contact-content .contact-image{
        width: 35%;
    }
    .contact-image img{
        width: 100%;
    }

    /* footer */
    .foot-about{
        width: 42%;
    }
    .foot-nav{
        width: 15%;
    }
    .foot-nav ul li{
        line-height: 38px;
    }
    .foot-contact{
        width: 25%;
    }
    .online-links{
        width: 33%;
    }
}

@media screen and (min-width:1200px) {
    .desktop .flexBox{
        width: 80%;
    }

    /* hero-section */
    .hero-section{
        height: 88vh;
    }
    .hero-section .flex{
        width: 80%;
    }
    .flex .profile-pic{
        width: 500px;
        height: 500px;
    }
    /* .flex .profile-pic img{
        width: 500px;
        height: 500px;
    } */
    .flex .intro{
        width: 56%;
    }
    .intro h1{
        font-size: 3.5rem;
    }
    .intro h1 span{
        font-size: 2.3rem;
    }
    .resume a button{
        padding: 10px 44px;
        font-size: 1.5rem;
    }
    .main{
        max-width: 80%;
    }

    /* about */
    .sec-heading span:first-child{
        width: 165px;
    }
    .abt-content{
        padding: 20px 40px;
    }
    .side2 p{
        font-size: 1.21rem !important;
        font-weight: 500;
        line-height: 35px;
    }

    /* skills */
    .skills .sec-heading span:first-child{
        width: 105px;
    }
    .tech-stack .flexBox{
        row-gap: 18px;
    }
    .tech{
        /* background-color: aliceblue; */
        /* background-color: #b1dfd9; */
        padding: 20px 30px;
        box-shadow: 0px 0px 7px 1px #cdc7c7;
    }
    .tech img{
        width: 40%;
    }
    .tech figcaption p{
        margin: 0
    }

    /* project */
    .project .sec-heading span:first-child{
        width: 152px;
    }
    .html-project, .python-project{
        row-gap: 40px;
    }
    .cards{
        width: 28.66%;
    }
    
    /* contact */
    .contact .sec-heading span:first-child{
        width: 136px;
    } 
}



/* Maze.html */
.video_section{
    margin: 30px auto;
}
.video_section h1{
    text-align: center;
    font-family: var(--family1);
    padding: 20px 0 ;
}
.video_section video{
    width: 100%;
}

@media screen and (min-width:411px) and (max-width: 430px){
    .video_section video{
        padding: 0 30px ;
    }
}

