body {
    font-family: monospace;
    margin: 0;
    padding: 0;
    background-color: #fffefd;

    height: auto;
}

/* header */
header {
    background-color: #000;
    color: #fffefd;

    padding: 12px 40px;

    position: sticky;
    top: 0;

    display: flex;
    justify-content: space-between;
    align-items: center;

    z-index: 1000;
}



/* logo */
.header_logo {
    width: 200px;
}

@media (max-width: 1100px) {
    .header_logo {
        width: 150px;
        margin-left: 20px;
    }
}

/* nav goes right automatically */ 
.nav-buttons-container {
    display: flex;
    gap: 30px;
    padding-right: 5px;
}

/* buttons */
.nav-buttons {
    color: #fffefd;
    text-decoration: none;
    font-size: 25px;
    margin-left: 20px;
}

/* slightly smaller screens */
@media (max-width: 1100px) {

    .nav-buttons-container {
        gap: 15px;
    }

    .nav-buttons {
        font-size: 22px;
        margin-left: 10px;
    }
}

/* even smaller */
@media (max-width: 900px) {

    .nav-buttons-container {
        gap: 8px;
    }

    .nav-buttons {
        font-size: 18px;
        margin-left: 5px;
    }
}



/* hamburger button */
.menu-toggle {
    display: none;

    background: none;
    border: none;

    color: white;
    font-size: 35px;

    cursor: pointer;
}

/* MOBILE */
@media (max-width: 768px) {

    header {
        padding: 20px;
    }

    .header_logo {
        width: 150px;
    }

    /* show hamburger */
    .menu-toggle {
        display: block;
    }

    /* hidden menu */
    .nav-buttons-container {
        display: none;

        position: absolute;

        top: 100%;
        right: 20px;

        flex-direction: column;

        background-color: black;

        padding: 20px;

        gap: 20px;

        min-width: 200px;
    }

    /* active menu */
    .nav-buttons-container.active {
        display: flex;
    }

    .nav-buttons {
        margin-right: 10px;
        font-size: 22px;

        text-align: right;
    }
}

.footer {
    background-color: #000;
    text-align: center;
    padding: 40px 20px;
    
    font-size: 18px;
    color: #fffefd;
}

.filleer {
    height: 50px;
}


main {
    padding: 20px;
}


/* home screen */
.face-container {
    display: flex;
    flex-direction: column; /* 👈 THIS is the fix */
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.face {
    position: relative;
    width: 400px; /* fixed size first for easier tuning */
}

/* face image */
.face-img {
    width: 100%;
    display: block;
    z-index: 0;
    justify-self: center;
    
}

/* eyes */
.eye {
    position: absolute;
    width: 12%;
    transition: transform 0.05s linear;
}

/* adjust positions */
.left-eye {
    top: 35%;
    left: 20%;

    width: 25%;
}

.right-eye {
    top: 35%;
    right: 20%;

    width: 25%;
}

.useless_quote {
    margin: 100px auto 0 auto; /* top, right, bottom, left */
    width: 470px;
    text-align: center;
    font-size: 27px;
    color: #333;
}

@media (max-width: 768px) {
    .useless_quote {
        margin: 100px auto 0 auto;
        max-width: 85%;
        text-align: center;
        font-size: 27px;
        color: #333;
    }
}




.content-home{
    min-height: 100vh;
}


/* contact section */

.content-contact {
    min-height: 80vh;

    max-width: 800px;

    margin-left: auto;
    margin-right: auto;
}

.contact-intro {
    max-width: 1000px;
    margin-top: 50px;
    margin-left: 50px;
    font-size: 22px;
    line-height: 1.6;
    color: #333;

}

.contact-details {
    max-width: 1000px;
    margin-top: 20px;
    margin-left: 75px;
    font-size: 20px;
    line-height: 1.6;
    color: #333;

}

@media (max-width: 768px) {
    .content-home{
    min-height: 100vh;
}


/* contact section */

.contact-intro {
    max-width: 1000px;
    margin-top: 50px;
    margin-left: 20px;
    margin-right: 20px;
    font-size: 25px;
    line-height: 1.6;
    color: #333;

}

.contact-details {
    max-width: 1000px;
    margin-top: 20px;
    margin-left: 20px;
    margin-right: 20px;

    font-size: 20px;
    line-height: 1.6;
    color: #333;

}
}


/* home banners */
.banners {
    position: relative;

    width: 100vw;
    max-width: 1200px;

    margin: auto;
    overflow: hidden;

}

@media (max-width: 768px) {
    .banners {
        max-width: 95%;
    }
}

.banner-slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.banner-slide {
    min-width: 100%;
    display: block;
}

.banner-slide img {
    width: 100%;
    display: block;

}

/* buttons */
.banner-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    background-color: rgba(0, 0, 0, 0.0);
    color: rgba(0, 0, 0, 0.0);

    border: none;
    padding: 12px 25px;
    margin-left: -20px;
    margin-right: -20px;

    height: 100%;

    font-size: 28px;
    cursor: pointer;

    z-index: 10;

    transition: 0.2s;
}

