html{
    scroll-behavior: smooth;
}

body{
    padding-left: 7vw;
    padding-right: 7vw;
    background-color: #110A08;
    font-family: 'Roboto', sans-serif;
    color: #A8755B;
}

/* NAVABAR */

.navbar {
    position: fixed;
    width: 90%;
    background-color: rgba(17, 10, 8, 0.9);
    z-index: 1;
  }

.navbar-brand{
    width: 50px;
}
.navbar-nav{
    text-align: center;
    box-shadow: inset;
    font-family: 'Space Mono', monospace;
}
.nav-link{
    color: #A8755B;
    padding-right: 10px;
    margin: 5px;
}

.nav-link:hover{
    color: #E5E5CB;
}

.navbar-toggler-icon{
    background-image: url(hamburger.png);
}

#hamburger-btn{
    border:none;
}

.btn-resume{
    width: 140px;
    height: 40px;
    background-color: #110A08;
    color: #A8755B;
    border: 2px solid #A8755B;
    border-radius: 10px;
    margin-top: 5px;
    margin-left: 10px;
    
}

.btn-resume:hover{
    color: #E5E5CB;
    border: 2px solid #E5E5CB;
}

a{
    text-decoration: none;
    color: #A8755B;
}
a:hover{
    color: #E5E5CB;
}

/* INTRO */

.my-intro{
    max-width:max-content;
    /* margin-top: 5vw; */
    padding-top: 9vw;
}

#intro-p{
    font-size: 1.25rem;
    margin-top: 1rem;
    line-height: normal;
}

h4{
    color: #E5E5CB;
    font-family: 'Space Mono', monospace;
}

.h1{
    color: #A8755B;
    font-family: 'Ubuntu', sans-serif;
    font-weight: 700;
    font-size: 4.5rem;
}

h2{
    color: #FFC3A1;
    font-family: 'Ubuntu', sans-serif;
    font-weight: 900;
    font-size: 4rem;
}

#bio{
    width: 55%;
    color: #A8755B;
}

/*WEATHER DATA*/

.timeAndWeather{
    /* float: right; */
    text-align: right;
    padding-top: 5%;
}

#currDate{
    font-family: 'Ubuntu', sans-serif;
    font-weight: 600;
    color: #A8755B;
    font-size: 1.5 rem;
}

/*GET IN TOUCH BUTTON*/

.get-in-touch{
    padding-top: 5%;
    padding-bottom: 5%;
    text-align: center;
}



.btn-get-in-touch{
    width: 200px;
    height: 50px;
    background-color: #110A08;
    color: #A8755B;
    border: 2px solid #A8755B;
    border-radius: 10px;
    margin-top: 5px;
    margin-bottom: 5px;
    /* margin-left: 10px; */
    font-weight: 600;
    font-family: 'Ubuntu', sans-serif;
}

.btn-get-in-touch:hover{
    color: #E5E5CB;
    border: 2px solid #E5E5CB;
    transition: 0.5s;
}

/* ABOUT ME */

.about{
    max-width:max-content;
    padding-top: 5%;
    padding-bottom: 5%;
    /* max-height: 60vh; */
    /* padding-left: 5vw;
    padding-right: 5vw; */
}

.about-row{
    margin-top: 2%;
    align-items: center;
}

.heading-big{
    color: #FFC3A1;
    font-family: 'Ubuntu', sans-serif;
    font-size: 3rem;
    font-weight: 600;
}

