/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #fff;
    background-image: url("/images/servicesbg.jpg");
    background-size: cover;
    background-attachment: fixed;
}

/* About Us Section */
.about-us {
    position: relative;
    padding: 80px 20px;
    text-align: center;
    height: 100vh;
    overflow: hidden;
}

/* Header Styling */
.about-header h1 {
    font-size: 50px;
    margin-bottom: 20px;
    color: white;
    text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.6);
}

.about-header p {
    font-size: 20px;
    color: #ddd;
    margin-top: 10px;
}

/* Team Section */
.team {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 50px;
    flex-wrap: wrap;
}

/* Team Member Cards */
.team-member {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    width: 250px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.4s ease-in-out, box-shadow 0.4s ease;
    backdrop-filter: blur(10px);
}

.team-member:hover {
    transform: translateY(-15px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Image Styling */
.team-photo {
    width: 100%;
    height: auto;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.team-member:hover .team-photo {
    transform: scale(1.1);
}

.team-member h3 {
    margin-top: 20px;
    font-size: 22px;
    color: #333;
}

.team-member .description {
    font-size: 14px;
    color: #666;
    margin-top: 10px;
}

/* Footer Styling */
.footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px;
}

.footer-content p {
    font-size: 16px;
}

/* Back Button Styling */
.button-container {
    margin: 30px auto;
    text-align: center;
}

.back-button {
    display: inline-block;
    text-decoration: none;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    background: #3b82f6;
    border: 2px solid #fff;
    border-radius: 25px;
    transition: all 0.3s ease-in-out;
}

.back-button:hover {
    background: #2563eb;
    color: #fff;
    transform: scale(1.1);
}

/* Particle Animation Canvas */
canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Responsive Design */

/* For small devices (mobile, max-width: 576px) */
@media (max-width: 576px) {
    .about-header h1 {
        font-size: 25px;
        
    }

    .about-header p {
        font-size: 16px;
    }

    .team {
        flex-direction: column;
        gap: 2px;
        align-items: center;
        padding-top: -20px;
    }

    .team-member {
        width: 130px;
        padding: 2px;
        height: 180px;
    }

    .back-button {
        font-size: 14px;
        padding: 8px 16px;
    }
    .team-photo {
        max-width: 70px; /* Resize photos for mobile */
        height: auto;
    }
}

/* For medium devices (tablets, max-width: 768px) */
@media (max-width: 768px) {
    .about-header h1 {
        font-size: 35px;
    }

    .about-header p {
        font-size: 18px;
    }

    .team-member {
        width: 80%;
        padding: 20px;
    }

    .back-button {
        font-size: 15px;
        padding: 9px 18px;
    }
}

/* For large devices (iPads, max-width: 1024px) */
@media (max-width: 1024px) {
    .about-header h1 {
        font-size: 40px;
        margin-bottom: -17px;
        margin-top: -57px;
    }

    .about-header p {
        margin-bottom: 1px;
        color: white;
        text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.6)
    }

    .team {
        display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 18px
    }

    .team-member {
        width: 170px;
        padding: 25px;
    }

    .back-button {
        font-size: 16px;
        padding: 10px 20px;
    }
}
