/* 3D Carousel Styles */
.rawcut-team-3d-carousel-wrapper {
    padding: 0;
    position: relative;
}

.rawcut-team-3d-carousel-wrapper h2.team-carousel-title {
    text-align: center;
    margin-bottom: 60px;
    font-size: 42px;
    font-weight: 400;
    color: #333;
}

.carousel-3d-container {
    perspective: 1000px;
    width: 100%;
    max-width: 1245px;
    margin: 0 auto;
    height: 500px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel-3d {
    width: 100%;
    height: 100%;
    position: absolute;
    transform-style: preserve-3d;
    transition: transform 1s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.carousel-3d-item {
    position: absolute;
    width: 250px;
    height: 250px;
    left: 50%;
    top: 50%;
    margin-left: -125px;
    margin-top: -125px;
    transition: all 1s cubic-bezier(0.4, 0.0, 0.2, 1);
    opacity: 0;
    visibility: hidden;
}

.carousel-3d-item.active {
    opacity: 1;
    visibility: visible;
}

.carousel-3d-card {
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    overflow: hidden;
    position: relative;
    transition: all 0.5s ease;
    cursor: pointer;
}

.carousel-3d-item:not(.active) .carousel-3d-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0,0,0,0.25);
}

/* Active item gets a subtle highlight */

.carousel-3d-item.active .carousel-3d-card:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.carousel-3d-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #e5e5e5;
    position: relative;
}

.carousel-3d-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.carousel-3d-card:hover .carousel-3d-image img {
    transform: scale(1.05);
}

.carousel-3d-info {
    padding: 25px;
    text-align: center;
}

.carousel-3d-name {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #333;
}

.carousel-3d-position {
    font-size: 14px;
    color: #666;
    margin: 0 0 15px 0;
    font-weight: 300;
}

.carousel-3d-social {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 15px;
}

.carousel-3d-social a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: all 0.3s ease;
    text-decoration: none;
}

.carousel-3d-social a:hover {
    background: #443a35;
    color: #fff;
    transform: translateY(-2px);
}

/* Position calculations for 5 items */
/* Center (front) */
.carousel-3d-item:nth-child(1) {
    transform: translateX(0) translateZ(400px) scale(1);
    z-index: 5;
    opacity: 1;
    visibility: visible;
}

/* Right 1 */
.carousel-3d-item:nth-child(2) {
    transform: translateX(265px) translateZ(210px) scale(0.85);
    z-index: 4;
    opacity: 0.9;
    visibility: visible;
}

/* Right 2 */
.carousel-3d-item:nth-child(3) {
    transform: translateX(566px) translateZ(-50px) scale(0.7);
    z-index: 3;
    opacity: 0.6;
    visibility: visible;
}

/* Left 1 */
.carousel-3d-item:nth-child(4) {
    transform: translateX(-265px) translateZ(210px) scale(0.85);
    z-index: 4;
    opacity: 0.9;
    visibility: visible;
}

/* Left 2 */
.carousel-3d-item:nth-child(5) {
    transform: translateX(-566px) translateZ(-50px) scale(0.7);
    z-index: 3;
    opacity: 0.6;
    visibility: visible;
}

/* Navigation Arrows */
.carousel-3d-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    background: transparent;
}

.carousel-3d-nav:hover {
    transform: translateY(-50%) scale(1.1);
}

.carousel-3d-nav.prev {
    left: -50px;
}

.carousel-3d-nav.next {
    right: -50px;
}

.carousel-3d-nav i {
    font-size: 20px;
}

