@media (max-width: 600px) {
    .joinlink a {
        font-size: 0.75em;
        padding: 2px 6px;
    }
}
/* Community join buttons */
.joinlink {
    display: flex;
    justify-content: center;
    margin: 24px 0;
}
.joinlink a {
    display: inline-block;
    font-size: 1.05em;
    font-weight: 700;
    color: var(--links);
    background: transparent;
    border-radius: 8px;
    padding: 6px 20px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, border 0.2s;
}
.joinlink a:hover {
    background: var(--links);
    color: #1c1c1c;
    border-color: #ee824e;
}
.btn-row.social-links {
    display: flex;
    flex-direction: row;
    gap: 16px;
    justify-content: center;
    align-items: center;
    margin: 32px 0 0 0;
}
.btn.social-btn {
    display: flex;
    align-items: center;
    font-weight: bold;
    font-size: 1.25em;
    border-radius: 4px;
    padding: 10px 24px;
    text-decoration: none;
}
.btn.social-btn:hover {
    background: #ee824e;
    color: #000000;
    border-color: #ee824e;
    transition: background 0.2s, color 0.2s;
}
.btn.social-btn img {
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
    filter: brightness(0.9) grayscale(0.2);
}
footer {
    position: fixed;
    margin-bottom: 20px;
    left: 0;
    bottom: 0;
    width: 100%;
    text-align: center;
    font-size: 0.85em;
    color: #aaa;
    background: transparent;
    padding: 10px 0;
    z-index: 10;
}
hr {
    width: 60%;
    margin: 32px auto;
    border: none;
    border-top: 2px solid #444;
}
.bold {
    font-weight: bold;
}
@media (max-width: 600px) {
    html {
        font-size: 13px;
    }
    body, html {
        font-size: 1em;
        padding: 0;
        margin: 0;
        overflow-x: hidden;
    }
    h1, h2, h3, h4, h5, h6, p, a, li, span {
        font-family: 'Montserrat', Arial, sans-serif;
        letter-spacing: 0.01em;
    }
            .navbar {
                width: 100%;
                background-color: var(--secondary);
                display: flex;
                flex-direction: row;
                justify-content: center;
                align-items: center;
                padding: 0;
                margin: 0;
                border-radius: 0;
                box-shadow: none;
            }
                .navbar ul {
                    display: flex;
                    flex-direction: row;
                    gap: 32px;
                    width: auto;
                    justify-content: center;
                    align-items: center;
                    padding: 0;
                    margin: 0;
                    list-style-type: none;
                    background: none;
                }
    .navbar li {
        display: flex;
        flex-direction: column;
        align-items: center;
        flex: 1 1 0;
        min-width: 0;
        margin: 0;
        border: none;
    }
    .navbar a {
        font-size: 1em;
        padding: 12px 0 6px 0;
        min-width: unset;
        border-radius: 0;
        border: none;
        background: none;
        color: var(--links);
        font-weight: 600;
        transition: background 0.2s, color 0.2s;
        text-align: center;
        display: block;
        text-decoration: none;
    }
    .navbar a:hover {
        background: #ee824e;
        color: #1c1c1c;
    }
    .navbar li.active::after,
    .navbar li:not(.active)::after {
        content: "";
        display: block;
        margin: 8px auto 0 auto;
        width: 60px;
        height: 2px;
        background: #000;
        opacity: 0;
        transition: opacity 0.2s;
    }
    .navbar li.active::after {
        opacity: 1;
    }
}

