@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

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

body {
    background-color: #DCE3EB;
    font-family: 'Lato', sans-serif;
    padding-top: 180px;
}

.header {
    padding: 20px 40px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: #6B7A90;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

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

.nav-header img {
    width: 150px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 50px;
}

.nav-links a {
    text-decoration: none;
    color: white;
    text-transform: uppercase;
    font-size: 18px;
    letter-spacing: 1px;
    position: relative;
    transition: 0.25s;
    font-weight: 600;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0%;
    height: 2px;
    background: black;
    transition: width .25s;
}

.nav-links a:hover::after,
.nav-links .active::after {
    width: 100%;
}

.projetos-section {
    max-width: 1000px;
    margin: 120px auto 50px;
    padding: 0 20px;
}

.span-subtitulo {
    display: block;
    margin-top: 15px;
    font-size: 15px;
    font-weight: 600;
    color: red;
    opacity: 0.9;
}

.repos-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.card {
    background: #fff;
    border-radius: 18px;
    padding: 25px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.08);
    transition: 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 6px 24px rgba(0,0,0,0.12);
}
    
.card h2 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #222;
    font-weight: 700;
}

.card p {
    font-size: 15px;
    color: #555;
    margin-bottom: 15px;
    line-height: 1.4;
}

.card-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card a {
    background: #0077ff;
    padding: 10px 16px;
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    transition: 0.2s;
}

.card a:hover {
    background: #005fcc;
}

.langs {
    display: flex;
    gap: 10px;
    font-size: 20px;
    opacity: 0.85;
}

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 15px;
}


@media (max-width: 700px) {
    .header {
        padding: 15px 20px;
    }

    .nav-header img {
        width: 90px;
    }

    .nav-links {
        gap: 20px;
    }

    .nav-links a {
        font-size: 14px;
        letter-spacing: 1px;
    }
}

@media (max-width: 500px) {

    .header {
        padding: 12px 15px;
    }

    .nav-header {
        flex-direction: column;
        gap: 10px;
    }

    .nav-links {
        gap: 15px;
    }

    .nav-links a {
        font-size: 12px;
    }
}
