@import url('https://fonts.googleapis.com/css?family=Poppins:100,100i,200,200i,300,300i,400,400i,500,500i,600,600i,700,700i,800,800i,900,900i');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
}

header {
    background: #222222;
    color: #D5DBDB;
    text-align: center;
    min-height: 1.5rem;
}

header h1 {
    font-size: 1.5rem;
    font-weight: 500;
    margin: 1rem 1.5rem;
    cursor: pointer;
}

nav ul {
    color: #D5DBDB;
    list-style: none;
    text-decoration: none;
    margin: 1rem 1.5rem;
}

nav ul li {
    color: #D5DBDB;
    font-size: 13px;
    display: inline;
    margin: 0 10px;
}

a {
    text-decoration: none;
    color: inherit;
    font: inherit;
    background: none;
    padding: 0;
    margin: 0;
    border: none;
}

section {
    margin-bottom: 2rem;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hero {
    width: 100%;
}

.title {
    color: #222222;
    font-size: 30px;
    text-align: center;
    margin-bottom: 30px;
}

.why-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    color: #222222;
}

.why-content {
    width: 240px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all .2s ease-out;
}

.why-img {
    width: 80px;
}

.why-description {
    font-size: 2.5rem;
}

.why-content:hover {
    cursor: pointer;
    transform: scale(1.2);
    color: #33cccc;
}

.groups-section {
    padding: 30px 0px;
    color: #D5DBDB;
    background-color: #222222;
}

.groups-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.groups-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.groups-img {
    width: 300px;
}

.groups-description {
    font-weight: 300;
    font-size: 1rem;
    text-align: center;
}

.card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 0px 20px;
}

.card {
    flex: 1 1 calc(50% - 1rem);
    text-align: center;
    background-color: #fff;
    padding: 0 0 16px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    box-sizing: border-box;
}

.project-title {
    color: #5D6363;
    text-align: left;
    font-size: 16px;
    padding: 8px 16px;
}

.project-desc {
    color: #5D6363;
    text-align: justify;
    font-size: 12px;
    padding: 8px 16px;
}

.do-container {
    margin: 30px;
}

.slider {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    flex: 0 0 33.33333%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: .8rem;
    color: #222222;
}

.slide img {
    height: auto;
    max-width: 80px;
}

.slide h3 {
    margin-top: 20px;
    font-weight: 600;
    text-align: center;
}

.slide p {
    margin: 5px 20px;
}

.dots {
    display: flex;
    margin-top: 10px;
    justify-content: center;
}

.dot {
    width: 10px;
    height: 10px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    cursor: pointer;
}

.dot.active {
    background-color: #717171;
}

.researchers-container {
    padding: 30px 80px;
}

.researchers-container h1 {
    text-align: center;
    margin: 20px;
}

.cards-container {
    color: #222222;
    margin-bottom: 20px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.cards {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    border-radius: 6px;
    box-shadow: 0px 0px 6px #00000040;
}

.cards img {
    max-width: 130px;
    border-radius: 50%;
}

.cards-content {
    margin-top: 20px;
    text-align: center;
    line-height: 1.5rem;
}

.cards-mail {
    font-size: .8rem;
}

.cvlac {
    font-size: .7rem;
}

footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #222222;
    color: #D5DBDB;
    text-align: center;
    padding: 1rem 1.5rem;
}

footer p {
    margin: 0;
    font-size: 1rem;
}

@media (max-width: 768px) {
    nav ul li {
        display: block;
        margin: 0.5rem 0;
    }

    .groups-img {
        width: 150px;
    }

    .card {
        flex: 1 1 calc(50% - 1rem);
    }

    .slide {
        flex: 0 0 33.3333%;
    }

    .researchers-container {
        padding: 30px;
    }

    .cards-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .why-container {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .groups-container {
        display: flex;
        flex-direction: column;
    }

    .card {
        flex: 1 1 100%;
    }

    .slide {
        flex: 0 0 100%;
    }

    .card {
        flex: 1 1 100%;
    }

    .researchers-container {
        padding: 30px;
    }

    .cards-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
}