.main {
    text-align: center;
    background-color: #f9f9f9; /* Light background for contrast */
}

.team-section {
    text-align: center;
    margin: 0 auto;
    max-width: 1200px; 
    padding: 40px; 
}

h1 {
    font-size: 50px;
    margin-bottom: 30px;
    color: #333; /* Darker color for better readability */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

.team-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around; 
}

.team-member {
    background: #ffffff; /* White background for team members */
    border-radius: 15px; 
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); 
    margin: 20px; 
    padding: 40px; 
    width: 300px; 
    transition: transform 0.3s, box-shadow 0.3s; /* Smooth transition */
    text-align: center; 
    opacity: 0; /* Start invisible for animation */
    transform: translateY(20px); /* Start slightly lower for animation */
    animation: fadeIn 0.5s forwards; /* Apply fade-in animation */
}

@keyframes fadeIn {
    to {
        opacity: 1; /* Fully visible */
        transform: translateY(0); /* Move to original position */
    }
}

.team-member:hover {
    transform: scale(1.05); /* Slightly scale on hover */
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2); /* Enhanced shadow on hover */
}

.team-member img {
    border-radius: 50%; 
    width: 150px; 
    height: 150px; 
    margin: 0 auto 15px; 
    display: block; 
    transition: transform 0.3s; /* Smooth image transition */
}

.team-member img:hover {
    transform: scale(1.1); /* Scale image on hover */
}

.team-section h2 {
    font-size: 2em; 
    color: #444; 
    margin: 10px 0; 
}

.team-section p {
    color: #666; /* Softer color for paragraphs */
    font-size: 1.1em; 
}

/* Responsive Design */
@media (max-width: 768px) {
    .team-member {
        width: 90%; 
    }

    h1 {
        font-size: 40px; 
    }

    .team-section h2 {
        font-size: 1.5em; 
    }

    .team-section p {
        font-size: 1em; 
    }
}