/* =========================================================
   BAND SECTION
========================================================= */

.band-section {
    position: relative;
    background-color: var(--dark-bg);
    text-align: center;
    padding-top: 140px;
    padding-bottom: 4rem;
}

/* =========================================================
   SECTION TITLE
========================================================= */

.band-section .section-title {
    font-size: 4.5rem;
    color: var(--secondary-color);

    text-shadow:
        4px 4px 0 #000,
        8px 8px 0 var(--primary-color);

    transform: rotate(-3deg) translateY(-10px);

    display: inline-block;

    padding: 0.5rem 2rem;

    background-color: rgba(0, 0, 0, 0.3);

    border: 3px solid var(--primary-color);

    box-shadow: 5px 5px 0 #000;
}

/* =========================================================
   GRID
========================================================= */

.members-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);

    gap: 3rem;

    padding: 2rem 0;

    justify-items: center;
}

/* =========================================================
   MEMBER CARD
========================================================= */

.member-card {
    grid-column: span 6;

    background: #2a2a2a;

    border: 2px solid var(--primary-color);
    border-radius: 15px;

    padding: 1.5rem;

    width: 100%;

    display: flex;
    flex-direction: row;
    align-items: center;

    gap: 1.5rem;

    text-align: left;

    transition: all 0.3s ease;

    position: relative;
    overflow: hidden;

    opacity: 0;

    box-shadow:
        0 0 10px var(--primary-color),
        0 0 20px rgba(255, 0, 153, 0.4),
        inset 0 0 15px rgba(255, 0, 153, 0.1);
}

/* =========================================================
   FIX LAST CARD (Removed, 8 members align perfectly)
========================================================= */

/* =========================================================
   HOVER
========================================================= */

.member-card:hover {
    transform: translateY(-10px) rotate(2deg);

    box-shadow:
        0 10px 20px rgba(255, 0, 153, 0.5);

    border-color: var(--accent-color);

    z-index: 10;
}

/* =========================================================
   MEMBER IMAGE
========================================================= */

.member-img {
    width: 150px;
    height: 150px;

    flex-shrink: 0;

    margin: 0;

    border-radius: 50%;
    overflow: hidden;

    border: 4px solid var(--secondary-color);

    transition: transform 0.5s;

    background: #fff;
}

.member-card:hover .member-img {
    transform: scale(1.1) rotate(-5deg);

    border-color: var(--primary-color);
}

.mask-img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

/* =========================================================
   TEXT
========================================================= */

.member-info h3 {
    color: var(--primary-color);

    font-family: var(--font-heading);

    font-size: 1.8rem;

    margin-bottom: 0.5rem;

    letter-spacing: 1px;
}

.member-info .role {
    color: #fff;

    font-family: var(--font-body);

    font-weight: bold;

    text-transform: uppercase;

    letter-spacing: 1px;

    font-size: 0.9rem;

    margin-bottom: 0.5rem;
}

.bio-description {
    font-family: var(--font-body);

    color: #ccc;

    font-size: 0.95rem;

    line-height: 1.4;

    font-style: italic;
}

/* =========================================================
   ANIMATIONS
========================================================= */

.band-section.start-animations .member-card:nth-child(odd) {
    animation: slideInLeft 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.band-section.start-animations .member-card:nth-child(even) {
    animation: slideInRight 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.band-section.start-animations .member-card:last-child {
    animation: slideInUp 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards !important;
}

/* =========================================================
   KEYFRAMES
========================================================= */

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(100px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* =========================================================
   ANIMATION DELAYS
========================================================= */

.member-card:nth-child(1) {
    animation-delay: 0.1s;
}

.member-card:nth-child(2) {
    animation-delay: 0.2s;
}

.member-card:nth-child(3) {
    animation-delay: 0.3s;
}

.member-card:nth-child(4) {
    animation-delay: 0.4s;
}

.member-card:nth-child(5) {
    animation-delay: 0.5s;
}

.member-card:nth-child(6) {
    animation-delay: 0.6s;
}

.member-card:nth-child(7) {
    animation-delay: 0.7s;
}

.member-card:nth-child(8) {
    animation-delay: 0.8s;
}

/* =========================================================
   CONTAINER FIX
========================================================= */

.band-section .container {
    position: relative;
    z-index: 1;
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 992px) {

    .member-card {
        grid-column: span 6;
    }

}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

    .band-section {
        overflow-x: hidden;

        padding: 140px 1rem 4rem 1rem !important;
    }

    .members-grid {
        display: flex !important;

        flex-direction: column !important;

        align-items: center !important;

        gap: 1.5rem;

        padding: 0;

        width: 100%;
    }

    .band-section .section-title {
        font-size: 2rem;

        transform: none;

        margin: 0 auto 3rem auto;

        width: auto;

        max-width: 100%;

        padding: 0.5rem 1rem;
    }

    .member-card {
        width: 100% !important;

        max-width: 320px !important;

        margin: 0 auto 2rem auto;

        box-sizing: border-box;

        flex-direction: column !important;

        text-align: center !important;

        grid-column: auto !important;
    }

    .member-img {
        width: 180px;
        height: 180px;

        margin: 0 auto 1rem auto !important;
    }
}