/* Global Styles */
html {
    scroll-behavior: smooth;
}

/* for unordered lists */
ul {
  line-height: 1.2; /* Decrease line spacing within list items */
  margin-bottom: 0rem; /* Add some space after the entire list */
}

ul li {
  margin-bottom: 0.7rem; /* Increase spacing between list items */
}

/* Remove extra space after the last list item */
ul li:last-child {
  margin-bottom: 0;
}

body {
    font-family: "Muli", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    color: #212529;
    margin: 0;
    padding: 0;
}

/* Heading Styles */
h1, h2, h3, h4, h5, h6 {
    font-family: "Saira Extra Condensed", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    color: #abb590;
}

h1 { font-size: 3rem; }
h2 { font-size: 2rem; }

/* Navigation Sidebar */
#sideNav {
    background-color: #abb590;
    position: fixed;
    top: 0;
    left: 0;
    width: 13rem;
    height: 100vh;
    padding: 1rem;
    color: white;
}

#logo {
  width: 100%;
  height: auto;
  margin-bottom: 1rem;
}

#tagline {
    font-style: italic;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
    margin-top: -1rem;
    margin-left: 0.5rem;
    margin-bottom: 0rem;
    text-transform: none;
    padding-top: 0;
    padding-bottom: 0;
}

#profile-link {
    text-decoration: none;
    color: white;
}

#resume-for {
    font-weight: 600;
    letter-spacing: 0.05rem;
    font-size: 1rem;
    margin-top: 1rem;
    margin-left: 0rem;
    margin-bottom: -1rem;
    text-transform: none;
    padding-top: 0;
    padding-bottom: 0;
    color: #fff;
}

#profile-pic {
    max-width: 10rem;
    border: 0.5rem solid rgba(255, 255, 255, 0.2);
    margin: 1rem 0;
}

#sideNav ul {
    list-style-type: none;
    padding: 0;
}

#sideNav li {
    margin-bottom: 0.5rem;
}

#sideNav a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-weight: 800;
    letter-spacing: 0.05rem;
    text-transform: uppercase;
}

#sideNav a:hover {
    color: white;
}

/* Main Content Area */
main {
    margin-left: 13.5rem; /* Match sidebar width */
    padding: 2rem 2rem 2rem 3rem; /* Added left padding */
	overflow-y: auto;
    height: 100vh;
    scroll-behavior: smooth; /* Add this line */
}

section {
    margin-bottom: 3rem;
}

/* Social Icons */
#social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 2rem;
    width: 2rem;
    background-color: #495057;
    color: white;
    border-radius: 50%;
    font-size: 1.25rem;
    margin-right: 1rem;
}

#social-icons a:hover {
    background-color: #abb590;
}

/* Two-column layout for specific lists */
#toolsets, #systems-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 2rem;
    list-style-position: inside;
    padding-left: 0;
    margin-top: 0.5rem;
    line-height: .75;
}

/* Mobile header */
#mobileHeader {
    display: none; /* Hidden by default */
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 10px;
    background-color: #abb590;
    color: white;
    box-sizing: border-box; /* Include padding in width calculation */
}

#mobileResumeFor {
    font-weight: 600;
    font-size: 1rem;
}

/* Mobile menu toggle button */
#menuToggle {
    padding: 5px 10px;
    background-color: white;
    color: #abb590;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    margin-right: 15px; /* Add right margin to prevent overlap with scroll bar */
}

/* ... (previous styles remain the same) ... */

/* Responsive Design */
@media (max-width: 991px) {
    body {
        padding-top: 44px; /* Height of the mobile header */
    }

    #sideNav {
        position: static;
        width: 100%;
        height: auto;
        text-align: center;
        padding: 0;
    }

    #mobileHeader {
        display: flex; /* Show on small screens */
        position: fixed; /* Make the header sticky */
        top: 0;
        left: 0;
        z-index: 1000; /* Ensure it stays on top of other content */
    }

    #navContent {
		display: block;
		padding: 1rem;
		position: fixed;
		top: -100%; /* Start off-screen */
		left: 0;
		right: 0;
		background-color: #abb590;
		z-index: 999;
		transition: top 0.5s ease-in-out; /* Add transition for smooth sliding */
	}

    #navContent.show {
        /* display: block; /* Show when toggled */
		top: 44px; /* Slide down to below the mobile header */
    }

    #navContent.hide {
        top: -100%; /* Slide back up off-screen */
    }

    main {
        margin-left: 0;
        padding: 2rem;
    }

    #toolsets, #systems-list {
        grid-template-columns: 1fr;
    }

    /* Adjust section padding to prevent overlap with fixed header */
    section {
        padding-top: 60px;
        margin-top: -60px;
    }
}