* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #0a0a0a;
    color: #ffffff;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    padding: 10px;
}

#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; 
}

.bento-grid {
    position: relative; 
    z-index: 1;         
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 800px;
    width: 100%;
}

.card {
    position: relative;
    background-color: #16161a;
    border-radius: 24px;
    padding: 24px;
    border: 1px solid #222227;
    transition: transform 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.card:hover {
    transform: translateY(-5px);
    background-color: #1c1c22;
    border-color: #2d2d35;
}

.profile-card {
    grid-column: span 2;
    display: flex;
    align-items: center;
    gap: 24px;
    padding-right: 60px;
}

.btn-devices {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: #222227;
    border: 1px solid #2d2d35;
    color: #a0a0ab;
    font-size: 18px;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-devices:hover {
    background-color: #ffffff;
    color: #16161a;
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.avatar {
    width: 100px;
    height: 100px;
    background-color: #2a2a30;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(254, 244, 20, 0.8);
    box-shadow: 0 0 12px rgba(254, 244, 20, 0.35);
    flex-shrink: 0;
    
    transition: transform 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                filter 0.25s ease, 
                box-shadow 0.25s ease, 
                border-color 0.25s ease;
    -webkit-tap-highlight-color: transparent; 
}

.avatar:hover {
    transform: scale(1.05);
    border-color: #555560; 
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.avatar:active {
    transform: scale(0.92); 
    filter: brightness(0.5); 
    box-shadow: none; 
    border-color: #222227; 
}

.info h1 .prefix {
    font-size: 10px;
    color: #a0a0ab;
    vertical-align: super;
    font-weight: 400;
    margin-left: 6px;  
}

.info p {
    color: #a0a0ab;
    font-size: 15px;
    line-height: 1.6;
}

.skills-card h2, .socials-card h2 {
    font-size: 18px;
    margin-bottom: 18px;
    color: #e4e4e7;
    font-weight: 600;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    background-color: #222227;
    color: #d4d4d8;
    padding: 8px 14px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #2d2d35;
    transition: all 0.2s ease;
}

.skill-tag:hover {
    color: #fff;
    background-color: #2a2a33;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn-donate-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding: 10px 18px;
    background-color: #222227;
    color: #e4e4e7;
    border: 1px solid #2d2d35;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
}

.btn-donate-trigger:hover {
    background-color: #2a2a33;
    color: #ffffff;
    border-color: #555560;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.05);
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 10, 10, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content.card {
    max-width: 450px;
    width: 90%;
    margin: 0;
    padding: 30px 24px 24px 24px;
    transform: translateY(-20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.modal.active .modal-content.card {
    transform: translateY(0) scale(1);
}

.close-btn {
    position: absolute;
    top: 16px;
    right: 20px;
    color: #a0a0ab;
    font-size: 22px;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
}

.close-btn:hover {
    color: #ffffff;
    transform: scale(1.1);
}

.modal-content h2 {
    font-size: 22px;
    margin-bottom: 20px;
    font-weight: 600;
    color: #ffffff;
}

.donate-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.donate-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #222227;
    padding: 12px 16px;
    border-radius: 14px;
    border: 1px solid #2d2d35;
    transition: border-color 0.2s ease;
}

.donate-item:hover {
    border-color: #3f3f4a;
}

.donate-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow: hidden;
}

.donate-info span {
    font-size: 11px;
    color: #a0a0ab;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.donate-info code {
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 14px;
    color: #e4e4e7;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-copy {
    background: none;
    border: none;
    color: #a0a0ab;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 8px;
    margin-left: 10px;
    flex-shrink: 0;
}

.btn-copy:hover {
    color: #ffffff;
    transform: scale(1.1);
}
.bottom-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end; 
    padding-top: 5px; 
}

.btn-donate-floating {
    display: flex;
    align-items: center;
    justify-content: center;
    
    width: 54px;
    height: 54px;
    border-radius: 50%;
    
    background-color: #16161a; 
    border: 1px solid #2d2d35;
    color: #fef414; 
    font-size: 20px;
    cursor: pointer;
    
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4), 
                0 0 8px rgba(254, 244, 20, 0.15);
    
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-donate-floating:hover {
    background-color: #fef414; 
    color: #16161a;            
    border-color: #fef414;
    transform: scale(1.1) translateY(-3px); 
    box-shadow: 0 8px 25px rgba(254, 244, 20, 0.4);
}

.btn-donate-floating:active {
    transform: scale(0.95) translateY(-1px);
    box-shadow: 0 4px 10px rgba(254, 244, 20, 0.2);
}

@media (max-width: 650px) {
    .btn-donate-floating {
        width: 48px;
        height: 48px;
        font-size: 18px;
    }
}
.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;       
    height: 48px;      
    border-radius: 14px; 
    text-decoration: none;
    font-size: 22px;   
    color: #a0a0ab;    
    background-color: #222227; 
    border: 1px solid #2d2d35;
    transition: all 0.25s ease;
}

.btn-tg:hover { background-color: #229ED9; color: #fff; border-color: #229ED9; box-shadow: 0 4px 12px rgba(34, 158, 217, 0.4); }
.btn-gh:hover { background-color: #fff; color: #24292e; border-color: #fff; box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2); }
.btn-line:hover { background-color: #06C755; color: #fff; border-color: #06C755; box-shadow: 0 4px 12px rgba(6, 199, 85, 0.4); }
.btn-wechat:hover { background-color: #07C160; color: #fff; border-color: #07C160; box-shadow: 0 4px 12px rgba(7, 193, 96, 0.4); }
.btn-kakao:hover { background-color: #FEE500; color: #191919; border-color: #FEE500; box-shadow: 0 4px 12px rgba(254, 229, 0, 0.4); }
.btn-steam:hover { background-color: #171a21; color: #fff; border-color: #66c0f4; box-shadow: 0 4px 12px rgba(102, 192, 244, 0.4); }
.btn-gmail:hover { background-color: #EA4335; color: #fff; border-color: #EA4335; box-shadow: 0 4px 12px rgba(234, 67, 53, 0.4); }

@media (max-width: 650px) {
    .bento-grid {
        grid-template-columns: 1fr;
        gap: 12px; 
    }

    .card {
        padding: 16px;
    }

    .profile-card {
        grid-column: span 1;
        flex-direction: column;
        text-align: center;
        gap: 12px;
        padding-right: 16px;
        padding-top: 35px; 
    }

    .btn-devices {
        top: 12px;
        right: 12px;
        width: 34px;
        height: 34px;
        font-size: 15px;
    }

    .avatar {
        width: 75px;
        height: 75px;
    }

    .info h1 {
        font-size: 22px;
        margin-bottom: 4px;
    }

    .info p {
        font-size: 13px;
        line-height: 1.3;
    }

    .socials-card, .skills-card {
        text-align: center;
    }

    .socials-card h2, .skills-card h2 {
        font-size: 15px;
        margin-bottom: 10px;
    }

    .social-links, .skills-list {
        justify-content: center;
        gap: 8px;
    }

    .btn-social {
        width: 40px;
        height: 40px;
        font-size: 18px;
        border-radius: 12px;
    }

    .skill-tag {
        padding: 6px 10px;
        font-size: 12px;
    }

    .bottom-actions {
        justify-content: flex-end;
        padding-top: 0;
    }

    .btn-donate-floating {
        width: 46px;
        height: 46px;
        font-size: 18px;
    }
}

.wechat-qr {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

button.btn-social {
    cursor: pointer;
    font-family: inherit;
    outline: none;
}
