/* 
   Virtual X Tours - Enhanced Team Section
   Modern and interactive styling for the team section
*/
:root {
    --team-accent: #3498db;
    --team-hover: #2980b9;
    --team-text: #333;
    --team-light: #f5f9ff;
    --shape-color-1: #3498db;
    --shape-color-2: #2ecc71;
    --shape-color-3: #e74c3c;
}

/* Team Grid Layout */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

/* Team Member Card */
.team-member {
    background-color: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    z-index: 1;
}

/* Floating Shapes */
.team-member::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    width: 20px;
    height: 20px;
    background: var(--shape-color-1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
    z-index: 0;
}

.team-member::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: -10px;
    width: 15px;
    height: 15px;
    background: var(--shape-color-2);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
    animation-delay: 2s;
    z-index: 0;
}

/* Floating Animation */
@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-10px) rotate(45deg);
    }
    50% {
        transform: translateY(0) rotate(90deg);
    }
    75% {
        transform: translateY(-10px) rotate(135deg);
    }
    100% {
        transform: translateY(0) rotate(180deg);
    }
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* Member Image Container */
.member-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.team-member:hover .member-image img {
    transform: scale(1.08);
}

/* Social Icons Overlay */
.member-social {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.team-member:hover .member-social {
    opacity: 1;
    transform: translateY(0);
}

.member-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #fff;
    color: var(--team-accent);
    margin: 0 5px;
    font-size: 16px;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease, color 0.3s ease;
    box-shadow: 0 0 0 0 rgba(52, 152, 219, 0.3);
}

.member-social a:hover {
    box-shadow: 0 0 0 15px rgba(52, 152, 219, 0.3);
    background-color: var(--team-accent);
    color: #fff;
}

.team-member:hover .member-social a {
    transform: translateY(0);
    opacity: 1;
}

.team-member:hover .member-social a:nth-child(1) {
    transition-delay: 0.1s;
}

.team-member:hover .member-social a:nth-child(2) {
    transition-delay: 0.2s;
}

.team-member:hover .member-social a:nth-child(3) {
    transition-delay: 0.3s;
}

.member-social a:hover {
    background-color: var(--team-accent);
    color: #fff;
}

/* Member Info Section */
.member-info {
    padding: 20px;
    text-align: center;
    position: relative;
}

.member-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--team-accent);
    transition: width 0.3s ease;
}

.team-member:hover .member-info::before {
    width: 80px;
}

.member-info h3 {
    margin: 15px 0 5px;
    font-size: 1.4rem;
    color: var(--team-text);
    font-weight: 600;
}

.member-title {
    color: var(--team-accent);
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.member-bio {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #666;
}

/* Skills Pills */
.member-skills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.team-member:hover .member-skills {
    opacity: 1;
    transform: translateY(0);
}

.skill-pill {
    padding: 5px 12px;
    border-radius: 50px;
    display: inline-block;
}

/* Floating Elements */
.floating-shape {
    position: absolute;
    z-index: -1;
    opacity: 0.1;
    animation: float 15s ease-in-out infinite;
}

.floating-shape.circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: var(--team-accent);
    top: 10%;
    left: 5%;
}

.floating-shape.square {
    width: 80px;
    height: 80px;
    background-color: var(--team-accent);
    bottom: 10%;
    right: 5%;
    transform: rotate(45deg);
}

.floating-shape.triangle {
    width: 0;
    height: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 86px solid var(--team-accent);
    top: 40%;
    right: 10%;
}

/* Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-15px) rotate(5deg);
    }
    50% {
        transform: translateY(5px) rotate(-5deg);
    }
    75% {
        transform: translateY(-10px) rotate(2deg);
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .member-image {
        height: 280px;
    }
}

@media (max-width: 576px) {
    .team-grid {
        grid-template-columns: 1fr;
        max-width: 320px;
        margin: 40px auto 0;
    }
}
