@font-face {
    font-family: 'Aptos';
    src: url('fonts/Aptos-Narrow.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Aptos';
    src: url('fonts/Aptos-Narrow-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

body, html {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    height: 100%; 
}


body {
    font-family: 'Aptos', Arial; /* Use Aptos as primary font */
    font-size: 14px;
    line-height: 1.0;
    color: black;
    background-color: #f9f9f9;
    display: flex;
    justify-content: center; 
    align-items: center; 
    padding: 20px;
}

/* Container: Holds Image and Text Areas */
.container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px; 
    width: 100%; 
    gap: 50px; 
}

/* Left Side: Image Area */
.image-area {
    width: 50%; 
    display: flex;
    position: relative;
    justify-content: center;
    align-items: center;
    height: auto; 
    max-height: 600px; 
}

.image-area img {
    position: absolute; 
    display: none; /* Hide images initially */
    max-width: 100%;
    max-height: 600px; 
    object-fit: contain; 
    pointer-events: none; 
    user-select: none; 
    pointer-events: none;
}


/* Right Side: Text Content */
.text-area {
    flex: 50%; 
    padding: 20px; 
    max-height: 600px; 
    overflow-y: auto; 
}

/* Bio Section */
.bio p {
    text-align: justify;
    line-height: 1.0;
    margin-bottom: 20px;
    font-size: 1rem;
}

/* Projects Section */
.projects p {
    font-size: 1rem;
    margin-bottom: 10px;
}

.projects ul {
    list-style: none;
    padding: 0;
}

.projects li {
    font-size: 1rem;
    margin: 5px 0;
    cursor: pointer;
    transition: color 0.3s;
}

.projects li:hover {
    /* Highlight color orange when hovered */
    color: #46e308;
}
/* Style links */
a {
    color: #46e308; 
    text-decoration: none; 
}


a:hover {
    color: #46e308;
    text-decoration: none; 
}

#JoanaTomaz {
    cursor: pointer; /* Show pointer when hovering over the name */
    transition: color 0.3s; /* Smooth color transition */
}

#JoanaTomaz:hover {
    color: #46e308; /* Change text color to orange on hover */
}

/* Add responsive styles for smaller screens */
@media (max-width: 768px) { 
    .container {
        flex-direction: column; /* Stack elements vertically */
        gap: 20px; 
    }

    .text-area {
        order: 1; /* Display text area first */
        width: 100%; 
        text-align: justify; 
        padding: 10px; 
    }

    .bio p, .projects p {
        line-height: 1.2; 
        font-size: 0.9rem; 
        text-align: justify; 
    }

    .projects li {
        order:2;
        font-size: 0.9rem; 
        text-align: justify; 
    }

    .image-area {
        order: 3; /* Ensure images are always after text */
        width: 100%; 
        max-height: none; /* Allow images to grow without restriction */
        display: flex; 
        flex-direction: column; /* Stack images vertically */
        justify-content: flex-start; 
        align-items: center; 
        gap: 20px; /* Add space between images */
        margin-top: 20px; /* Add space above the image area */
    }
    
    .image-area img {
        display: none; /* Initially hide images */
        max-width: 100%; 
        height: auto; /* Maintain aspect ratio */
        object-fit: contain; 
        margin: 0 auto; 
    }
    
    body {
        overflow-y: scroll; /* Ensure scrollable content */
    }
}