
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&family=Open+Sans:wght@400;700&display=swap');

body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Prevent horizontal overflow */
    background-color: white;
    color: black;
    overflow-x: hidden; /* Prevent horizontal overflow */

}

h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
}

.hero, .section {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.hero {
    height: 100vh;
    overflow: hidden; /* Prevent any overflow in the hero section */
    transition: filter 0.2s;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 20;
    background: rgba(255, 255, 255, 0); /* Fully transparent */
    pointer-events: all; /* Ensure it captures all pointer events */
}


.section-content {
    position: relative;
    z-index: 2;
    padding: 50px 20px;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto; /* Center the content */
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 10px;
}

.hero p {
    font-size: 24px;
    margin-bottom: 20px;
}

.hero button {
    border: 2px solid black;
    background-color: transparent;
    padding: 10px 20px;
    cursor: pointer;
}

.projects, .team, .contact, .about, footer {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.projects h2, .team h2, .contact h2, .about h2 {
    font-size: 36px;
    margin-bottom: 40px;
}

.project-cards, .team-members {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.project-card, .team-member {
    border: 2px solid lightgrey;
    padding: 20px;
    width: 300px;
    margin: 10px;
}

.about-card {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    border: 2px solid lightgrey;
    padding: 20px;
    width: 710px;
    max-width: 100%;
    margin: 10px;
    box-sizing: border-box;
}

.project-card img, .team-member img {
    width: 100%;
    height: auto;
    margin-bottom: 10px;
}

.project-card h3, .team-member h3 {
    font-size: 24px; /* Ensure consistent font size */
}

.project-card p, .team-member p {
    font-size: 16px; /* Ensure consistent font size */
}

.team-member img, .project-card img {
    border: none; /* Remove the outline for linked images */
}

.team-member h3 a, .project-card h3 a {
    color: black; /* Link color */
    text-decoration: none;
    position: relative;
    transition: color 0.3s;
    padding: 5px; /* Add padding for better appearance */
}

.team-member h3 a::before, .project-card h3 a::before {
    content: '';
    position: absolute;
    left: -5px; /* Adjust position to cover padding */
    top: -5px; /* Adjust position to cover padding */
    width: calc(100% + 10px); /* Adjust width to cover padding */
    height: calc(100% + 10px); /* Adjust height to cover padding */
    background-color: transparent;
    border: 1px solid lightgrey; /* Light grey outline */
    z-index: -1;
    transition: opacity 0.3s;
    opacity: 0;
}

.team-member h3 a:hover::before, .project-card h3 a:hover::before {
    opacity: 1;
}

.team-member h3 a:hover, .project-card h3 a:hover {
    color: black; /* Keep the text color black */
}

.team-member a img {
    border: none; /* Remove box on hover for images */
}

.contact-form {
    width: 100%;
    max-width: 350px; /* Adjusted width for smaller form */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 20px; /* Added padding for better spacing */
    text-align: center; /* Center the form content */
}

.contact-form input, .contact-form textarea, .contact-form button {
    border: 2px solid black;
    padding: 10px;
    font-size: 16px;
}

@media (max-width: 768px) {
    .project-cards, .team-members {
        flex-direction: column;
    }
    
    .contact-form input, .contact-form textarea, .contact-form button {
        font-size: 14px;
        padding: 8px;
    }

    .about-card {
        width: auto;
        max-width: 100%;
        padding: 20px;
    }
}

footer {
    background-color: black;
    color: white;
    padding: 20px;
    text-align: center;
}

footer p {
    margin: 5px 0;
}

footer a.footer-link {
    color: white;
    text-decoration: none;
    position: relative;
    transition: color 0.3s;
    padding: 0 5px; /* Adjusted padding for snug fit */
}

footer a.footer-link:hover {
    text-decoration: none;
}

footer a.footer-link::before {
    content: '';
    position: absolute;
    left: 0; /* Adjust position to be snug with text */
    top: 0; /* Adjust position to be snug with text */
    width: 100%; /* Adjust width to be snug with text */
    height: 100%; /* Adjust height to be snug with text */
    background-color: transparent;
    border: 1px solid lightgrey; /* Light grey outline */
    z-index: -1;
    transition: opacity 0.3s;
    opacity: 0;
}

footer a.footer-link:hover::before {
    opacity: 1;
}

.social-media-icons {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.social-media-icons img {
    height: 24px; /* Set the height of social media icons to a smaller size */
}

canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}


.hero-logo {
    max-width: 200px;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.justify-hyphen {
    text-align: justify;
    hyphens: auto;
}

.center-title {
    text-align: center;
}

.center-footer .section-content {
    text-align: center;
}

.no-hover img {
    border: none;
    transition: none;
}
.no-hover:hover img {
    border: none;
    transition: none;
}

.team-member a.no-hover img {
    border: none; /* Remove border */
    transition: none; /* Remove transition */
}

.team-member a.no-hover:hover img {
    border: none; /* Ensure no border on hover */
    transition: none; /* Ensure no transition on hover */
}