.about-img{
    background-image: url(https://sampad-portfolio.s3.eu-north-1.amazonaws.com/Sampad-Portfolio-Files/images/sam.png);
    background-size: cover;
    width: 400px;
    height: 300px;
    margin-top:auto ;
    margin-bottom: auto;
    margin-left: 2%;
    vertical-align: middle;
    text-align:left;
    display: flex;
    align-items: center;
}

.about-img:hover{
    transform: scale(1.1);
    transition: 0.5s;
    background-image: url(https://sampad-portfolio.s3.eu-north-1.amazonaws.com/Sampad-Portfolio-Files/images/samh.jpg);
}

/* MY EXPERTISE */

.expertise{
    max-width:max-content;
    padding-top: 5%;
    padding-bottom: 5%;
    text-align: center;
}

.expertise .content{
    text-align: justify;
}

.expertise-box{
    border-radius: 5px;
    border-width: 2px;
    border-color: #A8755B;
    border-style: solid;
    width: 400px;
    height: 300px;
    margin: 2%;
    padding: 15px 10px 15px 10px;
    /* text-align: center; */
    justify-content: center;
}

.expertise-box:hover{
    transform: scale(1.1);
    transition: 0.5s;
    border-color: #E5E5CB;
    color: #E5E5CB;
}

.heading-internal{
    color: #A8755B;
    font-family: 'Ubuntu', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 10px;
    text-align: left;
}

.sub-heading{
    color: #A8755B;
    font-family: 'Ubuntu', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 2%;
    text-align: left;
}

.sub-heading2{
    color: #A8755B;
    font-family: 'Space Mono', monospace;
    font-size: 1rem;
    margin-bottom: 10px;
    text-align: left;
}

.heading-small{
    display: inline-block;
    color: #A8755B;
    font-family: 'Ubuntu', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
    overflow: visible;
    width: 200px;
    text-align: left;
}

.expert-img{
    float:left;
    margin: 2px;
    width: 64px;
}

/*GITHUB - STATS*/

#github-stats{
    /* max-width:max-content; */
    padding-top: 5%;
    padding-bottom: 5%;
    text-align: center;
}

.stats{
    padding-top: 2%;
    margin: 0 auto;
}
.gh-chart{
    width: 80%;
    src: url(https://ghchart.rshah.org/A8755B/Sampad-Adhikary.svg);
}

/* PROJECTS */

#projects{
    max-width:max-content;
    padding-top: 5%;
    padding-bottom: 5%;
    text-align: center;
}

.project-row{
    margin-top: 2%;
    max-height: 900px;
    overflow-y: scroll;
    overflow-x: auto;
}

.project-card {
    background-color: rgba(60, 42, 33, 0.4); /* Adjusted to be slightly transparent */
    text-align: left;
    width: 350px;
    height: 420px;
    margin: 0px auto;
    margin-top: 15px;
    border-radius: 5px;
}


.project-card:hover{
    /* transform: scale(1.05); */
    transition: 0.5s;
}

.project-img{
    width: 340px;
    margin: 0 auto;
    margin-top: 5px;
    margin-bottom: 15px;
}


#p1{
    background-image: url(https://sampad-portfolio.s3.eu-north-1.amazonaws.com/Sampad-Portfolio-Files/images/eth.png);
    margin: 2px auto;
    height: 166px;
    width: 340px;
}

#p1:hover{
    transition: 0.5s;
    background-image: url(https://sampad-portfolio.s3.eu-north-1.amazonaws.com/Sampad-Portfolio-Files/images/ethh.png);
}

#p2{
    background-image: url(https://sampad-portfolio.s3.eu-north-1.amazonaws.com/Sampad-Portfolio-Files/images/dsa.png);
    margin: 2px auto;
    height: 166px;
    width: 340px;
}



#p2:hover{
    transition: 0.5s;
    background-image: url(https://sampad-portfolio.s3.eu-north-1.amazonaws.com/Sampad-Portfolio-Files/images/dsah.png);
}

#p3{
    background-image: url(https://sampad-portfolio.s3.eu-north-1.amazonaws.com/Sampad-Portfolio-Files/images/hab.png);
    margin: 2px auto;
    height: 222px;
    width: 340px;
}

#p3:hover{
    transition: 0.5s;
    background-image: url(https://sampad-portfolio.s3.eu-north-1.amazonaws.com/Sampad-Portfolio-Files/images/habh.png);
}

#p4{
    background-image: url(https://sampad-portfolio.s3.eu-north-1.amazonaws.com/Sampad-Portfolio-Files/images/dicey.png);
    margin: 2px auto;
    height: 217px;
    width: 340px;
}

#p4:hover{
    transition: 0.5s;
    background-image: url(https://sampad-portfolio.s3.eu-north-1.amazonaws.com/Sampad-Portfolio-Files/images/dicyh.png);
}
#p5{
    background-image: url(https://sampad-portfolio.s3.eu-north-1.amazonaws.com/Sampad-Portfolio-Files/images/simon.png);
    margin: 2px auto;
    height: 248px;
    width: 340px;
}

#p5:hover{
    transition: 0.5s;
    background-image: url(https://sampad-portfolio.s3.eu-north-1.amazonaws.com/Sampad-Portfolio-Files/images/simonh.png);
}
#p6{
    background-image: url(https://sampad-portfolio.s3.eu-north-1.amazonaws.com/Sampad-Portfolio-Files/images/jam.png);
    margin: 2px auto;
    height: 248px;
    width: 340px;
}

#p6:hover{
    transition: 0.5s;
    background-image: url(https://sampad-portfolio.s3.eu-north-1.amazonaws.com/Sampad-Portfolio-Files/images/jamh.png);
}
#p7{
    background-image: url(https://sampad-portfolio.s3.eu-north-1.amazonaws.com/Sampad-Portfolio-Files/images/finpet.png);
    margin: 2px auto;
    height: 222px;
    width: 340px;
}

#p7:hover{
    transition: 0.5s;
    background-image: url(https://sampad-portfolio.s3.eu-north-1.amazonaws.com/Sampad-Portfolio-Files/images/finpeth.png);
}
#p8{
    background-image: url(https://sampad-portfolio.s3.eu-north-1.amazonaws.com/Sampad-Portfolio-Files/images/gd.png);
    margin: 2px auto;
    height: 217px;
    width: 340px;
}

#p8:hover{
    transition: 0.5s;
    background-image: url(https://sampad-portfolio.s3.eu-north-1.amazonaws.com/Sampad-Portfolio-Files/images/gdh.png);
}

#p9{
    background-image: url(https://sampad-portfolio.s3.eu-north-1.amazonaws.com/Sampad-Portfolio-Files/images/contact.png);
    margin: 2px auto;
    height: 162px;
    width: 337px;
}

#p9:hover{
    transition: 0.5s;
    background-image: url(https://sampad-portfolio.s3.eu-north-1.amazonaws.com/Sampad-Portfolio-Files/images/contacth.png);
}

.crd-head{
    font-family: 'Ubuntu', sans-serif;
    font-size: 2rem;
    color: #E5E5CB;
    margin-top: 10px;
    margin-left: 15px;
    margin-right: 15px;
    margin-bottom: 0px; ;
}

.crd-normal{
    font-family: 'Ubuntu', sans-serif;
    color: #E5E5CB;
    margin-bottom: 0px;
}

.crd-icon{
    width: 30px;
    margin-right: 10px;
    margin-top: 10px;
}

.card-body{
    padding-left: 5%;
    padding-top: 2%;
}


/* CONTACT ME */

#contact{
    max-width:max-content;
    padding-top: 5%;
    padding-bottom: 5%;
    text-align: right;
}

