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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f9f9f9;
    color: #333;
    
    /* Center the container in the middle of the screen */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

a {
    /* Styling requirements */
    color: black;
    text-decoration: underline;
    transition: opacity 0.2s;
}

a:hover {
    /* Subtle feedback when hovering */
    opacity: 0.6;
}


.libre-baskerville-title {
  font-family: "Libre Baskerville", serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;
}

.noto-sans-text {
  font-family: "Noto Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
  font-variation-settings:
    "wdth" 100;
}

.noto-sans-contact {
  font-family: "Noto Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 450;
  font-style: normal;
  font-variation-settings:
    "wdth" 100;
}

.main-container {
    max-width: 900px;
    width: 100%;
    text-align: center;
}

/* Header Styling */
.main-title {
    font-size: 2.5rem;
    margin-bottom: 2.5rem; /* Space between title and content */
    color: #222;
}

/* --- DESKTOP STYLES --- */

.content-wrapper {
    display: flex;
    align-items: flex-start; /* Align columns to the top */
    justify-content: center;
    gap: 4rem;
    margin-bottom: 3rem;
}

.image-info-group {
    display: flex;
    flex-direction: column; 
    align-items: flex-start; /* Aligns details to the left edge of the photo */
    gap: 1.5rem;
}

.mono-font {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
}

.hero-image {
    width: 220px;
    height: auto;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.details-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: left; /* Left align text in the blocks */
}

.text-content {
    flex: 1;
    max-width: 450px;
    text-align: center; /* Centers the paragraph and the nav below it */
    line-height: 1.8;
}

.text-content p {
    text-align: left; /* Keeps the actual paragraph text readable */
    margin-bottom: 2rem;
}

.teaching-content p {
    text-align: center; /* Keeps the actual paragraph text readable */
    margin-bottom: 2rem;
}

/* Navigation Bar Styling */
.nav-bar {
    display: flex;
    justify-content: center; /* Centers links under the text */
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.nav-bar a {
    /* Terminal-like monospace font stack */
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
    
    /* Styling requirements */
    color: black;
    text-decoration: underline;
    
    font-weight: bold;
    font-size: 0.95rem;
    transition: opacity 0.2s;
}

.nav-bar a:hover {
    /* Subtle feedback when hovering */
    opacity: 0.6;
}

/* --- MOBILE STYLES --- */
@media (max-width: 768px) {
    .content-wrapper {
        flex-direction: column;
        align-items: center;
    }

    .image-info-group {
        flex-direction: row; 
        align-items: flex-start;
        width: 100%;
        justify-content: center;
    }

    .hero-image {
        width: 150px;
    }

    .text-content {
        text-align: center;
        width: 100%;
    }

    .text-content p {
        text-align: center;
    }
}

/* Experience List Styles */
.experience-list {
    text-align: left;
    max-width: 600px;
    margin: 0 auto 3rem auto;
}

.company-block {
    margin-bottom: 2.5rem;
}

.company-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
}

.company-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 4px;
}

.company-header h2 {
    font-size: 1.4rem;
    font-weight: 500;
    color: #222;
}

.role {
    margin-bottom: 0.75rem;
}

.role-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.job-title {
    font-weight: 300;
    color: #444;
}

.job-time {
    font-size: 0.9rem;
    color: #888;
    font-style: normal;
}

/* Update for Mobile */
@media (max-width: 600px) {
    .role-header {
        flex-direction: column;
    }
    
    .role {
        margin-left: 0;
        margin-top: 1rem;
    }
}
