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

.container {
    display: flex;
    max-width: 1200px;
    width: 100%;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    padding: 20px;
}

/* Default: Two-column layout */
.content {
    padding: 20px;
}

.site-title a {
    text-decoration: none;
    color: black;
}

.site-title {
    transition: transform .2s;
}

.site-title:hover {
    transform: scale(1.1);
}

.navigation {
    width: 30%; /* Sidebar width */
}

.content {
    width: 70%; /* Main content width */
}

.toc {
    position: sticky;
    top: 0; /* Sticks the TOC to the top of the viewport */
    padding-top: 15px;
    padding-bottom: 15px;
    background: white; /* Ensure it doesn't blend with the background */
    z-index: 10; /* Keeps the TOC above other content */
    transition: padding 0.3s ease; /* Smooth transition for spacing */
}

.toc ul {
    display: flex;
    flex-direction: column; /* Start as vertical on load */
    gap: 10px; /* Initial spacing between links */
    list-style: none;
    align-items: flex-start;
    transition: flex-direction 0.3s ease, gap 0.3s ease, justify-content 0.3s ease;
}

.section-title {
    padding-bottom: 10px;
    font-size: xx-large;
}

.bio {
    padding-top: 10px;
}

.circular-photo {
    width: 150px; /* Adjust the size as needed */
    height: 150px; /* Should match the width for a perfect circle */
    border-radius: 50%; /* Makes it a circle */
    overflow: hidden; /* Ensures content inside fits the circle */
    object-fit: cover; /* Ensures the image fits properly */
    border: 2px solid #ccc; /* Optional: Adds a border around the circle */
}

.circular-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Keeps the image aspect ratio */
}

.projects {
    list-style: none;
}

.project-details {
    /*display: flex; /* Make the project container a flexbox */
    align-items: center; /* Vertically center the child elements */
    padding-bottom: 40px;
    /*gap: 20px; /* Add space between the image and text */
}

.project-desc {
    padding-bottom: 10px;
}

.project-name {
    font-size: x-large;
    padding-bottom: 10px;
}


.project-link img, svg {
    padding-right: 5px;
}

.project-link {
    text-decoration: none;
    color: black;
    display: flex;
    align-items: center;
}

.links {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    width: 50%;
}

.links li {
	flex-basis: 50%;
	flex-grow: 1;
	padding-bottom: 10px;
}

.inconsolata-light,
.inconsolata-regular,
.inconsolata-bold {
    font-family: "Inconsolata", monospace;
    font-optical-sizing: auto;
}

.inconsolata-light {
    font-weight: lighter;
}

.inconsolata-regular {
    font-weight: normal;
}

.inconsolata-bold {
    font-weight: bold;
}

.posts {
    list-style: none;
}

.section {
    padding-bottom: 20px;
}

.post-title {
    padding-bottom: 20px;
}

/* Responsive Design: Single-column layout for smaller screens */
@media (max-width: 768px) {
    .container {
        flex-direction: column; /* Stack elements vertically */
        padding: 10px;
    }

    .navigation, 
    .content {
        width: 100%; /* Full-width sections */
    }

    .toc ul {
        flex-wrap: nowrap; /* Prevent wrapping initially */
        flex-direction: column; /* Start vertical */
        justify-content: flex-start; /* Align links to the left */
        gap: 10px; /* Smaller gap for vertical layout */
    }

    body.scrolled .toc ul {
        flex-wrap: nowrap; /* Prevent wrapping */
        flex-direction: row; /* Smoothly transition to horizontal */
        justify-content: space-around; /* Spread links evenly */
        gap: 25px; /* Larger gap for horizontal layout */
    }

    .circular-photo {
        margin: 10px auto; /* Center circular photo */
    }

    .section-title {
        text-align: center; /* Center section titles */
    }

    .projects li {
        padding-bottom: 20px; /* Reduce spacing on smaller screens */
    }
}

