/* ===================================
   TEAMS SECTION - TECHSENTINALS THEME
   Matching the site's aesthetic
   =================================== */

/* Team Section */
.team-section {
    padding: 0 0 150px;
    margin-top: -50px;
    position: relative;
    overflow: hidden;
    background-color: #FEF9ED;
    color: #5D524B;
}

.team-section::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(205, 170, 106, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.3;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    pointer-events: none;
    animation: gradientPulse 8s ease-in-out infinite;
}

@keyframes gradientPulse {

    0%,
    100% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 0.4;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.team-section .section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 400;
    text-align: center;
    margin-bottom: 1rem;
    color: #5D524B;
    letter-spacing: -0.02em;
}

.team-section .section-subtitle {
    text-align: center;
    font-size: 1.125rem;
    color: #5D524B;
    opacity: 0.8;
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Carousel Container */
.carousel {
    position: relative;
    height: 800px;
    overflow: hidden;
    margin-top: 3rem;
    z-index: 1;
}

.carousel .list {
    position: absolute;
    width: 1140px;
    max-width: 90%;
    height: 80%;
    left: 50%;
    transform: translateX(-50%);
}

.carousel .list .item {
    position: absolute;
    left: 0%;
    width: 70%;
    height: 100%;
    font-size: 15px;
    transition: left 0.5s, opacity 0.5s, width 0.5s;
}

/* Carousel Item Positions */
.carousel .list .item.pos-1 {
    transform: translateX(-100%) translateY(-5%) scale(1.5);
    filter: blur(30px);
    z-index: 11;
    opacity: 0;
    pointer-events: none;
}

.carousel .list .item.pos-3 {
    transform: translate(50%, 10%) scale(0.8);
    filter: blur(10px);
    z-index: 9;
}

.carousel .list .item.pos-4 {
    transform: translate(90%, 20%) scale(0.5);
    filter: blur(30px);
    z-index: 8;
}

.carousel .list .item.pos-hidden {
    opacity: 0;
    filter: none !important;
    pointer-events: none !important;
    z-index: -1;
}

.carousel .list .item.pos-2 {
    z-index: 10;
    transform: translateX(0);
}

/* Team Member Images */
.carousel .list .item img {
    width: 50%;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: right 1.5s;
    border-radius: 20px;
    object-fit: cover;
    height: 70%;
    border: 2px solid rgba(93, 82, 75, 0.2);
    box-shadow: 0 20px 60px rgba(93, 82, 75, 0.15);
    filter: none !important;
}

/* Introduction Content */
.carousel .list .item .introduce {
    opacity: 0;
    pointer-events: none;
}

.carousel .list .item.pos-2 .introduce {
    opacity: 1;
    pointer-events: auto;
    width: 350px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    transition: opacity 0.5s;
}

.carousel .list .item .introduce .title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1em;
    color: #A67C52;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.carousel .list .item .introduce .topic {
    font-size: 4em;
    font-weight: 400;
    color: #5D524B;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.carousel .list .item .introduce .des {
    font-size: 1.05em;
    color: #5D524B;
    opacity: 0.8;
    line-height: 1.6;
    margin-top: 1rem;
}

.carousel .list .item .introduce .seeMore {
    margin-top: 1.5em;
    padding: 0.8rem 0;
    border: none;
    border-bottom: 2px solid #A67C52;
    background-color: transparent;
    color: #5D524B;
    font-weight: 600;
    letter-spacing: 0.1em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    font-size: 0.9rem;
}