@media (min-width: 600px) {
    html {
        font-size: 16px;
    }
    body, html {
        font-size: 18px;
        padding: 0;
        margin: 0;
        overflow-x: hidden;
    }
    h1, h2, h3, h4, h5, h6, p, a, li, span {
        font-family: 'Montserrat', Arial, sans-serif;
        letter-spacing: 0.01em;
    }
            .navbar {
                width: 100%;
                background-color: var(--secondary);
                display: flex;
                flex-direction: row;
                justify-content: center;
                align-items: center;
                padding: 0;
                margin: 0;
                border-radius: 0;
                box-shadow: none;
            }
                .navbar ul {
                    display: flex;
                    flex-direction: row;
                    gap: 100px;
                    width: auto;
                    justify-content: center;
                    align-items: center;
                    padding: 0;
                    margin: 0;
                    list-style-type: none;
                    background: none;
                }
    .navbar li {
        display: flex;
        flex-direction: column;
        align-items: center;
        min-width: 0;
        margin: 0;
        border: none;
    }
    .navbar a {
        font-size: 1.2em;
        padding: 15px 22px;
        min-width: 80px;
        border-radius: 6px;
        background: #1b1b1b;
        color: var(--links);
        font-weight: 700;
        transition: background 0.2s, color 0.2s;
        text-align: center;
        display: block;
        text-decoration: none;
    }
    .navbar a:hover {
        background: #ee824e;
        color: #1c1c1c;
    }
    .navbar li.active::after {
        opacity: 1;
    }
}

:root {
    --primary: #1c1c1c;
    --secondary: #171717;
    --links: #ee824e;
}
a {
    color: var(--links);
    text-decoration: none;
}

body {
    background-color: var(--primary);
    color: rgb(227, 227, 227);
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}
h1 {
    text-align: center;
}
main {
    padding: 0px;
    text-align: center;
    margin-left: 20px;
    margin-right: 20px;
}
main h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
}
main h4 {
    margin-top: 0px;
    margin-bottom: 30px;
    line-height: 1.5em;
    font-weight: 400;
}
pfp {
    
    border-radius: 50%;
    width: 150px;
    height: 150px;
    object-fit: cover;
    margin-top: 20px;
}
span.important {
    font-size: 1.1em;
    font-weight: bold;
    color: rgba(210, 75, 7, 0.819);
}
.joinlink {
    font-size: 2em;
    font-weight: bold;
}
::selection {
  background: #ee824e;
  color: black;
  text-shadow: none;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin: 20px auto;
    max-width: 600px;
    padding: 0 20px;
}

.project-card {
    background: transparent;
    border: none;
    border-radius: 8px;
    padding: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
    width: 100%;
}

.project-card h4 {
    margin: 0;
    color: var(--links);
    font-size: 1.8em;
    font-weight: 700;
    padding: 10px 15px;
    text-align: center;
    border-radius: 8px;
    background: transparent;
    transition: background 0.2s, color 0.2s;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.project-card:hover h4 {
    background: var(--links);
    color: #1c1c1c;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.project-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: #1c1c1c;
    border: 2px solid #ee824e;
    border-radius: 12px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.project-modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.modal-content {
    position: relative;
}

.close-btn {
    position: absolute;
    top: -10px;
    right: 0;
    font-size: 2em;
    font-weight: bold;
    color: #ee824e;
    cursor: pointer;
    transition: color 0.2s ease;
    line-height: 1;
}

.close-btn:hover {
    color: #ff9966;
}

#modalTitle {
    color: #ee824e;
    margin: 0 0 20px 0;
    font-size: 1.8em;
}

.modal-section {
    margin: 20px 0;
    text-align: left;
}

.modal-section h3 {
    color: #ee824e;
    margin: 0 0 10px 0;
    font-size: 1.2em;
}

.modal-section p {
    color: #d3d3d3;
    line-height: 1.6;
    margin: 0;
}

.modal-link-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 6px 20px;
    background: transparent;
    color: var(--links);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05em;
    transition: background 0.2s, color 0.2s;
}

.modal-link-btn:hover {
    background: var(--links);
    color: #1c1c1c;
}

/* god i hate this */
@media (max-width: 600px) {
    .projects-grid {
        grid-template-columns: 1fr;
        max-width: 300px;
    }
    
    .project-card h4 {
        font-size: 1.1em;
    }
    
    .project-modal {
        max-width: 90%;
        padding: 20px;
    }
    
    #modalTitle {
        font-size: 1.4em;
    }
}