.banner-btn:hover {
    background-color: rgba(0, 0, 0, 0.75);
    color: #fffefd;
}

.prev {
    left: 15px;
}

.next {
    right: 15px;
}


/* profile */






/* projects */

.link {
    text-decoration: none;
    color: black;
}

.content-projects {
    width: 95%;
    max-width: 1300px;
    min-height: 85vh;

    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .content-projects {
        width: 97%;
    }
}


.projects-container{
    margin-top: 30px;
}

.projects-category {
    font-size: 36px;
    color: #333;
    margin-bottom: 18px;
    margin-left: 45px;
}

.projects-description{
    margin-top: 10px;
    margin-left: 45px;
    font-size: 18px;
    line-height: 1.6;
    color: #333;
}

.project-divider{
    width: 95%;
}

.projects-wrapper {
    position: relative;
    width: 90%;
    margin: auto;
    display: flex;
    align-items: center;
}

.projects-slider {
    display: flex;
    gap: 25px;

    overflow-x: auto;
    scroll-behavior: smooth;

    width: 100%;
    padding-bottom: 10px;
}

.projects-slider {
    overflow-x: scroll;
}

.projects-slider::-webkit-scrollbar {
    height: 10px;
}

.projects-slider::-webkit-scrollbar-track {
    background: #ddd;
    border-radius: 10px;
}

.projects-slider::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.projects-slider::-webkit-scrollbar-thumb:hover {
    background: #555;
}


.project-card {
    min-width: 200px;
    max-width: 230px;

    background: white;
    padding: 15px;

    flex-shrink: 0;

    transition: transform 0.3s ease;

    position: relative;
}

.project-card::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0px; /* distance below card */
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-card:hover::after {
    width: 100%;
}

.project-card img {
    width: 100%;
    aspect-ratio: 1 / 1;

    object-fit: cover;

    border-radius: 7px;
}

.project-card h3 {
    margin-top: 12px;
    margin-bottom: 8px;

    font-size: 20px;
}

.project-card p {
    font-size: 14px;
    line-height: 1.5;
    color: #555;
}

.card-divider {
    width: 1px;
    margin-top: 25px;
    height: 300px;
    background-color: #000000;
    align-self: stretch; /* if parent is flex */
}

.project-description {
    font-size: 8px;
    line-height: 1.5;
    color: #555;
}

@media (max-width: 768px) {
    .projects-category {
        font-size: 30px;
        color: #333;
        margin-bottom: 10px;
        margin-left: 25px;
    }

    .projects-description{
        margin-top: 10px;
        margin-left: 25px;
        font-size: 15px;
        line-height: 1.6;
        color: #333;
    }

    .project-divider{
        width: 90%;
    }

    .project-description {
        font-size: 14px;
        color: #555;
    }
}



/* per project css */


.project-page-title {
    font-size: 36px;
    color: #333;
    margin: 20px auto;
    width: 90%;
    max-width: 900px;
    text-align: left;

}

