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

html, body {
    height: 100%;
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    color: #333;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.5em;
    text-align: center;
}

/* Header */
header {
    background: linear-gradient(to bottom, steelblue 50%, black 150%);
    color: white;
    padding: 1.5em 0;
    text-align: center;
}

header h2 {
    font-size: 2em;
}

header h3 {
    font-size: 1.2em;
}

/* Navigation */
nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    background: steelblue;
    padding: 1em;
}

nav ul li {
    margin: 0 1em;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 0.5em 1em;
    border-radius: 5px;
    transition: background 0.3s;
}

nav ul li a:hover, .active {
    background: black;
}

/* Layout */
main {
    flex-direction: row;
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 2em;
    text-wrap-style: balance;
}

.otherMain {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;

}

.intro, .sidebar {
    flex: 1 1 45%;
    padding: 1em;
    text-align: center;
}

.sidebar img {
    max-width: 65%;
    border-radius: 10px;
    margin-bottom: 1em;
}

/* Portfolio and Resume Sections */
.project{
    width: 100%;
    max-width: 800px;
    background: #f9f9f9;
    padding: 1.5em;
    margin: 1em 0;
    border-left: 5px solid steelblue;
    border-radius: 5px;
}

.project h3 {
    margin-bottom: 0.5em;
    color: steelblue;
}

.project p {
    font-size: 1em;
}

.project img {
    width: 100%;
    max-width: 128px;
    border-radius: 10px;
}

@media screen and (max-width: 700px) {
    nav ul {
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
        height: 170px;
    }

    main{
        flex-direction: column;
        justify-content: space-between;
        flex-wrap: nowrap;
        padding: 0em;
    }

    .project img
    {
        width: 50%;
        min-width: 64px;
    }

    .sidebar img {
        width: 50%;
        min-width: 200px;
    }
}

.job {
    width: 100%;
    max-width: 800px;
    background: #f9f9f9;
    padding: 1.5em;
    margin: 1em 0;
    border-left: 5px solid steelblue;
    border-radius: 5px;
}

/* Contact List */
.contact-list {
    list-style: none;
    padding: 1em 0;
}

.contact-list li {
    margin-bottom: 0.5em;
}

/* Footer */
footer {
    text-align: center;
    background: steelblue;
    color: white;
    padding: 1em;
    width: 100%;
}