/* Team Block Styles */
.team-container {
    position: relative;
}

.team__area {
    position: relative;
    background-color: #09090b;
    background-attachment: fixed;
}

.team__area.team-bg {
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.team__area .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Section Title */
.section__title {
    position: relative;
}

.section__title::after {
    content: '';
    display: block;
    background-image: url('./assets/img/bg/title_shape.svg');
    background-repeat: no-repeat;
    background-position: center;
    width: 65px;
    height: 5px;
    margin: 20px auto 0;
}

/* Team Item Card - Design like the image */
.team__item {
    position: relative;
    background: linear-gradient(145deg, #2a3441 0%, #1a2332 100%);
    border: 2px solid #3a4555;
    border-radius: 25px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    margin-bottom: 30px;
    text-align: center;
    padding: 30px 25px 35px;
    width: 19rem !important;
    height: 24rem;
}

.team__item::before,
.team__item::after {
    content: '';
    position: absolute;
    top: -80px;
    width: 90px;
    height: 450px;
    background: linear-gradient(135deg, var(--main-color), var(--main-color));
    opacity: 0.15;
    z-index: 0;
    transition: all 0.4s ease;
}

.team__item::before {
    left: -30px;
    transform: rotate(-55deg);
}

.team__item::after {
    right: -30px;
    transform: rotate(55deg);
}

.team__item:hover {
    transform: translateY(-12px);
    border-color: var(--main-color);
    box-shadow: 
        0 25px 60px var(--main-color),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.team__item:hover::before,
.team__item:hover::after {
    opacity: 0.4;
}

/* Team Thumb */
.team__thumb {
    position: relative;
    margin-bottom: 33px;
    z-index: 2;
}

.team__thumb::before,
.team__thumb::after {
    content: '';
    position: absolute;
    top: -50px;
    width: 3px;
    height: 280px;
    background: linear-gradient(to bottom, transparent, var(--main-color), transparent);
    opacity: 0.25;
    z-index: 1;
    transition: all 0.4s ease;
}

.team__thumb::before {
    left: 75px;
    transform: rotate(-55deg);
}

.team__thumb::after {
    right: 75px;
    transform: rotate(55deg);
}

.team__item:hover .team__thumb::before,
.team__item:hover .team__thumb::after {
    opacity: 0.6;
}

.team__thumb img {
    width: 11rem;
    height: 11rem !important;
    border-radius: 50%;
    border: 4px solid #ffffff;
    object-fit: cover;
    position: relative;
    z-index: 3;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.5),
        inset 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
}

.team__item:hover .team__thumb img {
    border-color: var(--main-color);
    box-shadow: 
        0 20px 50px rgba(255, 0, 105, 0.4),
        inset 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Team Content */
.team__content {
    position: relative;
    z-index: 2;
}

.team__content .name {
    margin: 0 0 5px 0;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 1px;
}

.team__content .name a {
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.team__content .name a:hover {
    color: #ffffff;
}

.team__content .designation {
    color: var(--main-color);
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Barlow', sans-serif;
    margin: 0;
    display: block;
}

/* Responsive Design */
@media (max-width: 1199px) {
    .team__item {
        margin-bottom: 40px;
    }
    
    /* .team__thumb img {
        width: 9rem;
        height: 9rem !important;
    } */
    .team__item {
        max-width: 22rem !important;
        height: 22rem;
    }
}

@media (max-width: 991px) {
    /* .team__thumb img {
        width: 6rem;
        height: 6rem !important;
    } */
    
    /* .team__content .name {
        font-size: 20px;
    }
    
    .team__content .designation {
        font-size: 14px;
    } */
    
    .team__thumb::before {
        left: 65px;
    }
    
    .team__thumb::after {
        right: 65px;
    }
    .team__item {
        max-width: 22rem !important;
        height: 22rem;
    }
}

@media (max-width: 767px) {
    .team__item {
        max-width: 350px;
        margin: 0 auto 30px;
    }
    
    .team__thumb::before,
    .team__thumb::after {
        height: 250px;
    }
    
    .team__item::before,
    .team__item::after {
        height: 350px;
        top: -60px;
        width: 70px;
    }
    
    .team__thumb::before {
        left: 55px;
    }
    
    .team__thumb::after {
        right: 55px;
    }
    .team__item {
        max-width: 22rem !important;
        height: 22rem;
    }
}

@media (max-width: 575px) {
    .team__item {
        max-width: 320px;
    }
    
    /* .team__thumb img {
        width: 6rem;
        height: 6rem !important;
    }
    
    .team__content .name {
        font-size: 18px;
    }
    
    .section__title .title {
        font-size: 35px;
    }
     */
    .section__title .sub-title {
        margin-bottom: 10px;
    }
    
    .team__thumb::before {
        left: 45px;
    }
    
    .team__thumb::after {
        right: 45px;
    }
    .team__item {
        max-width: 22rem !important;
        height: 22rem;
    }
}

/* Animation improvements */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wow.fadeInUp {
    animation-name: fadeInUp;
    animation-duration: 1s;
    animation-fill-mode: both;
    visibility: visible !important;
}

.section__title::after {
    background-image: url('./assets/img/bg/title_shape.svg');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}

.tg__animate-text {
    animation: slideInUp 0.8s ease-out;
}

.team__item {
    position: relative;
    background: linear-gradient(145deg, #1c242f 0%, #151b24 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.team__item:hover {
    transform: translateY(-7px);
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.3);
}

.team__item:hover::before,
.team__item:hover::after {
    opacity: 1 !important;
}

.team__item .team__thumb {
    position: relative;
    overflow: visible;
}

.team__item:hover .team__thumb::before,
.team__item:hover .team__thumb::after {
    opacity: 0.4 !important;
}

.team__item img {
    transition: transform 0.3s ease, filter 0.3s ease;
}

.team__item:hover img {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.team__content .name a {
    text-decoration: none;
    transition: color 0.3s ease;
}

.team__content .designation {
    font-family: 'Barlow', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Placeholder Image */
.placeholder-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    margin: 0 auto;
}

/* Animation */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 1199px) {
    .team__item {
        margin-bottom: 30px;
    }
}

@media (max-width: 767px) {
    .team__area {
        padding-top: 80px;
        padding-bottom: 60px;
    }
    
    .section__title {
        margin-bottom: 40px;
    }
    
    .section__title .title {
        font-size: 28px;
    }
    
    .team__item {
        max-width: 320px;
        margin: 0 auto 30px;
    }
}

@media (max-width: 575px) {
    .team__area {
        padding-top: 60px;
        padding-bottom: 40px;
    }
    
    .section__title .title {
        font-size: 24px;
    }
}
