@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;600;800&display=swap');

:root {
    --bg-color: #050508;
    --card-bg: rgba(255, 255, 255, 0.03);
    --border-color: rgba(255, 255, 255, 0.08);
    --accent-red: #ff3c3c;
    --accent-blue: #24a1de;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
    background: var(--bg-color);
    color: white;
    font-family: 'Plus Jakarta Sans', sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    overflow-x: hidden;
}

/* ФОНОВЫЕ ЭФФЕКТЫ */
#particleCanvas { position: fixed; inset: 0; z-index: -3; }
.grain-overlay { position: fixed; inset: 0; z-index: 10; opacity: 0.03; pointer-events: none; background-image: url("https://upload.wikimedia.org/wikipedia/commons/7/76/1k_ext_noise_transparent.png"); }

.mouse-glow {
    position: fixed; width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(255, 60, 60, 0.15) 0%, transparent 70%);
    border-radius: 50%; pointer-events: none; z-index: -2;
    transform: translate(-50%, -50%); transition: width 0.3s, height 0.3s;
}

/* ГЛОБАЛЬНАЯ ЛЕНТА */
.global-ribbon {
    position: fixed; top: 40%; left: -10%; width: 120%; height: 50px;
    background: rgba(255, 60, 60, 0.02); border-y: 1px solid rgba(255, 60, 60, 0.1);
    transform: rotate(-10deg); z-index: -1; display: flex; align-items: center; opacity: 0.5;
}
.ribbon-track { display: flex; white-space: nowrap; animation: scroll 20s linear infinite; }
.ribbon-track span { font-size: 20px; font-weight: 800; color: rgba(255, 255, 255, 0.1); letter-spacing: 8px; text-transform: uppercase; padding-right: 50px; }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* КОНТЕЙНЕР */
.main-wrapper {
    width: 100%;
    max-width: 450px;
    padding: 60px 20px;
    z-index: 5;
    animation: fadeIn 1s ease-out;
}

/* ПРОФИЛЬ */
.profile-section { text-align: center; margin-bottom: 40px; }

.avatar-wrap {
    position: relative; width: 120px; height: 120px; margin: 0 auto 20px;
}
.main-avatar {
    width: 100%; height: 100%; border-radius: 35px; object-fit: cover;
    border: 2px solid var(--border-color); position: relative; z-index: 2;
}
.avatar-ring {
    position: absolute; inset: -5px; border: 2px solid var(--accent-red);
    border-radius: 40px; opacity: 0.3; filter: blur(5px); animation: pulse 3s infinite;
}

