/* Team Section */
#team {
    position: relative;
    color: #fff;
    padding: 4rem 0;
    overflow: hidden;
    width: 100%;
    margin: 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

#team .section-title h1 {
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,.5);
}

#team .section-title p {
    color: rgba(255,255,255,.9);
}
/* Team card - extends base .card styles */
.team-card {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 229, 255, 0.1);
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    margin: 0.5rem 0;
    width: 100%;
}

.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 180, 216, 0.1), rgba(0, 146, 214, 0.05));
    z-index: -1;
    opacity: 0.5;
    transition: all 0.4s ease;
}

.team-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 20px 50px rgba(0, 180, 216, 0.4);
    border-color: rgba(0, 229, 255, 0.6);
    background: rgba(15, 23, 42, 0.98);
    z-index: 2;
}

.team-card:hover::before {
    opacity: 1;
}

/* Team member image container */
.team-img-wrapper {
    width: 100%;
    padding-top: 100%;
    position: relative;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
}

.team-img-wrapper::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(transparent, rgba(0,0,0,.7));
    z-index: 1;
    transition: .4s;
}

.team-card:hover .team-img-wrapper::before {
    height: 100%;
    background: linear-gradient(transparent, rgba(0,180,216,.3));
}

.team-img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.team-card:hover .team-img-wrapper img {
    transform: scale(1.1);
    border-color: rgba(255,255,255,.9);
    box-shadow: 0 10px 30px rgba(0,180,216,.4);
}

/* Team Info */
.team-info {
    padding: 1.5rem 1.25rem;
    position: relative;
    z-index: 2;
    background: rgba(15, 23, 42, 0.9);
    border-radius: 0 0 12px 12px;
    border-top: 1px solid rgba(0, 229, 255, 0.1);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 0;
    transition: all 0.3s ease;
}

.team-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #fff;
    position: relative;
    display: inline-block;
}

.team-info .text-primary {
    color: #00e5ff !important;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.team-info p {
    color: #e2edf9;
    font-weight: 400;
    margin-bottom: 1.8rem;
    font-size: 1.05rem;
    line-height: 1.7;
    letter-spacing: 0.5px;
    text-transform: none;
    text-align: center; 
    transition: .3s;
    padding: 0 1rem;
}

.team-info .text-primary {
    text-align: center !important;
    text-justify: initial !important;
}

.team-card:hover .team-info p {
    color: #fff;
}

/* Social Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: auto; 
    padding-top: 1.5rem;
    position: relative;
    width: 100%;
}

.social-links::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.6), transparent);
    opacity: 0.7;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(0, 180, 216, 0.15);
    color: #fff;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1.5);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 229, 255, 0.3);
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.social-link i {
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 180, 216, 0.3), rgba(0, 146, 214, 0.2));
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    transform: scale(0.8);
    border-radius: 50%;
}

.social-link:hover {
    background: rgba(0, 229, 255, 0.2);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 30px rgba(0, 229, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}

.social-link:hover::before {
    opacity: 1;
    transform: scale(1);
}

/* Specific icon colors on hover */
.social-link[aria-label*="LinkedIn"]:hover {
    background: #0a66c2;
    box-shadow: 0 8px 30px rgba(10, 102, 194, 0.5);
}

.social-link[aria-label*="Twitter"]:hover {
    background: #1da1f2;
    box-shadow: 0 8px 30px rgba(29, 161, 242, 0.5);
}

.social-link[aria-label*="GitHub"]:hover {
    background: #333;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

/* Responsive adjustments */
@media (max-width: 1199.98px) {
    .team-card {
        margin: 0.5rem 0;
    }
    
    .team-info {
        padding: 1.25rem 1rem;
    }
    
    .team-info h3 {
        font-size: 1.25rem;
        margin-bottom: 0.25rem;
    }
    
    .team-info .text-primary {
        font-size: 0.95rem;
        margin-bottom: 0.75rem;
    }
}

@media (max-width: 767.98px) {
    .team-card {
        margin: 0.5rem 0;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    
    .team-info {
        padding: 1.25rem 1rem;
    }
    
    .team-info h3 {
        font-size: 1.25rem;
    }
    
    .team-info p {
        font-size: 0.95rem;
        padding: 0 0.5rem;
    }
    
    .social-links {
        gap: 12px;
    }
    
    .social-link {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
}

/* Animation for team cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.team-card {
    opacity: 0;
    animation: fadeInUp 0.6s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

.team-card:nth-child(1) { animation-delay: 0.1s; }
.team-card:nth-child(2) { animation-delay: 0.2s; }
.team-card:nth-child(3) { animation-delay: 0.3s; }
.team-card:nth-child(4) { animation-delay: 0.4s; }

@media (max-width: 767.98px) {
    #team {
        padding: 4rem 0;
    }
    
    .team-card {
        max-width: 350px;
        margin: 0 auto 2rem;
        padding: 1.75rem 1.25rem;
    }
    
    .team-info h3 {
        font-size: 1.3rem;
    }
    
    .team-info .text-primary {
        font-size: 1rem;
    }
    
    .team-info p {
        font-size: 0.95rem;
        padding: 0;
    }
    
    .social-link {
        width: 36px;
        height: 36px;
    }
}

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

.team-card {
    opacity: 0;
    animation: fadeInUp 0.6s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

.team-card:nth-child(1) { animation-delay: 0.1s; }
.team-card:nth-child(2) { animation-delay: 0.2s; }
.team-card:nth-child(3) { animation-delay: 0.3s; }
.team-card:nth-child(4) { animation-delay: 0.4s; }

/* Responsive adjustments for team cards */
@media (max-width: 767.98px) {
    #team {
        padding: 4rem 0;
    }
    
    .team-card {
        max-width: 350px;
        margin: 0 auto 2rem;
    }
    
    .team-img-wrapper {
        height: 300px;
    }
}
