/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

.title-name {
    text-align: left; 
    margin: 20px 0;
    border-bottom: 1px solid #464646;
    font-family: Helvetica, Arial, sans-serif;
    font-size: 3.5em;
    line-height: 0.9em; /* Adjust line height for better spacing */
    margin-top: .15em;
}

body {
    background-color: #0a2f36;
    color: #efefef;
    line-height: 1.6;
    max-width: 950px;
    align-items: center;
    margin: 0 auto 1em;
    padding: 1.5em;
    overflow-y: auto;
}

p {
    margin: 10px 0;
}

a {
    color: #1aa1d2;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.hidden-link {
    color: #efefef;
}

/* Main Layout */
.container {
    display: flex;
    flex-wrap: wrap;
    margin: 20px auto;
    max-width: 1100px;
    gap: 20px;
}

.left-column {
    flex: 1 1;
    max-width: 25%;
    text-align: center;
}

.left-column img {
    width: 100%;
    border-radius: 8px;
}

.right-column {
    flex: 2 1;
    max-width: 75%;
}

section {
    display: flex; /* Arrange child elements side by side */
    justify-content: space-between; /* Add space between the left and right columns */
    align-items: flex-start; /* Align content at the top */
    gap: 20px; /* Add spacing between columns */
    margin: 10x 0; /* Add vertical spacing between sections */
    width: 100%; /* Ensure sections take the full width of the container */
}

.nav-item {
    color: #d7d7d7;
    padding: 10px 20px;
    border-radius: 20px;
    text-transform: uppercase;
    font-weight: bold;
    cursor: pointer;
    margin: 5px;
}

/* Responsive Behavior */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        text-align: center;
    }

    .left-column, .right-column {
        max-width: 100%;
    }

    section {
        flex-direction: column;
        width: 100%;
        align-items: center;
    }

    .title-name {
        text-align: center; 
    }

    .nav-item {
        align-items: center;
    }
    
}

.profile-picutre {
    max-width: 300px;
}

/* Profiles Section */
.profiles-container {
    border-left: 1px solid #efefef;
    padding-left: 20px;
}

.profiles-title {
    flex: 0 0 100px;
    color: #fff;
    font-weight: bold;
    text-align: right;
    padding-right: 20px;
    border-right: 2px solid #fff;
}

.profiles-content {
    flex: 1;
    padding-left: 20px;
}

.profiles ul {
    list-style-type: none;
}

.profiles li {
    margin: 8px 0;
}

.nav-item:hover {
    background-color: #1085af;
    color: black;
    /* dissable the underline */
    text-decoration: none;
}

.right-align-header {
    text-align: right;
}

/* for Uls in a profiles container, padd them by 16px more */
.profiles-container ul {
    padding-left: 16px;
}

.article-container {
}

.article-container img {
    border-radius: 8px;
    max-height: 315px;
    max-width: 440px;
    height: auto;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    list-style-type: none;
    padding: 0;
    width: 100%; /* Ensure the grid container takes full width */
}

.project-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.project-item img {
    border-radius: 8px;
    width: 200px;
    height: 200px;
    object-fit: cover;
}

.project-item h2 {
    margin-top: 10px;
    font-size: 1.2em;
}

.menu-preface {
    text-align: center;
    flex: 1 1;
}

.experience-item {
    margin: 15px 0;
}

.experience-item h2 {
    margin: 10px 0;
}

.experience-item h4 {
    margin: 10px 0;
}

.experience-title {
    /* align the items in it horizontally */
    display: flex;
    align-items: center;
    gap: 10px;
}

.experience-title img {
    /* align the items in it horizontally */
    height: 50px;
    border-radius: 5px;
}

ul {
    padding-left: 20px; /* Adds space for the bullets */
}

li {
    margin-left: 0; /* Ensures the text aligns correctly with the bullets */
}