.profile-name { font-family: 'Great Vibes', cursive; font-size: 50px; margin-bottom: 5px; background: linear-gradient(to bottom, #fff, #ccc); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.status-badge {
    display: inline-flex; align-items: center; gap: 6px; background: rgba(0, 255, 136, 0.1);
    color: #00ff88; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 800; text-transform: uppercase; margin-bottom: 15px;
}
.pulse-dot { width: 6px; height: 6px; background: #00ff88; border-radius: 50%; animation: dotPulse 1.5s infinite; }

.profile-bio { color: rgba(255, 255, 255, 0.5); font-size: 13px; letter-spacing: 1px; }

/* СЕТКА БЕНТО */
.links-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.bento-item {
    position: relative; background: var(--card-bg); border: 1px solid var(--border-color);
    border-radius: 24px; padding: 25px; text-decoration: none; color: white;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 10px; transition: all 0.4s cubic-bezier(0.2, 1, 0.3, 1); overflow: hidden;
}

.item-overlay {
    position: absolute; inset: 0; background: linear-gradient(45deg, transparent, rgba(255,255,255,0.03)); opacity: 0; transition: 0.3s;
}

.bento-item i { font-size: 24px; transition: 0.3s; }
.bento-item span { font-size: 14px; font-weight: 700; }

/* Ховеры */
.bento-item:hover { transform: translateY(-5px); border-color: rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.05); }
.bento-item:hover .item-overlay { opacity: 1; }

.youtube:hover i { color: #ff0000; filter: drop-shadow(0 0 10px #ff0000); }
.telegram:hover i { color: var(--accent-blue); filter: drop-shadow(0 0 10px var(--accent-blue)); }
.tiktok:hover i { color: #fff; filter: drop-shadow(0 0 10px #fff); }
.download:hover i { color: var(--accent-red); filter: drop-shadow(0 0 10px var(--accent-red)); }

.full-width {
    grid-column: span 2; flex-direction: row; justify-content: space-between; padding: 20px 30px;
    background: linear-gradient(90deg, rgba(255, 60, 60, 0.1), rgba(36, 161, 222, 0.05));
    border-color: rgba(255, 60, 60, 0.2);
}

.projects-content { display: flex; align-items: center; gap: 20px; }
.projects-content .text { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.projects-content strong { font-size: 16px; }
.projects-content small { font-size: 11px; opacity: 0.5; }
.arrow { font-size: 14px !important; opacity: 0.3; }

/* АНИМАЦИИ */
@keyframes pulse { 0%, 100% { opacity: 0.3; transform: scale(1); } 50% { opacity: 0.6; transform: scale(1.05); } }
@keyframes dotPulse { 0% { box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.4); } 70% { box-shadow: 0 0 0 10px rgba(0, 255, 136, 0); } 100% { box-shadow: 0 0 0 0 rgba(0, 255, 136, 0); } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* МОБИЛКИ */
@media (max-width: 480px) {
    .main-wrapper { padding: 40px 15px; }
    .profile-name { font-size: 42px; }
    .bento-item { padding: 20px; border-radius: 20px; }
    .full-width { padding: 18px 22px; }
}
/* Эффект нажатия на кнопку */
.bento-item:active {
    transform: scale(0.95);
    transition: 0.1s;
}

/* Слой перехода (взрывная волна) */
.transition-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--accent-red);
    z-index: 9999;
    clip-path: circle(0% at 50% 50%); /* Начинаем с невидимой точки */
    pointer-events: none;
    transition: clip-path 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.transition-layer.active {
    clip-path: circle(150% at 50% 50%); /* "Взрыв" на весь экран */
}

/* Анимация распада элементов при уходе */
.main-wrapper.fade-out {
    opacity: 0;
    transform: scale(1.1) rotate(2deg);
    filter: blur(10px);
    transition: all 0.5s ease-in;
}

/* Тряска для эффекта "удара" */
@keyframes shake {
    0% { transform: translate(0, 0); }
    25% { transform: translate(5px, -5px); }
    50% { transform: translate(-5px, 5px); }
    75% { transform: translate(5px, 5px); }
    100% { transform: translate(0, 0); }
}

.shake-it {
    animation: shake 0.3s ease-in-out;
}
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;600;800&display=swap');

:root {
    --bg-color: #020205;
    --accent-red: #ff3c3c;
    --accent-blue: #24a1de;
    --glass: rgba(255, 255, 255, 0.03);
    --border: rgba(255, 255, 255, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
    background: var(--bg-color);
    color: white;
    font-family: 'Plus Jakarta Sans', sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* --- ФОНОВЫЙ ДВИЖОК --- */
.visual-engine { position: fixed; inset: 0; z-index: -5; }
.main-glow {
    position: absolute; top: 50%; left: 50%; width: 150vmax; height: 150vmax;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle at 30% 30%, rgba(255, 60, 60, 0.1) 0%, transparent 40%),
                radial-gradient(circle at 70% 70%, rgba(36, 161, 222, 0.1) 0%, transparent 40%);
    filter: blur(60px); animation: nebula-rotate 40s infinite linear;
}
@keyframes nebula-rotate { from { transform: translate(-50%, -50%) rotate(0deg); } to { transform: translate(-50%, -50%) rotate(360deg); } }

.glass-floor {
    position: absolute; bottom: 0; width: 100%; height: 40vh;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.03), transparent);
    backdrop-filter: blur(10px); mask-image: linear-gradient(to top, black, transparent); z-index: -1;
}
.noise-layer { position: fixed; inset: 0; background-image: url('https://upload.wikimedia.org/wikipedia/commons/7/76/1k_ext_noise_transparent.png'); opacity: 0.03; z-index: -2; pointer-events: none; }

/* --- ГЛОБАЛЬНАЯ ЛЕНТА --- */
.global-ribbon {
    position: fixed; top: 45%; left: -10%; width: 120%; transform: rotate(-8deg);
    opacity: 0.2; z-index: -1; pointer-events: none;
}
.ribbon-track { display: flex; white-space: nowrap; animation: scroll 25s linear infinite; }
.ribbon-track span { font-size: 80px; font-weight: 800; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,0.15); padding-right: 40px; }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* --- ГЛАВНАЯ КАРТОЧКА --- */
.main-wrapper {
    width: 92%; max-width: 440px; position: relative;
    background: rgba(10, 10, 15, 0.7); backdrop-filter: blur(40px);
    border: 1px solid var(--border); border-radius: 40px;
    padding: 50px 30px; box-shadow: 0 50px 100px rgba(0,0,0,0.8);
    transition: transform 0.1s ease-out;
}

/* ПРОФИЛЬ */
.profile-section { text-align: center; margin-bottom: 35px; }
.avatar-wrap { position: relative; width: 110px; height: 110px; margin: 0 auto 15px; }
.main-avatar { width: 100%; height: 100%; border-radius: 30px; border: 2px solid var(--border); }
.avatar-ring { position: absolute; inset: -5px; border: 2px solid var(--accent-red); border-radius: 35px; opacity: 0.4; filter: blur(4px); animation: pulse 2s infinite; }

.profile-name { font-family: 'Great Vibes', cursive; font-size: 48px; margin-bottom: 5px; }
.status-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(0,255,136,0.1); color: #00ff88; padding: 5px 12px; border-radius: 20px; font-size: 11px; font-weight: 800; }
.pulse-dot { width: 6px; height: 6px; background: #00ff88; border-radius: 50%; box-shadow: 0 0 10px #00ff88; }

/* СЕТКА ССЫЛОК */
.links-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bento-item {
    background: var(--glass); border: 1px solid var(--border);
    border-radius: 20px; padding: 22px; text-decoration: none; color: white;
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    transition: 0.3s cubic-bezier(0.2, 1, 0.3, 1);
}
.bento-item i { font-size: 22px; }
.bento-item span { font-size: 13px; font-weight: 600; }
.full-width { grid-column: span 2; flex-direction: row; justify-content: space-between; padding: 18px 25px; background: rgba(255,255,255,0.03); }

/* ЭФФЕКТЫ ПЕРЕХОДА (ГЛИТЧ) */
.bento-item.clicked {
    z-index: 100; animation: glitch-skew 0.3s steps(2) infinite;
    background: rgba(255,255,255,0.1) !important; border-color: white !important;
}
.item-pushed-up { transform: translateY(-120vh) scale(0.8); filter: blur(15px); opacity: 0; transition: 0.6s; }
.item-pushed-down { transform: translateY(120vh) scale(0.8); filter: blur(15px); opacity: 0; transition: 0.6s; }

@keyframes glitch-skew { 0%, 100% { transform: skew(0deg); } 50% { transform: skew(5deg); } }
@keyframes pulse { 0% { transform: scale(1); opacity: 0.4; } 50% { transform: scale(1.05); opacity: 0.7; } 100% { transform: scale(1); opacity: 0.4; } }

/* МОБИЛКИ */
@media (max-width: 480px) {
    .main-wrapper { padding: 40px 20px; }
    .profile-name { font-size: 38px; }
}
/* --- СТИЛИ СТАТИСТИКИ НА ГЛАВНОЙ --- */
.stats-wrapper {
    width: 92%;
    max-width: 440px;
    margin: 20px auto 40px; /* Отступ от основной карточки */
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 15px 5px;
    text-align: center;
    transition: 0.3s ease;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-5px);
    border-color: var(--accent-red);
}

.stat-card i {
    font-size: 18px;
    margin-bottom: 8px;
    display: block;
    opacity: 0.6;
}

.stat-value {
    font-size: 22px;
    font-weight: 800;
    display: block;
    background: linear-gradient(180deg, #fff, #aaa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.stat-label {
    font-size: 8px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    letter-spacing: 1px;
    font-weight: 600;
}

/* Адаптация для совсем маленьких экранов */
@media (max-width: 380px) {
    .stat-value { font-size: 18px; }
    .stat-label { font-size: 7px; }
}
.visual-anime {
    position: fixed;
    inset: 0; /* Растягивает блок на весь экран */
    z-index: -6;
    pointer-events: none;
    
    background-image: url('../8491dfe3-78ad-4771-b3bd-ccd8af59fdba.png');
    
    /* Заполняем весь экран без остатка */
    background-size: cover; 
    background-position: center bottom;
    background-repeat: no-repeat;
    
    filter: none; 
    mix-blend-mode: screen;
    opacity: 0.15;

    /* ДВОЙНАЯ МАСКА: Растворяем края со всех сторон */
    /* Теперь края картинки не обрываются резко, а плавно уходят в ноль */
    -webkit-mask-image: radial-gradient(
        ellipse 80% 80% at 50% 100%, 
        black 20%, 
        transparent 95%
    );
    mask-image: radial-gradient(
        ellipse 80% 80% at 50% 100%, 
        black 20%, 
        transparent 95%
    );
}

/* На мобилках делаем акцент чуть сильнее */
@media (max-width: 768px) {
    .visual-anime {
        background-size: cover; /* Тоже на весь экран */
        background-position: center 20%; /* Смещаем чуть вверх, чтобы лицо было видно лучше */
        opacity: 0.22;
        
        -webkit-mask-image: radial-gradient(
            circle at 50% 50%, 
            black 30%, 
            transparent 100%
        );
        mask-image: radial-gradient(
            circle at 50% 50%, 
            black 30%, 
            transparent 100%
        );
    }
}