/* Базовые настройки */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
        }
            
.changewallpaper {
    position: fixed;
    top: 20px;
    right: -30px;

    width: 30%;
    max-width: 70px;
    padding: 6px;
    border-radius: 9px;

    background: rgba(255, 255, 255, 0.08);

    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);

    border: 1px solid rgba(255, 255, 255, 0.08);

    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.15),
        0 0 10px rgba(255, 255, 255, 0.2),
        0 0 25px rgba(255, 255, 255, 0.08);

    color: rgba(255, 255, 255, 0.82);

    text-shadow:
        0 0 6px rgba(255, 255, 255, 0.2),
        0 0 15px rgba(255, 255, 255, 0.08);

    cursor: pointer;
    overflow: hidden;

    transition:
        right 0.4s cubic-bezier(0.33, 1, 0.68, 1),
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
    font-size: 28px;
}

.content-wrapper {
    display: flex;
    gap: 32px;
    align-items: center;
    justify-content: space-between;
}

.changewallpaper:hover {
    right: 15px;

    background: rgba(255, 255, 255, 0.12);

    border: 1px solid rgba(255, 255, 255, 0.15);

    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.15),
        0 0 12px rgba(255, 255, 255, 0.28),
        0 0 30px rgba(255, 255, 255, 0.12);
}

.changewallpaper:active {
    transform: scale(0.97);
}

.changewallpaper::after {
    content: "";
    position: absolute;
    inset: -40%;
    background: radial-gradient(
        circle,
        rgba(120, 220, 255, 0.28),
        rgba(170, 120, 255, 0.12) 35%,
        transparent 65%
    );
    opacity: 0;
    transform: scale(0.6);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.changewallpaper:hover::after {
    opacity: 1;
    transform: scale(1);
}
body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    
    background-color: #121212; 
}

.bg, .bg-next {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2; 
    
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;

    filter: blur(3px);
    transform: scale(1.03);
}

#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

.bg-next {
    clip-path: circle(0% at 50% 50%);
    -webkit-clip-path: circle(0% at 50% 50%);
}

        /* Главная стеклянная панель */
.main-panel {
    background: rgba(30, 30, 30, 0.45);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    padding: 24px;
    width: 90%;
    max-width: 750px;
    margin: 0 auto; /* <-- ДОБАВЬТЕ ЭТУ СТРОКУ */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.3),
        0 0 15px rgba(255, 255, 255, 0.4),
        0 0 40px rgba(255, 255, 255, 0.15);
}

        /* Шапка профиля */
        .profile-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 24px;
        }

        .profile-info {
            display: flex;
            align-items: center;
            gap: 16px;
        }

        .avatar {
            width: 64px;
            height: 64px;
            border-radius: 50%;
            object-fit: cover;
            border: 2px solid rgba(255, 255, 255, 0.2);
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2),
            0 0 0 1px rgba(255, 255, 255, 0.15),
            0 0 10px rgba(255, 255, 255, 0.2),
            0 0 25px rgba(255, 255, 255, 0.08);
            /* Временный фон для аватара */
            background: linear-gradient(45deg, #a18cd1, #fbc2eb); 
        }

        .user-details h1 {
            font-size: 18px;
            font-weight: 600;
            margin-bottom: 2px;
        }

        .user-details span {
            font-size: 13px;
            color: rgba(255, 255, 255, 0.7);
            
        }

        /* Кнопки соцсетей в шапке */
        .social-buttons {
            display: flex;
            gap: 10px;
        }

        .social-btn {
            display: flex;
            justify-content: center;
            align-items: center;
            width: 36px;
            height: 36px;
            border-radius: 12px;
            background: rgba(255, 255, 255, 0.1);
            color: #fff;
            text-decoration: none;
            border: 1px solid rgba(255, 255, 255, 0.08);
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2),
                0 0 0 1px rgba(255, 255, 255, 0.15),
                0 0 10px rgba(255, 255, 255, 0.2),
                0 0 25px rgba(255, 255, 255, 0.08);
            transition: all 0.2s ease;
            
        }

        .social-btn:hover {
            background: rgba(255, 255, 255, 0.2);
            transform: translateY(-2px);
        }

        /* Сетка карточек (2x2 как на скриншоте) */
        .grid-container {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 16px;
        }

        /* Внутренние стеклянные карточки */
        .inner-card {
            background: rgba(40, 40, 40, 0.3);
            border: 1px solid rgba(255, 255, 255, 0.08);
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2),
                0 0 0 1px rgba(255, 255, 255, 0.15),
                0 0 10px rgba(255, 255, 255, 0.2),
                0 0 25px rgba(255, 255, 255, 0.08);   /* 4. Еле заметный дальний шлейф */
            border-radius: 16px;
            padding: 16px;
            display: flex;
            flex-direction: column;
            gap: 16px;
            min-height: 120px; /* Чтобы пустые карточки держали форму */
        }

        /* Рамочка для заголовка внутри карточки */
        .card-title {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.15);
            border-radius: 12px;
            padding: 8px;
            text-align: center;
            font-size: 14px;
            font-weight: 500;
            text-shadow: 0 0 6px rgba(255, 255, 255, 0.2),
             0 0 15px rgba(255, 255, 255, 0.08);
        }

        /* Текст внутри карточек */
        .card-content {
            font-size: 13px;
            text-align: center;
            color: rgba(255, 255, 255, 0.9);
            text-shadow: 0 0 6px rgba(255, 255, 255, 0.2),
             0 0 15px rgba(255, 255, 255, 0.08);
            line-height: 1.6;
        }

        .card-content p {
            margin-bottom: 8px;
        }

        .card-content a {
            text-decoration: none;
        }

        .card-content a:hover {
            text-decoration: underline;
        }

