:root {
    --background: #0a0a0a;
    --card-background: #111111;
    --text-primary: #ffffff;
    --text-secondary: #aaaaaa;
    --accent: #0af5f4;
    --accent-hover: #00c7c7;
    --border-color: #222222;
    --link-hover: rgba(17, 17, 17, 0.8);

    --github-color: #6e5494;
    --leetcode-color: #ffa116;
    --monkeytype-color: #e2b714;
    --linkedin-color: #0077b5;
    --telegram-color: #0088cc;
    --youtube-color: #ff0000;
    --hackerrank-color: #00ea64;

    --pattern-color: rgba(10, 245, 244, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family:
        'Inter',
        -apple-system,
        BlinkMacSystemFont,
        'Segoe UI',
        Roboto,
        Oxygen,
        Ubuntu,
        Cantarell,
        'Open Sans',
        'Helvetica Neue',
        sans-serif;
    user-select: none;
}

body {
    overflow: hidden;
    height: 100%;
    overscroll-behavior: none;
    touch-action: none;
    background-color: var(--background);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.5;
    letter-spacing: -0.02em;
    position: relative;
    overflow-x: hidden;
}

.bg-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.8;
    background: radial-gradient(
            circle at 20% 30%,
            var(--pattern-color) 0%,
            transparent 40%
        ),
        radial-gradient(
            circle at 80% 70%,
            var(--pattern-color) 0%,
            transparent 40%
        );
}

.bg-dots {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: radial-gradient(
        var(--pattern-color) 1px,
        transparent 1px
    );
    background-size: 30px 30px;
    opacity: 0.5;
}

.container {
    width: 100%;
    max-width: 430px;
    padding: 16px;
    animation: fadeIn 0.5s ease;
    position: relative;
    z-index: 10;
}

.card {
    background-color: var(--card-background);
    border-radius: 16px;
    padding: 24px 20px;
    margin-bottom: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

.avatar-img {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0af5f4, #09d7d9);
    color: #000000;
    font-weight: 600;
    font-size: 22px;
    letter-spacing: -0.03em;
    border: 2px solid rgba(204, 255, 255, 0.8);
    box-shadow: 0 0 15px rgba(10, 245, 244, 0.25);
    object-fit: cover;
}

h1 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

.username {
    font-size: 13px;
    color: var(--text-secondary);
    font-style: italic;
    font-family: monospace;
    margin-left: 6px;
}

.bio {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 10px;
    line-height: 1.5;
}

.links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    padding: 12px 16px;
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    font-size: 13px;
    background-color: rgba(12, 15, 22, 0.4);
    position: relative;
    overflow: hidden;
}

.link:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.link:hover .platform-pattern {
    opacity: 1;
    transform: translateX(-3px);
}

.link i.icon {
    font-size: 15px;
    margin-right: 12px;
    color: var(--text-secondary);
    transition: color 0.3s ease;
    min-width: 18px;
    text-align: center;
    z-index: 2;
}

.link-text {
    flex: 1;
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
}

.platform-pattern {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1;
    opacity: 0;
}

.platform-pattern i {
    font-size: 24px;
    opacity: 0.15;
}

.link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, transparent, transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

/* GitHub */
.link.github:hover i.icon {
    color: var(--github-color);
}

.link.github:hover::before {
    background: linear-gradient(to right, transparent, rgba(110, 84, 148, 0.1));
    opacity: 1;
}

/* LeetCode */
.link.leetcode:hover i.icon {
    color: var(--leetcode-color);
}

.link.leetcode:hover::before {
    background: linear-gradient(to right, transparent, rgba(255, 161, 22, 0.1));
    opacity: 1;
}

/* MonkeyType */
.link.monkeytype:hover i.icon {
    color: var(--monkeytype-color);
}

.link.monkeytype:hover::before {
    background: linear-gradient(to right, transparent, rgba(226, 183, 20, 0.1));
    opacity: 1;
}

/* LinkedIn */
.link.linkedin:hover i.icon {
    color: var(--linkedin-color);
}

