
.content-wrapper {
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Adjusts columns dynamically */
    gap: 1rem;
    padding: 1rem;
}

@media (max-width: 1200px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }
}

/* About Otaku Devs Section */
.card-body {
    text-align: center;
    
    & h2 {
        border-bottom: 1px solid var(--font-color);
        margin-bottom: 2rem;
    }
}

.member-buttons {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

/* Members Section */
.members-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Auto responsive member cards */
    gap: 1rem;
    justify-content: center;
}

.member-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    backdrop-filter: blur(3px);
    background-color: #31343b;
    border-radius: 8px;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

/* Member Card Header */
.member-card-header {
    width: 100%;
    aspect-ratio: 16 / 9;
    position: relative; /* Allows stacking of images if needed */
    overflow: hidden;
}

.member-card-header img {
    width: 50%;
    height: 80%;
    object-fit: cover;
    border-radius: 50%;
    margin: 1rem auto;
}

/* Member Card Body */
.member-card-body {
    width: 100%;
    padding: 1rem;
    text-align: center;
}

/* Credits Section */
#credits {
    grid-column: 1 / -1; /* Spans full width */
    text-align: center;
    background-color: #31343b;
    border-radius: var(--border-radius-md);
    padding: 1.5rem;
    margin-top: 1rem;
    position: relative;
    z-index: 1;

    & a {
        color: #f3d377; /* Set the link color */
        text-decoration: none; /* Remove the default underline */
        transition: color 0.3s ease, transform 0.2s ease; /* Smooth transition on hover */

        &:hover {
            color: #f1c40f; /* Change the color on hover */
            transform: scale(1.05); /* Slightly increase the size of the link on hover */
        }

        &:focus {
            outline: none; /* Remove default focus outline */
        }
    }

    & .members-link:hover {
        background-color: transparent;
        color: #f3d377;
    }
}


.member-card-links {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 1rem;
}

.member-social-link {
    width: 55px;
    height: 55px;
    background-color: #2b303d;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    text-decoration: none;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    position: relative;
    border: 1px solid var(--color-opacity-1);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.member-social-link i {
    color: var(--font-color);
    position: relative;
    transition: transform 0.5s, color 0.5s;
}

.member-social-link:hover i {
    transform: translateY(-8px);
    color: var(--font-color);
}

.member-social-link::after {
    content: attr(title);
    position: absolute;
    bottom: -40px;
    font-size: 0.8rem;
    color: var(--font-color);
    opacity: 0;
    transition: bottom 0.5s ease, opacity 0.5s ease;
}

.member-social-link:hover::after {
    bottom: 1px;
    opacity: 1;
}

.member-social-link.disabled {
    pointer-events: none;
    opacity: 0.5;
    cursor: default;
}


.tech-stack {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    
    & h3 {
        padding-bottom: 0.5rem;
        margin-bottom: 1rem;
        border-bottom: 1px solid var(--font-color);
    }
}

.tech-stack-badges {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    width: 100%;
    height: fit-content;
    padding: 1.5rem;

    & img {
        width: 50px;
        height: 50px;
        object-fit: cover;
        border: 1px solid var(--color-opacity-light-1);
        border-radius: .5rem;
        background-color: var(--color-opacity-2);
        padding: 0.3rem;
        margin-top: 1rem;

        &:hover {
            cursor: pointer;
            animation: shake .5s cubic-bezier(.36,.07,.19,.97) both;
        }
    }
}