/* Common styles for profile cards (speakers, partners, etc.) */

h1 {
    text-align: center;
    margin: 20px;
    font-weight: normal;
    flex: 100%;
}

p {
    padding: 8px;
    color: var(--secondary-color);
    font-size: 1.2em;
}

/* Simple fade-in animation - GPU optimized */
@keyframes fadeInSimple {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cardbox {
    width:100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

/* Profile card container */
.profile-card {
    font-size: .8em;
    flex: 0 30%;    
    display: inline-block;
    margin: 10px;
    padding: 10px;
    overflow: hidden;
    border: 3px solid #bbb;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1),
                0 1px 3px rgba(0, 0, 0, 0.08);

    /* Animation - GPU accelerated */
    opacity: 0;
    animation: fadeInSimple 0.5s ease-out forwards;
    will-change: opacity, transform;

    /* Subtle hover effect */
    transition: box-shadow 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
    min-width: 286px;
}

.profile-card:hover {
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.15),
                0 4px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.profile-card:nth-child(7n+1) { animation-delay: 0.05s; }
.profile-card:nth-child(7n+2) { animation-delay: 0.25s; }
.profile-card:nth-child(7n+3) { animation-delay: 0.15s; }
.profile-card:nth-child(7n+4) { animation-delay: 0.35s; }
.profile-card:nth-child(7n+5) { animation-delay: 0.1s; }
.profile-card:nth-child(7n+6) { animation-delay: 0.3s; }
.profile-card:nth-child(7n) { animation-delay: 0.2s; }

.profile-card img {
    margin: 15px auto;
    width: 191px;
    display: block;
    clip-path: circle(50%);
}

.profile-card a {
    color: inherit;
    text-decoration: none;
}
.profile-card a:hover {
    text-decoration: underline;
}

.profile-card .name {
    font-size: 1.5em;
    text-align: center;
}

/* Profile card description */
.profile-card .desc {
    text-align: center;
    margin-top: 15px;
    font-size: 1.1em;
}

/* Profile card link */
.profile-card .link {
    text-align: center;
    margin-top: 10px;
}

.profile-card .link a {
    color: var(--links-color);
    text-decoration: none;
    font-weight: bold;
}

.profile-card .link a:hover {
    text-decoration: underline;
}
