/* --- Global Styles --- */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    background-color: #f4f7f6;
    color: #333;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    line-height: 1.2;
}

a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img.profile-pic {
    max-width: 150px;
    border-radius: 50%;
    margin-bottom: 15px;
}

/* --- Header & Navigation --- */
header {
    background-color: #ffffff;
    border-bottom: 1px solid #ddd;
    padding: 20px 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    margin: 0;
    font-size: 24px;
}

header nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

header nav li {
    display: inline-block;
    margin-left: 20px;
}

/* --- Main Content & Sections --- */
main section {
    padding: 40px 0;
    border-bottom: 1px solid #eee;
}

main section h2 {
    margin-top: 0;
    margin-bottom: 20px;
}

/* --- Project Grid --- */
.project-grid {
    display: grid;
    grid-template-columns: 1fr; /* Start with 1 column for mobile */
    gap: 20px;
}

.project-card {
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 20px 0;
    margin-top: 20px;
    font-size: 14px;
    color: #777;
}

/* --- Responsive Design (for screens wider than 600px) --- */
@media (min-width: 600px) {
    .project-grid {
        /* Use 2 or 3 columns on wider screens */
        grid-template-columns: repeat(2, 1fr);
    }
    
    header .container {
        flex-direction: row;
    }
}

@media (min-width: 900px) {
    .project-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