.link.linkedin:hover::before {
    background: linear-gradient(to right, transparent, rgba(0, 119, 181, 0.1));
    opacity: 1;
}

/* Telegram */
.link.telegram:hover i.icon {
    color: var(--telegram-color);
}

.link.telegram:hover::before {
    background: linear-gradient(to right, transparent, rgba(0, 136, 204, 0.1));
    opacity: 1;
}

/* YouTube */
.link.youtube:hover i.icon {
    color: var(--youtube-color);
}

.link.youtube:hover::before {
    background: linear-gradient(to right, transparent, rgba(255, 0, 0, 0.1));
    opacity: 1;
}

/* HackerRank */
.link.hackerrank:hover i.icon {
    color: var(--hackerrank-color);
}

.link.hackerrank:hover::before {
    background: linear-gradient(to right, transparent, rgba(0, 234, 100, 0.1));
    opacity: 1;
}

.footer {
    text-align: center;
    color: var(--text-secondary);
    font-size: 11px;
    margin-top: 16px;
    font-weight: 400;
}

.dot-separator {
    display: inline-block;
    margin: 0 5px;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background-color: var(--text-secondary);
    vertical-align: middle;
}

.badge {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 999px;
    background-color: rgba(10, 245, 244, 0.08);
    color: var(--accent);
    margin-top: 9px;
    font-weight: 500;
    border: 1px solid rgba(10, 245, 244, 0.15);
}

.badge i {
    font-size: 9px;
    margin-right: 5px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

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

.card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(
        135deg,
        transparent 40%,
        rgba(10, 245, 244, 0.15),
        transparent 60%
    );
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
}

.contact-spoiler {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    color: var(--accent);
    background-color: rgba(10, 245, 244, 0.05);
    border: 1px solid rgba(10, 245, 244, 0.1);
    transition: all 0.3s ease;
}

.contact-spoiler:hover {
    background-color: rgba(10, 245, 244, 0.1);
    transform: translateY(-1px);
}

.contact-spoiler i {
    margin-right: 5px;
    font-size: 10px;
}

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

.modal {
    background-color: var(--card-background);
    border-radius: 14px;
    padding: 24px;
    width: 90%;
    max-width: 320px;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 14px;
    padding: 1px;
    background: linear-gradient(
        135deg,
        transparent 0%,
        rgba(10, 245, 244, 0.2),
        transparent 100%
    );
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-color);
}

.modal-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 16px;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: var(--accent);
}

.contact-item {
    display: flex;
    align-items: center;
    padding: 12px;
    margin-bottom: 10px;
    font-size: 13px;
    color: var(--text-secondary);
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s ease;
}

.contact-item:hover {
    background-color: rgba(10, 245, 244, 0.05);
    border-color: rgba(10, 245, 244, 0.2);
}

.contact-item i {
    color: var(--accent);
    margin-right: 10px;
    font-size: 14px;
    width: 16px;
    text-align: center;
}

.contact-value {
    font-weight: 500;
    color: var(--text-primary);
    flex: 1;
}

.contact-item .copy-icon {
    color: var(--text-secondary);
    font-size: 13px;
    opacity: 0.6;
    transition: all 0.2s ease;
}

.contact-item:hover .copy-icon {
    opacity: 1;
    color: var(--accent);
}

/* Toast notification */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background-color: rgba(10, 245, 244, 0.1);
    border: 1px solid rgba(10, 245, 244, 0.3);
    color: var(--accent);
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    z-index: 200;
    opacity: 0;
    transition: all 0.3s ease;
}

.toast i {
    margin-right: 8px;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.hidden-text {
    position: absolute;
    left: -9999px;
    opacity: 0;
}

@media (max-width: 380px) {
    .container {
        padding: 12px;
    }

    .card {
        padding: 20px 16px;
    }

    .avatar-img {
        width: 55px;
        height: 55px;
    }

    h1 {
        font-size: 20px;
    }

    .links {
        gap: 6px;
    }

    .link {
        padding: 10px 14px;
    }
}
