/************************************* TEXT **************************************************************************************/
h1,h2,h4,p{
    font-family: psfournier-std, serif;
    font-weight: 300;
    font-style: normal;
    padding-left: 50px;
    padding-right: 50px;
}

h1{ /* project heading */
    font-size: 2.5em;
    line-height: 1;
    margin-top: 0;
    margin-bottom: 0;
}

h2{ /* project subheading */
    font-size: 1em;
    font-style: italic;
    margin-top: 10px;
}

p{ /* about, project description */
    font-size: 1em;
    margin-top: 0;
    margin-bottom: 10px;
}

.italic{
    font-style: italic;
}

#tooltip {
    font-size: 0.8em !important;
}

.lineheight{ /* black star ★ emoji */
    line-height: 1;
    vertical-align: middle;
    overflow: hidden;
    display: inline-block;
}

h4{ /* copyright */
    text-align: center;
    font-size: 0.8em;
    font-weight: lighter;
}

a{ /* links */
    text-decoration: none;
    color: black;
}

a:hover{
    opacity: 0.5;
}

/************************************* HOME **************************************************************************************/

/* Basic HTML and body setup */
body{
    scroll-behavior: smooth;
    overscroll-behavior: none;
    background: none no-repeat center center fixed;
    background-size: cover;
}

body,ul{
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    height: 100%;
}

ul{
    list-style: none;
}

main{
    height: auto;
}

img{
    width: 100%;
}

.portfolio-container{
    position: relative;
    width: 100%;
    min-height: 85vh;
    overflow: hidden;
}

.project{
    position: absolute;
    transform: translate(-50%, -50%);
    opacity: 1;
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
}

.project img{
    max-width: 150px;
    max-height: 150px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.2s ease-in-out;
}

.project:hover{
    transform: scale(0.95) translate(-52%, -52%);
    opacity: 1;
}

/* Project thumbnails */
@media (max-width: 992px){
    .project img{
        max-width: 125px;
        max-height: 125px;
    }
}

@media (max-width: 768px){
    .project img{
        max-width: 100px;
        max-height: 100px;
    }
}

@media (max-width: 480px){
    .project img{
        max-width: 75px;
        max-height: 75px;
    }
}

/************************************* NAVBAR **************************************************************************************/

/* Home link */
.home-link, .page-title{
    position: fixed;
    bottom: 30px;
    font-size: 7em;
    font-weight: normal;
    color: black;
    font-family: psfournier-std, serif;
    font-weight: 300;
    font-style: normal;
    letter-spacing: -2px;
    z-index: 9999;
    white-space: nowrap;
}

.home-link img{
    max-width: 150px;
}

.home-link img:hover{
    animation: spin 1s linear infinite;
}

.home-link{
    left: 50px
}

.page-title{
    right: 50px
}

.home-link:hover{
    opacity: 0.5;
}

.home-link.inactive, .page-title.inactive{
    pointer-events: none;
}

/* Home link */
@media (max-width: 1156px){
    .home-link{
        font-size: 6.5em;
        letter-spacing: -4.5px;
    }
    .page-title{
        font-size: 6.5em;
        letter-spacing: -4.5px;
    }
}

@media (max-width: 1085px){
    .home-link{
        font-size: 6em;
        letter-spacing: -4px;
    }
    .page-title{
        font-size: 6em;
        letter-spacing: -4px;
    }
}

@media (max-width: 1012px){
    .home-link{
        font-size: 5.5em;
    }
    .page-title{
        font-size: 5.5em;
    }
}

@media (max-width: 932px){
    .home-link{
        font-size: 5em;
        letter-spacing: -3.5px;
    }
    .page-title{
        font-size: 5em;
        letter-spacing: -3.5px;
    }
}

@media (max-width: 860px){
    .home-link{
        font-size: 4.5em;
        letter-spacing: -3px;
    }
    .page-title{
        font-size: 4.5em;
        letter-spacing: -3px;
    }
}

@media (max-width: 788px){
    .home-link{
        font-size: 4em;
        letter-spacing: -2.5px;
    }
    .page-title{
        font-size: 4em;
        letter-spacing: -2.5px;
    }
}

@media (max-width: 718px){
    .home-link{
        font-size: 3.5em;
    }
    .page-title{
        font-size: 3.5em;
    }
}

