/* Team V2 Block CSS */

.team-v2-block {
    width: 100%;
    overflow: hidden;
    /* Hide anything outside the container */
    position: relative;
    background: linear-gradient(180deg, #252742 0%, #1e1f3a 50%, #1a1b35 80%, #16172f 100%);
}

section.team-v2-block {
    padding-top: 32px !important;
    padding-bottom: 300px !important;
    min-height: 120vh !important;
}

.team-v2-pcb-bg {
    position: absolute;
    top: -60px;
    left: 0;
    right: 0;
    width: 100%;
    text-align: center;
    z-index: 1;
}

.team-v2-pcb-bg img {
    width: 100%;
    height: 284px;
}

.team-v2-container {
    position: relative;
    z-index: 2;
    width: 100%;
    margin: 0 auto;
    padding: 0 60px;
}

.team-v2-gallery {
    display: flex;
    animation: slide 17s linear infinite backwards;
    /* Infinite sliding animation */
}

.team-v2-member {
    width: calc(1240px / 4);
    box-sizing: border-box;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-v2-gallery-container {
    position: absolute;
    display: flex;
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    left: 0;
    right: 0;
    overflow: hidden;
    -webkit-mask: linear-gradient(to right, transparent 0px, black 120px, black calc(100% - 120px), transparent 100%);
    mask: linear-gradient(to right, transparent 0px, black 120px, black calc(100% - 120px), transparent 100%);
}

.team-v2-member img {
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto;
    max-height: 80px;
}

/* Slide animation */
@keyframes slide {
    0% {
        transform: translate(0);
    }

    100% {
        transform: translate(-100%);
    }
}

.team-v2-block-item {
    position: relative;
    margin-top: 50px;
    max-width: 100%;
    width: 100%;
    padding-bottom: 100px;
}


/* Pause animation on hover */
.team-v2-block-item:hover .team-v2-gallery {
    animation-play-state: paused;
}

/* Team V2 Slogan Container */
.team-v2-slogan-container {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px 200px 20px;
    min-height: 60vh;
}

.team-v2-slogan-text {
    margin-bottom: 0;
    margin-top: 0;
    color: white;
    font-size: 2.5rem;
    font-weight: bold;
    line-height: 1;
    position: relative;
    z-index: 10;
    color: #FFF;
    text-align: center;
    font-family: "Bai Jamjuree";
    font-size: 75px;
    font-style: normal;
    font-weight: 700;
    line-height: 109%;
    /* 81.75px */
    letter-spacing: 1.5px;
    text-transform: capitalize;
}

.team-v2-start-btn-link {
    position: relative;
    z-index: 10;
    margin-top: 60px;
    width: calc(48% - 0.5rem);
    min-width: 200px;
    max-width: 300px;
    height: 56px;
    flex-shrink: 0;
    color: #fff !important;
    text-align: center;
    text-shadow: 0 6px 17px #4739ea;
    font-family: "Bai Jamjuree";
    font-size: 25px;
    font-style: normal;
    font-weight: 700 !important;
    line-height: 50px;
    letter-spacing: 0.5px;
    border-radius: 25px;
    border: 2.5px solid #0ff;
    background: linear-gradient(180deg, #0ff 0.19%, #506bdd 123.54%);
    text-decoration: none;
    transition: transform 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.team-v2-start-btn-link:hover {
    transform: translateY(-2px);
}

/* Background Lines */
.team-v2-bg-lines {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    width: 100%;
    text-align: center;
}

.team-v2-bg-lines img {
    width: 100%;
    height: auto;
}

/* Background Gradients */
.team-v2-bg-gradient1 {
    position: absolute;
    width: 58.07vw;
    /* 1115px / 1920px * 100 */
    height: 24.82vw;
    /* 476.498px / 1920px * 100 */
    flex-shrink: 0;
    border-radius: 58.07vw;
    background: radial-gradient(50% 50% at 50% 50%, rgba(255, 0, 153, 0.47) 0%, rgba(71, 57, 234, 0.00) 100%);
    top: 50%;
    left: 10%;
    transform: translate(calc(-50% - 5.21vw), -50%);
    /* -100px = -5.21vw */
    z-index: 0;
}

.team-v2-bg-gradient2 {
    position: absolute;
    width: 29.32vw;
    /* 563px / 1920px * 100 */
    height: 11.19vw;
    /* 214.777px / 1920px * 100 */
    flex-shrink: 0;
    border-radius: 29.32vw;
    background: radial-gradient(50% 50% at 50% 50%, rgba(255, 0, 153, 0.47) 0%, rgba(71, 57, 234, 0.00) 100%);
    top: 50%;
    right: 20%;
    transform: translateY(-50%);
    z-index: 0;
}

.team-v2-bg-gradient3 {
    position: absolute;
    width: 58.07vw;
    /* 1115px / 1920px * 100 */
    height: 24.82vw;
    /* 476.498px / 1920px * 100 */
    flex-shrink: 0;
    border-radius: 58.07vw;
    background: radial-gradient(50% 50% at 50% 50%, rgba(151, 71, 255, 0.60) 0%, rgba(71, 57, 234, 0.00) 100%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
}

.team-v2-bg-gradient4 {
    position: absolute;
    width: 58.07vw;
    /* 1115px / 1920px * 100 */
    height: 24.82vw;
    /* 476.498px / 1920px * 100 */
    flex-shrink: 0;
    border-radius: 58.07vw;
    background: radial-gradient(50% 50% at 50% 50%, rgba(0, 255, 255, 0.50) 0%, rgba(71, 57, 234, 0.00) 100%);
    top: 50%;
    right: -20%;
    transform: translateY(-50%);
    z-index: 0;
}

.team-v2-bg-gradient5 {
    position: absolute;
    width: 29.32vw;
    /* 563px / 1920px * 100 */
    height: 11.19vw;
    /* 214.777px / 1920px * 100 */
    flex-shrink: 0;
    border-radius: 29.32vw;
    background: radial-gradient(50% 50% at 50% 50%, rgba(255, 0, 153, 0.47) 0%, rgba(71, 57, 234, 0.00) 100%);
    bottom: 0;
    right: 30%;
    z-index: 0;
}

.team-v2-bg-gradient6 {
    position: absolute;
    width: 41.46vw;
    /* 796px / 1920px * 100 */
    height: 33.8vw;
    /* 649px / 1920px * 100 */
    flex-shrink: 0;
    border-radius: 41.46vw;
    background: radial-gradient(50% 50% at 50% 50%, #4739EA 0%, rgba(71, 57, 234, 0.00) 100%);
    top: 70%;
    right: -20%;
    transform: translateY(-50%);
    z-index: 1;
}

.team-betweens_left {
    position: absolute;
    top: 30%;
    left: 4%;
    width: 30%;
    height: 177px;
    transform: translate(-50%, -50%);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    z-index: 1;
    pointer-events: none;
}

.team-betweens_right {
    position: absolute;
    top: 30%;
    left: 96%;
    width: 30%;
    height: 177px;
    transform: translate(-50%, -50%);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    z-index: 1;
    pointer-events: none;
}

/* Team V2 Menu Container */
.team-v2-menu-container {
    position: relative;
    width: 80%;
    height: 488px;
    margin: 50px auto 160px auto;
    z-index: 4;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(71, 57, 234, 0.05) 0%, rgba(40, 32, 132, 0.02) 100%);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 60px 40px;
    gap: 80px;
}

/* Menu Section Container */
.team-v2-menu-section-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    align-self: flex-start;
}

/* Menu Section Title */
.team-v2-menu-section-title {
    color: rgba(255, 255, 255, 1);
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 40px;
    margin-top: 0;
}

/* Menu Link Container */
.team-v2-menu-link-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Menu Links */
.team-v2-menu-link {
    color: rgba(255, 255, 255, 1) !important;
    font-size: 18px;
    font-weight: 400 !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

.team-v2-menu-link:hover {
    color: #0ff !important;
}

/* Separate Lines */
.team-v2-menu-seperate-line {
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, #0ff 50%, transparent 100%);
    flex-shrink: 0;
}

/* Community Section Special Styles */
.team-v2-menu-community-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-wrap: wrap;
}

.team-v2-menu-community-link {
    flex-shrink: 0;
}

/* Team V2 Buildings Container */
.team-v2-buildings-container {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: auto;
    z-index: 0;
    overflow: visible;
}

.team-v2-buildings-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Community Buttons */
.team-v2-community-button {
    display: inline-block;
    margin: 5px;
}

.team-v2-button-link {
    text-decoration: none;
    color: inherit;
    display: inline-block;
}

.team-v2-button-content {
    display: flex;
    align-items: center;
    gap: 2px;
    transition: all 0.3s ease;
}

.team-v2-button-content:hover {
    transform: translateY(-2px);
}

.team-v2-button-icon {
    width: 27px;
    height: 27px;
    object-fit: contain;
}

.team-v2-button-text {
    color: #fff;
    font-family: "Bai Jamjuree";
    font-size: 10px;
    font-style: normal;
    font-weight: 700;
    line-height: 9px;
    /* 90% */
    letter-spacing: 0.5px;
    white-space: nowrap;
}


/* Mobile responsive styles */
@media (max-width: 968px) {
    section.team-v2-block {
        padding-bottom: 200px !important;
        min-height: 100vh !important;
    }

    .team-v2-container {
        max-width: 100%;
        padding: 0 20px;
    }

    .team-v2-gallery-container {
        max-width: 100%;
    }

    .team-v2-block-item {
        max-width: 100%;
    }

    .team-v2-slogan-text {
        font-size: 2.5rem;
    }


    .team-v2-slogan-container {
        padding: 40px 20px 150px 20px;
        min-height: 50vh;
    }



    .team-v2-menu-container {
        width: 90%;
        height: auto;
        margin: 60px auto 80px auto;
        display: grid;
        grid-template-columns: 1fr 2px 1fr;
        grid-template-rows: 1fr 2px 1fr;
        padding: 40px 30px;
        gap: 30px;
    }

    /* Grid positioning for mobile */
    .team-v2-menu-section-container:nth-child(1) {
        /* Learn */
        grid-column: 1;
        grid-row: 1;
    }

    .team-v2-menu-section-container:nth-child(3) {
        /* Documentation */
        grid-column: 3;
        grid-row: 1 / 3;
        /* 占据两行高度，80% */
    }

    .team-v2-menu-section-container:nth-child(5) {
        /* Legal */
        grid-column: 1;
        grid-row: 3;
    }

    .team-v2-menu-section-container:nth-child(7) {
        /* Community */
        grid-column: 3;
        grid-row: 3;
    }

    /* Hide community title on mobile */
    .team-v2-menu-community-title {
        display: none;
    }

    /* Separator lines positioning */
    .team-v2-menu-seperate-line:nth-child(2) {
        /* Vertical line between Learn and Documentation */
        grid-column: 2;
        grid-row: 1;
        width: 2px;
        height: 100%;
        background: linear-gradient(180deg, transparent 0%, #0ff 50%, transparent 100%);
    }

    .team-v2-menu-seperate-line:nth-child(4) {
        /* Horizontal line */
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
        height: 2px;
        background: linear-gradient(90deg, transparent 0%, #0ff 50%, transparent 100%);
    }

    .team-v2-menu-seperate-line:nth-child(6) {
        /* Vertical line between Legal and Community */
        grid-column: 2;
        grid-row: 3;
        width: 2px;
        height: 100%;
        background: linear-gradient(180deg, transparent 0%, #0ff 50%, transparent 100%);
    }

    .team-v2-menu-section-title {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .team-v2-menu-link {
        font-size: 16px;
    }

    .team-v2-menu-community-links {
    display: flex;
    flex-direction: row;
    gap: 8px;
}

    .team-v2-buildings-container {
        width: 100vw;
        height: auto;
        bottom: 0;
    }

    /* Scale down gradients on mobile */
    .team-v2-bg-gradient1,
    .team-v2-bg-gradient3,
    .team-v2-bg-gradient4,
    .team-v2-bg-gradient6 {
        width: 60%;
        height: 60%;
    }

    .team-v2-bg-gradient2,
    .team-v2-bg-gradient5 {
        width: 40%;
        height: 40%;
    }
}