/* Проекты с пагинацией */
.project-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.projects-slider {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.projects-track {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.3, 1);
}

.projects-page {
    display: flex;
    flex-direction: column;
    gap: 0px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
}

.project-item {
    display: block;
    width: 100%;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 13px;
    line-height: 1.6;
    text-align: center;
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.2),
                 0 0 15px rgba(255, 255, 255, 0.08);
    transition: color 0.2s ease;
}

.project-item:hover {
    text-decoration: underline;
    color: #fff;
}

.project-item.placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.project-item.placeholder:hover {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.45);
    cursor: default;
}

/* Навигация слайдера */
.projects-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    width: 100%;
    margin-top: 4px;
}

.nav-arrow {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    transition: all 0.2s ease;
    outline: none;
}

.nav-arrow:hover {
    color: #fff;
}

.nav-arrow:active {
    transform: scale(0.9);
}

.nav-dots {
    display: flex;
    gap: 6px;
    align-items: center;
}

.nav-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.3, 1);
}

.nav-dot.active {
    background: #fff;
    width: 14px;
    border-radius: 3px;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.5);
}

.about-section {
    text-align: left;
    margin-bottom: 50px;
}

.about-desc {
    margin-top: 10px;
    margin-left: 0;
}

#copyToast {
    position: absolute; 
    z-index: -1; /* Ставим -1, чтобы при выезде плашка красиво выплывала ИЗ-ПОД основной карточки */
    left: 50%;
    /* translateZ(0) заставляет браузер включить блюр даже рядом с другими блюрами */
    transform: translateX(-50%) translateZ(0); 
    
    /* --- СКРЫТОЕ СОСТОЯНИЕ --- */
    bottom: 20px; /* Спрятано выше нижнего края карточки */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, bottom 0.4s cubic-bezier(0.33, 1, 0.68, 1);
    
    /* --- ВНУТРЕННЕЕ ВЫРАВНИВАНИЕ --- */
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    min-width: 100px;
    padding: 10px 18px;
    
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.15),
        0 0 10px rgba(255, 255, 255, 0.2),
        0 0 25px rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.82);
    text-shadow:
        0 0 6px rgba(255, 255, 255, 0.2),
        0 0 15px rgba(255, 255, 255, 0.08);
        transition: opacity 0.4s ease, bottom 0.4s cubic-bezier(0.33, 1, 0.68, 1), visibility 0s linear 0.4s;
}

#copyToast.show {
    visibility: visible;
    opacity: 1;
    bottom: -70px; 
    transition: opacity 0.4s ease, bottom 0.4s cubic-bezier(0.33, 1, 0.68, 1), visibility 0s linear 0s;
}

@media (max-width: 650px) {
    .profile-header {
        flex-direction: column;
        gap: 16px;
        align-items: center; 
        text-align: center;
    }
    
    .changewallpaper {
        position: fixed;
        top: auto;
        bottom: 30px;
        right: 20px;
        width: 52px;
        height: 52px;
        max-width: none;
        border-radius: 50%;
        padding: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 9999;
        -webkit-tap-highlight-color: transparent; 
    }

    .changewallpaper:hover {
        right: 10px;
        transform: none;
        background: rgba(255, 255, 255, 0.08); 
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.15), 0 0 10px rgba(255, 255, 255, 0.2), 0 0 25px rgba(255, 255, 255, 0.08); 
    }

    .changewallpaper:active {
        transform: scale(0.92);
        background: rgba(255, 255, 255, 0.12); 
    }
}

/* 2. Брейкпоинт 580px: ИДЕАЛЬНЫЙ ВИД (всё по центру, сетка 2x2) */
@media (max-width: 580px) {
    .content-wrapper {
        flex-direction: column; /* Ставит текст НАД карточками */
        align-items: center;
    }
    
    .about-section {
        text-align: center;
        width: 100%;
        margin-bottom: 24px; 
    }

    .about-desc {
        margin-left: auto;
        margin-right: auto; 
    }

    .grid-container {
        display: grid;
        grid-template-columns: 1fr 1fr; /* Жёстко держим 2 колонки */
        width: 100%;
    }
    #copyToast.show {
        visibility: visible;
        opacity: 1;
        bottom: -10px; 
        z-index: 999;
        transition: opacity 0.4s ease, bottom 0.4s cubic-bezier(0.33, 1, 0.68, 1), visibility 0s linear 0s;
    }

}

/* 3. Брейкпоинт 500px: МОБИЛЬНЫЙ ВИД (1 колонка) */
@media (max-width: 500px) {
    body {
        padding: 10px;
    }

    .grid-container {
        grid-template-columns: 1fr; /* Схлопываем в 1 колонку */
        padding: 0 10px; 
    }

    #copyToast {
        z-index: 999;
        bottom: 580px;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.4s ease, bottom 0.4s cubic-bezier(0.33, 1, 0.68, 1), visibility 0s linear 0.4s;
    }

    #copyToast.show {
        z-index: 999;
        bottom: 340px; /* Взял из твоего кода */
        opacity: 1;
        visibility: visible;
        transition: opacity 0.4s ease, bottom 0.4s cubic-bezier(0.33, 1, 0.68, 1), visibility 0s linear 0s;
    }
}