
.team-category {
    padding-bottom: 5rem;
    opacity: 1;
    transform: translateY(20px);
}
.team-category:nth-child(1) {
    animation: fadeInUp 1s ease 0s forwards; /* Starts immediately */
}
.team-category:nth-child(2) {
    animation: fadeInUp 1s ease 0.2s forwards;
}

.team-category:nth-child(3) {
    animation: fadeInUp 1s ease 0.4s forwards;
}

.team-category:nth-child(4) {
    animation: fadeInUp 1s ease 0.6s forwards;
}

/* .category-header {
    position: relative;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #FFDCDA;
} */

/* .category-header h2 {
    font-size: 2.2rem;
    color: #FF1D11;
} */

/* .category-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 80px;
    height: 2px;
    background-color: #FF1D11;
} */

/* Filter Styles */
.filter-container {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 10px;
    opacity: 0;
    animation: fadeIn 1s ease 0.8s forwards;
}

.filter-btn {
    background-color: #FFDCDA;
    color: #560400;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background-color: #FF918B;
    transform: translateY(-2px);
}

.filter-btn.active {
    background-color: #FF1D11;
    color: white;
}

/* Card Grid Styles */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

/* Card Styles */
.team-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    position: relative;
    height: 380px;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(255, 29, 17, 0.2);

}

.card-image {
    height: 100%;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, 
        rgba(255, 29, 17, 0.0) 0%,
        rgba(255, 29, 17, 0.2) 40%,
        rgba(255, 29, 17, 0.85) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
}

.team-card:hover .card-overlay,
.team-card.touch-active .card-overlay {
    opacity: 1;
}

.card-content {
    padding: 20px;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease;
    transition-delay: 0.1s;
}

.team-card:hover .card-content,
.team-card.touch-active .card-content {
    transform: translateY(0);
    opacity: 1;
}

/* Mobile touch styles */
@media (hover: none) {
    .team-card:hover .card-overlay {
        opacity: 0; /* Disable hover on touch devices */
    }
    
    .team-card:hover .card-content {
        transform: translateY(20px);
        opacity: 0;
    }
}

.card-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
    margin-bottom: 5px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.card-role {
    font-size: 0.95rem;
    color: #FFDCDA;
    font-weight: 600;
    margin-bottom: 10px;
}

.card-fact {
    font-size: 0.9rem;
    color: white;
    margin-top: 10px;
    font-style: italic;
    opacity: 0.9;
}

.card-social {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    justify-content: flex-start;
}

.social-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.3s ease;
    padding: 5px;
}

.social-icon svg {
    width: 100%;
    height: 100%;
}

.social-icon:hover {
    background-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-3px);
}

.badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #FF1D11;
    color: white;
    font-size: 0.7rem;
    padding: 5px 10px;
    border-radius: 15px;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.team-card:hover .badge,
.team-card.touch-active .badge {
    background-color: #560400;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

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

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

/* Responsive Styles */
@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }

    .team-header h1 {
        font-size: 2.5rem;
    }

    .category-header h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .team-grid {
        grid-template-columns: 1fr;
    }

    .team-header h1 {
        font-size: 2rem;
    }

    .category-header h2 {
        font-size: 1.5rem;
    }
}
