/* Variables */
:root {
    --primary-color: #0077cc;
    --secondary-color: #4c4c4c;
    --text-color: #2b2b2b;
    --header-bg-color: rgba(128, 128, 128, 0.6);
    --white-color: #ffffff;
    --border-color: #e0e0e0;
    --hover-color: #005fa3;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Raleway', sans-serif;
    color: var(--text-color);
    background-size: cover;
    line-height: 1.6;
}

/* Optional Overlay */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3); /* Dark overlay for readability */
    z-index: -1;
}

/* Main Content Styling */
main {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    position: relative;
    z-index: 1;
}

/* Header Styling */
#main-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background-color: var(--header-bg-color);
    color: var(--white-color);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 3;
}

/* Centered Logo */
.logo h1 {
    font-size: 1.5rem;
    color: var(--white-color);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* About Us Section */
.about-content {
    max-width: 800px;
    margin: 80px auto 0;
    padding: 2rem;
    text-align: center;
    background-color: #ffffff;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.about-content h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.about-content p {
    font-size: 1.1rem;
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.about-content img.about-photo {
    max-width: 100%;
    height: auto;
    margin-top: 1rem;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

/* Team Section */
.team-section {
    padding: 3rem 1.5rem;
    text-align: center;
    margin-top: 2rem;
    background-color: #f4f8fc;
}

.team-section h3 {
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.team-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    justify-items: center; /* Centers cards within grid cells */
    max-width: 1000px;
    margin: 0 auto;
}

.team-card {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%; /* Ensures card takes full width within grid */
    max-width: 280px; /* Restricts max width for consistent card size */
    text-align: center;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.2);
}

.team-card img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-bottom: 4px solid var(--primary-color);
}
.team-card h4 {
    padding: 0.5rem;
    font-size: 1.1rem;
    color: var(--white-color);
    background-color: var(--primary-color);
    margin: 0;
}

.team-card p {
    font-size: 1rem;
    color: #555;
    margin: 0.5rem 0;
}

.team-card p.intro {
    font-size: 0.9rem;
    color: #555;
}

/* Testimonials Section */
.testimonials-section {
    background-color: #ffffff;
    padding: 2rem 1.5rem;
    text-align: center;
    margin-top: 3rem;
    max-width: 800px;
    margin: 3rem auto;
}

.testimonials-section h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.testimonial {
    max-width: 600px;
    margin: 0 auto 1.5rem;
    padding: 1rem;
    background-color: #f9f9f9;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.testimonial p {
    font-size: 1rem;
    color: #333;
    line-height: 1.6;
}

.testimonial span {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    font-style: italic;
    color: #555;
}

/* Popup Styling */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.popup-content {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    position: relative;
    text-align: center;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.3);
    animation: fade-in 0.4s ease;
}

.popup-content h3 {
    margin-bottom: 1rem;
    font-size: 1.8rem;
    color: var(--primary-color);
}

.popup-content p {
    font-size: 1.1rem;
    color: var(--text-color);
}

/* Popup Image Styling */
.popup-content .popup-image {
    width: 100%;
    max-width: 150px;
    height: auto;
    margin-bottom: 1rem;
    border-radius: 8px;
}

/* Close Icon Styling */
.close-icon {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    color: #555;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-icon:hover {
    color: #ff4c4c;
}

/* Keyframe Animation */
@keyframes fade-in {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* Responsive */
@media (max-width: 768px) {
    .about-content h2 {
        font-size: 2rem;
    }

    .about-content p {
        font-size: 1rem;
    }
}
