body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
    min-height: 100vh; /* Ensure body takes full viewport height */
    display: flex; /* Use flexbox to push footer to bottom */
    flex-direction: column; /* Stack children vertically */
}

header {
    background-color: #f4f4f4;
    text-align: center;
    padding: 2rem;
}

header h1 {
    margin: 0;
    font-size: 2.5rem;
}

header p {
    margin: 0.5rem 0;
    color: #666;
}

nav {
    background-color: #333;
    padding: 1rem;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: center;
}

nav ul li {
    display: inline;
    margin: 0 1rem;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

nav ul li a:hover {
    color: #ddd;
}

.about-section {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 3rem;
    padding-bottom: 4rem; /* Ensure space for footer */
}

.about-container {
    display: flex; /* Side-by-side layout */
    align-items: flex-start; /* Align text and image at the top */
    gap: 2rem; /* Space between text and image */
}

.about-text {
    flex: 1; /* Take remaining space */
}

.about-image {
    flex: 0 0 auto; /* Fixed width for image */
    display: flex; /* Center the image within this container */
    justify-content: center; /* Horizontally center the image */
}

.about-image img {
    max-width: 200px; /* Adjust image size as needed */
    height: auto; /* Maintain aspect ratio */
    border-radius: 8px; /* Optional: rounded corners */
}

footer {
    background-color: #f4f4f4;
    text-align: center;
    padding: 1rem;
    width: 100%;
    margin-top: auto; /* Push footer to bottom */
}

footer a {
    color: #333;
    text-decoration: none;
    margin: 0 0.5rem;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive design for smaller screens */
@media (max-width: 600px) {
    .about-section {
        padding: 0 1.5rem;
        padding-bottom: 5rem; /* Extra padding for small screens */
    }

    .about-container {
        flex-direction: column; /* Stack text and image vertically */
        gap: 1rem; /* Reduce gap for mobile */
    }

    .about-image {
        justify-content: center; /* Center image horizontally on small screens */
    }

    .about-image img {
        max-width: 100%; /* Full width on small screens */
    }
}

.project {
    margin-bottom: 1.5rem;
}
