/* General styling */
h2.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 2rem;
}

.contacts-section {
    margin-bottom: 4rem;
}

.contact-container {
    display: flex;
    gap: 2.5rem;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0 2rem;
    overflow: hidden; /* Zapobiega nak�adaniu si� kart */
}

.contact-card {
    perspective: 1000px;
    width: 250px;
    height: 300px;
    position: relative;
    margin: 1rem 0;
    transform-style: preserve-3d; /* Zachowuje 3D przy transformacji */
}

.contact-card .front, 
.contact-card .back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 10px;
    overflow: hidden;
    background: #1c1c1c;
    padding: 1rem;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.6s ease-in-out;
    transform-style: preserve-3d;
}

.contact-card .back {
    transform: rotateY(180deg);
    padding: 2rem;
    text-align: center;
}

.contact-card:hover .front {
    transform: rotateY(-180deg);
}

.contact-card:hover .back {
    transform: rotateY(0);
}

/* Avatar styling */
.contact-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 1rem;
    border: 3px solid #3a3a3a;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease-in-out;
}

.contact-card img:hover {
    transform: scale(1.05);
}

/* Username and role styling */
.username {
    font-size: 1.2rem;
    font-weight: bold;
    color: #f5f5f5;
}

.role {
    color: #aaa;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    text-align: center;
}
.discord-username {
    font-size: 1.2rem;
    font-weight: bold;
    color: #f5f5f5;
}