.carousel .list .item .introduce .seeMore:hover {
    background: rgba(166, 124, 82, 0.1);
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Animation for Active Item Content */
.carousel .list .item.pos-2 .introduce .title,
.carousel .list .item.pos-2 .introduce .topic,
.carousel .list .item.pos-2 .introduce .des,
.carousel .list .item.pos-2 .introduce .seeMore {
    opacity: 0;
    animation: showContent 0.5s 1s ease-in-out 1 forwards;
}

@keyframes showContent {
    from {
        transform: translateY(-30px);
        filter: blur(10px);
    }

    to {
        transform: translateY(0);
        opacity: 1;
        filter: blur(0px);
    }
}

.carousel .list .item.pos-2 .introduce .topic {
    animation-delay: 1.2s;
}

.carousel .list .item.pos-2 .introduce .des {
    animation-delay: 1.4s;
}

.carousel .list .item.pos-2 .introduce .seeMore {
    animation-delay: 1.6s;
}

/* Next Click Animations */
.carousel.next .item.pos-1 {
    animation: transformFromPosition2 0.5s ease-in-out 1 forwards;
}

@keyframes transformFromPosition2 {
    from {
        transform: translateX(0);
        filter: blur(0px);
        opacity: 1;
    }
}

.carousel.next .item.pos-2 {
    animation: transformFromPosition3 0.7s ease-in-out 1 forwards;
}

@keyframes transformFromPosition3 {
    from {
        transform: translate(50%, 10%) scale(0.8);
        filter: blur(10px);
        opacity: 1;
    }
}

.carousel.next .item.pos-3 {
    animation: transformFromPosition4 0.9s ease-in-out 1 forwards;
}

@keyframes transformFromPosition4 {
    from {
        transform: translate(90%, 20%) scale(0.5);
        filter: blur(30px);
        opacity: 1;
    }
}

/* Previous Click Animations */
.carousel.prev .list .item.pos-4 {
    animation: transformFromPosition3 0.7s ease-in-out 1 forwards;
}

.carousel.prev .list .item.pos-3 {
    animation: transformFromPosition2 0.9s ease-in-out 1 forwards;
}

.carousel.prev .list .item.pos-2 {
    animation: transformFromPosition1 1.1s ease-in-out 1 forwards;
}

@keyframes transformFromPosition1 {
    from {
        transform: translateX(-100%) translateY(-5%) scale(1.5);
        filter: blur(30px);
        opacity: 0;
    }
}

/* Detail View */
.carousel .list .item .detail {
    opacity: 0;
    pointer-events: none;
}

.carousel.showDetail .list .item.pos-3,
.carousel.showDetail .list .item.pos-4 {
    left: 100%;
    opacity: 0;
    pointer-events: none;
}

.carousel.showDetail .list .item.pos-2 {
    width: 100%;
}

.carousel.showDetail .list .item.pos-2 .introduce {
    opacity: 0;
    pointer-events: none;
}

.carousel.showDetail .list .item.pos-2 img {
    right: 55%;
}

.carousel.showDetail .list .item.pos-2 .detail {
    opacity: 1;
    width: 50%;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    text-align: right;
    pointer-events: auto;
}

.carousel.showDetail .list .item.pos-2 .detail .title {
    font-size: 3.5em;
    font-weight: 400;
    color: #5D524B;
    letter-spacing: -0.02em;
}

.carousel.showDetail .list .item.pos-2 .detail .des {
    color: #5D524B;
    opacity: 0.8;
    line-height: 1.8;
    margin-top: 1.5rem;
}

.carousel.showDetail .list .item.pos-2 .detail .specifications {
    display: flex;
    gap: 10px;
    width: 100%;
    border-top: 1px solid rgba(93, 82, 75, 0.3);
    margin-top: 2rem;
    padding-top: 2rem;
    justify-content: flex-end;
}

.carousel.showDetail .list .item.pos-2 .detail .specifications div {
    width: 90px;
    text-align: center;
    flex-shrink: 0;
}

.carousel.showDetail .list .item.pos-2 .detail .specifications div p:nth-child(1) {
    font-weight: 700;
    color: #A67C52;
    font-size: 0.85em;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.carousel.showDetail .list .item.pos-2 .detail .specifications div p:nth-child(2) {
    color: #5D524B;
    font-size: 1.1em;
}

.carousel.showDetail .list .item.pos-2 .checkout {
    margin-top: 2rem;
}

.carousel.showDetail .list .item.pos-2 .checkout button {
    background-color: transparent;
    border: 2px solid rgba(93, 82, 75, 0.3);
    color: #5D524B;
    margin-left: 10px;
    padding: 0.8rem 1.5rem;
    letter-spacing: 0.05em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 4px;
    font-size: 0.9rem;
}

.carousel.showDetail .list .item.pos-2 .checkout button:hover {
    background-color: rgba(166, 124, 82, 0.1);
    border-color: #A67C52;
}

.carousel.showDetail .list .item.pos-2 .checkout button:nth-child(2) {
    background-color: #A67C52;
    color: #FEF9ED;
    border-color: #A67C52;
}

.carousel.showDetail .list .item.pos-2 .checkout button:nth-child(2):hover {
    background-color: #8d6a44;
    border-color: #8d6a44;
}

.carousel.showDetail .list .item.pos-2 .detail .title,
.carousel.showDetail .list .item.pos-2 .detail .des,
.carousel.showDetail .list .item.pos-2 .detail .specifications,
.carousel.showDetail .list .item.pos-2 .detail .checkout {
    opacity: 0;
    animation: showContent 0.5s 1s ease-in-out 1 forwards;
}

.carousel.showDetail .list .item.pos-2 .detail .des {
    animation-delay: 1.2s;
}

.carousel.showDetail .list .item.pos-2 .detail .specifications {
    animation-delay: 1.4s;
}

.carousel.showDetail .list .item.pos-2 .detail .checkout {
    animation-delay: 1.6s;
}

/* Navigation Arrows */
.arrows {
    position: absolute;
    bottom: 80px;
    width: 1140px;
    max-width: 90%;
    display: flex;
    justify-content: space-between;
    left: 50%;
    transform: translateX(-50%);
}

.carousel-prev,
.carousel-next {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid rgba(93, 82, 75, 0.3);
    background-color: rgba(254, 249, 237, 0.8);
    backdrop-filter: blur(10px);
    color: #5D524B;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
}

.carousel-prev:hover,
.carousel-next:hover {
    background-color: #A67C52;
    color: #FEF9ED;
    border-color: #A67C52;
    transform: scale(1.1);
}

.carousel-back {
    position: absolute;
    z-index: 100;
    bottom: 0%;
    left: 50%;
    transform: translateX(-50%);
    border: none;
    border-bottom: 2px solid #A67C52;
    font-weight: 600;
    letter-spacing: 0.1em;
    background-color: transparent;
    color: #5D524B;
    padding: 10px 20px;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9rem;
}

.carousel-back:hover {
    background: rgba(166, 124, 82, 0.1);
}

.carousel.showDetail .carousel-back {
    opacity: 1;
    pointer-events: auto;
}

.carousel.showDetail .carousel-prev,
.carousel.showDetail .carousel-next {
    opacity: 0;
    pointer-events: none;
}


/* Carousel Background Effect */
.carousel::before {
    width: 500px;
    height: 300px;
    content: '';
    background: radial-gradient(circle, rgba(166, 124, 82, 0.2) 0%, transparent 70%);
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.3;
    top: 50%;
    left: 50%;
    transform: translate(-10%, -50%);
    transition: 1s;
}

.carousel.showDetail::before {
    transform: translate(-100%, -50%) rotate(90deg);
    filter: blur(130px);
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .team-section {
        padding: 80px 20px 60px;
    }

    .team-section .section-title {
        font-size: 2.5rem;
        margin-bottom: 0.5rem;
    }

    .team-section .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
        padding: 0 20px;
    }

    .carousel {
        height: 550px;
        margin-top: 1rem;
    }

    .carousel .list {
        width: 100%;
        max-width: 95%;
        height: 85%;
    }

    .carousel .list .item {
        width: 95%;
        left: 2.5%;
    }

    .carousel .list .item img {
        width: 80%;
        height: 45%;
        left: 10%;
    }

    .carousel .list .item.pos-2 .introduce {
        width: 95%;
        padding: 0 15px;
        top: auto;
        bottom: 20px;
        /* Changed from 10% to fixed px for stability */
        transform: none;
        z-index: 20;
        /* Ensure it stays on top */
        transition: none !important;
        animation: none !important;
    }

    .carousel .list .item.pos-2 .introduce .title,
    .carousel .list .item.pos-2 .introduce .topic,
    .carousel .list .item.pos-2 .introduce .des,
    .carousel .list .item.pos-2 .introduce .seeMore {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
    }

    .carousel .list .item .introduce .title {
        font-size: 0.75rem;
        margin-bottom: 8px;
    }

    .carousel .list .item .introduce .topic {
        font-size: 2rem;
        margin-bottom: 12px;
    }

    .carousel .list .item .introduce .des {
        font-size: 0.9rem;
        line-height: 1.4;
        margin-bottom: 15px;
    }

    .carousel .list .item .introduce .seeMore {
        padding: 10px 20px;
        font-size: 0.75rem;
    }

    .carousel.showDetail .list .item.pos-2 .detail {
        width: 95%;
        padding: 20px 15px;
        text-align: left;
        top: 55%;
        overflow-y: auto;
        max-height: 45%;
    }

    .carousel.showDetail .list .item.pos-2 img {
        width: 95%;
        right: 2.5%;
        height: 35%;
        top: 8%;
        transform: translateY(0);
    }

    .carousel.showDetail .list .item.pos-2 .detail .title {
        font-size: 1.75rem;
        margin-bottom: 10px;
    }

    .carousel.showDetail .list .item.pos-2 .detail .des {
        font-size: 0.85rem;
        margin-bottom: 15px;
    }

    .carousel.showDetail .list .item.pos-2 .detail .specifications {
        flex-wrap: wrap;
        gap: 15px;
        margin-bottom: 20px;
    }

    .carousel.showDetail .list .item.pos-2 .detail .specifications>div {
        width: calc(50% - 7.5px);
        min-width: 120px;
    }

    .carousel.showDetail .list .item.pos-2 .detail .specifications p:first-child {
        font-size: 0.7rem;
    }

    .carousel.showDetail .list .item.pos-2 .detail .specifications p:last-child {
        font-size: 0.85rem;
    }

    .carousel.showDetail .list .item.pos-2 .detail .checkout button {
        padding: 10px 15px;
        font-size: 0.7rem;
    }

    .arrows {
        bottom: 15px;
        gap: 15px;
    }

    .arrows button {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }

    .arrows button.carousel-back {
        width: auto;
        padding: 10px 20px;
        font-size: 0.75rem;
    }

}

/* Extra small screens - Vertical Card Layout */
@media screen and (max-width: 480px) {
    .team-section {
        padding: 60px 15px 40px;
    }

    .team-section .section-title {
        font-size: 1.75rem;
        margin-bottom: 0.5rem;
    }

    .team-section .section-subtitle {
        font-size: 0.85rem;
        padding: 0 10px;
        margin-bottom: 2rem;
    }

    /* Hide carousel, show vertical cards */
    .carousel {
        position: static;
        height: auto;
        overflow: visible;
        margin-top: 50px;
    }

    .carousel .list {
        position: static;
        width: 100%;
        max-width: 100%;
        height: auto;
        transform: none;
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .carousel .list .item {
        position: static !important;
        width: 100% !important;
        height: auto !important;
        opacity: 1 !important;
        transform: none !important;
        left: 0 !important;
        background: rgba(255, 255, 255, 0.6);
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        border-radius: 16px;
        padding: 20px;
        border: 1px solid rgba(93, 82, 75, 0.1);
        box-shadow: 0 4px 20px rgba(93, 82, 75, 0.1);
        transition: all 0.3s ease;
        filter: none !important;
        pointer-events: auto !important;
        visibility: visible !important;
    }

    .carousel .list .item:hover {
        transform: translateY(-5px) !important;
        box-shadow: 0 8px 30px rgba(93, 82, 75, 0.15);
    }

    .carousel .list .item img {
        position: static !important;
        width: 120px !important;
        height: 120px !important;
        border-radius: 50%;
        margin: 0 auto 15px;
        display: block;
        object-fit: cover;
        border: 3px solid #A67C52;
        transform: none !important;
    }

    .carousel .list .item .introduce {
        position: static !important;
        width: 100% !important;
        padding: 0 !important;
        opacity: 1 !important;
        text-align: center;
    }

    .carousel .list .item .introduce .title {
        font-size: 0.7rem;
        margin-bottom: 5px;
        color: #A67C52;
        letter-spacing: 0.1em;
    }

    .carousel .list .item .introduce .topic {
        font-size: 1.5rem;
        margin-bottom: 10px;
        line-height: 1.2;
        color: #5D524B;
    }

    .carousel .list .item .introduce .des {
        font-size: 0.85rem;
        line-height: 1.5;
        margin-bottom: 15px;
        color: #5D524B;
        opacity: 0.9;
    }

    .carousel .list .item .introduce .seeMore {
        padding: 10px 20px;
        font-size: 0.75rem;
        background: #A67C52;
        color: #FEF9ED;
        border: none;
        border-radius: 8px;
        cursor: pointer;
        transition: all 0.3s ease;
        pointer-events: auto !important;
        display: inline-block;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }

    .carousel .list .item .introduce .seeMore:hover,
    .carousel .list .item .introduce .seeMore:active {
        background: #8B6642;
        transform: translateY(-2px);
    }

    /* Hide detail view on mobile - keep it simple */
    .carousel .list .item .detail {
        display: none !important;
    }

    .carousel.showDetail .list .item .detail {
        display: none !important;
    }

    /* Disable ALL showDetail effects on mobile - only use modal */
    .carousel.showDetail .list .item.pos-2 {
        width: 100% !important;
        transform: none !important;
    }

    .carousel.showDetail .list .item.pos-2 img {
        position: static !important;
        right: auto !important;
        width: 120px !important;
        height: 120px !important;
        margin: 0 auto 15px !important;
    }

    .carousel.showDetail .list .item.pos-2 .introduce {
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    .carousel.showDetail .list .item.pos-3,
    .carousel.showDetail .list .item.pos-4 {
        left: 0 !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        transform: none !important;
    }

    /* Hide arrows on mobile */
    .arrows {
        display: none !important;
    }

    /* Show all items */
    .carousel .list .item {
        opacity: 1 !important;
        display: block !important;
    }
}

/* Mobile Modal Styles */
.team-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.team-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.team-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.team-modal-content {
    position: relative;
    background: #FEF9ED;
    border-radius: 20px;
    max-width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    z-index: 1;
}

.team-modal.active .team-modal-content {
    transform: scale(1);
}

.team-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(93, 82, 75, 0.1);
    color: #5D524B;
    font-size: 28px;
    line-height: 1;
    border-radius: 50%;
    cursor: pointer;
    z-index: 2;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-modal-close:hover {
    background: #A67C52;
    color: #FEF9ED;
    transform: rotate(90deg);
}

.team-modal-body {
    padding: 25px 20px;
}

/* Modal Header - Photo Left, Name Right */
.modal-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(93, 82, 75, 0.1);
}

.modal-header-left {
    flex-shrink: 0;
}

.modal-header-right {
    text-align: left;
}

.modal-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #A67C52;
    box-shadow: 0 5px 15px rgba(93, 82, 75, 0.15);
}

.modal-role {
    font-size: 0.75rem;
    color: #A67C52;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 8px;
    font-weight: 600;
}

.modal-name {
    font-size: 1.35rem;
    color: #5D524B;
    margin-bottom: 3px;
    font-weight: 500;
    line-height: 1.2;
}

.modal-bio {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #5D524B;
    margin-bottom: 20px;
    opacity: 0.9;
}

.modal-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

.modal-spec {
    background: rgba(166, 124, 82, 0.08);
    padding: 12px 14px;
    border-radius: 8px;
    text-align: left;
}

.spec-label {
    font-size: 0.7rem;
    color: #A67C52;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 5px;
    font-weight: 600;
}

.spec-value {
    font-size: 0.9rem;
    color: #5D524B;
    font-weight: 500;
}

.spec-value a {
    color: #A67C52;
    text-decoration: none;
    font-weight: 600;
}

.spec-value a:hover {
    text-decoration: underline;
}

.modal-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.modal-btn {
    flex: 1;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.modal-btn-primary {
    background: #A67C52;
    color: #FEF9ED;
    border: none;
}

.modal-btn-primary:hover {
    background: #8d6a44;
}

.modal-btn-secondary {
    background: transparent;
    color: #5D524B;
    border: 2px solid rgba(93, 82, 75, 0.3);
}

.modal-btn-secondary:hover {
    border-color: #A67C52;
    background: rgba(166, 124, 82, 0.05);
}

.modal-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(166, 124, 82, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-social-link:hover {
    background: #A67C52;
    transform: translateY(-3px);
}

.modal-social-link img {
    width: 20px;
    height: 20px;
    filter: brightness(0) saturate(100%) invert(38%) sepia(12%) saturate(1015%) hue-rotate(337deg) brightness(93%) contrast(88%);
}

.modal-social-link:hover img {
    filter: brightness(0) saturate(100%) invert(98%) sepia(8%) saturate(635%) hue-rotate(318deg) brightness(103%) contrast(98%);
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {

    .carousel .list .item,
    .carousel .list .item img,
    .carousel .list .item .introduce,
    .carousel .list .item .detail {
        transition: none !important;
        animation: none !important;
    }

    .team-section::before,
    .carousel::before {
        animation: none !important;
    }

    .team-modal,
    .team-modal-content,
    .team-modal-close {
        transition: none !important;
    }
}