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

:root {
    --black: #393939;
    --gray: #D9D9D9;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 50px; 
}

body {
    margin: 0;
    padding: 0;
    width: 100%;

    background-color: #f9f9f9;
    font-family: "Manrope", sans-serif;
    color: var(--black);
    /* add font here */
}

.page-container {
    display: grid;
    grid-template-columns: 330px 1fr; 
}

.sidebar {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: sticky;
    top: 0; 
    height: 100vh;
    padding: 40px 40px;
    background-color: #e6e6e6;
}

.sidebar footer {
    margin-bottom: -5px;
}

.sidebar-content {
    display: flex;
    flex-direction: column;
    gap: 2.125rem;
}

.profile-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.profile-image-container {
    display: flex;
    align-items: end;
    width: 250px;
}

.profile-image {
    width: 100%;
}

.branding {
    font-size: 1.25rem;
}

.branding p {
    margin: 0;
    line-height: 1.1;
}

.branding span {
    font-size: 0.75rem;
    display: block;
    margin-top: 4px;
    color: #696969;
}

.nav-list {
    font-size: 1.25rem;

    list-style: none;
    border-left: 2px solid;

    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.nav-list a {
    padding-left: 14px;
    border-left: 3px solid transparent;
    transition: 0.2s ease-in-out;

    text-decoration: none;
    color: var(--black);
}

.nav-list a:hover,
.nav-list a:focus {
    border-left: 2px solid;
    font-weight: bold;

    color: var(--black);
}

.social-links {
    width: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 2rem;
    gap: 8px;
}

.social-links a {
    display: flex; 
    text-decoration: none;      
    color: var(--black);
}

.social-links a:hover {
    color: black;
}

/* Here starts the CSS for the page instead of the sidebar */

.main-content {
    padding: 60px;
    display: flex;
    flex-direction: column;
    gap: 5rem;

    overflow-y: auto;
}

@media (min-width: 1200px) {
    .main-content p {
        max-width: 700px;
    }
}

.main-content p {
    margin-top: 1rem;
    line-height: 1.75;
}

#about a {
    font-weight: 600;
    color: var(--black);
    text-decoration: none;
}

#about a:hover {
    text-decoration: underline;
}

.project-main-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.project-container {
    position: relative;
    max-width: 1100px;
    display: flex;
    gap: 58px;
    padding: 30px;
    border-radius: 3px;

    transition: 0.3s ease;
    cursor: pointer;
}

.main-project-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
} 

.project-container:hover {
    background-color: rgba(0, 0, 0, 0.03);
}

.project-container:hover h3 {
    color: black;
}

.project-container:hover .project-image-container {
    transform: translate( 4px, 4px);
    box-shadow: 4px 4px 0px 0px  black;
    border: 3px solid black;
}

/* .project-container:hover .project-image {
    opacity: 80%;
} */

.project-image-container {
    height: 185px;
    width: 300px;
    min-width: 300px;
    flex-shrink: 0;
    position: relative;
    background-color: var(--gray);
    box-shadow: 15px 15px 0px 0px var(--black);
    border: 3px solid var(--black);

    transition: 0.2s ease;
}

.project-image {
    height: 100%;
    width: 100%;
}

.project-description-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.project-description-container p {
    margin: 0;
    font-size: 0.875rem;
}

.project-title {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
}

.project-title a {
    z-index: 2;
}

.project-title svg {
    display: flex;
    align-items: flex-end;
    stroke: var(--black);
}

.project-title svg:hover {
    stroke: black;
}

.language-badges {
    display: flex;
    flex-wrap: wrap;
}

.language-badges img {
    height: 20px;
    width: auto;
}

@media (max-width: 960px) {
    .main-content {
        padding: 40px;
    }

    .project-container {
        display: flex;
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .page-container {
        display: block; 
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        padding: 20px;
    }

    .main-content {
        margin-left: 0;
        width: 100%;
        padding: 20px;
    }

    .project-container {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}