.jetbrains-mono-100 {
  font-family: "JetBrains Mono", monospace;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 2px dashed #4B5563;
    padding: 10px;
    margin-bottom: 5px;
    transition: color 0.2s ease;
}

.navbar:hover {
    border-color: whitesmoke;
}

#name-img {
    display: flex;
    align-items: center;
    max-width: fit-content;
    gap: 7px;
}

#links {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 10px;
}

#pfp {
    width: 7vh;
    height: 7vh;
    border: 2px solid #4B5563;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s ease;
}

#pfp:hover {
    transform: scale(1.05);
}

h2 {
    margin-bottom: 5px;
}

.experience {
    border: 2px solid #4B5563;
    padding: 20px 24px;
    margin: 10px;
    border-radius: 12px;
    transition: transform 0.2s ease, border-color 0.2s ease;
    animation: cardFadeIn 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.experience:hover {
    transform: translateY(-3px) !important;
    border-color: #60A5FA;
}

@keyframes cardFadeIn {
    from {
        opacity: 0.4;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.experience:nth-child(1) {
    animation-delay: 0s;
}

.experience:nth-child(2) {
    animation-delay: 0.08s;
}

.experience:nth-child(3) {
    animation-delay: 0.16s;
}

.experience:nth-child(4) {
    animation-delay: 0.24s;
}

#tldr {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    margin-top: 2rem;
}

#itaintmuch {
    margin-top: 10px;
    width: 250px;
    height: 200px;
    border-radius:12px;
}

.projects-container {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: stretch;
    gap:1.5rem;
    width: 100%;
}

.projects-container article {
    display: flex;
    flex-direction: column;
}

.project-desc {
    display: flex;
    flex-direction: column;
    flex:1;
}

.project-body {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.project-body ul {
    flex: 1;
    min-width: 0;
}

.project-stats {
    flex: 0 0 160px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    border-left: 2px dashed #4B5563;
    padding-left: 1.25rem;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.stat-label {
    color: #9CA3AF;
}

.stat-value {
    color: #F3F4F6;
    font-weight: bold;
    text-align: right;
}

.stack {
    margin-top: auto;
}

h4, p {
    margin-bottom: 2px;
    color: #F3F4F6;
}

ul {
    margin-top:2px;
    color: #F3F4F6;
}

.exp-title {
    display: flex;
    justify-content: space-between;
}

.skill-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.skill-category {
    width: 140px;
    font-weight: bold;
    flex-shrink: 0;
    color: #F3F4F6;
}

.skill-items {
    flex: 1;
    color: #F3F4F6;
}

#awards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
}

#awards .experience {
    padding: 14px;
    text-align: center;
    color: #F3F4F6;
}

body {
    padding: 0 60px;
    padding-bottom: 20vh;
    background-color: #111827;
    font-family: "JetBrains Mono", monospace;
}

h3 {
    margin-top: 0;
    color: #F3F4F6;
}

ul {
    margin-top: 8px;
    margin-bottom: 0;
    color: #F3F4F6;
}

.experience ul {
    padding-left: 16px;
}

main {
    width: 100%;
}

.project-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.project-header h2 {
    margin: 0;
    color: #F3F4F6;
}

#name {
    margin-bottom:4px;
    color: #F3F4F6;
}

#sub {
    margin-top: 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

.code {
    color: #86EFAC;
    transition: color 0.2s ease;
}

.code:hover {
    color: #A7F3D0;
}

a {
    color: #60A5FA;
    transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
    color: #93C5FD;
    opacity: 0.9;
}

.animated-link {
    position: relative;
    display: inline-block;
    text-decoration: none;
}

.animated-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;

    width: 100%;
    height: 2px;
    background-color: currentColor;

    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.animated-link:hover::after {
    transform: scaleX(1);
}

.stack p {
    display: inline-block;
    padding: 0.2rem 0.65rem;

    border: 1px solid #4b5563;
    border-radius: 999px;

    background-color: #1b2433;
    color: #b8c4d6;

    font-size: 0.85rem;
    font-family: inherit;
    white-space: nowrap;
}

html {
    scroll-behavior: smooth;
}

.reveal {
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@media screen and (max-width: 900px) {
    #links {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: flex-start; 
        gap: 6px;
    }

    #awards {
        display: flex;
        flex-direction: column;
    }

    #pfp {
        width: 6vh;
        height: 6vh;
    }

    #name-img {
        gap: 5px;
    }

    body {
        padding: 0px 7px;
        padding-bottom: 40vh;
    }

    .exp-title {
        gap: 8px;
    }

    #skills .skill-row{
        display: flex;
        flex-direction: column;

    }

    .projects-container {
        display: flex;
        flex-direction: column;
        justify-content: space-evenly;
        align-items: stretch;
    }
    
    .animated-link {
        white-space: nowrap;
    }

    .navbar {
        gap: 10px;
    }

    .project-body {
        flex-direction: column;
    }

    .project-stats {
        border-left: none;
        border-top: 2px dashed #4B5563;
        padding-left: 0;
        padding-top: 0.75rem;
        flex: 1 1 auto;
    }

    .experience {
        padding: 16px 18px;
        line-height: 1.5;
    }

    .project-body ul {
        padding-left: 18px;
    }

    .project-body li {
        margin-bottom: 8px;
    }

    .project-stats {
        margin-top: 12px;
    }

}

@media screen and (max-width: 500px) {

    .exp-title {
        display: flex;
        flex-direction: column;
    }   

    .navbar {
        gap: 10px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap:16px;
    }

    #links {
        margin-top: 12px;
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: flex-start;
        gap: 10px;
    }

    .experience {
        padding: 16px 18px;
        line-height: 1.5;
    }

    .project-body ul {
        padding-left: 18px;
    }

    .project-body li {
        margin-bottom: 8px;
    }

    .project-stats {
        margin-top: 12px;
    }
}