body {
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #e8e8ee;
    background: url('../media/photos/pool_house_blur.jpg') no-repeat;
    background-size: cover;
    backdrop-filter: blur(5px);
}

header {
    height: 150px; 
    background-color: #020321;
    color: #ECF0F9;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.language-selector {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 10px;
}

@media (max-width: 550px) {
    .language-selector {
        flex-direction: column;
    }
}

.language-selector a {
    color: #ECF0F9;
    text-decoration: none;
    padding: 8px 12px;
    border: 1px solid #ECF0F9;
    border-radius: 4px;
    transition: background-color 0.3s, color 0.3s;
}

.language-selector a:hover {
    background-color: #ECF0F9;
    color: #020321;
}

.logo-container {
    text-align: center;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.header-text {
    text-align: left;
}

.header-text h1 {
    margin: 0;
    font-size: 1.5em;
}

.header-text p {
    margin: 5px 0 0;
    font-size: 1em;
}

.topnav {
    background-color: #020321;
    display: flex;
    overflow: hidden;
    justify-content: center;
    align-items: center;
}

.topnav a {
    float: left;
    display: flex;
    color: #ECF0F9;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 17px;
    justify-content: center;
    align-items: center;
}

.topnav a:hover {
    background-color: #ECF0F9;
    color: black;
}

.topnav a.active {
    background-color: #020321;
    color: #ECF0F9;
}

.topnav .icon {
    display: none;
}

@media screen and (max-width: 900px) {
    .topnav a:not(:first-child) {display: none;}
    .topnav a.icon {
        float: right;
        display: block;
    }
}

@media screen and (max-width: 900px) {
    .topnav.responsive {position: relative;}
    .topnav.responsive a.icon {
        position: absolute;
        right: 0;
        top: 0;
        display: block;
    }
    .topnav.responsive a {
        float: none;
        display: block;
        text-align: left;
    }
    .topnav {
        display: block;
    }
}

#hero {
    background-size: cover;
    background-attachment: fixed;
    color: #ECF0F9;
    text-align: center;
    padding: 150px 20px;
}

/*_____________Body_____________*/

#team {
    padding: 50px 20px;
    background: linear-gradient(#0203217a, rgba(255, 255, 255, 0.543));
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 10px;
    margin: 20px;
}

#team h2 {
    margin-bottom: 40px;
    color: #ecf0f9f0;
    font-size: 2.5em;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.container {
    align-items: stretch;
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.team-member {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 300px;
    height: 600px;
    background-color: #ffffff7d;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    margin: 20px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s;
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 40px 80px #02032125;
}

.team-member img {
    width: 70%;
    border-radius: 50%;
    margin-bottom: 10px;
    margin: 0 auto;
    box-shadow: 3px 3px 12px #02032183;
}

.team-member h3 {
    margin-bottom: 10px;
    color: #020321;
    font-size: 1.5em;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.team-member p {
    margin: 5px 5px;
    color: #555;
    font-size: 1em;
}

@media (max-width: 440px) {
    .team-member p {
        font-size: 0.8em;
    }
}
@media (max-width: 850px) {
    #team {
        margin: 5% ;
        padding: 10% 5% ;
    }
    .team-member {
        width: 80%;
        height: 100%;
        margin: 0 auto;
        margin-bottom: 5%;
        padding: 10%;
    }
}

.team-member .speech {
    margin-top: 15px;
    font-style: italic;
    color: #777;
    font-size: 0.9em;
}

/*_____________________________*/

footer {
    background-color: rgba(2, 3, 33, 0.8);
    color: #B2BFC7;
    text-align: center;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    border-radius: 10px;
    margin: 20px;
    margin-bottom: 0;
}

footer p {
    margin: 0;
}
