@import url('https://fonts.googleapis.com/css?family=Hind+Siliguri:700|Noto+Sans+Bengali:400');

:root[data-theme="light"] {
    --text: #0a0a0a;
    --text-muted: #525252;
    --background: #f5f5f5;
    --primary: #000000;
    --secondary: #e6e6e6;
    --accent: #d1d1d1;
}

:root[data-theme="dark"] {
    --text: #f5f5f5;
    --text-muted: #a3a3a3;
    --background: #0a0a0a;
    --primary: #ffffff;
    --secondary: #1a1a1a;
    --accent: #2e2e2e;
}

:root {
    --text: #0a0a0a;
    --background: #f5f5f5;
    --primary: #3e5e60;
    --secondary: #e6e6e6;
    --accent: #d1d1d1;
    --text-muted: #a3a3a3;
}



body {
    background-color: var(--background);
    color: var(--text);
    font-family: 'Noto Sans Bengali';
    font-weight: 400;
    /* display: grid;
    grid-template-rows: auto 20px; */
}

nav img {
    display: none;
}

nav ul {
    display: flex;
    justify-content: center;
    align-items: center;
    column-gap: 20px;
    margin: 0;
}


nav {
    position: sticky;
    top: 0;
    background-color: var(--secondary);
}


nav li {
    list-style-type: none;
    margin: 8px;
}

nav a {
    color: var(--primary);
    text-decoration: none;
}

.main-header {
    background-color: var(--primary);
    min-height: 60%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0;
}

.main-header h1 {
    font-size: 600%;
    padding: 0;
    margin: 0;
    color: var(--background);
}

.main-header p {
    font-size: 200%;
    margin: 5px;
    color: var(--text-muted);
    text-align: end;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text);
    font-family: 'Hind Siliguri';
    font-weight: 700;
    text-align: center;
}

section {
    margin: auto;
    width: 90%;
    font-size: 125%;
}

#projects {
    width: calc(100% - 20px);
    margin: 0 10px 0 10px;
}

.projects {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
}

/* .projects a {
    text-decoration: none;
    color: var(--text);
} */

.project {
    display: grid;
    grid-template-columns: 25% 75%;
    grid-template-rows: auto auto;
    gap: 5px;
    border: 1px solid var(--secondary);
    border-radius: 20px;
    padding: 5px;
    cursor: pointer;
    flex-basis: calc(50% - 30px);
    padding: 10px;
}

.project p {
    padding: 10px;
    justify-self: start;
}


.project img {
    grid-row: 1/3;
    height: 128px;
}

.project h3 {
    font-size: 100%;
    align-self: end;
    color: var(--primary);
}

.project-grid-item {
    background-color: var(--background);
    place-self: center;
    margin: 0;
}

#skills {
    width: calc(100% - 20px);
    margin: 0 10px 0 10px;
}

.skillsDiv {
    display: grid;
    grid-template-columns: 50px auto;
    border: 1px solid var(--accent);
    padding: 16px 8px 16px 8px;
    border-radius: 16px;
    background-color: var(--secondary);
}

.skillsDiv h3 {
    writing-mode: sideways-lr;
    margin: 0;
    grid-row: span 2;
}

#skillCardHolder {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: start;
}

.skillCard {
    display: grid;
    grid-template-rows: 20% 50% 30%;
    width: 400px;
    max-width: 48vw;
    height: 150px;
    border: 2px solid var(--primary);
    border-radius: 20px;
    padding: 10px;
}

.skillCard h4 {
    margin: 0;
    color: var(--primary)
}

.skillCard p {
    font-size: 80%;
}

.skillCard a {
    text-decoration: none;
    color: var(--primary);
}

footer {
    margin: 20px 0 20px 0;
    width: 100%;
    display: grid;
    grid-template-columns: auto auto;
    align-items: center;
    font-family: 'DM Sans';
}

footer a {
    height: 24px;
    display: grid;
    grid-template-rows: auto;
    grid-template-columns: auto auto;
    align-content: center;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: #0a0a0a;
}

.footer-left {
    justify-self: end;
    margin-right: 25px;
}

.footer-right {
    justify-self: start;
    margin-left: 25px;
}

footer a span {
    margin-left: 5px;
}

@media screen and (max-width: 576px) {
    nav {
        display: flex;
        flex-direction: column;
    }

    nav img {
        display: block;
        align-self: flex-end;
        height: 24px;
        margin: 5px;
    }

    nav ul {
        display: none;
    }

    nav ul.show-menu {
        display: block;
        padding: 10px;
        padding-left: 0;
        background-color: var(--accent);
        position: absolute;
        top: 34;
        right: 0;
        left: 0;
    }

    #projects {
        width: calc(100% - 10px);
        margin: 0 5px 0 5px;
    }

    .projects {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        justify-content: space-between;
    }

    /* .projects a {
    text-decoration: none;
    color: var(--text);
} */

    .project {
        display: grid;
        grid-template-columns: 25% 75%;
        grid-template-rows: auto auto;
        gap: 4px;
        border: 1px solid var(--secondary);
        border-radius: 12px;
        padding: 4px;
        cursor: pointer;
        flex-basis: calc(100% - 10px);
        /* width: 100%; */
    }

    .project p {
        padding: 4px;
        justify-self: start;
        font-size: 12px;
    }


    .project img {
        grid-row: 1/3;
        height: 68px;
    }

    .project h3 {
        font-size: 100%;
        align-self: end;
        color: var(--primary);
    }

    .project-grid-item {
        background-color: var(--background);
        place-self: center;
        margin: 0;
    }

    #skills {
        width: calc(100% - 10px);
        margin: 0 5px 0 5px;
    }

    .skillsDiv {
        display: grid;
        grid-template-columns: 40px auto;
        border: 1px solid var(--accent);
        padding: 8px 4px 8px 4px;
        border-radius: 8px;
        background-color: var(--secondary);
    }

    .skillsDiv h3 {
        writing-mode: sideways-lr;
        margin: 0;
        grid-row: span 2;
    }

    #skillCardHolder {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        justify-content: start;
    }

    .skillCard {
        display: grid;
        grid-template-rows: 20% 50% 30%;
        width: 300px;
        max-width: calc(100vw - 100px);
        height: 150px;
        border: 2px solid var(--primary);
        border-radius: 20px;
        padding: 10px;
    }

    /* .skillCard h4 {
        margin: 0;
        color: var(--primary)
    }

    .skillCard p {
        font-size: 80%;
    } */

    .skillCard a {
        text-decoration: none;
        color: var(--primary);
    }

}