/* ========================================
   VIP TEAM SECTION - PREMIUM LIGHT DESIGN
   ======================================== */

/* === CSS Variables === */
.team-vip {
    --team-bg: #f8fafb;
    --team-card-bg: #ffffff;
    --team-card-shadow: 0 4px 24px rgba(20, 63, 82, 0.06);
    --team-card-shadow-hover: 0 12px 40px rgba(20, 63, 82, 0.12);
    --team-card-radius: 20px;
    --team-avatar-size: 120px;
    --team-avatar-border: 3px;
    --team-text-primary: #1a2b3c;
    --team-text-secondary: #5a6b7c;
    --team-text-muted: #8a9bac;
    --team-accent: var(--main-color, #143F52);
    --team-accent-light: rgba(20, 63, 82, 0.08);
    --team-shine-color: rgba(255, 255, 255, 0.6);
    --team-transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === Section Base === */
.team-vip {
    position: relative;
    padding: 80px 0;
    background: var(--team-bg);
    overflow: hidden;
}

/* === Ambient Background === */
.team-vip-ambient {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

/* Spotlight Effect */
.team-vip-spotlight {
    position: absolute;
    top: -30%;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 60%;
    background: radial-gradient(ellipse at center, rgba(20, 63, 82, 0.04) 0%, transparent 70%);
    filter: blur(60px);
}

/* Subtle Lines Pattern */
.team-vip-lines {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(90deg, rgba(20, 63, 82, 0.02) 1px, transparent 1px),
        linear-gradient(rgba(20, 63, 82, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.5;
}

/* Noise Texture */
.team-vip-noise {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.02;
}

/* === Header === */
.team-vip-header {
    position: relative;
    z-index: 1;
    text-align: center;
    margin-bottom: 50px;
}

.team-vip-title {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    color: var(--team-text-primary);
    margin: 0 0 12px;
    letter-spacing: -0.02em;
}

.team-vip-subtitle {
    font-size: 1rem;
    color: var(--team-text-secondary);
    margin: 0;
    font-weight: 400;
}

/* === Carousel Container === */
.team-vip-carousel {
    position: relative;
    z-index: 1;
}

.team-vip .carousel-inner {
    overflow: visible;
}

.team-vip .carousel-item {
    transition: transform 0.6s ease-in-out, opacity 0.6s ease-in-out;
}

/* === Cards Row === */
.team-vip-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -12px;
    justify-content: center;
}

.team-vip-col {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 0 12px;
    margin-bottom: 24px;
}

@media (min-width: 576px) {
    .team-vip-col {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (min-width: 768px) {
    .team-vip-col {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (min-width: 992px) {
    .team-vip-col {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

/* === Team Card === */
.team-card {
    position: relative;
    background: var(--team-card-bg);
    border-radius: var(--team-card-radius);
    padding: 32px 24px 28px;
    text-align: center;
    box-shadow: var(--team-card-shadow);
    border: 1px solid rgba(20, 63, 82, 0.06);
    transition: 
        transform var(--team-transition),
        box-shadow var(--team-transition);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Shine Effect Overlay */
.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        var(--team-shine-color),
        transparent
    );
    transform: skewX(-25deg);
    transition: left 0.6s ease;
    pointer-events: none;
    z-index: 10;
}

/* Hover Effects */
.team-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--team-card-shadow-hover);
}

.team-card:hover::before {
    left: 150%;
}

/* === Avatar === */
.team-avatar {
    position: relative;
    width: var(--team-avatar-size);
    height: var(--team-avatar-size);
    margin-bottom: 20px;
    flex-shrink: 0;
}

.team-avatar-ring {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: var(--team-avatar-border) solid var(--team-accent-light);
    transition: 
        border-color var(--team-transition),
        transform var(--team-transition);
}

.team-card:hover .team-avatar-ring {
    border-color: rgba(20, 63, 82, 0.2);
    animation: teamRingPulse 1.5s ease-out infinite;
}

@keyframes teamRingPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.7;
    }
}

.team-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 4px 16px rgba(20, 63, 82, 0.1);
    transition: transform var(--team-transition);
}

.team-card:hover .team-avatar-img {
    transform: scale(1.03);
}

/* === Card Info === */
.team-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.team-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--team-text-primary);
    margin: 0 0 6px;
    transition: 
        transform var(--team-transition),
        color var(--team-transition);
}

.team-card:hover .team-name {
    transform: translateY(-2px);
    color: var(--team-accent);
}

.team-role {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--team-accent);
    background: var(--team-accent-light);
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 14px;
    transition: 
        transform var(--team-transition),
        background var(--team-transition);
}

.team-card:hover .team-role {
    transform: translateY(-2px);
    background: rgba(20, 63, 82, 0.12);
}

.team-desc {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--team-text-secondary);
    margin: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    transition: 
        transform var(--team-transition),
        opacity var(--team-transition);
}

