/* Reset margin and padding */
body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: Arial, sans-serif;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 95%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 10px;
    background-color: transparent;
}

.header-nav {
    display: flex;
    gap: 20px;
}

.header-button {
    color: black;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    padding: 8px 16px;
    transition: background-color 0.3s ease;
}

.header-button:hover {
    color: chartreuse; /* Subtle hover effect */
}

.small-logo {
    width: 80px;
    height: 80px;
}

/* Wrapper to center main content */
.wrapper {
    display: flex;
    justify-content: center; /* Center horizontally */
    align-items: center;     /* Center vertically */
    min-height: calc(100vh - 100px); /* Ensure the height accounts for the header */
    padding-top: 80px; /* Push content below the header */
    padding-bottom: 20px; /* Additional padding */
}

/* Main content */
main {
    display: flex;
    justify-content: space-between; /* Keep items side by side */
    align-items: center;            /* Center items vertically in the container */
    padding: 20px;
    box-sizing: border-box;
    max-width: 1200px;
    width: 100%;
    flex-wrap: wrap; /* Allow items to wrap if the screen is too small */
}

/* Profile picture */
.profile-picture {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center the image horizontally */
    align-items: center;     /* Center the image vertically */
    margin-right: 30px;      /* Add spacing between the image and bio */
}

.profile-picture img {
    width: 550px; /* Set a balanced width for normal screens */
    height: auto;
    max-width: 100%; /* Ensure the image scales properly */
    border-radius: 0; /* Keep the image rectangular */
}

.image-legend {
    margin-top: 10px; /* Space between the image and the legend */
    font-size: 14px;
    color: #666;
    text-align: center; /* Center the text */
}

/* Bio text */
.bio {
    flex: 2;
    min-width: 300px; /* Ensure the text has enough space */
    color: #333;
    line-height: 1.6;
}

.bio h1 {
    margin-top: 0;
    font-size: 36px;
}

.bio p {
    font-size: 18px;
    margin-bottom: 15px; /* Adjust margin for better spacing */
    word-wrap: break-word;
}

/* Larger screens (normal desktop screens) */
@media screen and (min-width: 769px) {
    .profile-picture img {
        width: 550px; /* Set a slightly smaller image for large screens */
    }

    .bio {
        padding-left: 30px; /* Add padding for bio on larger screens */
    }
}

/* Responsive styles for iPhone 14 (393px wide) */
@media screen and (max-width: 393px) {
    
    .header-button{
        font-size: 14px;
        padding: 8px 10px;
    }

    .small-logo{
        width: 60px;
        height: 60px;
    }
    
    main {
        flex-direction: column; /* Stack the picture and bio vertically */
        align-items: center;
        margin-top: 120px; /* Ensure there's space for the fixed logo */
    }

    .profile-picture {
        margin-right: 0;
        margin-bottom: 20px;
    }

    .profile-picture img {
        width: 220px; /* Increased size for profile picture on iPhone 14 */
        
    }

    .image-legend {
        margin-top: 10px; /* Add some spacing between the image and legend */
        font-size: 14px; /* Set a reasonable font size for the legend */
        color: #666; /* Lighter color for the legend text */
        text-align: center; /* Center the legend text */
    }

    .bio {
        padding: 10px;
        text-align: left; /* Center the bio text for small screens */
    }

    .bio h1 {
        font-size: 28px;
    }

    .bio p {
        font-size: 16px;
        margin-bottom: 10px; /* Reduce text spacing on iPhone */
    }
}

/* Extra small devices (e.g., iPhone SE) */
@media screen and (max-width: 480px) {
    .small-logo {
        width: 70px; /* Smaller logo for extra small screens */
    }

    main {
        padding: 10px;
    }

    .profile-picture img {
        width: 180px; /* Slightly smaller profile picture */
    }

    .bio h1 {
        font-size: 24px; /* Adjust heading size */
    }

    .bio p {
        font-size: 14px; /* Adjust text size */
    }

    .header-button{
        font-size: 14px;
        padding: 8px 10px;
    }

    .small-logo{
        width: 60px;
        height: 60px;
    }

}
