/* Team Card Styles with Image Overlay and Modal */

/* Team Item Wrapper */
.team-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.team-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Image Wrapper with Overlay */
.team-img-wrapper {
    position: relative;
    overflow: hidden;
}

.team-img-wrapper img {
    transition: transform 0.5s ease;
    width: 100%;
    height: auto;
}

.team-item:hover .team-img-wrapper img {
    transform: scale(1.1);
}

/* Overlay that appears on hover */
.team-img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(19, 51, 71, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.team-item:hover .team-img-overlay {
    opacity: 1;
}

/* View Profile Button */
.btn-view-profile {
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    transform: translateY(10px);
}

.team-item:hover .btn-view-profile {
    transform: translateY(0);
}

.btn-view-profile:hover {
    transform: scale(1.05) translateY(0);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Modal Customization */
.modal-header.bg-primary {
    background: linear-gradient(135deg, #133347 0%, #1a4a61 100%) !important;
}

.modal-content {
    border: none;
    border-radius: 10px;
    overflow: hidden;
}

.modal-header {
    border-bottom: 2px solid #f0f0f0;
    padding: 1.5rem;
}

.modal-title {
    color: #ffffff !important;
}

.modal-header.bg-primary .modal-title {
    color: #ffffff !important;
}

.modal-body {
    padding: 2rem;
}

.modal-body img {
    max-width: 100%;
    height: auto;
}

.modal-footer {
    border-top: 2px solid #f0f0f0;
    padding: 1rem 1.5rem;
}

/* Animation keyframes */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .team-img-overlay {
        opacity: 0.95;
    }
    
    .btn-view-profile {
        transform: translateY(0);
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
}