.team-card:hover .team-desc {
    transform: translateY(-2px);
}

@media (max-width: 767px) {
    .team-desc {
        -webkit-line-clamp: 3;
    }
}

/* === Pager === */
.team-vip-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
    position: relative;
    z-index: 1;
}

.team-vip-pager.is-hidden {
    display: none;
}

.team-pager-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    background: var(--team-card-bg);
    border: 1px solid rgba(20, 63, 82, 0.1);
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--team-text-secondary);
    cursor: pointer;
    transition: 
        background var(--team-transition),
        border-color var(--team-transition),
        color var(--team-transition),
        transform var(--team-transition),
        box-shadow var(--team-transition);
    box-shadow: 0 2px 8px rgba(20, 63, 82, 0.04);
}

.team-pager-btn:hover {
    background: var(--team-accent-light);
    border-color: rgba(20, 63, 82, 0.2);
    color: var(--team-accent);
    transform: translateY(-2px);
}

.team-pager-btn.is-active {
    background: var(--team-accent);
    border-color: var(--team-accent);
    color: #fff;
    box-shadow: 0 4px 16px rgba(20, 63, 82, 0.25);
}

.team-pager-btn.is-active:hover {
    background: var(--team-accent);
    color: #fff;
}

.team-pager-sep {
    color: var(--team-text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0 4px;
}

/* === RTL Support === */
[dir="rtl"] .team-vip {
    text-align: right;
}

[dir="rtl"] .team-card {
    text-align: center;
}

[dir="rtl"] .team-card::before {
    left: auto;
    right: -100%;
    transform: skewX(25deg);
}

[dir="rtl"] .team-card:hover::before {
    left: auto;
    right: 150%;
}

/* === Reduced Motion === */
@media (prefers-reduced-motion: reduce) {
    .team-card,
    .team-card::before,
    .team-avatar-ring,
    .team-avatar-img,
    .team-name,
    .team-role,
    .team-desc,
    .team-pager-btn,
    .team-vip .carousel-item {
        transition: none;
    }
    
    .team-card:hover .team-avatar-ring {
        animation: none;
    }
    
    .team-card:hover {
        transform: none;
    }
    
    .team-card:hover::before {
        left: -100%;
    }
    
    [dir="rtl"] .team-card:hover::before {
        right: -100%;
    }
}

/* === Responsive Adjustments === */
@media (max-width: 991px) {
    .team-vip {
        padding: 60px 0;
    }
    
    .team-vip-header {
        margin-bottom: 40px;
    }
    
    .team-vip-col {
        margin-bottom: 20px;
    }
}

@media (max-width: 767px) {
    .team-vip {
        padding: 50px 0;
    }
    
    .team-vip-header {
        margin-bottom: 32px;
    }
    
    .team-card {
        padding: 28px 20px 24px;
    }
    
    .team-vip {
        --team-avatar-size: 100px;
    }
    
    .team-name {
        font-size: 1rem;
    }
    
    .team-role {
        font-size: 0.75rem;
        padding: 3px 12px;
    }
    
    .team-desc {
        font-size: 0.8125rem;
    }
    
    .team-vip-pager {
        margin-top: 32px;
        gap: 6px;
    }
    
    .team-pager-btn {
        min-width: 40px;
        height: 40px;
        font-size: 0.8125rem;
        padding: 0 10px;
        border-radius: 10px;
    }
}

@media (max-width: 575px) {
    .team-vip {
        padding: 40px 0;
    }
    
    .team-vip-col {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .team-card {
        max-width: 320px;
        margin: 0 auto;
    }
}
