* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #0a0a0a;
    color: #e0e0e0;
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 51, 51, 0.4);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 51, 51, 0.6);
}

::-webkit-scrollbar-button {
    display: none;
}

* {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 51, 51, 0.4) transparent;
}

#matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.5;
    pointer-events: none;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    text-align: center;
    margin-bottom: 30px;
    padding-top: 20px;
}

.header h1 {
    font-family: 'Permanent Marker', cursive;
    font-size: 3.5rem;
    background: linear-gradient(45deg, #ff3333, #ff6666, #ff9999);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 15px rgba(255, 51, 51, 0.5);
    margin-bottom: 10px;
}

.tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tab-button {
    background: rgba(255, 51, 51, 0.1);
    border: 1px solid rgba(255, 102, 102, 0.3);
    color: #e0e0e0;
    padding: 12px 25px;
    margin: 5px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.tab-button:hover {
    background: rgba(255, 102, 102, 0.2);
    transform: translateY(-2px);
    border-color: rgba(255, 102, 102, 0.5);
}

.tab-button.active {
    background: linear-gradient(45deg, #ff3333, #ff6666);
    color: #0a0a0a;
    font-weight: bold;
    box-shadow: 0 5px 20px rgba(255, 51, 51, 0.6);
    border-color: transparent;
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.profile {
    text-align: center;
    margin-bottom: 40px;
}

.avatar-container {
    display: inline-block;
    padding: 3px;
    border-radius: 50%;
    background: linear-gradient(45deg, #666, #999, #ccc, #999, #666);
    background-size: 400% 400%;
    animation: gradientShift 3s ease infinite;
    margin-bottom: 20px;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.username {
    font-size: 1.8rem;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #888, #aaa, #ccc);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.bio-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.bio-tag {
    background: rgba(100, 100, 100, 0.2);
    border: 1px solid rgba(150, 150, 150, 0.4);
    color: #cccccc;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.bio-tag:hover {
    background: rgba(120, 120, 120, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(150, 150, 150, 0.3);
}

.links {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 320px;
    margin: 0 auto;
}

.link-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(60, 60, 60, 0.9);
    color: #e0e0e0;
    text-decoration: none;
    padding: 15px 20px;
    border-radius: 10px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 2px solid transparent;
    position: relative;
    font-size: 1rem;
    font-weight: 500;
}

.link-button.youtube {
    border-color: #FF0000;
}

.link-button.telegram {
    border-color: #24A1DE;
}

.link-button.github {
    border-color: #888888;
}

.link-button.tiktok {
    border-color: #FF0050;
}

.link-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(100, 100, 100, 0.1), rgba(150, 150, 150, 0.2), rgba(200, 200, 200, 0.3), rgba(150, 150, 150, 0.2), rgba(100, 100, 100, 0.1));
    background-size: 400% 400%;
    border-radius: 10px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: gradientShine 3s ease infinite;
}

@keyframes gradientShine {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.link-button:hover::before {
    opacity: 1;
}

.link-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 15px rgba(0, 0, 0, 0.4);
}

.link-icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.link-button:hover .link-icon {
    transform: scale(1.1);
}

.link-text {
    display: inline;
}

.link-button.youtube .link-icon {
    filter: none;
    color: #FF0000;
}

.link-button.telegram .link-icon {
    filter: none;
    color: #24A1DE;
}

.link-button.github .link-icon {
    filter: none;
    color: #888888;
}

.link-button.tiktok .link-icon {
    filter: none;
    color: #FF0050;
}

.info-content {
    background: rgba(255, 51, 51, 0.1);
    padding: 25px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 102, 102, 0.3);
}

.info-content h2 {
    background: linear-gradient(45deg, #ff3333, #ff6666);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.info-content p {
    margin-bottom: 15px;
}

.projects-categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.category-button {
    background: rgba(255, 51, 51, 0.1);
    border: 1px solid rgba(255, 102, 102, 0.3);
    color: #e0e0e0;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.category-button:hover {
    background: rgba(255, 102, 102, 0.2);
}

.category-button.active {
    background: linear-gradient(45deg, #ff3333, #ff6666);
    color: #0a0a0a;
    font-weight: bold;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.project-card {
    background: rgba(255, 51, 51, 0.1);
    border-radius: 10px;
    padding: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 102, 102, 0.3);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 51, 51, 0.3);
    border-color: rgba(255, 102, 102, 0.5);
}

.project-card h3 {
    background: linear-gradient(45deg, #ff3333, #ff6666);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 10px;
}

.project-card p {
    flex-grow: 1;
    margin-bottom: 15px;
}

.project-card em {
    color: #666;
}

.project-link {
    color: #ff9999;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    align-self: flex-start;
}

.project-link:hover {
    color: #ff6666;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 2.5rem;
    }
    
    .tab-button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .avatar {
        width: 120px;
        height: 120px;
    }
    
    .username {
        font-size: 1.5rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-categories {
        gap: 5px;
    }
    
    .category-button {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .tab-button {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
    
    .projects-categories {
        flex-direction: column;
        align-items: center;
    }
    
    .category-button {
        width: 80%;
        text-align: center;
    }

    .links {
        max-width: 100%;
        padding: 0 10px;
    }

    .link-button {
        padding: 12px 15px;
        font-size: 0.95rem;
    }

    .link-icon {
        width: 22px;
        height: 22px;
        margin-right: 10px;
    }
    
    .bio-tags {
        gap: 6px;
    }
    
    .bio-tag {
        font-size: 0.8rem;
        padding: 5px 10px;
    }
}
