/* General styles */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background-color: #2c3e50; /* High-contrast background color */
    color: #f4f4f4; /* White text color for readability */
    flex: 1;
}

header {
    background: #f4f4f4; /* Light gray background for contrast */
    color: #333; /* Dark text color for readability */
    padding: 0.5rem 0; /* Reduce padding to make the header thinner */
    text-align: center;
    width: 100%; /* Ensure the header takes the full width */
    z-index: 1000;
    /* Remove position: fixed; */
    top: 0;
    left: 0;
    right: 0;
}

header h1 {
    margin: 0;
    font-size: 1.5rem; /* Adjust font size if needed */
}

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

nav ul li {
    display: inline;
    margin: 0 10px;
}

nav ul li a {
    color: #333; /* Dark text color for readability */
    text-decoration: none;
}

nav ul li a:hover {
    color: #333;
    text-decoration: underline;
}

main {
    flex: 1; /* Allow main content to grow and take up available space */
    padding-top: 1rem; /* Adjust padding to avoid content being hidden behind the header */
    padding-bottom: 1rem; /* Adjust padding to avoid content being hidden behind the header */
    overflow: auto; /* Ensure the main content is scrollable if it overflows */
    display: flex;
    flex-direction: column;
}

.projects-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem; /* Add some space between the projects */
    padding-bottom: 4rem; /* Add padding to the container */
    margin-bottom: 4rem;  /* Add margin to the container */
}

.project {
    flex: 1 1 calc(33.33% - 1rem); /* Make each project take up 33.33% of the container width, minus the gap */
    box-sizing: border-box; /* Ensure padding and border are included in the width */
}

.project-image {
    width: 100%;
    max-width: 200px; /* Adjust the max-width to make the images smaller */
    height: auto; /* Maintain aspect ratio */
    display: block;
    margin: 0 auto; /* Center the image */
}

.social-links {
    text-align: center;
    margin-top: 0rem; /* No margin at the top */
    margin-bottom: 0rem; /* No margin at the bottom */
    background-color: #f4f4f4; /* Set the background color to #f4f4f4 */
    padding-top: 0rem; /* No padding at the top */
    padding-bottom: 0rem; /* No padding at the bottom */
    border-radius: 5px; /* Optional: Add border radius for rounded corners */
}

main.resume-container {
    /* Remove overflow to avoid scrolling within the container */
    overflow: visible;
}

main.resume-container section {
    margin-bottom: 0.25rem; /* Reduced margin-bottom to tighten up space between sections */
    padding: 0.25rem; /* Reduced padding inside sections */
    background: #3e4e60; /* Darker background for sections */
    border-radius: 5px;
    color: #f4f4f4; /* Light gray color for section text */
    line-height: 1.2; /* Adjusted line height to tighten up space between lines */
}

main.resume-container section h2 {
    color: #cccccc; /* Slightly darker gray color for section headings */
    margin-top: 0; /* Remove top margin */
    margin-bottom: 0.5rem; /* Reduce bottom margin */
}

main.resume-container section h3 {
    margin-top: 0.5rem; /* Reduce top margin */
    margin-bottom: 0.5rem; /* Reduce bottom margin */
}

main.resume-container section ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-top: 0; /* Remove top margin */
    margin-bottom: 0; /* Remove bottom margin */
}

main.resume-container section p {
    margin-top: 0; /* Remove top margin */
    margin-bottom: 0.5rem; /* Reduce bottom margin */
}

section#home {
    background: #3e4e60; /* Darker background for sections */
    padding: 1rem;
    border-radius: 5px;
    max-width: 800px;
    margin: 2rem auto; /* Center the section */
}

section#about {
    background: #3e4e60; /* Darker background for sections */
    padding: 1rem;
    border-radius: 5px;
    max-width: 800px;
    margin: 2rem auto; /* Center the section */
}

.profile-pic {
    max-width: 50%;
    height: auto;
    border-radius: 50%; /* Make the image circular */
    display: block;
    margin: 0 auto 1rem auto; /* Center the image and add bottom margin */
}

.social-links img {
    width: 24px; /* Adjust the width as needed */
    height: auto; /* Maintain aspect ratio */
    vertical-align: middle; /* Align the icons with the text */
    margin: 0 5px; /* Add some spacing around the icons */
}

/* Add styles for the resume container */
.resume-container {
    border: 1px solid #ccc;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    margin: 2rem auto;
    max-width: 800px;
    background-color: #3e4e60; /* Background color for the resume container */
    padding: 1rem; /* Padding inside the resume container */
    color: #f4f4f4; /* Light gray color for text inside the resume container */
}

/* Add styles for the project section */
section#projects {
    color: #f4f4f4; /* Set the font color for the project section */
}

/* Add styles for the project image */
.project-image {
    width: 100%;
    max-width: 200px; /* Adjust the max-width to make the images smaller */
    height: auto; /* Maintain aspect ratio */
    display: block;
    margin: 0 auto; /* Center the image */
}

/* Add styles for links within the contact-info section */
section#contact-info a {
    color: #f4f4f4; /* Light color for links */
}

section#contact-info a:hover {
    text-decoration: underline; /* Underline links on hover */
}

@media (max-width: 768px) {
    nav ul li {
        display: block;
        margin: 10px 0;
    }

    .profile-pic {
        width: 80%;
    }

    .projects-container {
        flex-direction: column;
    }

    .project {
        flex: 1 1 100%; /* Make each project take up 100% of the container width on smaller screens */
    }
}