.project-page-section-title {
    font-size: 30px;
    color: #333;

    margin: 30px auto;

    width: 90%;
    max-width: 800px;

    text-align: left;

}

.project-page-date {
    font-size: 25px;
    color: #333;

    margin: 15px auto;

    width: 90%;
    max-width: 900px;

    text-align: left;

}

.project-page-image {
    display: block;

    width: 90%;
    max-width: 700px;

    margin: 30px auto;

    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.project-page-image-caption{
    font-size: 15px;
    line-height: 1.6;
    color: #333;

    margin: 10px auto;

    width: 90%;
    max-width: 800px;

    text-align: left;

    font-family: "Roboto Mono", monospace;
    font-weight: 100;

    text-align: justify;
}

.project-page-paragraph {
    font-size: 20px;
    line-height: 1.6;
    color: #333;

    margin: 35px auto;

    width: 90%;
    max-width: 800px;

    text-align: left;

    font-family: "Roboto Mono", monospace;
    font-weight: 100;

    text-align: justify;

}

.project-page-image-poster{
    display: block;

    width: 95%;
    max-width: 1000px;
    margin: 35px auto;

    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.project-page-paragraph b {
    font-weight: 700;
}

.invisible-divider{
    font-size: 25px;
}

.project-page-video{
    position: relative;
    width: 90%;
    max-width: 1000px;

    margin: 30px auto;

    aspect-ratio: 16 / 9;

}

.project-page-video iframe {
    width: 100%;
    height: 100%;

    border: none;
    border-radius: 10px;

}



@media (max-width: 768px) {
    .project-page-title {
        font-size: 30px;
        color: #333;
        margin-bottom: 10px;
        margin-left: 25px;
        margin-right: 25px;
    }

    .project-page-date {
        font-size: 18px;
        color: #333;
        margin-bottom: 10px;
        margin-left: 25px;
        margin-right: 25px;
        width: 90%;
        max-width: 1000px;
        text-align: left;
    }

    .project-page-paragraph {
        font-size: 18px;
        line-height: 1.6;
        color: #333;

        margin: 35px auto;

        width: 90%;
        max-width: 1000px;

        text-align: left;

        font-family: "Roboto Mono", monospace;
        font-weight: 100;

        text-align: justify;

    }
    
}



/* profile */

.content-profile {
    height: 90vh;
}

.profile-container {
    display: flex;
    align-items: flex-start;
    gap: 20px;

    margin-top: 50px;
    width: 95%;
    max-width: 1300px;

    margin-left: auto;
    margin-right: auto;

    
}

.profile-personal {
    width: 300px;

    top: 0;

    height: 80vh;

    overflow: auto;
}

.profile-picture {
    width: 100%;
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.profile-name {
    font-size: 22px;
    text-align: center;

    font-weight: 200;
}

.profile-stats {
    font-size: 20px;
    text-align: left;

    font-weight: 200;
}

.profile-stats-details {
    font-size: 19px;
    text-align: left;

    font-weight: 200;
}

.profile-buttons {
    width: 90%;

    margin-left: auto;
    margin-right: auto;

    display: flex;
    justify-content: center;
}

.profile-button{
    width: 50px;
    padding: 10px 10px;
}



.profile-details {
    font-size: 15px;
}

.profile-section-title {
    font-size: 25px;
    font-weight: 400;
}

.profile-section-divider {
    border: none;
    height: 1px;
    background-color: black;
}


.profile-section-subtitle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.profile-section-institution {
    font-size: 21px;
    font-weight: 400;
}

.profile-section-date {
    font-size: 19px;
    font-weight: 400;
    
    text-align: right;
}

.profile-section-role {
    font-size: 20px;
    font-style: italic;
}

.profile-section-details {
    font-size: 18px;
}


.vl {
    width: 1px;
    background-color: #333;
    height: 80vh;

    top: 0;
}

.profile-content {
    flex: 1;
    height: 80vh;
    overflow-y: auto;
}

.invisible-divider-small{
    font-size: 12px;
}


/* TABLET + MOBILE */
@media (max-width: 900px) {

    .profile-container {
        flex-direction: column;
        align-items: center;
    }

    .profile-personal,
    .profile-content {
        width: 100%;
    }

    .profile-personal {
        width: 90%;

        top: 0;

        height: auto;

        overflow: auto;
    }

    .profile-picture {
        width: 80%;
        border-radius: 5px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);

        display: block;
        margin-left: auto;
        margin-right: auto;
    }

    /* CHANGE VERTICAL LINE TO HORIZONTAL */
    .vl {
        width: 100%;
        height: 1px;
        background-color: black;
    }

}


/* updates */
.articles {
    display: flex;
    flex-direction: column;
    gap: 20px;

    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
}

.article-card {
    display: flex;
    gap: 16px;
    padding: 16px;
    text-decoration: none;
    color: inherit;
    position: relative;
    transition: transform 0.2s ease;
}

.article-card::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background-color: currentColor; /* or your accent color */
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.article-card:hover {
    transform: translateY(-2px);
}

.article-card:hover::after {
    transform: scaleX(1);
}

.article-card img {
    width: 180px;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: 8px;
}

.article-content h3 {
    margin: 0 0 8px;
    font-weight: bold;
}

.article-content p {
    margin: 0;
    color: #666;
    line-height: 1.5;
}

.article-divider {
    border: none;
    height: 1px;
    background: #020202;
    margin: 0;
}


.article-card {
    display: flex;
    gap: 16px;
    padding: 16px;
    color: inherit;
    transition: 0.2s ease;
}

.article-card img {
    width: 180px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
}

/* Mobile */
@media (max-width: 768px) {
    .article-card {
        flex-direction: column;
    }

    .article-card img {
        width: 100%;
        height: 200px;
    }
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    column-gap: 5px;
    row-gap: 3px;
    margin-bottom: 10px;
}

.article-tags div {
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    width: fit-content;
}


/* Colors */
.tag-updates {
    background: #f5ede0;
    color: #4A342A;
}

.tag-experience {
    background: #D7C9B8;
    color: #4A342A;
}

.tag-projects {
    background: #B2967D;
    color: white;
}

.tag-review {
    background: #7D5A44;
    color: white;
}

.tag-ideas {
    background: #4A342A;
    color: white;
}

.tag-offtopic {
    background: #1e1101;
    color: white;
}


/* Project categories */
.tag-research {
    background: #4A342A;
    color: white;
}

.tag-fullstack {
    background: #D7C9B8;
    color: #4A342A;
}

.tag-tool {
    background: #B2967D;
    color: white;
}

.tag-webapp {
    background: #F5EDE0;
    color: #4A342A;
}

/* Data modalities */
.tag-image {
    background: #C7A58A;
    color: #3B281F;
}

.tag-tabular {
    background: #EDE3D5;
    color: #634735;
}

.tag-timeseries {
    background: #A98268;
    color: white;
}

.tag-text {
    background: #D9C0A8;
    color: #4A342A;
}

/* AI technologies */
.tag-llm {
    background: #795640;
    color: white;
}

.tag-agentic {
    background: #593C2C;
    color: white;
}

/* ML tasks */
.tag-clustering {
    background: #C6B19A;
    color: #4A342A;
}

.tag-classification {
    background: #B7A08A;
    color: #38271D;
}

.tag-regression {
    background: #F1E6D8;
    color: #634735;
}

.tag-forecasting {
    background: #8E7059;
    color: white;
}

.tag-model {
    background: #6B4B3E;
    color: white;
}

/* Layout */
.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}


.article-title {
    font-size: 18px;
    top: 10px;
    color: #333;
}

.project-page-table {
    font-size: 20px;
    line-height: 1.6;
    color: #333;

    margin: 35px auto;

    width: 90%;
    max-width: 1000px;

    text-align: left;

    font-family: "Roboto Mono", monospace;
    font-weight: 100;

    text-align: left;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    column-gap: 5px;
    row-gap: 3px;
    margin-bottom: 10px;
    margin-top: 10px;
}

.project-tags div {
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    width: fit-content;
}