* {
    user-select: none;
}

html,
body {
    overflow: hidden;
    height: 100%;
}

body {
    background: url('./res/wallpaper.jpg') center center / cover no-repeat fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

#modalClose:hover {
    background: red;
}

button {
    cursor: pointer;
}

.profile-window {
    width: 420px;
    max-width: 100%;
    margin-bottom: 200px;
}

.window {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.window-body {
    padding: 16px;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.avatar-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0af5f4, #09d7d9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: bold;
    color: #000;
    border: 2px solid #7ebceb;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    flex-shrink: 0;
    overflow: hidden;
}

.avatar-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.profile-info h2 {
    margin: 0 0 2px 0;
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
}

.profile-info .bio {
    font-size: 12px;
    color: #444;
    margin-top: 4px;
}

.bio-sep {
    margin: 0 5px;
    color: #999;
}

.contact-row {
    margin-bottom: 12px;
}

.links-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 4px;
}

.link-item {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    padding: 7px 10px;
    color: #1a1a1a;
    border: 1px solid #d4d0c8;
    background: linear-gradient(to bottom, #f5f3ee, #e8e4db);
    border-radius: 2px;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.15s;
    cursor: pointer;
}

.link-item:hover {
    background: linear-gradient(to bottom, #dce8f5, #c4d8ef);
    border-color: #4a90d9;
    color: #003399;
}

.link-item:active {
    background: linear-gradient(to bottom, #b8d0ea, #a0c0e0);
}

.link-item .link-icon {
    width: 20px;
    text-align: center;
    font-size: 15px;
    flex-shrink: 0;
}

.link-item .link-arrow {
    margin-left: auto;
    color: #888;
    font-size: 11px;
}

.link-item.github .link-icon {
    color: #6e5494;
}

.link-item.leetcode .link-icon {
    color: #ffa116;
}

.link-item.robocontest .link-icon {
    color: #e74c3c;
}

.link-item.monkeytype .link-icon {
    color: #b8860b;
}

.link-item.linkedin .link-icon {
    color: #0077b5;
}

.link-item.telegram .link-icon {
    color: #0088cc;
}

.link-item.youtube .link-icon {
    color: #ff0000;
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 999;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
}

.contact-window {
    width: 300px;
}

.contact-item-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border: 1px solid #d4d0c8;
    background: linear-gradient(to bottom, #f9f8f5, #f0eee8);
    border-radius: 2px;
    cursor: pointer;
    font-size: 13px;
    margin-bottom: 6px;
    transition: background 0.15s;
    position: relative;
}

.contact-item-row:hover {
    background: linear-gradient(to bottom, #dce8f5, #c4d8ef);
    border-color: #4a90d9;
}

.contact-item-row .contact-icon {
    color: #0077b5;
    font-size: 15px;
    width: 18px;
    text-align: center;
}

.contact-value {
    flex: 1;
    font-weight: 500;
    color: #1a1a1a;
}

.copy-hint {
    font-size: 11px;
    color: #888;
}

.win7-footer {
    position: fixed;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    left: 15px;
    bottom: 15px;
    text-shadow: 0px 1px 2px rgba(0, 0, 0, 1);
}

.row-balloon {
    display: none;
}

#clippy-wrap {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50px;
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 1);
    position: fixed;
    border-top-right-radius: 0px;
    border-bottom-right-radius: 0px;
    right: 0;
    left: auto;
    bottom: 0;
    padding: 20px;
    border-bottom-left-radius: 0px;
    width: 120px;
    z-index: 500;
    user-select: none;
}

#clippy-bubble {
    position: absolute;
    right: 25px;
    left: auto;
    bottom: 100%;
    width: 220px;
    min-height: 20px;
    display: flex;
    align-items: center;
    background: #ffffe1;
    border: 1px solid #8a8a5c;
    border-radius: 6px;
    padding: 8px 10px;
    font-family: Tahoma, 'Segoe UI', sans-serif;
    font-size: 12px;
    color: #222;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.25);
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.35s ease, transform 0.35s ease;
    pointer-events: none;
    text-align: left;
}

#clippy-bubble.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

#clippy-bubble::after {
    content: "";
    position: absolute;
    bottom: -6px;
    right: 60px;
    left: auto;
    width: 12px;
    height: 12px;
    background: #ffffe1;
    border-right: 1px solid #8a8a5c;
    border-bottom: 1px solid #8a8a5c;
    transform: translateX(50%) rotate(45deg);
}

#clippy-char {
    width: 120px;
    height: auto;
    cursor: pointer;
    filter: drop-shadow(1px 2px 2px rgba(0, 0, 0, 0.25));
    animation: clippy-idle 2.6s ease-in-out infinite;
    flex-shrink: 0;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    object-fit: contain;
}

#clippy-char:hover {
    animation-play-state: paused;
}

@keyframes clippy-idle {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}

@keyframes clippy-shake {

    0%,
    100% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-6px);
    }

    40% {
        transform: translateX(6px);
    }

    60% {
        transform: translateX(-4px);
    }

    80% {
        transform: translateX(4px);
    }
}

#clippy-char.clippy-shake {
    animation: clippy-shake 0.5s ease-in-out !important;
}

.avatar-circle {
    cursor: pointer;
}
