body {
    background-color: #0b0b0f;
    color: #f2f2f2;
    font-family: "Poppins", sans-serif;
    margin: 0;
    overflow-x: hidden;
}

/* Header */
header {
    background-color: #11131a;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    border-bottom: 1px solid #222;
    flex-wrap: wrap;
}

header img {
    height: 45px;
}

header nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

header nav a {
    color: #f2f2f2;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}

header nav a:hover,
header nav a.active {
    color: #00bcd4;
}

/* Team Section */
.team-section {
    text-align: center;
    padding: 60px 20px;
}

.team-section h1 {
    color: #00bcd4;
    font-size: 2.3rem;
    margin-bottom: 10px;
}

.team-section p {
    color: #ccc;
    font-size: 1.1rem;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Cards Container */
.team-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    max-width: 1000px;
    margin: auto;
}

/* Team Card */
.team-card {
    background-color: #1a1c24;
    border-radius: 20px;
    width: 220px;
    padding: 20px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    overflow: hidden;
    position: relative;
}

.team-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 0 25px rgba(0, 188, 212, 0.3);
}

.team-card .image {
    width: 100px;
    height: 100px;
    margin: 0 auto 15px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #00bcd4;
}

.team-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card h2 {
    margin: 5px 0;
    font-size: 1.2rem;
}

.team-card .role {
    color: #aaa;
    font-size: 0.9rem;
}

/* Hidden Details */
.team-card .details {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    font-size: 0.9rem;
    color: #ccc;
    margin-top: 10px;
}

.team-card.active .details {
    max-height: 200px;
    opacity: 1;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    border-top: 1px solid #222;
    color: #777;
    background-color: #11131a;
}

/* 📱 Responsive Design */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 15px;
    }

    header nav a {
        margin: 5px;
        font-size: 1rem;
    }

    .team-container {
        flex-direction: column;
        align-items: center;
    }

    .team-card {
        width: 85%;
        max-width: 320px;
    }

    .team-section h1 {
        font-size: 2rem;
    }

    .team-section p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .team-card {
        width: 90%;
        max-width: 300px;
        padding: 18px;
    }

    .team-card h2 {
        font-size: 1rem;
    }

    .team-card .role {
        font-size: 0.85rem;
    }

    header img {
        height: 40px;
    }
}