/* Dots Navigation */
.carousel-3d-dots {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.carousel-3d-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-3d-dot.active {
    background: #443a35;
    transform: scale(1.2);
}

.carousel-3d-dot:hover {
    background: #666;
}

/* Link overlay */
.carousel-3d-link {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    text-decoration: none;
}

/* Responsive */
@media (max-width: 1200px) {
    .carousel-3d-container {
        max-width: 1000px;
    }
    
    .carousel-3d-item:nth-child(2) {
        transform: translateX(195px) translateZ(180px) scale(0.8);
    }
    
    .carousel-3d-item:nth-child(3) {
        transform: translateX(380px) translateZ(-60px) scale(0.65);
    }
    
    .carousel-3d-item:nth-child(4) {
        transform: translateX(-195px) translateZ(180px) scale(0.8);
    }
    
    .carousel-3d-item:nth-child(5) {
        transform: translateX(-380px) translateZ(-60px) scale(0.65);
    }
    
    .carousel-3d-nav.prev {
        left: 0;
    }
    
    .carousel-3d-nav.next {
        right: 0;
    }
}

@media (max-width: 768px) {
    .carousel-3d-container {
        height: 400px;
        padding: 0 20px;
        max-width: 100%;
    }
    
    .carousel-3d-item {
        width: 180px;
        height: 180px;
        margin-left: -90px;
        margin-top: -90px;
    }
    
    .carousel-3d-image {
        height: 180px;
    }
    
    /* Tablet - Show 3 items */
    .carousel-3d-item:nth-child(1) {
        transform: translateX(0) translateZ(250px) scale(1);
    }
    
    .carousel-3d-item:nth-child(2) {
        transform: translateX(150px) translateZ(100px) scale(0.75);
    }
    
    .carousel-3d-item:nth-child(3) {
        transform: translateX(260px) translateZ(-60px) scale(0.6);
        opacity: 0.5;
    }
    
    .carousel-3d-item:nth-child(4) {
        transform: translateX(-150px) translateZ(100px) scale(0.75);
    }
    
    .carousel-3d-item:nth-child(5) {
        transform: translateX(-260px) translateZ(-60px) scale(0.6);
        opacity: 0.5;
    }
    
    .carousel-3d-nav {
        width: 40px;
        height: 40px;
    }
    
    .carousel-3d-nav i {
        font-size: 16px;
    }
    
    .carousel-3d-nav.prev {
        left: 10px;
    }
    
    .carousel-3d-nav.next {
        right: 10px;
    }
}

@media (max-width: 480px) {
    .rawcut-team-3d-carousel-wrapper h2.team-carousel-title {
        font-size: 28px;
        margin-bottom: 40px;
    }
    
    .carousel-3d-container {
        height: 350px;
        padding: 0 15px;
    }
    
    .carousel-3d-item {
        width: 160px;
        height: 160px;
        margin-left: -80px;
        margin-top: -80px;
    }
    
    .carousel-3d-image {
        height: 160px;
    }
    
    /* Mobile - Show 3 items, more compact */
    .carousel-3d-item:nth-child(1) {
        transform: translateX(0) translateZ(200px) scale(1);
    }
    
    .carousel-3d-item:nth-child(2) {
        transform: translateX(120px) translateZ(80px) scale(0.7);
    }
    
    .carousel-3d-item:nth-child(3) {
        transform: translateX(210px) translateZ(-50px) scale(0.55);
        opacity: 0.4;
    }
    
    .carousel-3d-item:nth-child(4) {
        transform: translateX(-120px) translateZ(80px) scale(0.7);
    }
    
    .carousel-3d-item:nth-child(5) {
        transform: translateX(-210px) translateZ(-50px) scale(0.55);
        opacity: 0.4;
    }
    
    .carousel-3d-nav {
        width: 36px;
        height: 36px;
        display: none !important;
    }
    
    .carousel-3d-nav i {
        font-size: 14px;
    }
    
    .carousel-3d-nav.prev {
        left: 5px;
    }
    
    .carousel-3d-nav.next {
        right: 5px;
    }
    
    .carousel-3d-dots {
        bottom: -40px;
    }
    
    .carousel-3d-dot {
        width: 10px;
        height: 10px;
    }
}

/* Carousel Info Section */
.carousel-3d-info-section {
    max-width: 800px;
    margin: 0 auto 0;
    padding: 0 20px;
    text-align: center;
}

.carousel-3d-member-info {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.carousel-3d-member-info-inner {
    padding: 20px;
}

.member-info-position {
    font-size: 16px;
    margin: 0 !important;
}

.member-info-name {
    font-size: 16px;
    font-weight: 600;
    margin: 0 !important;
    line-height: 1.2;
}

h4.member-info-availability,
h4.member-info-location {
    font-size: 16px;
    font-weight: 600;
}

p.member-info-availability,
p.member-info-location {
    font-size: 16px;
}

.member-info-bio {
    margin: 0;
}

.team-single-cta {
    border-top: 1px solid #eee;
}

.team-book-btn {
    display: inline-block;
    width: auto;
    padding: 15px 30px;
    background: transparent;
    border: 1px solid #443a35;
    border-radius: 50px;
    text-align: center;
    font-size: 16px;
    font-weight: 400;
    text-decoration: none;
    transition: all 0.3s ease;
}

.team-book-btn:hover {
    background: #443a35;
    color: white;
    text-decoration: none;
}

/* Responsive adjustments for info section */
@media (max-width: 768px) {
    .carousel-3d-info-section {
        margin: 50px auto 0;
        padding: 0 30px;
    }
    
    .member-info-name {
        font-size: 26px;
        margin: 0 0 20px 0;
    }
    
    .member-info-position {
        font-size: 13px;
        margin: 0 0 8px 0;
    }
    
    .member-info-bio {
        font-size: 15px;
        line-height: 1.7;
    }
}

@media (max-width: 480px) {
    .carousel-3d-info-section {
        margin: 0 auto 0;
        padding: 0;
    }
    
    .carousel-3d-member-info-inner {
        padding: 0;
    }
    
    .member-info-name {
        font-size: 16px;
        margin: 0 0 15px 0;
    }
    
    .member-info-position {
        font-size: 12px;
        margin: 0 0 6px 0;
    }
    
    .member-info-bio {
        font-size: 14px;
        line-height: 1.6;
    }
    
    .member-info-bio p {
        margin: 0 0 12px 0;
    }
}
