/* Professional Teams Page Styling */

/* Professional team card animations and styling */
.team-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 1rem; /* Reduced spacing between cards */
}

.team-card:hover {
    transform: translateY(-8px) scale(1.02);
}

.team-badge {
    backdrop-filter: blur(8px);
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.gradient-overlay {
    background: linear-gradient(
        to top, 
        rgba(0, 0, 0, 0.9) 0%, 
        rgba(0, 0, 0, 0.6) 30%, 
        rgba(0, 0, 0, 0.3) 60%, 
        transparent 100%
    );
}

.image-zoom {
    transition: transform 0.3s ease-in-out;
}

.team-card:hover .image-zoom {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .team-card:hover {
        transform: translateY(-4px) scale(1.01);
    }
    
    .team-card {
        margin-bottom: 0.75rem; /* Further reduced spacing on mobile */
    }
}

/* Smooth fade-in animation */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.6s ease-in-out forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Enhanced grid spacing */
.teams-grid {
    gap: 1rem; /* Reduced spacing between grid items */
}

@media (min-width: 768px) {
    .teams-grid {
        gap: 1.5rem; /* Smaller spacing on larger screens */
    }
}

@media (min-width: 1024px) {
    .teams-grid {
        gap: 2rem; /* Moderate spacing on desktop */
    }
}