* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: #f6f5ff;
    color: #333;
}



.about {
    padding: 150px 20px 120px;   /* Top padding increase */
    text-align: center;
}

.section-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 10px;
}

.section-subtitle {
    color: #777;
    margin-bottom: 120px;  /* More space before cards */
}

.team-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 60px;
    flex-wrap: wrap;
}

/* CARD */
.team-card {
    position: relative;
    width: 340px;
  background: rgba(255, 255, 255, 0.6);
backdrop-filter: blur(20px);
border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    padding: 140px 30px 40px;  /* Important fix */
    box-shadow: 0 20px 50px rgba(147, 51, 234, 0.08);
    transform-style: preserve-3d;
transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.team-card:hover {
    transform: rotateY(6deg) rotateX(6deg) translateY(-10px);
    box-shadow: 0 40px 80px rgba(147, 51, 234, 0.3);

}

/* IMAGE FIXED POSITION */
.profile-img {
    position: absolute;
    top: -110px;  /* Controlled overlap */
    left: 50%;
    transform: translateX(-50%);
    width: 240px;
}

.profile-img img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: drop-shadow(0 20px 40px rgba(147, 51, 234, 0.4));
    transition: 0.4s ease;
    transform: translateZ(30px);
}

.team-card:hover .profile-img img {
    transform: scale(1.05);
}

/* CONTENT */
.card-content {
    margin-top: 10px;
}

.card-content h2 {
    font-size: 22px;
    margin-bottom: 6px;
}

.card-content span {
    display: block;
    color: #9333ea;
    font-weight: 600;
    margin-bottom: 15px;
}

.card-content p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}


/* Floating Animation */
@keyframes float {
    0% {
        transform: translate(-50%, 0px);
    }
    50% {
        transform: translate(-50%, -10px);
    }
    100% {
        transform: translate(-50%, 0px);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .team-container {
        flex-direction: column;
        align-items: center;
    }
}