* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* Header Styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: hsl(210, 29%, 24%);
    padding: 10px 5%;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.logo img {
    height: 50px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 15px;
}

nav ul li {
    display: inline;
}

nav ul li a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    padding: 8px 12px;
    transition: 0.3s ease;
}


nav ul li a:hover {
    color: #00d1ff;
    transform: scale(1.05);
}

/* Responsive Menu Button */
.menu-toggle {
    display: none;
    font-size: 24px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

/* Section Styling */
section {
    text-align: center;
    padding: 40px 20px;
    background-color: #f8fbfd;
}

h2 {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 20px;
}

/* Team Container */
.team-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 members per row */
    gap: 30px;
    justify-content: center;
    align-items: stretch;
    max-width: 900px;
    margin: 0 auto;
}

/* Individual Team Member Card */
.team-member {
    width: 100%;
    max-width: 400px;
    height: 300px; /* Fixed height for uniformity */
    background: white;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden; /* Prevent content overflow */
    transition: transform 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
}

.team-member:hover {
    transform: scale(1.05);
}

/* Team Member Image */
.team-member img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    background-color: #f2f2f2;
    padding: 10px;
}

/* Text Content */
.team-member h3, 
.team-member p {
    padding: 10px;
    text-align: center;
}

.team-member h3 {
    font-size: 22px;
    margin-top: 5px;
}

.team-member p {
    color: gray;
    font-size: 16px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .team-container {
        grid-template-columns: 1fr; /* 1 member per row on smaller screens */
    }

    .menu-toggle {
        display: block;
    }

    nav {
        display: none;
        flex-direction: column;
        background-color: #2c3e50;
        position: absolute;
        width: 100%;
        top: 60px;
        left: 0;
        text-align: center;
    }

    nav ul {
        flex-direction: column;
        padding: 0;
    }

    nav ul li {
        padding: 10px 0;
    }

    nav ul li a {
        display: block;
    }

    nav.active {
        display: flex;
    }
}