.contact-row{
    margin-top: 2%;
}

.email{
   align-items: center;
   vertical-align: middle;
}

.email-btn{
    margin: 0 auto 0 auto;
    /* margin: auto; */
    width: 15rem;
    height: 4rem;
    border-radius: 5px;
    border-color: #A8755B;
    border-width: 2px;
    border-style: solid;
    color: #A8755B;
    font-family: 'Ubuntu', sans-serif;
    font-size: 1.7rem;
    font-weight: 600;
    text-align: center;
    padding-top: 0.5rem;
}

.email-btn:hover{
    /* transform: scale(1.1); */
    transition: 0.5s;
    border-color: #E5E5CB;
    color: #E5E5CB;
    width: 18rem; /* Updated width value */
}

/* CTA FORM */

.row{
    margin-top:2% ;
}

#cta{
    max-width:100%;
    padding-top: 5%;
    padding-bottom: 5%;
    align-items: center;
}

.form-control::placeholder{
    color: #110A08;
    font-weight: 400;
}

.form-control{
    background-color: #A8755B;
    color: #E5E5CB;
    border: none;
    font-weight: 500;
    font-size: 1rem;
}

.form-control:focus{
    background-color: #3C2A21;
    color: #E5E5CB;
    box-shadow: none;
}

.btn-submit{
    font-family: 'Ubuntu', sans-serif;
    box-shadow: inset;
    background-color: #3C2A21;
    color: #E5E5CB;
    border: none;
    font-weight: 600;
    font-size: 1.5rem;
    border-radius: 5px;
    width: 100%;
    height: 2.5rem;
}

.btn-submit:hover{
    /* width: 100%; */
    transform: scale(1.0);
    transition: 0.5s;
    background-color: #E5E5CB;
    color: #3C2A21;
}

/*FOOTER CLASS*/

.footer-icon:hover{
    transform: translateY(-3px);
    transition: 0.5s;
}

