@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;500;700;900&display=swap');

*, 
*::before,
*::after,
html,
body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

html,
body {
    margin: 0 auto;
    width: 100%;
    min-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

body{
    background-color: #0b0b0c;
}

h1, h2, h3, h4, h5, h6, a, p{
    color: #FFFFFF;
    text-decoration: none;
}

h1{
    font-size: 1.75rem;
    font-weight: 500;
}

h2, h3{
    font-size: 1.5rem;
    font-weight: 500;
}

h4{
    font-size: 1.25rem;
    font-weight: 300;
}

h5{
    font-size: 1.15rem;
}

h6{
    font-size: 1rem;
    font-weight: 400;
}

p{
    font-size: 1rem;
    font-weight: 400;
}

a{
    font-size: 1rem;
    font-weight: 400;
}
a:hover{
    text-decoration: underline;
}

nav{
    width: 60%;
    margin-top: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-content: space-between;
    gap: 2rem;
}

.sub-nav{
    height: fit-content;
    padding: 0rem 0.6rem;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 0.15rem;
    border: 0.1rem solid #313131;
    border-radius: 999px;
    background-color: rgba(63,63,70,.4);
}

.nav-item{
    padding: 0.9rem;
    font-size: 0.9rem;
}

.nav-home-img{
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    border: 0.1rem solid #313131;
}

.no-border{
    border: none;
}

#nav-spacer{
    width: 70%;
}

.nav-dark-mode-toggle{
    height: fit-content;
    padding: 0.9rem 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 0.1rem solid #313131;
    border-radius: 999px;
    background-color: rgba(63,63,70,.4);
    transition: background-color 0.1s ease-in;
}
.nav-dark-mode-toggle:hover{
    cursor: pointer;
    background-color: rgba(63,63,70,.8);
}

.dark-mode-img{
    width: 1rem;
    height: 1rem;
    fill: #FFFFFF;
}

footer{
    margin: 0 auto;
    padding: 5rem 0rem 9rem 0rem;
    width: 80%;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    border-top: 0.05rem solid rgba(255, 255, 255, .4);
}

.body-wrapper{
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.card{
    margin: 0 auto;
    width: 100%;
    min-height: 40rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 5rem 0rem 5rem 0rem;
    /* border-bottom: 0.15rem solid #FFFFFF; */
    row-gap: 5rem;
}

.card-title{
    font-weight: 600;
    padding-bottom: 2rem;
}










.tooltip {
  position: relative;
  display: inline-block;
  border-bottom: 1px dotted black; /* Add dots under the hoverable text */
  cursor: pointer;
}

/* Tooltip text */
.tooltiptext {
  visibility: hidden; /* Hidden by default */
  /* width: 130px; */
  background-color: black;
  color: #ffffff;
  text-align: center;
  padding: 0.5rem 0.5rem;
  border-radius: 6px;
  position: absolute;
  z-index: 1; /* Ensure tooltip is displayed above content */
}

/* Show the tooltip text on hover */
.tooltip:hover .tooltiptext {
  visibility: visible;
}

.tooltip-bottom{
    top: 120%;
    /* left: 50%; */
    /* margin-left: -60px; */
    margin-left: -150%;
}








/* index page */
#about-content{
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

#about-content .profile-info{
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    max-width: 35rem;
}

.profile-img{
    max-width: 10rem;
    max-height: 10rem;
    border-radius: 50%;
    border: 0.1rem solid rgba(255, 255, 255, .8);
    /* border: 0.15rem solid #313131; */
}

.about-name{
    font-weight: 900;
    font-size: 2.25rem;
}

.about-title{
    font-weight: 500;
}

.social-links{
    margin-top: 0.6rem;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
}

.social-img{
    width: 2rem;
    height: 2rem;
}




/* about page */
.about-wrapper{
    display: flex;
    flex-direction: row;
    width: 60%;
}

.about-half{
    width: 50%;
}

.about-left{
    display: flex;
    flex-direction: column;
    padding-right: 1rem;
    gap: 1rem;
}

.about-right{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.about-img{
    width: 15rem;
    border-radius: 50%;
}

.about-links{
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.link-item{
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
}





#projects{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.6rem;
}

.project-item-container{
    margin: 0 auto;
    width: fit-content;
    display: grid;
    flex-wrap: wrap;
    grid-template-columns: auto auto auto;
    gap: 2rem;
    row-gap: 2rem;
    grid-template-columns: repeat(3,minmax(0,1fr));
}

.project-item{
    margin: 0 auto;
    border: 0.05rem solid rgba(255, 255, 255, .2);
    border-radius: 0.6rem;
    width: 20rem;
    min-height: fit-content;
    /* height: 35rem; */
    background-color: #161616;
}

.project-img{
    border-top-left-radius: 0.6rem;
    border-top-right-radius: 0.6rem;
    width: 100%;
    max-width: 20rem;
    height: auto;
}

.project-info{
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: left;
    gap: 0.3rem;
}

.project-info h6{
    margin-bottom: 0.6rem;
}

.project-info p a{
    text-decoration: underline;
}

.project-tech-stack{
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
}

.project-tech-img{
    /* width: 100%;
    max-width: 2.5rem;
    height: auto; */

    height: 100%;
    max-height: 2rem;
    width: auto;
}

.project-btn-container{
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.project-visit-btn{
    padding: 0.9rem 1.3rem;
    width: fit-content;
    border-radius: 2rem;
    background-color: rgba(63,63,70,.4);
    transition: background-color 0.1s ease-in;
    border: 0.1rem solid #313131;
}

.project-visit-btn:hover{
    background-color: rgba(63,63,70,.8);
    text-decoration: none;
}


@media (max-width: 1700px) {
    .project-item-container{
        width: fit-content;
        max-width: 80%;
    }
}

@media (max-width: 1300px) {
    .project-item-container{
        width: fit-content;
        max-width: 80%;
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
}

@media (max-width: 900px) {

    body{
        padding: 0 1.9rem;
    }

    footer{
        width: 100%;
    }

    nav{
        width: 100%;
    }

    #about-content{
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    #about-content .profile-info{
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.3rem;
        max-width: 35rem;
        text-align: center;
    }

    .about-wrapper{
        display: flex;
        flex-wrap: wrap-reverse;
        gap: 2rem;
        width: 100%;
    }

    .about-half{
        width: 100%;
    }

    .project-item-container{
        display: flex;
        justify-content: center;
        grid-template-columns: repeat(1,minmax(0,1fr));
    }
}