@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

body {
    margin: 0;
    font-family: 'Poppins', sans-serif; /* Poppins font applied */
    line-height: 1.6;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

header {
    width: 100%;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(51, 51, 51, 0.9);
    padding: 10px 30px;
    color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.navbar .logo img {
    height: 60px;
    vertical-align: middle;
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 25px;
}

.nav-links li a {
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    display: block;
    transition: background-color 0.3s ease, color 0.3s ease;
    border-radius: 4px;
}

.nav-links li a:hover,
.nav-links li a.active {
    background-color: rgba(77, 77, 77, 0.8);
    color: #ffd700;
}

.title-bar {
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    text-align: center;
    padding: 25px 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.title-bar h1 {
    margin: 0;
    font-size: 2.5em;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.content-container {
    background-color: rgba(255, 255, 255, 0.85);
    margin: 20px auto;
    padding: 30px;
    max-width: 1000px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    flex-grow: 1;
    box-sizing: border-box;
}

.content-container h2 {
    color: #0056b3;
    border-bottom: 2px solid #0056b3;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

footer {
    width: 100%;
    background-color: rgba(51, 51, 51, 0.9);
    color: white;
    text-align: center;
    padding: 15px 0;
    margin-top: auto;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.2);
}

/* Basic Form Styles for Contact Page */
form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

form input[type="text"],
form input[type="email"],
form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

form input[type="submit"] {
    background-color: #007bff;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

form input[type="submit"]:hover {
    background-color: #0056b3;
}

/* Styles for form messages */
.form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    opacity: 1;
    transform: translateY(0);
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    opacity: 1;
    transform: translateY(0);
}

.form-message.sending {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
    opacity: 1;
    transform: translateY(0);
}

/* Ensure required fields are visually indicated */
form input:required:invalid,
form textarea:required:invalid {
    border-color: #dc3545;
}

form input:focus:invalid,
form textarea:focus:invalid {
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* --- New Styles for Meet the Team Section --- */

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Responsive grid columns */
    gap: 30px; /* Space between team member cards */
    margin-top: 30px;
    justify-content: center; /* Center items in the grid */
}

.team-member {
    background-color: rgba(255, 255, 255, 0.95); /* Slightly less transparent for readability */
    padding: 25px;
    border-radius: 15px; /* Rounded corners for the container slot */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15); /* Softer shadow */
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex; /* Use flex for internal alignment */
    flex-direction: column;
    align-items: center;
    justify-content: space-between; /* Distribute space */
    min-height: 380px; /* Ensure consistent height for cards */
}

.team-member:hover {
    transform: translateY(-8px); /* Lift effect on hover */
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.25);
}

.team-member .profile-pic {
    width: 150px;
    height: 150px;
    border-radius: 50%; /* Make profile picture perfectly round */
    object-fit: cover; /* Ensure image covers the area without distortion */
    border: 4px solid #007bff; /* Blue border around picture */
    box-shadow: 0 0 0 5px rgba(0, 123, 255, 0.2); /* Subtle glow effect */
    margin-bottom: 20px;
}

.team-member h3 {
    color: #0056b3;
    margin-top: 10px;
    margin-bottom: 5px;
    font-size: 1.6em;
}

.team-member .role {
    color: #6c757d; /* Muted color for role */
    font-size: 1em;
    font-weight: 600;
    margin-bottom: 15px;
}

.team-member .description {
    font-size: 0.95em;
    color: #555;
    margin-bottom: 15px;
    flex-grow: 1; /* Allows description to take available space */
}

.team-member .email a {
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.team-member .email a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr; /* Stack cards on very small screens */
    }
    .navbar {
        flex-direction: column;
        padding: 15px 20px;
    }
    .nav-links {
        flex-direction: column;
        align-items: center;
        margin-top: 15px;
        gap: 10px;
    }
    .navbar .logo img {
        height: 50px;
    }
    .title-bar h1 {
        font-size: 2em;
    }
    .content-container {
        margin: 15px;
        padding: 20px;
    }
}
