/* Reset basic styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #121212;
    color: #b3b3b3;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    display: flex;
    justify-content: center;
    padding: 80px 20px;
}

/* Base Layout Container */
.container {
    width: 100%;
    max-width: 800px;
}

/* Header Styling */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
}

.logo {
    color: #ffffff;
    font-size: 24px;
    font-weight: 600;
}

nav a {
    color: #b3b3b3;
    text-decoration: none;
    margin-left: 20px;
    font-size: 14px;
    transition: color 0.2s ease;
}

nav a:hover {
    color: #ffffff;
}

/* Main Grid Layout - Fixed for Side-by-Side Alignment */
main {
    display: flex;
    flex-direction: row; /* Keeps text left, image right */
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 60px;
}

/* Text Formatting */
.content-text {
    flex-grow: 1; /* Allows text block to take up the available left space */
}

.content-text p {
    margin-bottom: 24px;
}

.content-text p.list-label {
    margin-bottom: 8px;
}

.content-text strong {
    color: #ffffff;
}

.underline-link {
    color: #b3b3b3;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: #555;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.underline-link:hover {
    color: #ffffff;
    text-decoration-color: #ffffff;
}

/* List Formatting */
.bullet-list {
    margin-bottom: 24px;
    padding-left: 20px;
}

.bullet-list li {
    margin-bottom: 12px;
    list-style-type: disc;
}

/* Profile Picture styling */
.profile-image-container {
    flex-shrink: 0; /* Prevents the image container from squishing */
    order: 2;       /* Explicitly keeps it on the right side on desktop */
}

.profile-image {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
}

/* Footer Styling */
footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #222;
    padding-top: 30px;
    font-size: 13px;
    color: #666;
}

.social-links a {
    color: #666;
    font-size: 16px;
    margin-left: 15px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.social-links a:hover {
    color: #ffffff;
}

/* Responsive / Mobile View optimization */
@media (max-width: 650px) {
    body {
        padding: 40px 20px;
    }
    
    header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    nav a {
        margin-left: 0;
        margin-right: 20px;
    }

    main {
        flex-direction: column; /* Stacks image on top of text on small screens */
        gap: 30px;
    }

    .profile-image-container {
        order: -1; /* Forces profile image above text on mobile layout */
        align-self: flex-start;
    }
    
    footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .social-links a {
        margin-left: 0;
        margin-right: 15px;
    }
}
