body {
    background-color: #13171d;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: clip;
}

a {
    text-decoration: none;
}

.hidden {
    opacity: 0;
    position: absolute;
    left: -9999px;
    top: 0;
    height: 0;
    width: 0;
    margin: 0;
    padding: 0;
    pointer-events: none;
}

.nav{
    width: 100%;
    --stripe-height: 30px;
    height: var(--stripe-height);
    background: #181e25;
    padding:0 0.5rem;
    display:flex;
    flex-wrap:wrap;
    align-items:stretch;
}

.nav span {
    flex: 0 1 auto;
    min-width: 120px;
    max-width: 250px;
    white-space: normal;
    height: 100%;
    background: #181e25;
    border: none;
    color: #c3cbcb;
    font-size: 1.2rem;
    font-family: SFMono-Regular, Consolas, Liberation Mono, Menlo, monospace;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    text-align: center;
    box-sizing: border-box;
}
.nav span:hover{
    background: #0c0e13;
}

@media (max-width:768px){
    .nav{--stripe-height:50px;}
}
@media (max-width:480px){
    .nav{--stripe-height:45px;}
}

main {
    max-width: 700px;
    width: 100%;
    padding: 15px 15px;
    margin-bottom: 30px;
    box-sizing: border-box;
    margin-top: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

main h1 {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1.3;
    color: #13171d;
    background: #1eb325;
    padding: 0 0.25em;
    margin-top: 60px;
    margin-bottom: 20px;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    display: inline-block;
    filter: url(#textDistort);
}

main h2 {
    margin: 0;
    width: 100%;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 2rem;
    font-weight: 900;
    line-height: 1.3;
    color: #1eb325;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    display: inline-block;
    filter: url(#textDistort);
    align-content: center;
}

main p {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: #c3cbcb;
    font-size: 1.2rem;
    text-align: left;
    max-width: 700px;
    align-self: center;
    line-height: 1.7;
}

main p a {
    color: #c3cbcb;
    box-shadow: #50a156 0 2px 0;
}

main p a:hover {
    box-shadow: #35733a 0 2px 0;
}

main .image-container {
    margin-top: 20px;
    width: 260px;
    max-width: 100%;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

main .image-container img {
    width: 100%;
    height: auto;
    display: block;
}

.svg-icon-container{
    flex-direction: column;
    align-self: center;
}

.svg-icon {
    width: 30px;
    height: 30px;
    cursor: pointer;
    transition: transform 100ms ease;
    filter: brightness(0) saturate(100%) invert(57%) sepia(91%) saturate(1063%) hue-rotate(69deg) brightness(97%) contrast(101%);
    margin: 5px;
}

.svg-icon:hover {
    transform: scale(1.1);
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 50px;
    width: 100%;
    max-width: 100%;
    justify-content: center;
    padding: 0 10px;
    box-sizing: border-box;
}

.project {
    width: 100%;
    max-width: 300px;
    height: auto;
    min-height: 350px;
    background-color: #1e1f22;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.5);
    transition: transform 100ms ease;
    padding: 20px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project:hover {
    transform: scale(1.03);
}

.project img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-top: auto;
}

@media (max-width: 375px) {
    .project {
        min-height: 290px;
        width: 70%;
        padding: 15px;
    }

    .projects-container {
        gap: 30px;
        padding: 0 5px;
    }
}
