* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #1f232b url('res/banner.jpg') no-repeat center center / cover;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
    color: white;
    padding: 20px;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(31, 35, 43, 0.9), rgba(179, 187, 191, 0.7));
    z-index: -2;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAiIGhlaWdodD0iMTAwIj4KICA8ZmlsdGVyIGlkPSJub2lzZSI+CiAgICA8ZmVUdXJidWxlbmNlIHR5cGU9ImZyYWN0YWxOb2lzZSIgYmFzZUZyZXF1ZW5jeT0iLjQiIG51bE9jdGF2ZXM9IjIiIHN0aXRjaFRpbGVzPSJub2lzZSIgLz4KICA8L2ZpbHRlcj4KICA8cmVjdCB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWxsPSIjZmZmZmZmIiBvcGFjaXR5PSIuMDYiIGZpbHRlcj0idXJsKCNub2lzZSkiIC8+Cjwvc3ZnPg==');
    background-size: 100px 100px;
    z-index: 2;
}

.grid-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
            linear-gradient(rgba(255,255,255,0.1) 1px, transparent 1px),
            linear-gradient(90deg, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
    z-index: -1;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 600px;
    width: 100%;
    animation: floatIn 1s ease-out forwards;
}

@keyframes floatIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    width: 100%;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.avatar img {
    width: 100px;
    height: 100px;
    border-radius: 15px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.hero-text h1 {
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 5px;
}

.hero-text p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 5px;
}

.social-icons-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
    width: 100%;
}

.social-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.social-icon:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.2);
}

.social-icon.github:hover { background: rgba(36, 41, 46, 0.9); }
.social-icon.telegram:hover { background: rgba(0, 136, 204, 0.9); }
.social-icon.gitea:hover { background: rgba(96, 153, 38, 0.9); }
.social-icon.fh:hover { background: rgba(103, 126, 234, 0.9); }

.social-icon svg {
    width: 28px;
    height: 28px;
    transition: transform 0.3s ease;
}

.social-icon:hover svg {
    transform: scale(1.1);
}

.social-icon img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgb(255, 255, 255);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
    z-index: 0;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 1; }
    50% { transform: translateY(-20px) rotate(180deg); opacity: 0.5; }
}

.glitch {
    position: absolute;
    background: white;
    opacity: 0;
    animation: fadeOut 0.2s ease-out forwards;
    pointer-events: none;
    z-index: 3;
}

@keyframes fadeOut {
    from { opacity: 0.5; }
    to { opacity: 0; }
}

@media (max-width: 500px) {
    .hero {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .hero-text h1 {
        font-size: 2rem;
    }
}