/* ============================================
   NEPP Team Page Styles
   Modern team member cards with animations
   ============================================ */

.team-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #0a1421, #003366, #0052a5, #001f3f);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    background-attachment: fixed;
    color: #ffffff;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    overflow-x: hidden;
    position: relative;
}

.team-header {
    text-align: center;
    padding: 8rem 2rem 4rem;
    position: relative;
    z-index: 2;
}

.team-logo {
    width: 180px;
    height: auto;
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 25px rgba(255, 215, 0, 0.6));
    animation: float 3s ease-in-out infinite;
}

.team-title {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #FFD700, #FFA500, #FFD700);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 5s ease infinite;
    margin-bottom: 1rem;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
}

.team-subtitle {
    font-size: 1.3rem;
    color: #f1f1f1;
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.8;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.3s forwards;
}

/* Card Container */
.card-container {
    max-width: 1200px;
    margin: 0 auto 4rem;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    opacity: 0;
    transform: translateY(30px);
}

.card-container.visible {
    animation: fadeInUp 1s ease-out forwards;
}

/* Team Member Cards */
.card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 25px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #FFD700, #FFA500);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.card:hover::before {
    transform: scaleX(1);
}

.card:hover {
    transform: translateY(-15px) scale(1.03);
    border-color: rgba(255, 215, 0, 0.6);
    box-shadow: 0 20px 50px rgba(255, 215, 0, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.card-content {
    position: relative;
    z-index: 1;
}

.card-content img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: 4px solid rgba(255, 215, 0, 0.3);
    transition: all 0.4s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.card:hover .card-content img {
    transform: scale(1.1);
    border-color: rgba(255, 215, 0, 0.8);
    box-shadow: 0 12px 30px rgba(255, 215, 0, 0.4);
}

.card-content h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #FFD700;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.card-content p {
    font-size: 1.1rem;
    color: #f1f1f1;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.card-content a {
    color: #FFA500;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.card-content a:hover {
    color: #FFD700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* Developers Section */
.developers-section {
    background: rgba(12, 42, 69, 0.6);
    backdrop-filter: blur(10px);
    padding: 4rem 2rem;
    margin-top: 4rem;
    border-top: 1px solid rgba(255, 215, 0, 0.2);
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.developers-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #FFD700;
    margin-bottom: 2rem;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.developers-grid {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.developer-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.developer-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 215, 0, 0.5);
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.developer-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #FFD700;
    margin: 0;
}

/* Footer */
.footer {
    text-align: center;
    padding: 2.5rem 2rem;
    background: rgba(0, 8, 20, 0.9);
    color: #f1f1f1;
    font-size: 0.95rem;
    border-top: 1px solid rgba(255, 215, 0, 0.2);
}

.footer a {
    color: #FFD700;
    margin: 0 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer a:hover {
    color: #FFA500;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.footer p {
    margin: 0.5rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .team-header {
        padding: 6rem 1.5rem 3rem;
    }

    .team-title {
        font-size: 2.5rem;
    }

    .team-subtitle {
        font-size: 1.1rem;
    }

    .team-logo {
        width: 120px;
    }

    .card-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1.5rem;
    }

    .card {
        padding: 2rem;
    }

    .card-content img {
        width: 120px;
        height: 120px;
    }

    .card-content h2 {
        font-size: 1.5rem;
    }

    .developers-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .developers-title {
        font-size: 2rem;
    }
}

/* Stagger Animation for Cards */
.card:nth-child(1) {
    animation-delay: 0.1s;
}

.card:nth-child(2) {
    animation-delay: 0.2s;
}

.card:nth-child(3) {
    animation-delay: 0.3s;
}

.card:nth-child(4) {
    animation-delay: 0.4s;
}

.card:nth-child(5) {
    animation-delay: 0.5s;
}