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

body {
    background-color: #f3f3f3;
}

/* Style for the navigation bar */
nav {
    position: sticky; /* Change this from fixed to sticky */
    top: 0; /* Add this line */
    background-color: #555;
    color: white;
    padding: 1rem;
    width: 100%;
}

/* Container to hold nav elements */
.nav-container {
    display: flex;
    justify-content: space-between; /* Aligns title to the left and links to the right */
    align-items: center;
}

/* Style for the navigation links */
.nav-links {
    list-style-type: none;
    display: flex;
}

.nav-links li {
    padding: 0 1rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
}

/* Style for the title in the navigation bar */
.title {
    font-size: 24px;
}

/* Style for the main section */
.main-container {
    display: flex;
    justify-content: center;
    overflow: auto;
    height: calc(100vh - 60px - 60px); /* Subtract the height of the navbar and the footer */
}

/* Added styles to increase vertical spacing between sections */
section {
    margin-bottom: 20px;
    text-align: center;
}

p {
    line-height: 1.5;
    text-align: center;
}

/* Style for the Home section */
#home {
    max-width: 1000px;
    margin: auto; /* Centers the section horizontally */
    padding: 20px;
}

#home p {
    padding-top: 20px;
}

/* Style for the About Me section */
#about {
    max-width: 1000px;
    margin: auto; /* Centers the section horizontally */
    padding: 20px;
}

#about h2 {
    padding-bottom: 20px; /* Adds some space around the text */
    text-align: left;
}

#about p {
    text-align: left;
}

/* Style for the Education section */
#education {
    max-width: 1000px;
    margin: auto; /* Centers the section horizontally */
    padding: 20px;
    width: 100%;
}

#education h1 {
    text-align: center;
}

#education h2 {
    padding-bottom: 20px;
    padding-top: 20px;
    text-align: left;
}

#education p {
    text-align: left;
}

/* Style for the Project section */
#project {
    max-width: 1000px;
    margin: auto; /* Centers the section horizontally */
    padding: 20px;
    width: 100%;
}

#project h1 {
    text-align: center;
}

#project h2 {
    padding-bottom: 20px;
    padding-top: 20px;
    text-align: left;
}

#project p {
    text-align: left;
}

/* Style for the Skills section */
#skills {
    max-width: 1000px;
    margin: auto; /* Centers the section horizontally */
    padding: 20px;
    width: 100%;
}

/* Style for the Contact section */
#contact {
    max-width: 1000px;
    margin: auto; /* Centers the section horizontally */
    padding: 20px;
    width: 100%;
}

/* Style for the bio container */
.bio-container {
    display: flex; /* Establishes a flex container */
    align-items: center; /* Aligns items vertically in the middle */
}

.bio-image {
    margin-right: 50px; /* Creates space between the image and the text */
}

.bio-text {
    flex-grow: 1; /* Allows the text to take up any remaining space */
    text-align: left;
}

/* Style for the footer */
footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: #555;
    color: white;
    padding: 1rem;
}

@media (max-width: 600px) {
    .nav-container {
        flex-direction: column;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        text-align: center;
    }

    .nav-links li {
        margin-bottom: 0.5rem;
    }
}
