
.social {
    min-height: 100vh;
    background: #000000;
    position: relative;
    overflow: hidden;
    padding: 100px 20px;
    display: flex;
    align-items: center;
}

.social::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.03) 0%, transparent 50%);
    z-index: 0;
    animation: socialBgPulse 8s ease-in-out infinite alternate;
}

@keyframes socialBgPulse {
    0% {
        opacity: 0.3;
    }
    100% {
        opacity: 0.7;
    }
}

.social-container {
    max-width: 2000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    width: 100%;
}

.social-title {
    font-size: clamp(50px, 10vw, 100px);
    font-weight: 900;
    text-align: center;
    margin-bottom: 100px;
    letter-spacing: 8px;
    color: #ffffff;
    text-transform: uppercase;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    animation: 
        fadeInUp 0.8s ease-out forwards,
        titleGlitch 5s infinite;
    text-shadow: 
        0 0 10px rgba(255, 255, 255, 0.5),
        0 0 20px rgba(255, 255, 255, 0.3),
        0 0 30px rgba(255, 255, 255, 0.1);
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    perspective: 1000px;
}

.social-card {
    background: rgba(20, 20, 20, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 50px 30px;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(50px) scale(0.9);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.social-card.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.social-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        transparent 0%,
        rgba(255, 255, 255, 0.05) 50%,
        transparent 100%
    );
    transform: translateX(-100%);
    transition: transform 0.8s ease;
    z-index: 0;
}

.social-card:hover::before {
    transform: translateX(100%);
}

.social-card:hover {
    background: rgba(30, 30, 30, 0.9);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-15px) scale(1.05);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 0 120px rgba(255, 255, 255, 0.15);
}

.social-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: all 0.4s ease;
}

.social-card:hover .social-icon-img {
    filter: brightness(1) invert(0);
    transform: scale(1.1);
}

.social-name {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
    text-shadow: 0 0 1px rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.social-card:hover .social-name {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.social-username {
    font-size: 16px;
    color: #aaaaaa;
    font-weight: 300;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    pointer-events: auto;
}

.social-username-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
}

.social-card:hover .social-username {
    color: #ffffff;
}

#github:hover {
    border-color: #6e5494;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 0 120px rgba(110, 84, 148, 0.3);
}

#telegram:hover {
    border-color: #0088cc;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 0 120px rgba(0, 136, 204, 0.3);
}

#discord:hover {
    border-color: #7289da;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 0 120px rgba(114, 137, 218, 0.3);
}

#steam:hover {
    border-color: #474747;
    box-shadow: 
        0 25px 50px rgba(80, 80, 80, 0.5),
        0 0 120px rgba(172, 172, 172, 0.3);
}
#mail:hover {
    border-color: #086300;
    box-shadow: 
        0 25px 50px rgba(0, 104, 26, 0.5),
        0 0 120px rgba(0, 156, 8, 0.3);
}
.social-card:nth-child(1) { animation-delay: 0.1s; }
.social-card:nth-child(2) { animation-delay: 0.2s; }
.social-card:nth-child(3) { animation-delay: 0.3s; }
.social-card:nth-child(4) { animation-delay: 0.4s; }

.social-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.social-particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #ffffff;
    border-radius: 50%;
    animation: floatSocial 20s infinite linear;
}

@keyframes floatSocial {
    0% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(100px, 100px);
    }
    50% {
        transform: translate(200px, 0);
    }
    75% {
        transform: translate(100px, -100px);
    }
    100% {
        transform: translate(0, 0);
    }
}

@media (max-width: 1024px) {
    .social-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .social {
        padding: 80px 15px;
    }
    
    .social-title {
        margin-bottom: 80px;
        letter-spacing: 4px;
    }
    
    .social-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .social-card {
        padding: 40px 20px;
    }
    
    .social-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 20px;
    }
    
    .social-name {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .social-title {
        font-size: 40px;
        margin-bottom: 60px;
    }
    
    .social-card {
        padding: 30px 15px;
    }
    
    .social-name {
        font-size: 22px;
    }
}