@font-face {
    font-family: 'Time Burner';
    src: url('../fonts/timeburner.regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

:root {
    --primary-color: #ffffff;
    --text-color: #f1f5f9;
    --text-muted: #cbd5e1;
    --glass-bg: rgba(0, 0, 0, 0.55);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), inset 0 2px 5px rgba(255, 255, 255, 0.1);
    --link-bg: rgba(255, 255, 255, 0.08);
    --link-hover-bg: rgba(255, 255, 255, 0.18);
    --accent: #8b5cf6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Time Burner', sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #0f172a;
    color: var(--text-color);
    overflow-x: hidden;
    position: relative;
    padding: 40px 20px;
    user-select: none;
    -webkit-user-select: none;
}

@media (pointer: fine) {
    * {
        cursor: none !important;
    }
}

.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: url('../../images/background.png') center/cover no-repeat;
    filter: blur(15px);
    transform: scale(1.05);
    transition: filter 0.36s cubic-bezier(0.16, 1, 0.3, 1);
}

body.reveal-active .background-container {
    filter: blur(45px);
}

.reveal-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    cursor: pointer;
    overflow: hidden;
}

.reveal-text {
    font-size: 1.1rem;
    font-weight: 400;
    font-style: italic;
    color: #ffffff;
    user-select: none;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 20px rgba(255, 255, 255, 0.4);
    pointer-events: none;
    animation: slideInDiagonal 0.36s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideInDiagonal {
    from {
        transform: translate(-100%, -100%);
        opacity: 0;
    }

    to {
        transform: translate(0, 0);
        opacity: 1;
    }
}

.card-container {
    opacity: 0;
}

body:not(.reveal-active) .card-container {
    opacity: 1;
    animation: slideInDiagonal 0.36s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.card-container {
    width: 100%;
    max-width: 460px;
    perspective: 1000px;
    z-index: 10;
    transform: scale(0.95);
}

.glass-card {
    background-color: var(--glass-bg);
    backdrop-filter: blur(24px) saturate(150%);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    border: 2.5px solid var(--glass-border);
    border-radius: 28px;
    box-shadow: var(--glass-shadow);
    overflow: visible;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

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

.banner {
    height: 160px;
    width: 100%;
    overflow: hidden;
    position: relative;
    border: none;
    border-bottom: 2.5px solid var(--glass-border);
    border-radius: 26px 26px 0 0;
}

.banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent);
}

.profile-section {
    padding: 0 28px;
    text-align: center;
    margin-top: -60px;
    position: relative;
    z-index: 1;
}

.avatar-wrapper {
    position: relative;
    width: 105px;
    height: 105px;
    margin: 0 auto 16px;
    border-radius: 20px;
    padding: 0;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

.avatar {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    object-fit: cover;
    border: 2.5px solid var(--glass-border);
    background-color: transparent;
}

.online-indicator {
    display: none;
}

.name {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 6px;
    letter-spacing: -0.5px;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.5);
}

.bio {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-top: 2px;
    margin-bottom: 28px;
    line-height: 1.5;
    text-shadow: 0 0 10px rgba(150, 150, 150, 0.4);
}

.links-section {
    padding: 0 28px 32px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    position: relative;
    z-index: 5;
}

.icon-links-row {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.icon-link {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 28px;
    height: 28px;
    text-decoration: none;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.icon-link:hover {
    opacity: 1;
    transform: scale(1.1);
}

.icon-link::after {
    content: '';
    position: absolute;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, transparent 75%);
    filter: blur(5px);
    z-index: -1;
    transition: all 0.3s ease;
}

.icon-link:hover::after {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.7) 0%, transparent 75%);
    filter: blur(8px);
}

.icon-link img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1) opacity(0.85) drop-shadow(0 0 5px rgba(255, 255, 255, 0.4));
    transition: all 0.3s ease;
}

.icon-link:hover img {
    filter: brightness(0) invert(1) opacity(1) drop-shadow(0 0 10px rgba(255, 255, 255, 0.8));
}

.tooltip-text {
    position: absolute;
    bottom: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    opacity: 0;
    visibility: hidden;
    background: #111111;
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 500;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    pointer-events: none;
    z-index: 100;
}

.icon-link:hover .tooltip-text {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.tooltip-arrow {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

.box-links-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.box-link {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.box-link:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.box-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 14px;
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
}

.box-icon::after {
    content: '';
    position: absolute;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.2) 40%, transparent 80%);
    filter: blur(8px);
    z-index: 0;
    transition: all 0.3s ease;
}

.box-link:hover .box-icon::after {
    width: 55px;
    height: 55px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.3) 40%, transparent 80%);
    filter: blur(10px);
}

.box-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    position: relative;
    z-index: 1;
}

.box-link:hover .box-icon {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.box-title {
    font-weight: 400;
    font-size: 1.05rem;
    flex-grow: 1;
    color: rgba(255, 255, 255, 0.9);
}

.box-arrow {
    opacity: 0.5;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    transition: transform 0.3s ease;
}

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

@media (max-width: 480px) {
    .glass-card {
        border-radius: 20px;
    }

    .banner {
        height: 120px;
        border-bottom-width: 2.5px;
        border-radius: 18px 18px 0 0;
    }

    .avatar-wrapper {
        width: 90px;
        height: 90px;
        margin-top: -10px;
        border-radius: 15px;
    }

    .avatar {
        border-radius: 15px;
    }
}

#custom-cursor,
.cursor-ghost {
    position: fixed;
    top: 0;
    left: 0;
    width: 32px;
    height: 32px;
    background: url('../../images/main.cur') no-repeat left top;
    pointer-events: none;
    z-index: 10000;
    transform: translate(0, 0);
    display: none;
}

@media (pointer: fine) {
    body {
        cursor: none;
    }

    #custom-cursor {
        display: block;
    }

    .cursor-ghost {
        display: block;
    }
}

.cursor-ghost {
    opacity: 0.3;
}

body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;

    background-image: linear-gradient(135deg, rgba(0, 0, 0, 0.85) 15%, transparent 40%);

    background-size: 2px 2px;

    z-index: 9998;
    pointer-events: none;
}