@media (max-width: 638px){
    .home-link{
        font-size: 2.8em;
        letter-spacing: -1.8px;
    }
    .page-title{
        font-size: 3em;
        letter-spacing: -1.8px;
    }
}

@media (max-width: 562px){
    .page-title{
        display: none;
    }
}

@media (max-width: 768px){
    .hide-on-mobile {
        display: none !important;
    }
}

/* Navbar */
.navbar{
    padding: 30px 70px 30px 50px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-menu{
    display: flex;
    justify-content: space-between;
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}
  
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.navbar-icon{
    width: 1em;
    height: 1em;
    object-fit: contain;
    vertical-align: middle;
}

.navbar-icon:hover{
    animation: spin 1s linear infinite;
}

.navbar ul{
    display: flex;
}
  
.navbar li a{
    text-decoration: none;
    color: black;
    font-family: psfournier-std, serif;
    font-weight: 400;
    font-style: normal;    white-space: nowrap;
}
  
.navbar li a:hover{
    text-decoration: underline;
    opacity: 1;
}

.navbar .active{
    text-decoration: underline;
}

/* Match button style to navbar */
.navbar li button.filter-btn{
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font: inherit;
    color: black;
    font-family: psfournier-std, serif;
    font-weight: 400;
    font-style: normal;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}

.navbar li button.filter-btn:hover{
    text-decoration: underline;
    opacity: 1;
}

.navbar li button.filter-btn.active{
    text-decoration: underline;
}

.playPauseBtn{
    border: none;
    border-radius: 50%;
    cursor: pointer;
    background-color: transparent;
    padding: 3px;
    position: fixed;
}

@media (max-width:480px){
    .filter-btn{
        display: none;
    }
    .playPauseBtn{
        display: none;
    }
    .navbar{
        padding: 30px 10px 30px 50px;
    }
}

/************************************* PROJECTS **************************************************************************************/

.project-page{
    display: flex;
    align-items: flex-start;
    position: relative;
    padding-left: 0px;
    padding-right: 50px;
}

.text-section{
    width: 35%;
    position: sticky;
    top: 80px;
}

.image-section{
    width: 65%;
    overflow-y: visible;
    padding-bottom: 0px;
}

.image-section img{
    max-width: 100%;
    height: auto;
    padding-bottom: 10px;
}

.image-section::-webkit-scrollbar{
    display: none; /* Chrome, Safari */
}

.video-container{
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    max-width: 100%;
    overflow: hidden;
}

.video-container iframe{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Mobile - stack sections vertically */
@media (max-width: 992px){
    .project-page{
        flex-direction: column;
        padding-left: 0;
        padding-right: 0;
    }

    .text-section{
        width: 100%;
        position: static; /* Remove sticky so it scrolls normally */
        padding-top: 2%;
        padding-bottom: 5%;
        text-align: center;
    }

    .image-section{
        width: 100%;
        padding-bottom: 0px;
    }

    .home-link img{
        display: none;
    }
}

/************************************* ABOUT **************************************************************************************/

.about-page{
    display: flex;
    position: relative;
    justify-content: space-between;
    padding-left: 0px;
    padding-right: 50px;
}

.about-page .text-section{
    top: 0px;
}

.about-page .image-section{
    width: 25%;
}

@media (max-width: 992px){
    .about-page{
        flex-direction: column;
        padding-left: 0;
        padding-right: 0;
    }

    .about-page .image-section img{
        display: none;
    }
}

/************************************* CONTACT *************************************************************************************/

.responsive-img{
    display: block;
    width: 30vw;
    max-width: 350px;
    height: auto;
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@media (max-width:992px){
    .responsive-img{
        width: 40vw;
    }   
}

@media (max-width:768px){
    .responsive-img{
        width: 50vw;
    }   
}

@media (max-width:480px){
    .responsive-img{
        width: 75vw;
    }   
}

#tooltip {
    position: absolute;
    color: black;
    padding: 5px;
    font-family: psfournier-std, serif;
    font-weight: 300;
    font-style: normal;   
    font-size: 16px;
    border-radius: 0px;
    pointer-events: none;
    opacity: 0; /* Initially hidden */
    transition: opacity 0.2s ease-in-out;
    white-space: nowrap;
}

/************************************* FOOTER **************************************************************************************/

footer {
    position: fixed;
    bottom: 0;
    width: 100%;
}