.index
{
    margin: 0;
}

.index-body
{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    perspective: 1200px;
}

.index-card
{
    position: relative;
    z-index: 2;
    width: 15rem;
    height: 25rem;
    border-radius: 1rem;
    display: block;
    transform-style: preserve-3d;
    will-change: transform;
}

.index-card img
{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1rem;
    display: block;
    position: relative;
    z-index: 1;
}

.index-card::before
{
    content: "";
    position: absolute;
    inset: -22px;
    border-radius: calc(1rem + 22px);
    pointer-events: none;

    background: radial-gradient(
        260px circle at var(--glow-x, 50%) var(--glow-y, 50%),
        color-mix(in srgb, var(--link-hover) 60%, transparent) 0%,
        color-mix(in srgb, var(--link-hover) 25%, transparent) 25%,
        transparent 70%
    );

    filter: blur(18px);
    opacity: 0;
    transition: opacity .18s ease;
}

.index-card.glow::before
{
    opacity: 1;
}

.index-content
{
    position: relative;
    z-index: 1;
    width: 27.5rem;
    height: 22.5rem;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 0rem;
    padding-bottom: 1.5rem;
    background-color: var(--off-background);
    border-radius: 0 1rem 1rem 0;
    box-shadow: 0 0 0 var(--box-shadow-hover);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.index-content:hover
{
    box-shadow: 12px 14px 24px -10px color-mix(in srgb, var(--link-hover) 30%, transparent);
    transform: translateY(-2px);
}

@media (max-width: 50rem)
{
    .index-body
    {
        gap: 2.5rem;
        flex-direction: column;
    }

    .index-card
    {
        width: 50vw;
        height: 50vw;
        border-radius: 50%;
        content:  url("/assets/profile-picture-mobile.webp");
    }

    .index-content
    {
        width: 90%;
        height: max-content;
        padding-top: 1.25rem;
        padding-bottom: 1.25rem;
        border-radius: 1rem;
    }
}