:root {
    --md-sys-color-primary: #D0BCFF;
    --md-sys-color-surface: #141218;
    --md-sys-color-surface-container: rgba(33, 31, 38, 0.85);
    --md-sys-color-on-surface: #E6E1E5;
    --md-sys-color-secondary-container: #4A4458;
    --md-sys-color-on-secondary-container: #E8DEF8;
}

* {
    -webkit-tap-highlight-color: transparent;
    box-sizing: border-box;
}

body {
    background-color: var(--md-sys-color-surface);
    color: var(--md-sys-color-on-surface);
    margin: 0;
    font-family: 'Google Sans', sans-serif;
    display: flex;
    justify-content: center;
    transition: background-color 0.3s ease;
}

main {
    flex: 1;
    max-width: 500px;
    padding: 24px;
    padding-bottom: 120px;
}

.page {
    display: none;
    animation: slideUp 0.4s cubic-bezier(0.2, 0, 0, 1);
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* material 3 */

md-filled-tonal-button {
    --md-sys-typescale-label-large-font: 'Google Sans', sans-serif;
    --md-sys-typescale-label-large-weight: 500;
    --md-sys-typescale-label-large-size: 14px;
    --md-sys-typescale-label-large-tracking: 0.1px;
}

.github-icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    background-color: currentColor;
    mask: url('/assets/github-icon.svg') no-repeat center / 22px;
    -webkit-mask: url('/assets/github-icon.svg') no-repeat center / 22px;
    vertical-align: middle;
}

.m3-card {
    background: var(--md-sys-color-surface-container);
    border-radius: 24px;
    padding: 16px 20px;
    margin-bottom: 12px;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s cubic-bezier(0.2, 0, 0, 1), background-color 0.2s cubic-bezier(0.2, 0, 0, 1);
}

.m3-card h2 {
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.m3-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.m3-card li {
    margin-bottom: 8px;
    font-size: 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.m3-card li:last-child {
    margin-bottom: 0;
}

.m3-card code {
    font-family: 'Roboto Mono', monospace;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 12px;
    color: var(--md-sys-color-primary);
    word-break: break-all;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: block;
    margin-top: 4px;
}

.m3-card a {
    color: var(--md-sys-color-primary);
    text-decoration: none;
    font-weight: 500;
}

.m3-card a:hover {
    text-decoration: underline;
}

/* profile */

.profile-card {
    border-radius: 28px;
    padding: 40px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.profile-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background-color: var(--md-sys-color-secondary-container);
    color: var(--md-sys-color-on-secondary-container);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    overflow: hidden;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.profile-nickname {
    display: block;
    font-size: 24px;
    font-weight: 700;
}

.profile-subtitle {
    font-size: 15px;
    opacity: 0.6;
    margin-top: 12px;
}

/* navbar */

nav {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 48px);
    max-width: 400px;
    height: 72px;
    background: var(--md-sys-color-surface-container);
    backdrop-filter: blur(20px);
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-radius: 36px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    padding: 0 12px;
}

.nav-link {
    text-decoration: none;
    color: var(--md-sys-color-on-surface);
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    gap: 2px;
    cursor: default;
}

.nav-icon-pill {
    width: 56px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    transition: transform 0.2s cubic-bezier(0.2, 0, 0, 1), background-color 0.2s;
}

.material-symbols-rounded {
    font-variation-settings: 'FILL' 0, 'wght' 400;
    font-size: 24px;
}

.nav-link.active .nav-icon-pill {
    background-color: var(--md-sys-color-secondary-container);
    transform: scale(1.1);
}

.nav-link.active .material-symbols-rounded {
    font-variation-settings: 'FILL' 1, 'wght' 500;
}

.nav-link:active .nav-icon-pill {
    transform: scale(0.9);
}

.nav-label {
    font-size: 11px;
    font-weight: 500;
    opacity: 0.8;
}

.nav-link.active .nav-label {
    opacity: 1;
    font-weight: 700;
}

/* info-items */

.project-card, .about-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.project-content, .about-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.project-name, .about-title {
    font-size: 18px;
    font-weight: 500;
}

.project-subtitle, .about-subtitle {
    font-size: 14px;
    opacity: 0.8;
    margin: 6px 0 0 0;
}

/* icon */

.m3-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.m3-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 40px;
}

.custom-icon {
    border-radius: 40px;
    background: var(--md-sys-color-secondary-container);
    padding: 12px;
}

.custom-icon img {
    object-fit: contain;
}