.footer-cls{
    padding-top: 5%;
    padding-bottom: 2%;
    text-align: center;
    font-family: 'Space Mono', monospace;
    color: #AA8877;
}

.footer-icon{
    margin-bottom: 30px;
    margin-right: 10px;
}

/* RESPONSIVE */

::-webkit-scrollbar {
    width: 10px;
}
 
::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3); 
    border-radius: 5px;
}
 
::-webkit-scrollbar-thumb {

    border-radius: 5px;
    background-color: #AA8877;
    -webkit-box-align: center;
}

/* LOADING SCREEN */

#preloader{
    background: #110A08 url("{% static 'assets/resources/loader.gif' %}") no-repeat center;
    margin-right: 5vw;
    height: 100vh;
    width: 90vw;
    position: fixed;
    z-index: 100;
}

/* TEXT ANIMATION */

.my-intro .h1
{   
    width: max-content;
    position: relative;
    margin-top: 20px;
    letter-spacing: 5px;
    color: #110A08;
    text-transform: uppercase;
    -webkit-text-stroke: 0.3vw #110A08;
}

.h1::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    color: #A8755B;
    -webkit-text-stroke: 0vw #A8755B;
    border-right: 2px solid #A8755B;
    overflow: hidden;
    animation: animate-text 6s linear infinite;

}

@keyframes animate-text{
    0%, 10%, 100%{
        width: 0;
    }
    70%,90%{
        width: 100%;
    }
}



@media screen and (min-width: 300px) and (max-width: 900px) {
    #bio{
        margin: 0 auto;
        text-align: justify;
        width: auto;
    }
    .about-content{
        text-align: justify;
        width: auto;
        /* padding: 2%; */
    }
    .col-6{
        width: 80%;
    }
    .navbar{
        
        padding-right: 5vw; /* Corresponds to 10% of the viewport width */
        padding-left: 5vw; /* Corresponds to 10% of the viewport width */
    }
    .my-intro{
        /* text-align: center; */
        padding-top: 20vw;
        padding-right: 5vw;
        padding-left: 5vw;
    }
    .h1{
        font-size: 1.15rem;
    }
    .timeAndWeather{
        /* text-align: center; */
        padding-right: 5vw;
        padding-left: 5vw;
    }
    .about{
        /* text-align: center; */
        padding-right: 5vw;
        padding-left: 5vw;
    }
    .expertise{
        display: flex;
        justify-content: right;
        padding-right: 5vw;
        padding-left: 5vw;
    }
    .expertise-row{
        display: flex;
        justify-content: center;
    }
    .about-row{
        display: flex;
        justify-content: center;
        text-align: center;
    }
    .project-row{
        display: flex;
        justify-content: center;
        text-align: center;
        max-height: 700px;
    }
    .tool-row{
        display: flex;
        justify-content: center;
        text-align: center;
        max-height: 450px;
        overflow-y: auto;
        overflow-x: auto;
    }
    .contact-row{
        display: flex;
        justify-content: center;
        text-align: justify;
    }
    .tools{
        margin:0 auto;
    }
    #contact, #about,#cta,#toolkit{
        text-align: center;
    }
    .email{
        margin-top: 2%;
        margin-bottom: 2%;
    }
}

#cta-div{
    display: flex;
    justify-content: space-between;
    vertical-align: middle;
}

#expertise{
    /* margin-top: 5vw; */
    margin-bottom: 5vw;
    text-align: center;
    padding-top: 9vw;
}

.exp-card{
    text-align: start;
    padding: 1%;
    width: 90%;
    margin: 0 auto;
    border-radius: 5px;
    border: solid #3C2A21;
    background-color: rgba(60, 42, 33, 0.2);
    border-width: 1px;
}

.exp-card:hover{
    transition: 0.5s;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 3px 6px;
    transform: scale(1.01);
}

.blog-cover-img{
    /* Fit withing parent div */
    width: 100%;
    border-radius: 5px;
}

.btn-readmore{
    width: 140px !important;
    height: 40px;
    background-color: #110A08;
    color: #ffc3a1;
    border: 2px solid #FFC3A1;
    border-radius: 10px;
    margin-top: 5px;
    margin-left: 10px;
    font-size: 1rem;
    font-family: 'ubuntu', monospace;
    font-weight: 400;
    margin-bottom: 1vw;
}

.btn-readmore:hover{
    transition: 0.5s;
    background-color: #FFC3A1;
    color: #110A08;
}