@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Mono:wght@300;400;500&display=swap');

html, body {
    margin: 0;
    padding: 0;
}

.top {
    display: flex;
    flex-direction: column;
    background-color: #87CEEB;
    margin: 0px;
}

nav {
    display: flex;
    justify-content: center;
    height: 60px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    padding: 0;
}

nav li {
    font-size: 1.2rem;
}

nav a {
    text-decoration: none;
    color: black;
    transition: 0.2s ease;
}

nav a:hover,
nav a:focus {
    color: white;
}

h1 {
    text-align: center;
    margin-bottom: 0;
}

.nav-title {
    font-family: 'DM Serif Display', serif;
    font-size: 2rem;
    letter-spacing: -0.02em;
    margin: 0.5rem 0;
    color: #1a1814;
    font-weight: normal;
}

h1.skills {
    margin-top: 30px;
}

p {
    max-width: 650px;
    text-align: center;
    margin-top: 5px;
    font-size: 18px;
}

.project {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    max-width: 800px;
    margin: 40px auto;
}

.pfp {
    width: 150px;
    border-radius: 50%;
}

.project-box {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin: 40px 0;
}

.project-card {
    width: 280px;
    padding: 20px;
    border-radius: 16px;
    background: #f5f5f5;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    max-width: 700px;
    margin: 20px auto 16px;
    padding: 0 20px;
}

.tag {
    padding: 8px 18px;
    border-radius: 999px;
    font-weight: 500;
    cursor: default;
    border: 0.5px solid;
}

.tag.advanced {
    font-size: 18px;
    background: #B5D4F4;
    color: #0C447C;
    border-color: #378ADD;
}

.tag.intermediate {
    font-size: 15px;
    background: #D3D1C7;
    color: #444441;
    border-color: #888780;
}

.tag.beginner {
    font-size: 12px;
    background: #F1EFE8;
    color: #5F5E5A;
    border-color: #B4B2A9;
}

.tag-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 13px;
    color: #888;
    margin-bottom: 40px;
}

.legend-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 4px;
}

.legend-dot.advanced { background: #378ADD; }
.legend-dot.intermediate { background: #888780; }
.legend-dot.beginner { background: #B4B2A9; }