:root {
    /* Цветовая схема */
    --bg-dark: #121212;
    --bg-light: #f8f9fa;
    --text-dark: #f0f0f0;
    --text-light: #333;
    --primary: #ffffff;
    --header-dark: #252525;
    --header-gradient: linear-gradient(to bottom, #000000 0%, #2c0000 100%);
    --folder-bg: #2a2a2a;
    --folder-item-bg: #3a3a3a;

    /* Цвета кнопок */
    --telegram: #2aabee;
    --steam: #171a21;
    --pinterest: #e60023;
    --snake: #8a2be2;
    --ton: #1e3a8a;
    --wallet: #4b5563;
}

html {
    scroll-behavior: smooth;
}

/* Базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    background: var(--bg-dark);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Шапка */
.hero {
    height: 400px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: var(--header-dark);
    padding-bottom: 100px;
}

.header-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--header-gradient);
    z-index: 1;
}

.header-content {
    text-align: center;
    position: relative;
    z-index: 10;
    padding: 1rem;
    margin-bottom: 24px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInHeader 0.8s ease-out forwards;
}

.header-content h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.header-content p {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
}

.avatar-container {
    position: absolute;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 30;
}

.main-avatar {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 5px solid var(--primary);
    object-fit: cover;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

/* Маленькая картинка и уведомления */
.small-image-container {
    position: absolute;
    bottom: -30px;
    left: max(1.2rem, calc(50% - 500px));
    z-index: 25;
    cursor: pointer;
}

.small-image {
    width: 62px;
    height: 62px;
    object-fit: contain;
    transition: transform 0.2s ease-in-out;
}

.small-image-container:hover .small-image {
    transform: scale(1.07);
}

.small-image-container:active .small-image {
    transform: scale(0.93);
}

.copy-notification-bubble {
    position: absolute;
    bottom: 75%; /* Пониже */
    left: 65%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
    color: white;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.9rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    pointer-events: none;
}

.copy-notification-bubble.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-10px);
}

.copy-notification-bubble::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid rgba(0, 0, 0, 0.85);
}

.notification-bottom {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    white-space: nowrap;
}

.notification-bottom.show {
    opacity: 1;
    visibility: visible;
}

/* Секция профилей */
.profiles-section {
    padding: 8rem 2rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.profiles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.profile-card {
    background: rgba(40, 40, 40, 0.8);
    border-radius: 12px;
    padding: 1.5rem 1rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.5s ease-out;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-card.visible {
    transform: translateY(0);
    opacity: 1;
}

.profile-banner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background-size: cover;
    background-position: center;
    z-index: -1;
    mask-image: linear-gradient(to bottom, black 0%, transparent 90%);
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--primary);
    object-fit: cover;
    margin: -20px auto 0.5rem;
    background: var(--bg-dark);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    top: 10px;
}

.profile-card h3 {
    font-size: 1.2rem;
    margin: 0.5rem 0 0.2rem;
}

.profile-card p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Кнопки */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.btn:active {
    transform: translateY(1px);
}

.telegram-btn { background: var(--telegram); }
.steam-btn { background: var(--steam); }
.pinterest-btn { background: var(--pinterest); }
.snake-btn { background: var(--snake); }
.ton-btn { background: var(--ton); }
.wallet-btn { background: var(--wallet); }

.btn i {
    margin-right: 8px;
}

/* Секция коллекций */
.collections-section {
    padding: 3rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    margin-top: -60px;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.collections-container {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.collection-folder {
    position: relative;
    width: 250px;
}

.folder-icon {
    background: var(--folder-bg);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.folder-icon:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.folder-icon i {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    display: block;
}

.folder-name {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--primary);
}

.folder-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 100;
    opacity: 0;
}

.collection-folder.open .folder-overlay {
    display: flex;
    animation: fadeIn 0.4s ease forwards;
}

.collection-folder.closing .folder-overlay {
    animation: fadeOut 0.4s ease forwards;
}

.folder-content {
    background: var(--folder-bg);
    border-radius: 20px;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    padding: 3rem;
    position: relative;
    overflow-y: auto;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.7);
    transform: scale(0.9);
    animation: scaleDown 0.4s ease forwards;
}

.collection-folder.open .folder-content {
    animation: scaleUp 0.4s ease forwards;
}

.folder-content h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.close-folder {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--text-dark);
    font-size: 1.8rem;
    cursor: pointer;
    transition: color 0.3s;
}

.close-folder:hover {
    color: var(--primary);
}

.nft-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 2rem;
}

.nft-item {
    background: var(--folder-item-bg);
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
    color: var(--text-dark);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.nft-item:hover {
    transform: translateY(-5px);
    background: rgba(90, 90, 90, 0.8);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.nft-item img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin-bottom: 1rem;
}

.nft-item p {
    font-size: 1.1rem;
    font-weight: 500;
}

.folder-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1.5rem;
}

.folder-item {
    background: var(--folder-item-bg);
    border-radius: 10px;
    padding: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
    color: var(--text-dark);
    text-align: center;
}

.folder-item:hover {
    transform: translateY(-5px);
    background: rgba(90, 90, 90, 0.8);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.folder-item img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 0.8rem;
    object-fit: cover;
    border: 2px solid var(--primary);
}

.folder-item p {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.3rem;
}

.folder-item .username {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

.collection-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.collection-btn i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Секция информации */
.info-section {
    padding: 3rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.info-container {
    height: 300px;
}

/* Анимации */
@keyframes fadeInHeader {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes scaleUp {
    from { transform: scale(0.9); }
    to { transform: scale(1); }
}

@keyframes scaleDown {
    from { transform: scale(1); }
    to { transform: scale(0.9); }
}

/* Адаптивность */
@media (min-width: 1001px) {
    .info-container {
        display: flex;
        align-items: center;
        gap: 2rem;
        position: relative;
    }

    .info-image-part {
        flex: 1;
        max-width: 33.333%;
        display: flex;
        justify-content: center;
        align-items: center;
        position: absolute;
        left: 0;
        top: 0;
        height: 100%;
        z-index: 10;
    }

    .info-text-part {
        flex: 2;
        margin-left: 33.333%;
        background: rgba(40, 40, 40, 0.8);
        border-radius: 15px;
        padding: 2rem;
        backdrop-filter: blur(8px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100%;
    }
}

@media (max-width: 1150px) {
    .copy-notification-bubble,
    .copy-notification-bubble::after {
        display: none !important;
    }
}

@media (min-width: 1151px) {
    .notification-bottom {
        display: none !important;
    }
}

@media (max-width: 1000px) {
    .info-container {
        background: rgba(40, 40, 40, 0.8);
        border-radius: 15px;
        padding: 2rem;
        backdrop-filter: blur(8px);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .info-image-part {
        display: none;
    }

    .info-text-part {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100%;
    }
}

.info-image {
    max-width: 298px;
    max-height: 298px;
    border-radius: 10px;
    object-fit: contain;
    border: 2px solid rgb(51, 51, 51);
}

.info-text-part p {
    font-size: 1.2rem;
    color: var(--text-dark);
    text-align: center;
}

@media (max-width: 900px) {
    .profiles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .profiles-grid {
        grid-template-columns: 1fr;
    }
}